@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.29
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 +151 -17
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
- package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
- package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
- package/dist/components/Invoice/Invoice.mjs +2691 -227
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
- package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
- package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
- package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/customer-BIjC0CWJ.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
- package/dist/paymentMethods-B_82JGk_.mjs +77 -0
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
- package/dist/pricingPlanSchedules-Dv7ZCgNp.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 +146 -94
- package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-CVyKw23D.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -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/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- 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 +47 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- 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 +2 -2
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -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/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -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/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- 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/core/types.d.ts +5 -0
- 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 +5 -1
- 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/translations/supported.d.ts +1 -1
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- 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-3W2vEyIg.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
- package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
- package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/usePortal-CwR_FxTb.mjs +7 -0
- package/dist/useService-BZcbUZHI.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +33 -60
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
- package/dist/Button.vue.es-BzkuglKw.js +0 -1
- package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
- package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
- package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
- package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
- package/dist/Input.vue.es-B60eK8Ds.js +0 -1
- package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
- package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
- package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
- package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
- package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
- package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
- package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
- package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
- package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
- package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
- package/dist/Section.vue.es-Bbt0RITt.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
- package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
- package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
- package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
- package/dist/TrialChip.vue.es-CLQZ5F0n.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/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-C9Yqq4tg.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-B58FcXIN.mjs +0 -6633
- package/dist/customElements-DUMRMFQ5.js +0 -1215
- package/dist/customer-B3LPAhaD.mjs +0 -31
- package/dist/customer-CisTPaXj.js +0 -1
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- 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-DL74pMLb.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-B2XFj-_p.js +0 -1
- package/dist/en-US-DQ5vlv9Z.mjs +0 -339
- 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/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- 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-BZIz7-0d.mjs +0 -4
- 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-CKQBLar2.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/it-IT-CqNK62qe.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-Dx-TNXQ1.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-CWlvwK5V.mjs +0 -77
- package/dist/paymentMethods-Cw-i95mM.js +0 -1
- package/dist/payments-2qeQdpiW.mjs +0 -45
- package/dist/payments-CS7_YcOW.js +0 -1
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BOqG21f9.js +0 -1
- 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-B_sTAIgU.js +0 -1
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
- 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-DcfcBYAq.mjs +0 -55
- package/dist/subscriptions-DwVsf4Ev.js +0 -1
- 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-B3AvkLL2.mjs +0 -11
- package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
- package/dist/useCustomer-BwZKd9i5.js +0 -1
- package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
- package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
- package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
- package/dist/useInvoiceData-CNV_FMV8.js +0 -1
- package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
- package/dist/useInvoicesList-S0IbQcrD.js +0 -1
- package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
- package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
- package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
- package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
- package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
- package/dist/usePayments-DDSjo0rH.js +0 -1
- package/dist/usePortal-C27omjhz.js +0 -1
- package/dist/usePortal-C5AsegpS.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BZJL0VOA.mjs +0 -210
- package/dist/useSubscription-D787IXY-.js +0 -1
- package/dist/useTimePeriod.es-rzxqUCTu.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,44 @@ 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`).
|
|
32
|
+
|
|
33
|
+
A portal object whose `authentication` is `SIGNED_TOKEN` carries a handle in `token` rather than a
|
|
34
|
+
portal token. The API returns that handle only in the response that creates the portal URL; a later
|
|
35
|
+
read of the portal URL has no `token`, so keep the one from the create response and pass it on. The
|
|
36
|
+
element exchanges the handle for a token that lasts as long as the link, and exchanges it again when
|
|
37
|
+
the API rejects that token. A link that has expired, was revoked or whose checkout session has
|
|
38
|
+
closed logs `PORTAL_URL_EXPIRED`, `PORTAL_URL_REVOKED` or `CHECKOUT_SESSION_CLOSED` (with the
|
|
39
|
+
session's `status` in `context`) and shows the same notice as a revoked portal. When the API cannot
|
|
40
|
+
verify the link for a while, the element logs `PORTAL_TOKEN_UNAVAILABLE` and offers to try again
|
|
41
|
+
(`sv-portal-unverified`).
|
|
42
|
+
|
|
43
|
+
A host that already exchanged the handle itself can pass the response it got, as it is, as
|
|
44
|
+
`portalToken` next to `portalObject`, so the element signs in without a second exchange. The element
|
|
45
|
+
still needs the handle: when the API rejects the token, it exchanges the handle again. `portalToken`
|
|
46
|
+
is read only when the element signs in, and only for a `SIGNED_TOKEN` portal object. Set it as a
|
|
47
|
+
JavaScript property, like `portalObject`: it is an object so that the token never becomes an HTML
|
|
48
|
+
attribute, which a string property of a custom element does.
|
|
19
49
|
|
|
20
50
|
## Usage
|
|
21
51
|
|
|
@@ -26,14 +56,14 @@ The SDK ships web components (Custom Elements), and there are two ways to put on
|
|
|
26
56
|
Call the entry's `define` function once — it registers the custom element globally and is safe to
|
|
27
57
|
call more than once.
|
|
28
58
|
|
|
29
|
-
```
|
|
59
|
+
```ts
|
|
30
60
|
import { defineSolvimonCheckout } from '@solvimon/solvimon-web/screens/checkout';
|
|
31
61
|
|
|
32
62
|
defineSolvimonCheckout();
|
|
33
63
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
64
|
+
const checkout = document.createElement('solvimon-checkout');
|
|
65
|
+
Object.assign(checkout, { environment: 'LIVE', portalObject });
|
|
66
|
+
document.querySelector('#checkout')?.append(checkout);
|
|
37
67
|
```
|
|
38
68
|
|
|
39
69
|
This is the lighter of the two: you download only the entries you name.
|
|
@@ -46,10 +76,13 @@ the second registration is silently ignored.
|
|
|
46
76
|
defineSolvimonCheckout('acme-checkout');
|
|
47
77
|
```
|
|
48
78
|
|
|
79
|
+
An element is registered under one name only. `define` returns the name it is registered under, and
|
|
80
|
+
calling it again — with or without a name — returns that first name instead of registering another.
|
|
81
|
+
`createSolvimonCore` mounts the element under the name you chose.
|
|
82
|
+
|
|
49
83
|
### Mount through the core
|
|
50
84
|
|
|
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
|
|
85
|
+
`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
86
|
function.
|
|
54
87
|
|
|
55
88
|
```ts
|
|
@@ -66,6 +99,27 @@ const unmount = solvimon.createScreen('checkout', {
|
|
|
66
99
|
`createScreen` and `createComponent` return synchronously; the element is appended once its entry
|
|
67
100
|
has loaded. An unknown id or a container that matches nothing throws straight away.
|
|
68
101
|
|
|
102
|
+
### When an element fails
|
|
103
|
+
|
|
104
|
+
An error the element cannot carry on from — an unknown `environment`, a portal object meant for
|
|
105
|
+
another element, or a bug in the SDK — is logged once and dispatched as an `error` event on the
|
|
106
|
+
element. It is logged as `UNHANDLED_ERROR` unless it has a code of its own, such as
|
|
107
|
+
`PORTAL_TYPE_NOT_ALLOWED` for a portal object meant for another element. Its context names the
|
|
108
|
+
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`:
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
element.addEventListener('error', (event) => {
|
|
112
|
+
const [error] = (event as CustomEvent<[Error]>).detail;
|
|
113
|
+
});
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
A failure the element handles — a refused payment, a subscription the checkout cannot load, a date
|
|
117
|
+
it can only format in the browser's own time zone — reaches `onLog` and the `log` event under its
|
|
118
|
+
own code, and is never reported again as `UNHANDLED_ERROR` or an `error` event.
|
|
119
|
+
An element missing `environment`, `portalObject` or the id in its `configuration` renders
|
|
120
|
+
nothing until they are set, and logs `MISSING_REQUIRED_PROPERTIES` if they are still missing just
|
|
121
|
+
after it mounts.
|
|
122
|
+
|
|
69
123
|
### Server-side rendering (SSR / isomorphic)
|
|
70
124
|
|
|
71
125
|
Importing an entry on the server is safe — the module has no top-level browser access. It is
|
|
@@ -73,22 +127,81 @@ Importing an entry on the server is safe — the module has no top-level browser
|
|
|
73
127
|
client-only lifecycle hook:
|
|
74
128
|
|
|
75
129
|
```tsx
|
|
76
|
-
import { useEffect } from 'react';
|
|
130
|
+
import { useEffect, useRef } from 'react';
|
|
131
|
+
import type { CheckoutPagePortalUrl } from '@solvimon/solvimon-web/core';
|
|
77
132
|
// Importing at the top level is fine; only the call below has to wait for the browser.
|
|
78
133
|
import { defineSolvimonCheckout } from '@solvimon/solvimon-web/screens/checkout';
|
|
79
134
|
|
|
80
|
-
export default function Page() {
|
|
135
|
+
export default function Page({ portalObject }: { portalObject: CheckoutPagePortalUrl }) {
|
|
136
|
+
const checkout = useRef<HTMLElement>(null);
|
|
137
|
+
|
|
81
138
|
useEffect(() => {
|
|
82
139
|
defineSolvimonCheckout();
|
|
83
140
|
}, []);
|
|
84
141
|
|
|
85
|
-
|
|
142
|
+
// An object has to reach the element as a property, which JSX attributes do not do everywhere.
|
|
143
|
+
useEffect(() => {
|
|
144
|
+
if (checkout.current) Object.assign(checkout.current, { portalObject });
|
|
145
|
+
}, [portalObject]);
|
|
146
|
+
|
|
147
|
+
return <solvimon-checkout ref={checkout} environment="LIVE" />;
|
|
86
148
|
}
|
|
87
149
|
```
|
|
88
150
|
|
|
89
151
|
A lazy `import()` inside the hook also works, and is worth keeping if you want the entry out of your
|
|
90
152
|
server bundle for size reasons rather than correctness ones.
|
|
91
153
|
|
|
154
|
+
### Changing properties after mount
|
|
155
|
+
|
|
156
|
+
An element follows the properties you change after it has mounted:
|
|
157
|
+
|
|
158
|
+
- A `portalObject` with another token, or another `environment`, starts the element over: it signs
|
|
159
|
+
in again and reloads everything.
|
|
160
|
+
- An id in `configuration` — `invoiceId` or `subscriptionId` — loads the new invoice or
|
|
161
|
+
subscription. Whatever the customer had open for the old one is closed.
|
|
162
|
+
- `experimentalFeatures`, `branding` and `cssOverrides` apply in place.
|
|
163
|
+
- A new `locale` loads its translations and renders the element again from the start, so anything
|
|
164
|
+
the customer had typed is lost. Set it before the element mounts where you can.
|
|
165
|
+
|
|
166
|
+
The checkout reads `email`, `countryCode` and `enabledPricingIds` from its `configuration` when it
|
|
167
|
+
loads, as the values its form starts with, and applies `couponCode` once the subscription is in.
|
|
168
|
+
|
|
169
|
+
A few more are read once, when the element loads, and a later change does not reach it; to change
|
|
170
|
+
one, mount a new element:
|
|
171
|
+
|
|
172
|
+
- the payment method form's `countryCode` and `configuration.invoiceId`, which it sets up the
|
|
173
|
+
payment methods it offers with;
|
|
174
|
+
- the subscription management screen's `configuration.enabledPricingId`, which picks the pricing
|
|
175
|
+
it opens on.
|
|
176
|
+
|
|
177
|
+
The supported locales are `en-US`, `nl-NL`, `de-DE`, `it-IT` and `fr-FR`. Any other — `nl` or `en-GB`, say
|
|
178
|
+
— renders in `en-US` and logs `UNSUPPORTED_LOCALE`.
|
|
179
|
+
|
|
180
|
+
### Navigation requests
|
|
181
|
+
|
|
182
|
+
The SDK does not navigate for you. Where a customer asks to go somewhere — open an invoice, manage a
|
|
183
|
+
subscription — the element dispatches an `action-request` event, and your page decides what that
|
|
184
|
+
means. The event bubbles and crosses the shadow root, so one listener on a container catches every
|
|
185
|
+
element in it:
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
import type { RequestActionEvent } from '@solvimon/solvimon-web/core';
|
|
189
|
+
|
|
190
|
+
container.addEventListener('action-request', (event) => {
|
|
191
|
+
const { detail } = event as RequestActionEvent;
|
|
192
|
+
|
|
193
|
+
if (detail.action === 'view-invoice') {
|
|
194
|
+
router.push(`/invoices/${detail.data.invoiceId}`);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
`detail.action` is one of `view-invoice`, `pay-invoice`, `view-subscription-details`,
|
|
200
|
+
`view-all-subscriptions`, `manage-subscription`, `edit-billing-information`,
|
|
201
|
+
`view-all-payment-methods`, `add-payment-method` and `navigate-to-customer-overview`. None of them
|
|
202
|
+
does anything unless you handle it. The event is cancelable so that an action the SDK gives a
|
|
203
|
+
default later can be taken over with `preventDefault()`; today that call has no effect.
|
|
204
|
+
|
|
92
205
|
## CSS overrides
|
|
93
206
|
|
|
94
207
|
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 +225,11 @@ const solvimon = createSolvimonCore({
|
|
|
112
225
|
|
|
113
226
|
Use the public `sv-*` classes as styling hooks. Do not rely on internal Tailwind utility classes, because those can change.
|
|
114
227
|
|
|
228
|
+
`@import` rules are removed from the overrides: a browser applies them in some cases and not in
|
|
229
|
+
others, so load fonts and other stylesheets from your own page instead.
|
|
230
|
+
|
|
231
|
+
`cssOverrides` is also a property on every element, for a page that registers the elements itself.
|
|
232
|
+
|
|
115
233
|
For more details, see [`@solvimon/solvimon-web/core`](./src/public/core/README.md).
|
|
116
234
|
|
|
117
235
|
## Available components
|
|
@@ -253,7 +371,8 @@ A failed API call rejects with an `ApiError` carrying `statusCode`, `requestId`
|
|
|
253
371
|
error, the `field` it belongs to. Every failed request also emits one `REQUEST_FAILED` entry, at
|
|
254
372
|
`error` — or at `warn` where the SDK expects that status and handles it, as the token refresh does
|
|
255
373
|
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.
|
|
374
|
+
`REQUEST_FAILED`, which reports the transport and not what it meant. A request the API rejects with
|
|
375
|
+
a 401 is first retried once with a renewed access token, and only reported when that fails too.
|
|
257
376
|
|
|
258
377
|
<!-- log-codes:start — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
259
378
|
|
|
@@ -276,7 +395,7 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
276
395
|
| `INITIAL_DATA_LOAD_FAILED` | Failed to load initial data |
|
|
277
396
|
| `INTEGRATION_ERROR` | Unhandled error in payment submission flow |
|
|
278
397
|
| `INVALID_COUNTRY_CODE` | invalid country code provided:… |
|
|
279
|
-
| `INVALID_EMAIL` | invalid email provided
|
|
398
|
+
| `INVALID_EMAIL` | invalid email provided |
|
|
280
399
|
| `INVALID_REDIRECT_RESULT` | Redirect result is set but payment acceptor id is missing |
|
|
281
400
|
| `INVALID_TOKEN` | Failed to fetch access token |
|
|
282
401
|
| `INVOICE_PREVIEW_FAILED` | Failed to load the invoice preview |
|
|
@@ -289,15 +408,23 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
289
408
|
| `PAYMENT_DETAILS_REJECTED` | Payment details returned a failed payment |
|
|
290
409
|
| `PAYMENT_INTEGRATION_INITIALIZATION_FAILED` | Failed to mount Adyen web drop-in |
|
|
291
410
|
| `PAYMENT_METHOD_OPTIONS_LOAD_FAILED` | Failed to load the payment methods that can be offered |
|
|
411
|
+
| `PORTAL_TOKEN_UNAVAILABLE` | Could not exchange the portal link handle for a token |
|
|
412
|
+
| `PORTAL_TYPE_NOT_ALLOWED` | Reserved — not currently emitted |
|
|
413
|
+
| `PORTAL_URL_EXPIRED` | The portal link has expired |
|
|
414
|
+
| `PORTAL_URL_REVOKED` | The portal link is revoked |
|
|
292
415
|
| `PROMOTION_CODE_APPLY_FAILED` | Failed to apply promotion code |
|
|
293
416
|
| `PROMOTION_CODE_REMOVE_FAILED` | Failed to remove promotion code |
|
|
294
417
|
| `REQUEST_FAILED` | Request failed |
|
|
295
418
|
| `REQUEST_PARSE_FAILED` | Failed to parse JSON response |
|
|
296
|
-
| `RESOURCE_REVOKED` |
|
|
419
|
+
| `RESOURCE_REVOKED` | The portal object is not published |
|
|
297
420
|
| `SESSION_EXPIRED` | Stopped refreshing the access token after repeated 401 responses |
|
|
421
|
+
| `SHIPPED_SUBSCRIPTIONS_LOAD_FAILED` | Failed to find out whether the customer has shipped subscriptions |
|
|
422
|
+
| `SHIPPING_ADDRESSES_LOAD_FAILED` | Failed to load the shipping addresses |
|
|
423
|
+
| `SHIPPING_ADDRESS_DELETE_FAILED` | Failed to delete the shipping address |
|
|
424
|
+
| `SHIPPING_ADDRESS_SAVE_FAILED` | Failed to save the shipping address |
|
|
298
425
|
| `STRIPE_ACTION_FAILED` | Missing client_secret in Stripe ACTION_REQUIRED response |
|
|
299
426
|
| `STRIPE_CONFIRMATION_TOKEN_FAILED` | Stripe submission failed |
|
|
300
|
-
| `STRIPE_REDIRECT_RETURN_FAILED` | Stripe redirect returned
|
|
427
|
+
| `STRIPE_REDIRECT_RETURN_FAILED` | Could not retrieve the payment the Stripe redirect returned from |
|
|
301
428
|
| `STRIPE_SUBMIT_FAILED` | Unexpected error during Stripe submission |
|
|
302
429
|
| `SUBSCRIPTION_CANCELLATION_FAILED` | Failed to change the cancellation state of a subscription |
|
|
303
430
|
| `SUBSCRIPTION_LOAD_FAILED` | Failed to load the subscription the checkout prices |
|
|
@@ -314,11 +441,18 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
314
441
|
| `ADYEN_INVALID_CONFIGURATION` | No environment set for adyen advanced flow, defaulted to live |
|
|
315
442
|
| `APPLE_PAY_ACTION_REQUIRED` | Reserved — not currently emitted |
|
|
316
443
|
| `APPLE_PAY_FORM_INCOMPLETE` | Apple Pay authorization stopped: the checkout form is incomplete |
|
|
444
|
+
| `CHECKOUT_FORM_STATE_NOT_SAVED` | Could not keep the checkout form for a redirect return |
|
|
445
|
+
| `CHECKOUT_SESSION_CLOSED` | The checkout session of the portal link is closed |
|
|
317
446
|
| `INVOICE_PREVIEW_SKIPPED` | Skipped the on-demand charge invoice preview: no schedule to charge it on |
|
|
447
|
+
| `MISSING_REQUIRED_PROPERTIES` | Not rendering until these properties are set:… |
|
|
318
448
|
| `ON_DEMAND_CHARGE_REFUSED` | The on-demand order was refused or its payment did not go through |
|
|
319
449
|
| `PAYMENT_INTEGRATION_NOT_RENDERABLE` | No Adyen payment methods to offer |
|
|
450
|
+
| `PAYMENT_OUTCOME_UNCONFIRMED` | The payment outcome could not be confirmed yet |
|
|
451
|
+
| `PROMOTION_CODE_REJECTED` | The promotion code was not accepted |
|
|
320
452
|
| `RECURRING_AMOUNT_UNRESOLVED` | Could not tell the recurring part of the invoice from the one-off part; the mandate states the invoice total |
|
|
321
453
|
| `REQUEST_FAILED` | Request failed with an expected status |
|
|
322
454
|
| `TRANSLATION_LOAD_FAILED` | Failed to load translations for locale… |
|
|
455
|
+
| `UI_COMPONENT_RECOVERED` | A UI component recovered from an error and carried on |
|
|
456
|
+
| `UNSUPPORTED_LOCALE` | The locale is not supported, showing en-US instead |
|
|
323
457
|
|
|
324
458
|
<!-- log-codes:end — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
|
|
1
|
+
import { computed as i, defineComponent as C, toRefs as x, ref as k, openBlock as n, createElementBlock as u, normalizeClass as t, unref as a, createElementVNode as l, createCommentVNode as r, createBlock as h, withCtx as B, createTextVNode as L, toDisplayString as z, renderSlot as w } from "vue";
|
|
2
|
+
import { d as M } from "./customElements-BTj4ii4f.mjs";
|
|
3
|
+
const $ = "py-2 px-4 text-sm", A = {
|
|
3
4
|
danger: "text-feedback-danger",
|
|
4
5
|
neutral: "text-secondary",
|
|
5
6
|
info: "text-feedback-info",
|
|
6
7
|
success: "text-feedback-success",
|
|
7
8
|
warning: "text-feedback-warning"
|
|
8
|
-
},
|
|
9
|
+
}, D = {
|
|
9
10
|
danger: "bg-feedback-danger",
|
|
10
11
|
neutral: "bg-feedback-neutral",
|
|
11
12
|
info: "bg-feedback-info",
|
|
12
13
|
success: "bg-feedback-success",
|
|
13
14
|
warning: "bg-feedback-warning"
|
|
14
|
-
},
|
|
15
|
+
}, N = {
|
|
15
16
|
danger: "rounded-sm border border-red-200",
|
|
16
17
|
neutral: "rounded-sm border border-gray-200",
|
|
17
18
|
info: "rounded-sm border border-blue-200",
|
|
18
19
|
success: "rounded-sm border border-green-200",
|
|
19
20
|
warning: "rounded-sm border border-yellow-200"
|
|
20
|
-
},
|
|
21
|
+
}, T = "ml-auto -mx-1.5 -my-1.5 rounded focus:ring-2 p-1.5 inline-flex h-8 w-8", V = {
|
|
21
22
|
danger: "hover:bg-red-200 focus:ring-red-400 bg-red-100 text-red-500",
|
|
22
23
|
neutral: "hover:bg-gray-200 focus:ring-gray-400 bg-feedback-neutral text-gray-500",
|
|
23
24
|
info: "hover:bg-blue-200 focus:ring-blue-400 bg-blue-100 text-blue-500",
|
|
24
25
|
success: "bg-green-100 text-green-500 focus:ring-green-400 hover:bg-green-200",
|
|
25
26
|
warning: "focus:ring-yellow-400 hover:bg-yellow-200 bg-yellow-100 text-yellow-500"
|
|
26
27
|
};
|
|
27
|
-
function
|
|
28
|
-
const f =
|
|
28
|
+
function j(e) {
|
|
29
|
+
const f = i(
|
|
29
30
|
() => [
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
$,
|
|
32
|
+
D[e.type.value],
|
|
32
33
|
c.value,
|
|
33
|
-
|
|
34
|
+
N[e.type.value],
|
|
34
35
|
e.inline.value ? "flex items-center" : ""
|
|
35
|
-
].filter((
|
|
36
|
-
), c =
|
|
37
|
-
() => [
|
|
38
|
-
), d =
|
|
36
|
+
].filter((o) => !!o).join(" ")
|
|
37
|
+
), c = i(() => A[e.type.value] ?? ""), g = i(
|
|
38
|
+
() => [T, V[e.type.value] ?? ""].filter((o) => !!o).join(" ")
|
|
39
|
+
), d = i(() => e.inline.value ? !e.icon.value && !e.title.value ? "" : e.title.value ? "grow ml-1" : "grow ml-2" : "my-2"), b = i(
|
|
40
|
+
() => !e.inline.value || e.icon.value ? "ml-2" : ""
|
|
41
|
+
);
|
|
39
42
|
return {
|
|
40
43
|
alertClasses: f,
|
|
41
44
|
textClasses: c,
|
|
@@ -44,10 +47,10 @@ function D(e) {
|
|
|
44
47
|
titleClasses: b
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
|
-
const
|
|
50
|
+
const E = {
|
|
48
51
|
key: 0,
|
|
49
52
|
class: "ml-auto inline-flex items-center"
|
|
50
|
-
},
|
|
53
|
+
}, R = /* @__PURE__ */ C({
|
|
51
54
|
__name: "Alert",
|
|
52
55
|
props: {
|
|
53
56
|
type: { default: "info" },
|
|
@@ -57,90 +60,99 @@ const $ = {
|
|
|
57
60
|
inline: { type: Boolean, default: !0 }
|
|
58
61
|
},
|
|
59
62
|
setup(e) {
|
|
60
|
-
const f = e, { alertClasses: c, textClasses: g, closeClasses: d, contentClasses: b, titleClasses:
|
|
63
|
+
const f = e, { alertClasses: c, textClasses: g, closeClasses: d, contentClasses: b, titleClasses: o } = j(
|
|
61
64
|
x(f)
|
|
62
65
|
), m = k(!0), y = () => {
|
|
63
66
|
m.value = !1;
|
|
64
67
|
};
|
|
65
|
-
return (v, s) => m.value ? (
|
|
68
|
+
return (v, s) => m.value ? (n(), u("div", {
|
|
66
69
|
key: 0,
|
|
67
|
-
class:
|
|
70
|
+
class: t(a(c)),
|
|
68
71
|
role: "alert"
|
|
69
72
|
}, [
|
|
70
|
-
|
|
71
|
-
class:
|
|
73
|
+
l("div", {
|
|
74
|
+
class: t(e.inline ? "flex" : "flex items-center")
|
|
72
75
|
}, [
|
|
73
|
-
e.icon ? (
|
|
76
|
+
e.icon ? (n(), u("svg", {
|
|
74
77
|
key: 0,
|
|
75
|
-
class:
|
|
78
|
+
class: t(["flex-shrink-0", "w-5", "h-5", a(g)]),
|
|
76
79
|
fill: "currentColor",
|
|
77
80
|
viewBox: "0 0 20 20",
|
|
78
81
|
xmlns: "http://www.w3.org/2000/svg"
|
|
79
82
|
}, [...s[0] || (s[0] = [
|
|
80
|
-
|
|
83
|
+
l("path", {
|
|
81
84
|
"fill-rule": "evenodd",
|
|
82
85
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",
|
|
83
86
|
"clip-rule": "evenodd"
|
|
84
87
|
}, null, -1)
|
|
85
|
-
])], 2)) :
|
|
86
|
-
e.title ? (
|
|
88
|
+
])], 2)) : r("", !0),
|
|
89
|
+
e.title ? (n(), h(M, {
|
|
87
90
|
key: 1,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
tag: "span",
|
|
92
|
+
variant: e.inline ? "body-sm" : "body-lg",
|
|
93
|
+
weight: "medium",
|
|
94
|
+
color: "inherit",
|
|
95
|
+
class: t(a(o))
|
|
96
|
+
}, {
|
|
97
|
+
default: B(() => [
|
|
98
|
+
L(z(e.title), 1)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["variant", "class"])) : r("", !0),
|
|
102
|
+
!e.inline && e.closable ? (n(), u("button", {
|
|
91
103
|
key: 2,
|
|
92
104
|
type: "button",
|
|
93
|
-
class:
|
|
105
|
+
class: t(a(d)),
|
|
94
106
|
"aria-label": "Close",
|
|
95
107
|
onClick: y
|
|
96
108
|
}, [...s[1] || (s[1] = [
|
|
97
|
-
|
|
98
|
-
|
|
109
|
+
l("span", { class: "sr-only" }, "Dismiss", -1),
|
|
110
|
+
l("svg", {
|
|
99
111
|
class: "h-5 w-5",
|
|
100
112
|
fill: "currentColor",
|
|
101
113
|
viewBox: "0 0 20 20",
|
|
102
114
|
xmlns: "http://www.w3.org/2000/svg"
|
|
103
115
|
}, [
|
|
104
|
-
|
|
116
|
+
l("path", {
|
|
105
117
|
"fill-rule": "evenodd",
|
|
106
118
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
107
119
|
"clip-rule": "evenodd"
|
|
108
120
|
})
|
|
109
121
|
], -1)
|
|
110
|
-
])], 2)) :
|
|
122
|
+
])], 2)) : r("", !0)
|
|
111
123
|
], 2),
|
|
112
|
-
|
|
113
|
-
class:
|
|
124
|
+
l("div", {
|
|
125
|
+
class: t(a(b))
|
|
114
126
|
}, [
|
|
115
127
|
w(v.$slots, "default")
|
|
116
128
|
], 2),
|
|
117
|
-
v.$slots.actions ? (
|
|
129
|
+
v.$slots.actions ? (n(), u("div", E, [
|
|
118
130
|
w(v.$slots, "actions")
|
|
119
|
-
])) :
|
|
120
|
-
e.inline && e.closable ? (
|
|
131
|
+
])) : r("", !0),
|
|
132
|
+
e.inline && e.closable ? (n(), u("button", {
|
|
121
133
|
key: 1,
|
|
122
134
|
type: "button",
|
|
123
|
-
class:
|
|
135
|
+
class: t(a(d)),
|
|
124
136
|
"aria-label": "Close",
|
|
125
137
|
onClick: y
|
|
126
138
|
}, [...s[2] || (s[2] = [
|
|
127
|
-
|
|
128
|
-
|
|
139
|
+
l("span", { class: "sr-only" }, "Dismiss", -1),
|
|
140
|
+
l("svg", {
|
|
129
141
|
class: "h-5 w-5",
|
|
130
142
|
fill: "currentColor",
|
|
131
143
|
viewBox: "0 0 20 20",
|
|
132
144
|
xmlns: "http://www.w3.org/2000/svg"
|
|
133
145
|
}, [
|
|
134
|
-
|
|
146
|
+
l("path", {
|
|
135
147
|
"fill-rule": "evenodd",
|
|
136
148
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
137
149
|
"clip-rule": "evenodd"
|
|
138
150
|
})
|
|
139
151
|
], -1)
|
|
140
|
-
])], 2)) :
|
|
141
|
-
], 2)) :
|
|
152
|
+
])], 2)) : r("", !0)
|
|
153
|
+
], 2)) : r("", !0);
|
|
142
154
|
}
|
|
143
155
|
});
|
|
144
156
|
export {
|
|
145
|
-
|
|
157
|
+
R as _
|
|
146
158
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { f as c } from "./customElements-BTj4ii4f.mjs";
|
|
2
|
+
const r = [1e3, 2e3, 4e3], d = {
|
|
3
|
+
PORTAL_URL_EXPIRED: "expired",
|
|
4
|
+
PORTAL_URL_REVOKED: "revoked",
|
|
5
|
+
CHECKOUT_SESSION_CLOSED: "closed"
|
|
6
|
+
}, i = (e) => !c(e) || e.statusCode >= 500 || e.statusCode === 429, E = (e) => new Promise((t) => setTimeout(t, e));
|
|
7
|
+
function s(e, t) {
|
|
8
|
+
if (c(t) && t.statusCode === 410) {
|
|
9
|
+
e.clearToken();
|
|
10
|
+
const a = d[t.errorCode ?? ""] ?? "expired", { checkoutSessionStatus: o } = t;
|
|
11
|
+
e.setStatus({
|
|
12
|
+
state: "ended",
|
|
13
|
+
reason: a,
|
|
14
|
+
...o ? { checkoutSessionStatus: o } : {}
|
|
15
|
+
}), e.forEachLogger((n) => {
|
|
16
|
+
a === "closed" ? n.warn(
|
|
17
|
+
"CHECKOUT_SESSION_CLOSED",
|
|
18
|
+
"The checkout session of the portal link is closed",
|
|
19
|
+
{ status: o },
|
|
20
|
+
t
|
|
21
|
+
) : a === "revoked" ? n.error("PORTAL_URL_REVOKED", "The portal link is revoked", {}, t) : n.error("PORTAL_URL_EXPIRED", "The portal link has expired", {}, t);
|
|
22
|
+
});
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (i(t)) {
|
|
26
|
+
e.markUnverified(t);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
e.hasToken() || e.setStatus({ state: "invalid" }), e.forEachLogger(
|
|
30
|
+
(a) => a.error("INVALID_TOKEN", "Failed to fetch access token", {}, t)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
async function f(e, t) {
|
|
34
|
+
for (let a = 0; ; a++)
|
|
35
|
+
try {
|
|
36
|
+
const o = await t.exchangeHandle(e);
|
|
37
|
+
return t.applyToken(o), o.access_token;
|
|
38
|
+
} catch (o) {
|
|
39
|
+
const n = r[a];
|
|
40
|
+
if (i(o) && n !== void 0) {
|
|
41
|
+
if (await E(n), t.isAbandoned()) return;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
s(t, o);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
f as runExchange
|
|
50
|
+
};
|
|
@@ -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-Zw--kuaU.mjs";
|
|
3
3
|
const z = (e) => {
|
|
4
4
|
const t = f(), l = (n) => {
|
|
5
5
|
let a = 0;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as f, computed as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as b } from "./CustomerBillingInformation.vue.es-
|
|
4
|
-
import { a as h } from "./customElements-
|
|
5
|
-
import { _ as k } from "./Skeleton.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as
|
|
7
|
-
import { r as
|
|
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-Zw--kuaU.mjs";
|
|
3
|
+
import { _ as b } from "./CustomerBillingInformation.vue.es-B8NiQaJs.mjs";
|
|
4
|
+
import { a as h } from "./customElements-BTj4ii4f.mjs";
|
|
5
|
+
import { _ as k } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
6
|
+
import { u as x } from "./useActionDispatchProvider-3W2vEyIg.mjs";
|
|
7
|
+
import { r as y } from "./configuration-BytDBAWs.mjs";
|
|
8
8
|
const T = /* @__PURE__ */ f({
|
|
9
9
|
__name: "BillingInformation",
|
|
10
10
|
props: {
|
|
@@ -12,14 +12,13 @@ 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
16
|
const r = {
|
|
18
17
|
showEditButton: !0
|
|
19
|
-
}, a = o, c =
|
|
20
|
-
() =>
|
|
21
|
-
), { $t:
|
|
22
|
-
return (
|
|
18
|
+
}, a = o, c = u(
|
|
19
|
+
() => y(r, a.configuration)
|
|
20
|
+
), { $t: m } = h(), { dispatchAction: l } = x();
|
|
21
|
+
return (B, i) => o.isLoading ? (n(), e(k, {
|
|
23
22
|
key: 0,
|
|
24
23
|
variant: "section",
|
|
25
24
|
class: "sv-billing-information sv-root sv-component sv-loading min-h-[100px]"
|
|
@@ -28,22 +27,22 @@ const T = /* @__PURE__ */ f({
|
|
|
28
27
|
class: "sv-billing-information sv-root sv-component",
|
|
29
28
|
customer: o.customer,
|
|
30
29
|
"fallback-to-reference": !1
|
|
31
|
-
},
|
|
30
|
+
}, p({ _: 2 }, [
|
|
32
31
|
c.value.showEditButton ? {
|
|
33
32
|
name: "settings",
|
|
34
33
|
fn: s(() => [
|
|
35
|
-
|
|
36
|
-
size: "
|
|
34
|
+
d(t(v), {
|
|
35
|
+
size: "xs",
|
|
37
36
|
intent: "subtle",
|
|
38
37
|
"icon-prefix": "edit",
|
|
39
38
|
class: "sv-action sv-action--ghost sv-billing-information__edit",
|
|
40
|
-
onClick: i[0] || (i[0] = (
|
|
39
|
+
onClick: i[0] || (i[0] = (C) => t(l)({ action: "edit-billing-information" }))
|
|
41
40
|
}, {
|
|
42
41
|
default: s(() => [
|
|
43
|
-
|
|
42
|
+
_(g(t(m)({
|
|
44
43
|
defaultMessage: "Edit",
|
|
45
|
-
id: "customer_overview.billing_information_block.
|
|
46
|
-
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"
|
|
47
46
|
})), 1)
|
|
48
47
|
]),
|
|
49
48
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as r, createElementBlock as u, normalizeClass as v, createElementVNode as g, useSlots as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as B, openBlock as r, createElementBlock as u, normalizeClass as v, createElementVNode as g, useSlots as I, computed as n, ref as _, 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 { d as M } from "./customElements-BTj4ii4f.mjs";
|
|
3
3
|
const N = {
|
|
4
4
|
class: "h-full w-full",
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -127,7 +127,7 @@ const N = {
|
|
|
127
127
|
lg: { compactLeft: "pl-3", compactRight: "pr-3", spaciousLeft: "pl-6", spaciousRight: "pr-6" }
|
|
128
128
|
};
|
|
129
129
|
function J(e) {
|
|
130
|
-
const t =
|
|
130
|
+
const t = I(), s = n(() => !!(t.prefix || e.iconPrefix.value)), l = n(() => !!(t.suffix || e.iconSuffix.value)), a = n(() => !!t.default), f = n(
|
|
131
131
|
() => !a.value && (s.value || l.value)
|
|
132
132
|
), h = n(
|
|
133
133
|
() => {
|
|
@@ -186,7 +186,7 @@ function U(e) {
|
|
|
186
186
|
return { size: t, color: s };
|
|
187
187
|
}
|
|
188
188
|
function W(e = 500) {
|
|
189
|
-
const t =
|
|
189
|
+
const t = _(!1);
|
|
190
190
|
function s(l) {
|
|
191
191
|
if (!t.value) {
|
|
192
192
|
t.value = !0;
|