@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31
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 +152 -91
- package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
- package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/adyen-D4em6EgU.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
- package/dist/components/Invoice/Invoice.mjs +426 -426
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
- package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
- package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
- package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.mjs +51 -34
- package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
- package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/screens/Checkout/Checkout.mjs +1098 -3
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
- package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
- package/dist/types/public/core/action-request.types.d.ts +18 -24
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +3 -1
- package/dist/types/public/core/types.d.ts +11 -2
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
- package/dist/types/services/paymentMethods.types.d.ts +12 -1
- package/dist/types/types/EntryBaseProps.d.ts +10 -6
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +189 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/package.json +12 -5
- package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
- package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
- package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
- package/dist/invoices-DdREPDXV.mjs +0 -123
- package/dist/paymentMethods-Goa25rTs.mjs +0 -61
- package/dist/payments-CKpU1K3t.mjs +0 -68
- package/dist/pricing-CEaZGgKe.mjs +0 -29
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
- package/dist/subscriptions-B5bH8hsI.mjs +0 -66
- package/dist/taxId.es-e6NEvprh.mjs +0 -243
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
- package/dist/usePortal-DUfD6hrA.mjs +0 -7
- package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface SubscriptionsListItemProps {
|
|
|
4
4
|
paymentMethod?: PaymentMethod;
|
|
5
5
|
customer: Customer;
|
|
6
6
|
showViewSubscriptionDetailsButton?: boolean;
|
|
7
|
+
showManageButton?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export interface SubscriptionsListItemEmits {
|
|
9
10
|
(e: 'view-subscription-details', payload: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export { createSolvimonCore, getRegisteredScreenIds, getRegisteredComponentIds, } from './public/core';
|
|
2
|
-
export type { SolvimonMountConfig, CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, ActionRequestDetail,
|
|
2
|
+
export type { SolvimonMountConfig, CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, ActionRequestDetail, ActionRequestEvent, } from './public/core';
|
|
3
3
|
export type { Amount, CheckoutPagePortalUrl, CheckoutPagePortalUrlPayload, CountryCode, CustomerPortalUrl, CustomerPortalUrlPayload, PlatformBranding, PortalUrl, } from './vendor/@solvimon/solvimon-types/index';
|
|
4
4
|
export type { IntlMessages, Environment } from './public/types';
|
|
5
|
+
export type { SolvimonBranding } from './types/branding';
|
|
6
|
+
export type { SolvimonErrorDetail, SolvimonEventListeners, SolvimonPaymentMethodAddedDetail, SolvimonInvoiceCreatedDetail, SolvimonPaymentSucceededDetail, SolvimonPaymentSucceededEvent, SolvimonErrorEvent, SolvimonEventMap, } from './public/core/events.types';
|
|
5
7
|
export type { ExperimentalFeature } from './components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib';
|
|
6
8
|
export { defineSolvimonCheckout } from './public/screens/Checkout/Checkout.entry.ce';
|
|
9
|
+
export { defineSolvimonCheckoutSession } from './public/screens/CheckoutSession/CheckoutSession.entry.ce';
|
|
7
10
|
export { defineSolvimonCustomerOverview } from './public/screens/CustomerOverview/CustomerOverview.entry.ce';
|
|
8
11
|
export { defineSolvimonSubscriptionManagement } from './public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce';
|
|
9
12
|
export { defineSolvimonSubscriptionDetails } from './public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce';
|
|
@@ -21,3 +24,4 @@ export { defineSolvimonPaymentHistory } from './public/components/PaymentHistory
|
|
|
21
24
|
export { defineSolvimonSubscriptionSchedules } from './public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce';
|
|
22
25
|
export { defineSolvimonSubscriptionsList } from './public/components/SubscriptionsList/SubscriptionsList.entry.ce';
|
|
23
26
|
export { defineSolvimonPaymentMethodForm } from './public/components/PaymentMethodForm/PaymentMethodForm.entry.ce';
|
|
27
|
+
export { defineSolvimonShippingAddressForm } from './public/components/ShippingAddressForm/ShippingAddressForm.entry.ce';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Customer } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export interface BillingInformationConfiguration {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to show the button that edits the billing information, which sends an
|
|
5
|
+
* `edit-billing-information` action request.
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
3
8
|
showEditButton?: boolean;
|
|
4
9
|
}
|
|
5
10
|
export interface BillingInformationProps {
|
package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { CustomerPortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
-
import {
|
|
2
|
+
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
3
3
|
export type SolvimonBillingInformationFormEntryProps = EntryBaseProps<CustomerPortalUrl>;
|
|
4
|
-
export type SolvimonBillingInformationFormEntryEmits = EntryBaseEmits;
|
package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts
CHANGED
|
@@ -6,11 +6,15 @@ export interface CustomerPaymentMethodsConfiguration {
|
|
|
6
6
|
*/
|
|
7
7
|
maxItems?: number;
|
|
8
8
|
/**
|
|
9
|
-
* Whether to show the
|
|
9
|
+
* Whether to show the "View all" button when the customer has more payment methods than
|
|
10
|
+
* `maxItems`, which sends a `view-all-payment-methods` action request.
|
|
11
|
+
* @default true
|
|
10
12
|
*/
|
|
11
13
|
showViewAllButton?: boolean;
|
|
12
14
|
/**
|
|
13
|
-
* Whether to show the
|
|
15
|
+
* Whether to show the button that adds a payment method, which sends an `add-payment-method`
|
|
16
|
+
* action request.
|
|
17
|
+
* @default true
|
|
14
18
|
*/
|
|
15
19
|
showAddButton?: boolean;
|
|
16
20
|
}
|
|
@@ -2,20 +2,20 @@ import { Invoice, Payment } from '../../../vendor/@solvimon/solvimon-types/index
|
|
|
2
2
|
export interface InvoiceConfiguration {
|
|
3
3
|
invoiceId: Invoice['id'];
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Whether to show the button that downloads the invoice as a PDF.
|
|
6
6
|
* @default true
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
showDownloadButton?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @default true
|
|
10
|
+
* Whether to show the customer's billing information.
|
|
11
|
+
* @default true
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
showCustomerBillingInformation?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Whether to show the invoice's payment attempts, when it has any.
|
|
16
16
|
* @default true
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
showPaymentAttempts?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface InvoiceProps {
|
|
21
21
|
invoice: Invoice;
|
|
@@ -2,10 +2,10 @@ import { Invoice, Payment } from '../../../vendor/@solvimon/solvimon-types/index
|
|
|
2
2
|
export interface InvoiceHeaderConfiguration {
|
|
3
3
|
invoiceId: Invoice['id'];
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Whether to show the button that downloads the invoice as a PDF.
|
|
6
6
|
* @default true
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
showDownloadButton?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface InvoiceHeaderProps {
|
|
11
11
|
invoice: Invoice;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { Invoice } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export interface InvoicesListConfiguration {
|
|
3
3
|
/**
|
|
4
|
-
* Whether to show the pay button
|
|
4
|
+
* Whether to show the pay button on an invoice that can be paid, which sends a `pay-invoice`
|
|
5
|
+
* action request.
|
|
5
6
|
* @default true
|
|
6
7
|
*/
|
|
7
8
|
showPayButton?: boolean;
|
|
8
9
|
/**
|
|
9
|
-
* Whether to
|
|
10
|
+
* Whether to link each invoice to its page, which sends a `view-invoice` action request.
|
|
10
11
|
* @default true
|
|
11
12
|
*/
|
|
12
13
|
showViewButton?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Optionally configure pagination.
|
|
15
|
-
*/
|
|
14
|
+
/** How the list loads more invoices. */
|
|
16
15
|
pagination?: {
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
17
|
+
* Whether the list offers to load more invoices than the first batch.
|
|
19
18
|
* @default true
|
|
20
19
|
*/
|
|
21
20
|
enabled?: boolean;
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
22
|
+
* How many invoices the list loads at a time, at most 50.
|
|
24
23
|
* @default 15
|
|
25
24
|
*/
|
|
26
25
|
batchSize?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomerPortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { PaymentMethodFormProps } from './PaymentMethodForm.types';
|
|
3
3
|
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
4
|
-
export interface SolvimonPaymentMethodFormEntryProps extends EntryBaseProps<CustomerPortalUrl>, Pick<PaymentMethodFormProps, 'configuration'
|
|
4
|
+
export interface SolvimonPaymentMethodFormEntryProps extends EntryBaseProps<CustomerPortalUrl>, Pick<PaymentMethodFormProps, 'configuration'> {
|
|
5
5
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Amount,
|
|
2
|
-
import { PaymentIntegrationFormProps } from '../../../components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types';
|
|
1
|
+
import { Amount, CountryCode, Customer, Invoice, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
3
2
|
interface PaymentMethodFormBaseConfiguration {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The customer's two-letter country, which decides the payment methods on offer. Defaults to the
|
|
5
|
+
* country of the customer's address.
|
|
6
|
+
*/
|
|
7
|
+
countryCode?: CountryCode;
|
|
7
8
|
/**
|
|
8
9
|
* Where the customer goes once the form is through. Given one, the completed form offers a
|
|
9
10
|
* button rather than leaving on its own: an instant redirect takes away the confirmation the
|
|
@@ -12,24 +13,28 @@ interface PaymentMethodFormBaseConfiguration {
|
|
|
12
13
|
successRedirectUrl?: string;
|
|
13
14
|
/** Label for that button, for a host whose own wording says where it leads. */
|
|
14
15
|
successRedirectLabel?: string;
|
|
15
|
-
validateOnSubmit?: PaymentIntegrationFormProps['validateOnSubmit'];
|
|
16
|
-
forceStorePaymentMethod?: PaymentIntegrationFormProps['forceStorePaymentMethod'];
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/** Saves a payment method for later, without charging it. The default. */
|
|
18
|
+
export interface PaymentMethodFormSetupConfiguration extends PaymentMethodFormBaseConfiguration {
|
|
19
|
+
mode?: 'setup';
|
|
20
|
+
/** The invoice the method is saved for, so the methods on offer are the ones it can be paid with. */
|
|
21
|
+
invoiceId?: Invoice['id'];
|
|
22
|
+
/** An amount to offer the methods for, when there is no invoice. */
|
|
23
|
+
amount?: Amount;
|
|
20
24
|
}
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
/** Pays an invoice, and lets the customer save the method while doing so. */
|
|
26
|
+
export interface PaymentMethodFormPaymentConfiguration extends PaymentMethodFormBaseConfiguration {
|
|
27
|
+
mode: 'payment';
|
|
28
|
+
invoiceId: Invoice['id'];
|
|
29
|
+
/** The amount to charge, in the invoice's currency. */
|
|
23
30
|
amount: Amount;
|
|
24
|
-
context: Exclude<AuthorizePaymentPayload['context'], undefined>;
|
|
25
31
|
}
|
|
26
|
-
export type PaymentMethodFormConfiguration =
|
|
32
|
+
export type PaymentMethodFormConfiguration = PaymentMethodFormSetupConfiguration | PaymentMethodFormPaymentConfiguration;
|
|
27
33
|
export interface PaymentMethodFormProps {
|
|
28
34
|
customer: Customer;
|
|
29
35
|
paymentMethodOptions: PaymentMethodOptionsResponse;
|
|
30
36
|
configuration?: PaymentMethodFormConfiguration;
|
|
31
37
|
isLoading?: boolean;
|
|
32
|
-
countryCode?: string;
|
|
33
38
|
title?: string;
|
|
34
39
|
/**
|
|
35
40
|
* Hides the form's own submit button, for hosts that submit it from their own chrome — a modal
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defineSolvimonShippingAddressForm: (tagName?: string) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CustomerPortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { ShippingAddressFormConfiguration } from './ShippingAddressForm.types';
|
|
3
|
+
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
4
|
+
export interface SolvimonShippingAddressFormEntryProps extends EntryBaseProps<CustomerPortalUrl> {
|
|
5
|
+
configuration?: ShippingAddressFormConfiguration;
|
|
6
|
+
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { Customer, PaymentMethod, PricingPlanSubscriptionExpanded } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export type SubscriptionsListConfiguration = {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Whether to show the "View all" button, which sends a `view-all-subscriptions` action request.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
4
7
|
showViewAllButton?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to show each subscription's details button, which sends a `view-subscription-details` action
|
|
10
|
+
* request.
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
5
13
|
showViewDetailsButton?: boolean;
|
|
14
|
+
showManageButton?: boolean;
|
|
6
15
|
};
|
|
7
16
|
export interface SubscriptionsListProps {
|
|
8
17
|
customer: Customer | undefined;
|
|
@@ -1,60 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Action
|
|
2
|
+
* Action request types for the 'solvimon-action-request' event.
|
|
3
3
|
* Kept in a separate file with no internal dependencies so dist/core declarations resolve for consumers.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
action: string;
|
|
7
|
-
entity?: string;
|
|
8
|
-
data?: Record<string, unknown>;
|
|
9
|
-
href?: string;
|
|
10
|
-
meta?: Record<string, unknown>;
|
|
11
|
-
};
|
|
12
|
-
export interface ActionRequestDetailViewInvoice extends ActionRequestDetailBase {
|
|
5
|
+
export interface ActionRequestDetailViewInvoice {
|
|
13
6
|
action: 'view-invoice';
|
|
14
7
|
data: {
|
|
15
8
|
invoiceId: string;
|
|
16
9
|
};
|
|
17
10
|
}
|
|
18
|
-
export interface ActionRequestDetailPayInvoice
|
|
11
|
+
export interface ActionRequestDetailPayInvoice {
|
|
19
12
|
action: 'pay-invoice';
|
|
20
13
|
data: {
|
|
21
14
|
invoiceId: string;
|
|
22
15
|
};
|
|
23
16
|
}
|
|
24
|
-
export interface ActionRequestDetailViewSubscriptionDetails
|
|
17
|
+
export interface ActionRequestDetailViewSubscriptionDetails {
|
|
25
18
|
action: 'view-subscription-details';
|
|
26
19
|
data: {
|
|
27
20
|
subscriptionId: string;
|
|
28
21
|
};
|
|
29
22
|
}
|
|
30
|
-
export interface ActionRequestDetailViewAllSubscriptions
|
|
23
|
+
export interface ActionRequestDetailViewAllSubscriptions {
|
|
31
24
|
action: 'view-all-subscriptions';
|
|
32
25
|
}
|
|
33
|
-
export interface ActionRequestDetailManageSubscription
|
|
26
|
+
export interface ActionRequestDetailManageSubscription {
|
|
34
27
|
action: 'manage-subscription';
|
|
35
28
|
/**
|
|
36
|
-
* `
|
|
37
|
-
* it to `SubscriptionManagement` as `configuration.
|
|
29
|
+
* `currentPricingId` is the pricing the customer chose to change, when they came from one. Hand
|
|
30
|
+
* it to `SubscriptionManagement` as `configuration.currentPricingId` to open on its group.
|
|
38
31
|
*/
|
|
39
32
|
data: {
|
|
40
33
|
subscriptionId: string;
|
|
41
|
-
|
|
34
|
+
currentPricingId?: string;
|
|
42
35
|
};
|
|
43
36
|
}
|
|
44
|
-
export interface ActionRequestDetailEditBillingInformation
|
|
37
|
+
export interface ActionRequestDetailEditBillingInformation {
|
|
45
38
|
action: 'edit-billing-information';
|
|
46
39
|
}
|
|
47
|
-
export interface ActionRequestDetailViewAllPaymentMethods
|
|
40
|
+
export interface ActionRequestDetailViewAllPaymentMethods {
|
|
48
41
|
action: 'view-all-payment-methods';
|
|
49
42
|
}
|
|
50
|
-
export interface ActionRequestDetailAddPaymentMethod
|
|
43
|
+
export interface ActionRequestDetailAddPaymentMethod {
|
|
51
44
|
action: 'add-payment-method';
|
|
52
45
|
}
|
|
53
|
-
export interface
|
|
54
|
-
action: '
|
|
46
|
+
export interface ActionRequestDetailViewCustomerOverview {
|
|
47
|
+
action: 'view-customer-overview';
|
|
55
48
|
}
|
|
56
|
-
export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailManageSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod |
|
|
49
|
+
export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailManageSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod | ActionRequestDetailViewCustomerOverview;
|
|
57
50
|
/**
|
|
58
|
-
*
|
|
51
|
+
* The `solvimon-action-request` event. It bubbles and crosses the shadow root, so a listener on the
|
|
52
|
+
* document or a container hears every element.
|
|
59
53
|
*/
|
|
60
|
-
export type
|
|
54
|
+
export type ActionRequestEvent = CustomEvent<ActionRequestDetail>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Invoice, PricingPlanSubscription } from '../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { ActionRequestDetail } from './action-request.types';
|
|
3
|
+
import { ErrorCode, LogEntry } from '../../components/providers/LoggerProvider/LoggerProvider.types';
|
|
4
|
+
/**
|
|
5
|
+
* The `detail` of the `solvimon-error` event: the same facts as the `log` entry the failure is
|
|
6
|
+
* logged under, so a listener on a container can tell which element failed.
|
|
7
|
+
*/
|
|
8
|
+
export interface SolvimonErrorDetail {
|
|
9
|
+
error: Error;
|
|
10
|
+
/** The error's own code, or `UNHANDLED_ERROR` for an error without one. */
|
|
11
|
+
code: ErrorCode;
|
|
12
|
+
/** The tag name of the element that failed. */
|
|
13
|
+
componentName: string;
|
|
14
|
+
/** The session reference, which support can find the failure by. */
|
|
15
|
+
reference: string;
|
|
16
|
+
}
|
|
17
|
+
/** The event an element dispatches when it fails and cannot carry on. */
|
|
18
|
+
export type SolvimonErrorEvent = CustomEvent<SolvimonErrorDetail>;
|
|
19
|
+
/** The `detail` of `solvimon-payment-succeeded`: what the payment was for, as far as the element knows. */
|
|
20
|
+
export interface SolvimonPaymentSucceededDetail {
|
|
21
|
+
/** The tag name of the element the customer paid in. */
|
|
22
|
+
componentName: string;
|
|
23
|
+
/** The subscription the checkout sold. */
|
|
24
|
+
subscriptionId?: PricingPlanSubscription['id'];
|
|
25
|
+
/** The invoice that was paid. */
|
|
26
|
+
invoiceId?: Invoice['id'];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The event an element dispatches once a payment went through. In the checkout, `preventDefault()`
|
|
30
|
+
* keeps the customer on the page instead of sending them to the success URL set in Solvimon Desk.
|
|
31
|
+
*/
|
|
32
|
+
export type SolvimonPaymentSucceededEvent = CustomEvent<SolvimonPaymentSucceededDetail>;
|
|
33
|
+
/**
|
|
34
|
+
* The `detail` of `solvimon-invoice-created`. The order created the invoice whether or not its
|
|
35
|
+
* payment went through, so `paymentStatus` says which: `PAID` and `OVERPAID` are settled, while
|
|
36
|
+
* `UNPAID`, `PARTIALLY_PAID` and a missing status are an invoice still to be paid.
|
|
37
|
+
*/
|
|
38
|
+
export interface SolvimonInvoiceCreatedDetail {
|
|
39
|
+
invoiceId: Invoice['id'];
|
|
40
|
+
paymentStatus: Invoice['payment_status'];
|
|
41
|
+
}
|
|
42
|
+
/** The `detail` of `solvimon-payment-method-added`. */
|
|
43
|
+
export interface SolvimonPaymentMethodAddedDetail {
|
|
44
|
+
/** The tag name of the element the customer stored the method in. */
|
|
45
|
+
componentName: string;
|
|
46
|
+
}
|
|
47
|
+
/** The `detail` of `solvimon-shipping-address-saved`. */
|
|
48
|
+
export interface SolvimonShippingAddressSavedDetail {
|
|
49
|
+
/** The tag name of the element the customer saved the address in. */
|
|
50
|
+
componentName: string;
|
|
51
|
+
/**
|
|
52
|
+
* The address as stored. An edit is stored as a new address that replaces the old one, so this
|
|
53
|
+
* id differs from the one the form was opened with.
|
|
54
|
+
*/
|
|
55
|
+
shippingAddressId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Every event an SDK element dispatches, by name. Each one bubbles and crosses the shadow root,
|
|
59
|
+
* so a listener on the document or a container hears every element inside it.
|
|
60
|
+
*/
|
|
61
|
+
export interface SolvimonEventMap {
|
|
62
|
+
/** The element failed and renders nothing; `detail` says what failed and where. */
|
|
63
|
+
'solvimon-error': SolvimonErrorEvent;
|
|
64
|
+
/** The checkout's subscription and first price have loaded. */
|
|
65
|
+
'solvimon-ready': CustomEvent<undefined>;
|
|
66
|
+
/** A log entry, as `onLog` receives it. */
|
|
67
|
+
'solvimon-log': CustomEvent<LogEntry>;
|
|
68
|
+
/** The customer asked to go somewhere the host decides on, such as an invoice. */
|
|
69
|
+
'solvimon-action-request': CustomEvent<ActionRequestDetail>;
|
|
70
|
+
/**
|
|
71
|
+
* A payment went through: in the checkout, in the checkout session once the session completed,
|
|
72
|
+
* on pay-invoice, or in `payment-method-form` in `payment` mode. The only cancelable event; see
|
|
73
|
+
* `SolvimonPaymentSucceededEvent`.
|
|
74
|
+
*/
|
|
75
|
+
'solvimon-payment-succeeded': SolvimonPaymentSucceededEvent;
|
|
76
|
+
/**
|
|
77
|
+
* An on-demand order in subscription details created an invoice, while the customer still sees
|
|
78
|
+
* its receipt. A failed order is not reported here but logged, as `ON_DEMAND_CHARGE_REFUSED` or,
|
|
79
|
+
* when its outcome is unknown, `ON_DEMAND_CHARGE_FAILED`.
|
|
80
|
+
*/
|
|
81
|
+
'solvimon-invoice-created': CustomEvent<SolvimonInvoiceCreatedDetail>;
|
|
82
|
+
/** The customer stored a new payment method. */
|
|
83
|
+
'solvimon-payment-method-added': CustomEvent<SolvimonPaymentMethodAddedDetail>;
|
|
84
|
+
/** The customer added or changed a shipping address in `shipping-address-form`. */
|
|
85
|
+
'solvimon-shipping-address-saved': CustomEvent<SolvimonShippingAddressSavedDetail>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Listeners for the `on` option of `createScreen` and `createComponent`, by event name. They are
|
|
89
|
+
* added before the element is in the page, so they hear everything it dispatches.
|
|
90
|
+
*/
|
|
91
|
+
export type SolvimonEventListeners = {
|
|
92
|
+
[K in keyof SolvimonEventMap]?: (event: SolvimonEventMap[K]) => void;
|
|
93
|
+
};
|
|
94
|
+
declare global {
|
|
95
|
+
interface HTMLElementEventMap extends SolvimonEventMap {
|
|
96
|
+
}
|
|
97
|
+
interface DocumentEventMap extends SolvimonEventMap {
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
export { createSolvimonCore } from './configuration';
|
|
8
8
|
export { getRegisteredScreenIds, getRegisteredComponentIds } from './registry';
|
|
9
9
|
export type { CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountConfig, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, } from './types';
|
|
10
|
-
export type { ActionRequestDetail,
|
|
10
|
+
export type { ActionRequestDetail, ActionRequestDetailAddPaymentMethod, ActionRequestDetailEditBillingInformation, ActionRequestDetailManageSubscription, ActionRequestDetailPayInvoice, ActionRequestDetailViewAllPaymentMethods, ActionRequestDetailViewCustomerOverview, ActionRequestDetailViewAllSubscriptions, ActionRequestDetailViewInvoice, ActionRequestDetailViewSubscriptionDetails, ActionRequestEvent, } from './action-request.types';
|
|
11
11
|
export type { Amount, CheckoutPagePortalUrl, CheckoutPagePortalUrlPayload, CountryCode, CustomerPortalUrl, CustomerPortalUrlPayload, PlatformBranding, PortalUrl, } from '../../vendor/@solvimon/solvimon-types/index';
|
|
12
12
|
export type { IntlMessages, Environment } from '../types';
|
|
13
|
+
export type { SolvimonBranding } from '../../types/branding';
|
|
14
|
+
export type { SolvimonErrorDetail, SolvimonEventListeners, SolvimonPaymentMethodAddedDetail, SolvimonInvoiceCreatedDetail, SolvimonPaymentSucceededDetail, SolvimonPaymentSucceededEvent, SolvimonErrorEvent, SolvimonEventMap, } from './events.types';
|
|
13
15
|
export type { ExperimentalFeature } from '../../components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib';
|
|
14
16
|
export type { LogEntry, LogLevel, LogSink, ErrorCode, WarnCode, } from '../../components/providers/LoggerProvider/LoggerProvider.types';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SolvimonEventListeners } from './events.types';
|
|
2
2
|
import { PortalToken } from '../../types/portalToken';
|
|
3
|
+
import { SolvimonBranding } from '../../types/branding';
|
|
3
4
|
import { Environment, IntlMessages } from '../types';
|
|
4
5
|
import { LogLevel, LogSink } from '../../components/providers/LoggerProvider/LoggerProvider.types';
|
|
5
6
|
import { ExperimentalFeature } from '../../components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib';
|
|
@@ -11,11 +12,13 @@ import { SolvimonInvoiceHeaderEntryProps } from '../components/InvoiceHeader/Inv
|
|
|
11
12
|
import { SolvimonInvoiceDetailsEntryProps } from '../components/InvoiceDetails/InvoiceDetails.entry.types';
|
|
12
13
|
import { SolvimonInvoicesListEntryProps } from '../components/InvoicesList/InvoicesList.entry.types';
|
|
13
14
|
import { SolvimonPaymentMethodFormEntryProps } from '../components/PaymentMethodForm/PaymentMethodForm.entry.types';
|
|
15
|
+
import { SolvimonShippingAddressFormEntryProps } from '../components/ShippingAddressForm/ShippingAddressForm.entry.types';
|
|
14
16
|
import { SolvimonPaymentHistoryEntryProps } from '../components/PaymentHistory/PaymentHistory.entry.types';
|
|
15
17
|
import { SolvimonSubscriptionSchedulesEntryProps } from '../components/SubscriptionSchedules/SubscriptionSchedules.entry.types';
|
|
16
18
|
import { SolvimonSubscriptionsListEntryProps } from '../components/SubscriptionsList/SubscriptionsList.entry.types';
|
|
17
19
|
import { SolvimonWalletBalancesEntryProps } from '../components/WalletBalances/WalletBalances.entry.types';
|
|
18
20
|
import { SolvimonCheckoutEntryProps } from '../screens/Checkout/Checkout.entry.types';
|
|
21
|
+
import { SolvimonCheckoutSessionEntryProps } from '../screens/CheckoutSession/CheckoutSession.entry.types';
|
|
19
22
|
import { SolvimonCustomerOverviewEntryProps } from '../screens/CustomerOverview/CustomerOverview.entry.types';
|
|
20
23
|
import { SolvimonSubscriptionManagementEntryProps } from '../screens/SubscriptionManagement/SubscriptionManagement.entry.types';
|
|
21
24
|
import { SolvimonPayInvoiceEntryProps } from '../screens/PayInvoice/PayInvoice.entry.types';
|
|
@@ -34,7 +37,7 @@ export interface SharedSolvimonMountConfig {
|
|
|
34
37
|
experimentalFeatures?: ExperimentalFeature[];
|
|
35
38
|
logLevel?: LogLevel;
|
|
36
39
|
onLog?: LogSink;
|
|
37
|
-
branding?:
|
|
40
|
+
branding?: SolvimonBranding;
|
|
38
41
|
cssOverrides?: string | string[];
|
|
39
42
|
}
|
|
40
43
|
export type SolvimonMountConfig = SharedSolvimonMountConfig;
|
|
@@ -62,9 +65,11 @@ interface RegisteredComponentEntryPropsById {
|
|
|
62
65
|
'billing-information': SolvimonBillingInformationEntryProps;
|
|
63
66
|
'billing-information-form': SolvimonBillingInformationFormEntryProps;
|
|
64
67
|
'payment-method-form': SolvimonPaymentMethodFormEntryProps;
|
|
68
|
+
'shipping-address-form': SolvimonShippingAddressFormEntryProps;
|
|
65
69
|
}
|
|
66
70
|
interface RegisteredScreenEntryPropsById {
|
|
67
71
|
checkout: SolvimonCheckoutEntryProps;
|
|
72
|
+
'checkout-session': SolvimonCheckoutSessionEntryProps;
|
|
68
73
|
'customer-overview': SolvimonCustomerOverviewEntryProps;
|
|
69
74
|
'subscription-management': SolvimonSubscriptionManagementEntryProps;
|
|
70
75
|
'subscription-details': SolvimonSubscriptionDetailsEntryProps;
|
|
@@ -115,12 +120,16 @@ export type ComponentMountConfiguration<TId extends RegisteredComponentId> = {
|
|
|
115
120
|
portalObject: InferPortalObject<RegisteredComponentEntryPropsById[TId]>;
|
|
116
121
|
/** See `portalToken` on the element: the response of an exchange of the handle, as it is. */
|
|
117
122
|
portalToken?: PortalToken;
|
|
123
|
+
/** Listeners for the element's events, added before it is in the page. */
|
|
124
|
+
on?: SolvimonEventListeners;
|
|
118
125
|
} & ConfigurationProp<ComponentConfigurationById[TId]>;
|
|
119
126
|
export type ScreenMountConfiguration<TId extends RegisteredScreenId> = {
|
|
120
127
|
container: Element | string;
|
|
121
128
|
portalObject: InferPortalObject<RegisteredScreenEntryPropsById[TId]>;
|
|
122
129
|
/** See `portalToken` on the element: the response of an exchange of the handle, as it is. */
|
|
123
130
|
portalToken?: PortalToken;
|
|
131
|
+
/** Listeners for the element's events, added before it is in the page. */
|
|
132
|
+
on?: SolvimonEventListeners;
|
|
124
133
|
} & ConfigurationProp<ScreenConfigurationById[TId]>;
|
|
125
134
|
export interface CoreConfiguration<TConfig extends SolvimonMountConfig = SolvimonMountConfig> {
|
|
126
135
|
config: TConfig;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { CheckoutPagePortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
-
import {
|
|
2
|
+
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
3
3
|
import { CheckoutProps } from './Checkout.types';
|
|
4
4
|
export interface SolvimonCheckoutEntryProps extends EntryBaseProps<CheckoutPagePortalUrl>, CheckoutProps {
|
|
5
5
|
}
|
|
6
|
-
export interface SolvimonCheckoutEmits extends EntryBaseEmits {
|
|
7
|
-
/**
|
|
8
|
-
* Emitted when the checkout is ready.
|
|
9
|
-
*/
|
|
10
|
-
(e: 'ready'): void;
|
|
11
|
-
}
|