@solvimon/solvimon-web 0.1.0-alpha.26 → 0.1.0-alpha.28
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/README.md +138 -27
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +17 -19
- package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +233 -253
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
- package/dist/{Chip.vue.es-CKCOY5T6.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/{ContextMenu.vue.es-Da-lAmTl.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +31 -36
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
- package/dist/{DividerText.vue.es-DKl3FnDJ.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
- package/dist/{ErrorNotification.vue.es-rRKgmkzV.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
- package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
- package/dist/{IconTitle.vue.es-CK9k69tV.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
- package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
- package/dist/{InvoiceSummary.vue.es-DQ4KvTaw.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
- package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +73 -75
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-UWoyZgsR.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
- package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -297
- package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
- package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
- package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +65 -75
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
- package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
- package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
- package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
- package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-C3Zm6Wc9.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
- package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +124 -90
- package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
- package/dist/{TrialChip.vue.es-C_yRujip.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{cn.es-CGa6b2Lt.mjs → cn.es-2bVdkiFV.mjs} +87 -83
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
- package/dist/components/Invoice/Invoice.mjs +206 -209
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -63
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
- package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
- package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -65
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
- package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-Di3zwlEU.mjs +6447 -0
- package/dist/customer-CqddTiOr.mjs +31 -0
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
- package/dist/{de-DE-CLfzTbbX.mjs → de-DE-BW8dMvhW.mjs} +87 -19
- package/dist/formControl-CsITfsBk.mjs +749 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-DJTwftJv.mjs → invoices-Cf1qDAv4.mjs} +40 -35
- package/dist/{it-IT-Cym1UvvK.mjs → it-IT-Byg06KWc.mjs} +87 -19
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
- package/dist/{nl-NL-D0c4x5C0.mjs → nl-NL-x3zQqzZ7.mjs} +93 -25
- package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
- package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
- package/dist/payments-Ci8bF4C6.mjs +45 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
- package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
- package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-qtEN8J8T.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-CwogJODR.mjs +54 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
- package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
- package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
- package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
- package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
- package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
- package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
- package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +17 -18
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
- package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
- package/dist/{usePayments-CV85OV8V.mjs → usePayments-CykCZPG2.mjs} +7 -7
- package/dist/usePortal-CxzKGhbK.mjs +7 -0
- package/dist/useService-B0OQJmif.mjs +56 -0
- package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +35 -59
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs +0 -223
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js +0 -1
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-Bm6MCMAL.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
- package/dist/Button.vue.es-qGvnOKnK.js +0 -1
- package/dist/ChargeOnDemandModal-DIQaGnRs.js +0 -1
- package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
- package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
- package/dist/Chip.vue.es-D60gTbfe.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-C7KI8Gz6.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-bFUx81Ig.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs +0 -2701
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-BF3gnr4e.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs +0 -335
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js +0 -1
- package/dist/ErrorNotification.vue.es-BX9dHEc-.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/IconButton.vue.es-Bwdfu-jm.js +0 -1
- package/dist/IconTitle.vue.es-Cei98MBw.js +0 -1
- package/dist/Input.vue.es-B47l_feL.js +0 -1
- package/dist/Input.vue.es-D9IjIWc-.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs +0 -41
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js +0 -1
- package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +0 -1
- package/dist/Modal.vue.es-8LN4gBh0.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js +0 -1
- package/dist/PaymentHistoryBlock-Ds93gNvh.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js +0 -1
- package/dist/PaymentIntegrationForm-B_Db4DG1.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
- package/dist/PaymentIntegrationFormStripe-BIiMCWlV.mjs +0 -587
- package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +0 -102
- package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +0 -1
- package/dist/PaymentMethodForm-1d0YIGOu.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js +0 -1
- package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
- package/dist/PlanCustomizationEditor-CpZeilm5.mjs +0 -694
- package/dist/PricingGroupRangeInput.vue.es-DZSJ5Mz0.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +0 -1
- package/dist/RadioGroupExtended.vue.es-Dt6LH9Yh.js +0 -1
- package/dist/Section.vue.es-zVXBHAL6.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
- package/dist/StepInput.vue.es-mAnuCuDQ.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +0 -1
- package/dist/SubscriptionSchedules-Cm5Dt-1H.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs +0 -91
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js +0 -1
- package/dist/TooltipParagraph.vue.es-Cph6zT31.js +0 -1
- package/dist/TrialChip.vue.es-C_wgHGuN.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyen-CvsH5fok.mjs +0 -117
- package/dist/adyen-Druit6gz.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-D9YMDvG2.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-C963-LtW.js +0 -1215
- package/dist/customElements-D5DAoHRI.mjs +0 -6633
- package/dist/customer-DKa1B2vp.mjs +0 -31
- package/dist/customer-TE1FnGT0.js +0 -1
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DaBBl-Ak.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-BNevqm0M.js +0 -1
- package/dist/en-US-D6SGRAch.mjs +0 -325
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-ClqTWYF9.js +0 -1
- package/dist/it-IT-BkPbTueL.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-jIfAVGv0.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-AL2U_byg.js +0 -1
- package/dist/paymentMethods-CWzJhcWK.mjs +0 -77
- package/dist/payments-BmiHMlQt.js +0 -1
- package/dist/payments-aXyfylwk.mjs +0 -45
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BVAld27Y.js +0 -1
- package/dist/pricing-DLOeiAIB.mjs +0 -16
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-BD4GIP_F.mjs +0 -32
- package/dist/pricingPlanSchedules-BfsMSvN0.js +0 -1
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-Cm83ckfl.js +0 -1
- package/dist/subscriptions-cnR5fnf7.mjs +0 -55
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-CHkVQMaE.js +0 -1
- package/dist/useActionDispatchProvider-DDYqIh3r.mjs +0 -11
- package/dist/useCustomer-DGYtowRy.js +0 -1
- package/dist/useCustomerFormLabels-CcnkJLcB.mjs +0 -968
- package/dist/useCustomerFormLabels-DAZziqYt.js +0 -1
- package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
- package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BEK-7msA.mjs +0 -38
- package/dist/useInvoiceData-CQRn8l9C.js +0 -1
- package/dist/useInvoicesList-BQkKyyXa.js +0 -1
- package/dist/useInvoicesList-C4I118KM.mjs +0 -500
- package/dist/useLoadInitialData-CrKnBZs_.js +0 -1
- package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
- package/dist/usePaymentMethodOptions-Ciifjo6c.mjs +0 -39
- package/dist/usePaymentMethodOptions-Cqe92ZBn.js +0 -1
- package/dist/usePaymentMethods-BKwrl82-.js +0 -1
- package/dist/usePayments-Bauj16B-.js +0 -1
- package/dist/usePortal-DSLImEfr.js +0 -1
- package/dist/usePortal-H8Tv2TnZ.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BiYNJT2e.js +0 -1
- package/dist/useSubscription-DqnxWNKg.mjs +0 -210
- package/dist/useTimePeriod.es-D2aiyfd-.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
package/README.md
CHANGED
|
@@ -8,14 +8,27 @@ Solvimon's front-end SDK. Provides framework-agnostic web components and a set o
|
|
|
8
8
|
npm install @solvimon/solvimon-web
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
The package is published as ES modules only. Bundlers load it as is, and so does `require()` on
|
|
12
|
+
Node 20.19 or later. A Jest setup that does not transform ES modules needs
|
|
13
|
+
`@solvimon/solvimon-web` added to its `transformIgnorePatterns` exceptions.
|
|
14
|
+
|
|
11
15
|
## Requirements
|
|
12
16
|
|
|
13
17
|
Every component requires at minimum:
|
|
14
18
|
|
|
15
|
-
| Property
|
|
16
|
-
|
|
|
17
|
-
| `
|
|
18
|
-
| `environment`
|
|
19
|
+
| Property | Type | Description |
|
|
20
|
+
| -------------- | -------------------- | ------------------------------------------------------------------------------- |
|
|
21
|
+
| `portalObject` | `PortalUrl` | The portal URL your server creates through the Solvimon API, passed on as it is |
|
|
22
|
+
| `environment` | `"TEST"` \| `"LIVE"` | Target environment |
|
|
23
|
+
|
|
24
|
+
`portalObject` is an object, so set it as a JavaScript property rather than an HTML attribute. It
|
|
25
|
+
carries the portal token the element signs in with; there is no separate `token` property.
|
|
26
|
+
|
|
27
|
+
An element renders only for a published portal of the type it accepts: `checkout` takes an
|
|
28
|
+
`INIT_PRICING_PLAN_SUBSCRIPTION` portal, every other element a `CUSTOMER` one. Any other type logs
|
|
29
|
+
`PORTAL_TYPE_NOT_ALLOWED`, dispatches an `error` event and renders nothing. A revoked portal logs `RESOURCE_REVOKED`; the
|
|
30
|
+
checkout shows its "Checkout not available" notice, and the other elements say that they are no longer
|
|
31
|
+
available (`sv-portal-unavailable`).
|
|
19
32
|
|
|
20
33
|
## Usage
|
|
21
34
|
|
|
@@ -26,14 +39,14 @@ The SDK ships web components (Custom Elements), and there are two ways to put on
|
|
|
26
39
|
Call the entry's `define` function once — it registers the custom element globally and is safe to
|
|
27
40
|
call more than once.
|
|
28
41
|
|
|
29
|
-
```
|
|
42
|
+
```ts
|
|
30
43
|
import { defineSolvimonCheckout } from '@solvimon/solvimon-web/screens/checkout';
|
|
31
44
|
|
|
32
45
|
defineSolvimonCheckout();
|
|
33
46
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
47
|
+
const checkout = document.createElement('solvimon-checkout');
|
|
48
|
+
Object.assign(checkout, { environment: 'LIVE', portalObject });
|
|
49
|
+
document.querySelector('#checkout')?.append(checkout);
|
|
37
50
|
```
|
|
38
51
|
|
|
39
52
|
This is the lighter of the two: you download only the entries you name.
|
|
@@ -46,10 +59,13 @@ the second registration is silently ignored.
|
|
|
46
59
|
defineSolvimonCheckout('acme-checkout');
|
|
47
60
|
```
|
|
48
61
|
|
|
62
|
+
An element is registered under one name only. `define` returns the name it is registered under, and
|
|
63
|
+
calling it again — with or without a name — returns that first name instead of registering another.
|
|
64
|
+
`createSolvimonCore` mounts the element under the name you chose.
|
|
65
|
+
|
|
49
66
|
### Mount through the core
|
|
50
67
|
|
|
51
|
-
`createSolvimonCore` configures once and mounts by id,
|
|
52
|
-
It loads each entry on demand, so you pay for what you mount, and it hands back an unmount
|
|
68
|
+
`createSolvimonCore` configures once and mounts by id. It loads each entry on demand, so you pay for what you mount, and it hands back an unmount
|
|
53
69
|
function.
|
|
54
70
|
|
|
55
71
|
```ts
|
|
@@ -66,6 +82,27 @@ const unmount = solvimon.createScreen('checkout', {
|
|
|
66
82
|
`createScreen` and `createComponent` return synchronously; the element is appended once its entry
|
|
67
83
|
has loaded. An unknown id or a container that matches nothing throws straight away.
|
|
68
84
|
|
|
85
|
+
### When an element fails
|
|
86
|
+
|
|
87
|
+
An error the element cannot carry on from — an unknown `environment`, a portal object meant for
|
|
88
|
+
another element, or a bug in the SDK — is logged once and dispatched as an `error` event on the
|
|
89
|
+
element. It is logged as `UNHANDLED_ERROR` unless it has a code of its own, such as
|
|
90
|
+
`PORTAL_TYPE_NOT_ALLOWED` for a portal object meant for another element. Its context names the
|
|
91
|
+
element in `componentName`, so a page with several can tell which one failed. The event does not bubble, and its `detail` is an array whose first item is the `Error`:
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
element.addEventListener('error', (event) => {
|
|
95
|
+
const [error] = (event as CustomEvent<[Error]>).detail;
|
|
96
|
+
});
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
A failure the element handles — a refused payment, a subscription the checkout cannot load, a date
|
|
100
|
+
it can only format in the browser's own time zone — reaches `onLog` and the `log` event under its
|
|
101
|
+
own code, and is never reported again as `UNHANDLED_ERROR` or an `error` event.
|
|
102
|
+
An element missing `environment`, `portalObject` or the id in its `configuration` renders
|
|
103
|
+
nothing until they are set, and logs `MISSING_REQUIRED_PROPERTIES` if they are still missing just
|
|
104
|
+
after it mounts.
|
|
105
|
+
|
|
69
106
|
### Server-side rendering (SSR / isomorphic)
|
|
70
107
|
|
|
71
108
|
Importing an entry on the server is safe — the module has no top-level browser access. It is
|
|
@@ -73,22 +110,81 @@ Importing an entry on the server is safe — the module has no top-level browser
|
|
|
73
110
|
client-only lifecycle hook:
|
|
74
111
|
|
|
75
112
|
```tsx
|
|
76
|
-
import { useEffect } from 'react';
|
|
113
|
+
import { useEffect, useRef } from 'react';
|
|
114
|
+
import type { CheckoutPagePortalUrl } from '@solvimon/solvimon-web/core';
|
|
77
115
|
// Importing at the top level is fine; only the call below has to wait for the browser.
|
|
78
116
|
import { defineSolvimonCheckout } from '@solvimon/solvimon-web/screens/checkout';
|
|
79
117
|
|
|
80
|
-
export default function Page() {
|
|
118
|
+
export default function Page({ portalObject }: { portalObject: CheckoutPagePortalUrl }) {
|
|
119
|
+
const checkout = useRef<HTMLElement>(null);
|
|
120
|
+
|
|
81
121
|
useEffect(() => {
|
|
82
122
|
defineSolvimonCheckout();
|
|
83
123
|
}, []);
|
|
84
124
|
|
|
85
|
-
|
|
125
|
+
// An object has to reach the element as a property, which JSX attributes do not do everywhere.
|
|
126
|
+
useEffect(() => {
|
|
127
|
+
if (checkout.current) Object.assign(checkout.current, { portalObject });
|
|
128
|
+
}, [portalObject]);
|
|
129
|
+
|
|
130
|
+
return <solvimon-checkout ref={checkout} environment="LIVE" />;
|
|
86
131
|
}
|
|
87
132
|
```
|
|
88
133
|
|
|
89
134
|
A lazy `import()` inside the hook also works, and is worth keeping if you want the entry out of your
|
|
90
135
|
server bundle for size reasons rather than correctness ones.
|
|
91
136
|
|
|
137
|
+
### Changing properties after mount
|
|
138
|
+
|
|
139
|
+
An element follows the properties you change after it has mounted:
|
|
140
|
+
|
|
141
|
+
- A `portalObject` with another token, or another `environment`, starts the element over: it signs
|
|
142
|
+
in again and reloads everything.
|
|
143
|
+
- An id in `configuration` — `invoiceId` or `subscriptionId` — loads the new invoice or
|
|
144
|
+
subscription. Whatever the customer had open for the old one is closed.
|
|
145
|
+
- `experimentalFeatures`, `branding` and `cssOverrides` apply in place.
|
|
146
|
+
- A new `locale` loads its translations and renders the element again from the start, so anything
|
|
147
|
+
the customer had typed is lost. Set it before the element mounts where you can.
|
|
148
|
+
|
|
149
|
+
The checkout reads `email`, `countryCode` and `enabledPricingIds` from its `configuration` when it
|
|
150
|
+
loads, as the values its form starts with, and applies `couponCode` once the subscription is in.
|
|
151
|
+
|
|
152
|
+
A few more are read once, when the element loads, and a later change does not reach it; to change
|
|
153
|
+
one, mount a new element:
|
|
154
|
+
|
|
155
|
+
- the payment method form's `countryCode` and `configuration.invoiceId`, which it sets up the
|
|
156
|
+
payment methods it offers with;
|
|
157
|
+
- the subscription management screen's `configuration.enabledPricingId`, which picks the pricing
|
|
158
|
+
it opens on.
|
|
159
|
+
|
|
160
|
+
The supported locales are `en-US`, `nl-NL`, `de-DE` and `it-IT`. Any other — `nl` or `en-GB`, say
|
|
161
|
+
— renders in `en-US` and logs `UNSUPPORTED_LOCALE`.
|
|
162
|
+
|
|
163
|
+
### Navigation requests
|
|
164
|
+
|
|
165
|
+
The SDK does not navigate for you. Where a customer asks to go somewhere — open an invoice, manage a
|
|
166
|
+
subscription — the element dispatches an `action-request` event, and your page decides what that
|
|
167
|
+
means. The event bubbles and crosses the shadow root, so one listener on a container catches every
|
|
168
|
+
element in it:
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
import type { RequestActionEvent } from '@solvimon/solvimon-web/core';
|
|
172
|
+
|
|
173
|
+
container.addEventListener('action-request', (event) => {
|
|
174
|
+
const { detail } = event as RequestActionEvent;
|
|
175
|
+
|
|
176
|
+
if (detail.action === 'view-invoice') {
|
|
177
|
+
router.push(`/invoices/${detail.data.invoiceId}`);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
`detail.action` is one of `view-invoice`, `pay-invoice`, `view-subscription-details`,
|
|
183
|
+
`view-all-subscriptions`, `manage-subscription`, `edit-billing-information`,
|
|
184
|
+
`view-all-payment-methods`, `add-payment-method` and `navigate-to-customer-overview`. None of them
|
|
185
|
+
does anything unless you handle it. The event is cancelable so that an action the SDK gives a
|
|
186
|
+
default later can be taken over with `preventDefault()`; today that call has no effect.
|
|
187
|
+
|
|
92
188
|
## CSS overrides
|
|
93
189
|
|
|
94
190
|
Solvimon components render inside shadow DOM, so CSS from the host page cannot style them directly. Pass `cssOverrides` to `createSolvimonCore` to inject customer CSS into each SDK shadow root.
|
|
@@ -112,6 +208,11 @@ const solvimon = createSolvimonCore({
|
|
|
112
208
|
|
|
113
209
|
Use the public `sv-*` classes as styling hooks. Do not rely on internal Tailwind utility classes, because those can change.
|
|
114
210
|
|
|
211
|
+
`@import` rules are removed from the overrides: a browser applies them in some cases and not in
|
|
212
|
+
others, so load fonts and other stylesheets from your own page instead.
|
|
213
|
+
|
|
214
|
+
`cssOverrides` is also a property on every element, for a page that registers the elements itself.
|
|
215
|
+
|
|
115
216
|
For more details, see [`@solvimon/solvimon-web/core`](./src/public/core/README.md).
|
|
116
217
|
|
|
117
218
|
## Available components
|
|
@@ -253,7 +354,8 @@ A failed API call rejects with an `ApiError` carrying `statusCode`, `requestId`
|
|
|
253
354
|
error, the `field` it belongs to. Every failed request also emits one `REQUEST_FAILED` entry, at
|
|
254
355
|
`error` — or at `warn` where the SDK expects that status and handles it, as the token refresh does
|
|
255
356
|
with a 401. Alert on the codes the callers emit, such as `SESSION_EXPIRED`, rather than on
|
|
256
|
-
`REQUEST_FAILED`, which reports the transport and not what it meant.
|
|
357
|
+
`REQUEST_FAILED`, which reports the transport and not what it meant. A request the API rejects with
|
|
358
|
+
a 401 is first retried once with a renewed access token, and only reported when that fails too.
|
|
257
359
|
|
|
258
360
|
<!-- log-codes:start — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
259
361
|
|
|
@@ -276,7 +378,7 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
276
378
|
| `INITIAL_DATA_LOAD_FAILED` | Failed to load initial data |
|
|
277
379
|
| `INTEGRATION_ERROR` | Unhandled error in payment submission flow |
|
|
278
380
|
| `INVALID_COUNTRY_CODE` | invalid country code provided:… |
|
|
279
|
-
| `INVALID_EMAIL` | invalid email provided
|
|
381
|
+
| `INVALID_EMAIL` | invalid email provided |
|
|
280
382
|
| `INVALID_REDIRECT_RESULT` | Redirect result is set but payment acceptor id is missing |
|
|
281
383
|
| `INVALID_TOKEN` | Failed to fetch access token |
|
|
282
384
|
| `INVOICE_PREVIEW_FAILED` | Failed to load the invoice preview |
|
|
@@ -289,15 +391,16 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
289
391
|
| `PAYMENT_DETAILS_REJECTED` | Payment details returned a failed payment |
|
|
290
392
|
| `PAYMENT_INTEGRATION_INITIALIZATION_FAILED` | Failed to mount Adyen web drop-in |
|
|
291
393
|
| `PAYMENT_METHOD_OPTIONS_LOAD_FAILED` | Failed to load the payment methods that can be offered |
|
|
394
|
+
| `PORTAL_TYPE_NOT_ALLOWED` | Reserved — not currently emitted |
|
|
292
395
|
| `PROMOTION_CODE_APPLY_FAILED` | Failed to apply promotion code |
|
|
293
396
|
| `PROMOTION_CODE_REMOVE_FAILED` | Failed to remove promotion code |
|
|
294
397
|
| `REQUEST_FAILED` | Request failed |
|
|
295
398
|
| `REQUEST_PARSE_FAILED` | Failed to parse JSON response |
|
|
296
|
-
| `RESOURCE_REVOKED` |
|
|
399
|
+
| `RESOURCE_REVOKED` | The portal object is not published |
|
|
297
400
|
| `SESSION_EXPIRED` | Stopped refreshing the access token after repeated 401 responses |
|
|
298
401
|
| `STRIPE_ACTION_FAILED` | Missing client_secret in Stripe ACTION_REQUIRED response |
|
|
299
402
|
| `STRIPE_CONFIRMATION_TOKEN_FAILED` | Stripe submission failed |
|
|
300
|
-
| `STRIPE_REDIRECT_RETURN_FAILED` | Stripe redirect returned
|
|
403
|
+
| `STRIPE_REDIRECT_RETURN_FAILED` | Could not retrieve the payment the Stripe redirect returned from |
|
|
301
404
|
| `STRIPE_SUBMIT_FAILED` | Unexpected error during Stripe submission |
|
|
302
405
|
| `SUBSCRIPTION_CANCELLATION_FAILED` | Failed to change the cancellation state of a subscription |
|
|
303
406
|
| `SUBSCRIPTION_LOAD_FAILED` | Failed to load the subscription the checkout prices |
|
|
@@ -308,15 +411,23 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
308
411
|
|
|
309
412
|
### Warning codes
|
|
310
413
|
|
|
311
|
-
| Code | Description
|
|
312
|
-
| :----------------------------------- |
|
|
313
|
-
| `ACTIVE_SCHEDULE_NOT_FOUND` | No schedule is currently being billed
|
|
314
|
-
| `ADYEN_INVALID_CONFIGURATION` | No environment set for adyen advanced flow, defaulted to live
|
|
315
|
-
| `APPLE_PAY_ACTION_REQUIRED` |
|
|
316
|
-
| `
|
|
317
|
-
| `
|
|
318
|
-
| `
|
|
319
|
-
| `
|
|
320
|
-
| `
|
|
414
|
+
| Code | Description |
|
|
415
|
+
| :----------------------------------- | :----------------------------------------------------------------------------------------------------------- |
|
|
416
|
+
| `ACTIVE_SCHEDULE_NOT_FOUND` | No schedule is currently being billed |
|
|
417
|
+
| `ADYEN_INVALID_CONFIGURATION` | No environment set for adyen advanced flow, defaulted to live |
|
|
418
|
+
| `APPLE_PAY_ACTION_REQUIRED` | Reserved — not currently emitted |
|
|
419
|
+
| `APPLE_PAY_FORM_INCOMPLETE` | Apple Pay authorization stopped: the checkout form is incomplete |
|
|
420
|
+
| `CHECKOUT_FORM_STATE_NOT_SAVED` | Could not keep the checkout form for a redirect return |
|
|
421
|
+
| `INVOICE_PREVIEW_SKIPPED` | Skipped the on-demand charge invoice preview: no schedule to charge it on |
|
|
422
|
+
| `MISSING_REQUIRED_PROPERTIES` | Not rendering until these properties are set:… |
|
|
423
|
+
| `ON_DEMAND_CHARGE_REFUSED` | The on-demand order was refused or its payment did not go through |
|
|
424
|
+
| `PAYMENT_INTEGRATION_NOT_RENDERABLE` | No Adyen payment methods to offer |
|
|
425
|
+
| `PAYMENT_OUTCOME_UNCONFIRMED` | The payment outcome could not be confirmed yet |
|
|
426
|
+
| `PROMOTION_CODE_REJECTED` | The promotion code was not accepted |
|
|
427
|
+
| `RECURRING_AMOUNT_UNRESOLVED` | Could not tell the recurring part of the invoice from the one-off part; the mandate states the invoice total |
|
|
428
|
+
| `REQUEST_FAILED` | Request failed with an expected status |
|
|
429
|
+
| `TRANSLATION_LOAD_FAILED` | Failed to load translations for locale… |
|
|
430
|
+
| `UI_COMPONENT_RECOVERED` | A UI component recovered from an error and carried on |
|
|
431
|
+
| `UNSUPPORTED_LOCALE` | The locale is not supported, showing en-US instead |
|
|
321
432
|
|
|
322
433
|
<!-- log-codes:end — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as f, watch as g, defineComponent as h, computed as x, openBlock as i, createElementBlock as s, normalizeStyle as u, normalizeClass as d, toDisplayString as v, createBlock as b, unref as m, createCommentVNode as k, createElementVNode as y } from "vue";
|
|
2
|
-
import { a as w } from "./Button.vue.es-
|
|
2
|
+
import { a as w } from "./Button.vue.es-rh6mITmN.mjs";
|
|
3
3
|
const z = (e) => {
|
|
4
4
|
const t = f(), l = (n) => {
|
|
5
5
|
let a = 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as f, computed as
|
|
2
|
-
import { _ as v } from "./Button.vue.es-
|
|
3
|
-
import { _ as b } from "./CustomerBillingInformation.vue.es-
|
|
4
|
-
import { a as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as y } from "./useActionDispatchProvider-
|
|
1
|
+
import { defineComponent as f, computed as u, openBlock as n, createBlock as e, unref as t, createSlots as p, withCtx as s, createVNode as d, createTextVNode as _, toDisplayString as g } from "vue";
|
|
2
|
+
import { _ as v } from "./Button.vue.es-rh6mITmN.mjs";
|
|
3
|
+
import { _ as b } from "./CustomerBillingInformation.vue.es-DQfL5RMR.mjs";
|
|
4
|
+
import { a as h } from "./customElements-Di3zwlEU.mjs";
|
|
5
|
+
import { _ as k } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
6
|
+
import { u as y } from "./useActionDispatchProvider-DC_fUykI.mjs";
|
|
7
7
|
import { r as x } from "./configuration-BytDBAWs.mjs";
|
|
8
8
|
const T = /* @__PURE__ */ f({
|
|
9
9
|
__name: "BillingInformation",
|
|
@@ -12,24 +12,22 @@ const T = /* @__PURE__ */ f({
|
|
|
12
12
|
isLoading: { type: Boolean },
|
|
13
13
|
configuration: { type: Object }
|
|
14
14
|
},
|
|
15
|
-
emits: ["edit-billing-information"],
|
|
16
15
|
setup(o) {
|
|
17
|
-
const
|
|
16
|
+
const r = {
|
|
18
17
|
showEditButton: !0
|
|
19
|
-
},
|
|
20
|
-
() => x(
|
|
21
|
-
), { $t:
|
|
22
|
-
return (
|
|
18
|
+
}, a = o, c = u(
|
|
19
|
+
() => x(r, a.configuration)
|
|
20
|
+
), { $t: m } = h(), { dispatchAction: l } = y();
|
|
21
|
+
return (B, i) => o.isLoading ? (n(), e(k, {
|
|
23
22
|
key: 0,
|
|
24
23
|
variant: "section",
|
|
25
|
-
class: "sv-billing-information sv-root sv-component sv-loading min-h-[100px]"
|
|
26
|
-
"data-testid": "billing-information-skeleton"
|
|
24
|
+
class: "sv-billing-information sv-root sv-component sv-loading min-h-[100px]"
|
|
27
25
|
})) : (n(), e(t(b), {
|
|
28
26
|
key: 1,
|
|
29
27
|
class: "sv-billing-information sv-root sv-component",
|
|
30
28
|
customer: o.customer,
|
|
31
29
|
"fallback-to-reference": !1
|
|
32
|
-
},
|
|
30
|
+
}, p({ _: 2 }, [
|
|
33
31
|
c.value.showEditButton ? {
|
|
34
32
|
name: "settings",
|
|
35
33
|
fn: s(() => [
|
|
@@ -38,13 +36,13 @@ const T = /* @__PURE__ */ f({
|
|
|
38
36
|
intent: "subtle",
|
|
39
37
|
"icon-prefix": "edit",
|
|
40
38
|
class: "sv-action sv-action--ghost sv-billing-information__edit",
|
|
41
|
-
onClick: i[0] || (i[0] = (
|
|
39
|
+
onClick: i[0] || (i[0] = (C) => t(l)({ action: "edit-billing-information" }))
|
|
42
40
|
}, {
|
|
43
41
|
default: s(() => [
|
|
44
|
-
_(g(t(
|
|
42
|
+
_(g(t(m)({
|
|
45
43
|
defaultMessage: "Edit",
|
|
46
|
-
id: "customer_overview.billing_information_block.
|
|
47
|
-
description: "The
|
|
44
|
+
id: "customer_overview.billing_information_block.edit_button_label",
|
|
45
|
+
description: "The label of the button that opens the form to edit the customer billing information"
|
|
48
46
|
})), 1)
|
|
49
47
|
]),
|
|
50
48
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, openBlock as r, createElementBlock as u, normalizeClass as v, createElementVNode as g, useSlots as _, computed as n, ref as I, toRefs as S, unref as o, createBlock as R, resolveDynamicComponent as q, withCtx as $, createVNode as z, createCommentVNode as d, renderSlot as k, mergeDefaults as V } from "vue";
|
|
2
|
-
import { _ as M } from "./customElements-
|
|
2
|
+
import { _ as M } from "./customElements-Di3zwlEU.mjs";
|
|
3
3
|
const N = {
|
|
4
4
|
class: "h-full w-full",
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|