@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.32
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-Cx203VXo.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
- package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
- package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
- package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
- package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
- package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
- package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
- package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
- package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
- package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
- package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
- package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
- package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
- package/dist/adyen-CHgq2l6n.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 +1087 -1019
- 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-B8c354Nu.mjs} +802 -768
- package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
- package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
- package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
- package/dist/index.es-Bv55VtdE.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-I7PghcPV.mjs +143 -0
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
- package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-BKoKpoLN.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
- package/dist/pricing-Y-7ELzN-.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-CGm_-jJq.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 +1322 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
- 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/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-B7dNqi1C.mjs +99 -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/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
- 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 +199 -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-BCtk-FGU.mjs} +1 -1
- package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
- package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
- package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
- package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
- package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
- package/dist/usePortal-DuLR5Mid.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
- package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
- package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
- package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
- package/package.json +41 -11
- 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/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
- 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/Section.vue.es-Oqn1wGPZ.mjs +0 -72
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
- 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/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
- 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
|
@@ -195,18 +195,18 @@ function O(e) {
|
|
|
195
195
|
return t;
|
|
196
196
|
}
|
|
197
197
|
export {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
R as a,
|
|
199
|
+
T as b,
|
|
200
|
+
G as c,
|
|
201
201
|
P as d,
|
|
202
|
-
|
|
202
|
+
C as e,
|
|
203
203
|
U as f,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
M as g,
|
|
205
|
+
F as h,
|
|
206
|
+
I as i,
|
|
207
|
+
h as j,
|
|
208
|
+
B as k,
|
|
209
|
+
L as l,
|
|
210
210
|
N as m,
|
|
211
211
|
O as n
|
|
212
212
|
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { w as s, a as u } from "./api.es-QaC926Xu.mjs";
|
|
2
|
+
import { u as E, c as y, E as c, b as e } from "./customElements-B8c354Nu.mjs";
|
|
3
|
+
const a = ["portal", "pricing-plan-subscriptions"], N = {
|
|
4
|
+
CANCEL: "NEXT_BILLING_PERIOD",
|
|
5
|
+
RENEW: "UNDO"
|
|
6
|
+
};
|
|
7
|
+
function C() {
|
|
8
|
+
const i = E(), r = y();
|
|
9
|
+
async function p({
|
|
10
|
+
id: n,
|
|
11
|
+
expanded: t = !1
|
|
12
|
+
}) {
|
|
13
|
+
return r({
|
|
14
|
+
url: e(i.apiUrls.config, ...a, n),
|
|
15
|
+
query: s({ expandParams: c, expand: t })
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function l({
|
|
19
|
+
customerId: n,
|
|
20
|
+
pagination: t
|
|
21
|
+
}) {
|
|
22
|
+
const o = t ?? {}, S = s({
|
|
23
|
+
initialParams: {
|
|
24
|
+
customer_id: n,
|
|
25
|
+
statuses: ["ACTIVE"],
|
|
26
|
+
type: "BILLING"
|
|
27
|
+
},
|
|
28
|
+
expandParams: c
|
|
29
|
+
});
|
|
30
|
+
return r({
|
|
31
|
+
url: e(i.apiUrls.config, ...a),
|
|
32
|
+
query: u(S, o),
|
|
33
|
+
isCollection: !0
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function d({
|
|
37
|
+
customerId: n,
|
|
38
|
+
page: t,
|
|
39
|
+
pageSize: o
|
|
40
|
+
}) {
|
|
41
|
+
return r({
|
|
42
|
+
url: e(i.apiUrls.config, ...a),
|
|
43
|
+
query: u({ customer_id: n }, { page: t, pageSize: o }),
|
|
44
|
+
isCollection: !0
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async function g({
|
|
48
|
+
id: n,
|
|
49
|
+
variant: t
|
|
50
|
+
}) {
|
|
51
|
+
return r({
|
|
52
|
+
url: e(i.apiUrls.config, ...a, n, "cancel"),
|
|
53
|
+
data: { type: N[t] },
|
|
54
|
+
options: { method: "POST" }
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function f({
|
|
58
|
+
id: n
|
|
59
|
+
}) {
|
|
60
|
+
return r({
|
|
61
|
+
url: e(i.apiUrls.config, ...a, n, "pricing-plan-group"),
|
|
62
|
+
query: s({ expandParams: c }),
|
|
63
|
+
// A subscription on a plan that belongs to no group is the common case, not a failure.
|
|
64
|
+
options: { expectedStatusCodes: [404] }
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function m({
|
|
68
|
+
id: n,
|
|
69
|
+
pricingPlanId: t
|
|
70
|
+
}) {
|
|
71
|
+
return r({
|
|
72
|
+
url: e(i.apiUrls.config, ...a, n, "change-plan"),
|
|
73
|
+
data: { pricing_plan_id: t },
|
|
74
|
+
options: { method: "POST" }
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function P({
|
|
78
|
+
id: n,
|
|
79
|
+
paymentMethodId: t
|
|
80
|
+
}) {
|
|
81
|
+
return r({
|
|
82
|
+
url: e(i.apiUrls.config, ...a, n, "update-payment-method"),
|
|
83
|
+
data: { payment_method_id: t },
|
|
84
|
+
options: { method: "POST" }
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
setSubscriptionPaymentMethod: P,
|
|
89
|
+
getSubscription: p,
|
|
90
|
+
getActiveSubscriptions: l,
|
|
91
|
+
getSubscriptionsOfEveryStatus: d,
|
|
92
|
+
setSubscriptionCancellation: g,
|
|
93
|
+
changeSubscriptionPlan: m,
|
|
94
|
+
getSubscriptionPricingPlanGroup: f
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
C as c
|
|
99
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const i = (g, u) => {
|
|
2
|
+
const e = new Date(g), t = new Date(u), a = t.getFullYear() - e.getFullYear(), r = new Date(e);
|
|
3
|
+
if (r.setFullYear(r.getFullYear() + a), a > 0 && r.getTime() === t.getTime())
|
|
4
|
+
return { type: "YEAR", value: a };
|
|
5
|
+
const o = (t.getFullYear() - e.getFullYear()) * 12 + (t.getMonth() - e.getMonth()), l = new Date(e);
|
|
6
|
+
if (l.setMonth(l.getMonth() + o), o > 0 && l.getTime() === t.getTime())
|
|
7
|
+
return { type: "MONTH", value: o };
|
|
8
|
+
const n = Math.round((t.getTime() - e.getTime()) / (1e3 * 60 * 60 * 24));
|
|
9
|
+
return n > 0 && n % 7 === 0 ? { type: "WEEK", value: n / 7 } : { type: "DAY", value: n };
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
i as c
|
|
13
|
+
};
|
package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
import { Customer, FormFieldError } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
-
export type BillingInformationFormState = {
|
|
3
|
-
type: 'INDIVIDUAL' | 'ORGANIZATION';
|
|
4
|
-
email: string;
|
|
5
|
-
country: string;
|
|
6
|
-
companyLegalName?: string;
|
|
7
|
-
companyVatNumber?: string;
|
|
8
|
-
firstName?: string;
|
|
9
|
-
lastName?: string;
|
|
10
|
-
addressLine1: string;
|
|
11
|
-
addressLine2?: string;
|
|
12
|
-
postalCode: string;
|
|
13
|
-
city: string;
|
|
14
|
-
state?: string;
|
|
15
|
-
};
|
|
16
2
|
export interface BillingInformationFormProps {
|
|
17
3
|
customer?: Customer;
|
|
18
4
|
isLoading: boolean;
|
|
@@ -21,4 +7,15 @@ export interface BillingInformationFormProps {
|
|
|
21
7
|
customerId: Customer['id'];
|
|
22
8
|
payload: Partial<Customer>;
|
|
23
9
|
}) => Promise<Customer>;
|
|
10
|
+
/**
|
|
11
|
+
* Hides the form's own save button, for a host that saves it from its own chrome, such as a
|
|
12
|
+
* modal footer. Pair it with the exposed `submit()`.
|
|
13
|
+
*/
|
|
14
|
+
hideSubmitButton?: boolean;
|
|
15
|
+
/** Leaves out the heading above the contact details, for a host whose own title says it. */
|
|
16
|
+
hideContactHeading?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface BillingInformationFormEmits {
|
|
19
|
+
/** The changes were stored, or there were none to store. */
|
|
20
|
+
(e: 'saved'): void;
|
|
24
21
|
}
|
|
@@ -10,13 +10,6 @@ export interface CheckoutAddressFieldsProps {
|
|
|
10
10
|
countryLabel?: string;
|
|
11
11
|
format?: AddressFormat;
|
|
12
12
|
getOptionalSuffix: (field: keyof CheckoutFormState) => string;
|
|
13
|
-
errors
|
|
14
|
-
|
|
15
|
-
postalCode?: ErrorObject[];
|
|
16
|
-
city?: ErrorObject[];
|
|
17
|
-
state?: ErrorObject[];
|
|
18
|
-
country?: ErrorObject[];
|
|
19
|
-
phoneNumber?: ErrorObject[];
|
|
20
|
-
lastName?: ErrorObject[];
|
|
21
|
-
};
|
|
13
|
+
/** The form's own errors, or a message from the API. */
|
|
14
|
+
errors?: Partial<Record<'addressLine1' | 'postalCode' | 'city' | 'state' | 'country' | 'phoneNumber' | 'lastName', ErrorObject[] | string>>;
|
|
22
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConfiguredMeterValue, CountryCode, Pricing } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { useCheckoutForm } from './useCheckoutForm';
|
|
3
3
|
import { AddressFormat } from './addressFormat';
|
|
4
|
+
import { CheckoutFormDisplay } from './CheckoutForm.lib';
|
|
4
5
|
export interface CheckoutFormProps {
|
|
5
6
|
validation: ReturnType<typeof useCheckoutForm>['validation'];
|
|
6
7
|
initialState?: Partial<CheckoutFormState>;
|
|
@@ -11,6 +12,12 @@ export interface CheckoutFormProps {
|
|
|
11
12
|
getIsFieldRequired: (field: keyof CheckoutFormState) => boolean;
|
|
12
13
|
shippingAddressFormat?: AddressFormat;
|
|
13
14
|
readOnly?: boolean;
|
|
15
|
+
/** Left out, every group is editable. */
|
|
16
|
+
display?: CheckoutFormDisplay;
|
|
17
|
+
/** Hides the individual/company switch, keeping the type the form holds. */
|
|
18
|
+
isTypeLocked?: boolean;
|
|
19
|
+
/** In place of the default title of the customer's section. */
|
|
20
|
+
title?: string;
|
|
14
21
|
}
|
|
15
22
|
export interface CheckoutFormEmits {
|
|
16
23
|
(e: 'submit', state: CheckoutFormState): void;
|
|
@@ -29,6 +36,9 @@ export interface CheckoutFormState {
|
|
|
29
36
|
city: string | undefined;
|
|
30
37
|
state: string | undefined;
|
|
31
38
|
companyVatNumber: string | undefined;
|
|
39
|
+
companyRegistrationNumber?: string;
|
|
40
|
+
taxExempt?: boolean;
|
|
41
|
+
taxExemptNote?: string;
|
|
32
42
|
shippingAddressLine1: string | undefined;
|
|
33
43
|
shippingAddressLine2: string | undefined;
|
|
34
44
|
shippingPostalCode: string | undefined;
|
|
@@ -2,7 +2,13 @@ import { PaymentMethod } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
|
2
2
|
export interface CustomerPaymentMethodsBlockProps {
|
|
3
3
|
paymentMethods: PaymentMethod[];
|
|
4
4
|
showViewAllButton?: boolean;
|
|
5
|
+
/** Labels that button Manage, for a host that manages the methods in place rather than listing them. */
|
|
6
|
+
isManaged?: boolean;
|
|
5
7
|
showAddButton?: boolean;
|
|
8
|
+
/** The gateway offers no method to add, so the block says so instead of offering to add one. */
|
|
9
|
+
hasNoPaymentMethodOptions?: boolean;
|
|
10
|
+
/** The block leaves out some of the methods, so it links to all of them. */
|
|
11
|
+
hasMorePaymentMethods?: boolean;
|
|
6
12
|
}
|
|
7
13
|
export interface CustomerPaymentMethodsBlockEmits {
|
|
8
14
|
(e: 'view-all-payment-methods'): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Customer, PricingPlanSubscription } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export interface AddPaymentMethodModalProps {
|
|
3
|
+
showModal: boolean;
|
|
4
|
+
/** Who the method is stored for. The form needs their country, name and email. */
|
|
5
|
+
customer?: Customer;
|
|
6
|
+
/**
|
|
7
|
+
* The subscription the method is for, when there is one. Narrows what is on offer to the ways
|
|
8
|
+
* it can be paid, so the customer cannot store a method it would not accept.
|
|
9
|
+
*/
|
|
10
|
+
subscription?: Pick<PricingPlanSubscription, 'id' | 'payment_acceptor_ids'>;
|
|
11
|
+
subTitle?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AddPaymentMethodModalEmits {
|
|
14
|
+
/** The host reloads its methods to pick the stored one up. */
|
|
15
|
+
(e: 'stored'): void;
|
|
16
|
+
(e: 'close'): void;
|
|
17
|
+
}
|
package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Invoice } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { ExpressPaymentMethodProps } from './ExpressPaymentMethod.types';
|
|
3
3
|
import { CheckoutFormState } from '../../customer/CheckoutForm/CheckoutForm.types';
|
|
4
|
+
import { PaymentAuthorizationContext } from '../PaymentIntegrationForm/PaymentIntegrationForm.types';
|
|
4
5
|
export interface ExpressPaymentMethodApplePayProps extends ExpressPaymentMethodProps {
|
|
5
6
|
onBillingInformationChange: (state: Partial<CheckoutFormState>) => Promise<{
|
|
6
7
|
trialInvoicePreview: Invoice;
|
|
7
8
|
invoicePreview: Invoice;
|
|
8
9
|
}>;
|
|
9
|
-
context?:
|
|
10
|
+
context?: PaymentAuthorizationContext;
|
|
10
11
|
validateOnSubmit?: () => Promise<boolean>;
|
|
11
12
|
}
|
package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Address, Amount,
|
|
1
|
+
import { Address, Amount, Invoice, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { ExpressPaymentMethodProps } from '../ExpressPaymentMethod/ExpressPaymentMethod.types';
|
|
3
3
|
import { CheckoutFormState } from '../../customer/CheckoutForm/CheckoutForm.types';
|
|
4
|
+
import { PaymentAuthorizationContext } from '../PaymentIntegrationForm/PaymentIntegrationForm.types';
|
|
4
5
|
export interface ExpressPaymentMethodsProps {
|
|
5
6
|
amount: Amount;
|
|
6
7
|
countryCode: string;
|
|
@@ -15,7 +16,7 @@ export interface ExpressPaymentMethodsProps {
|
|
|
15
16
|
trialInvoicePreview: Invoice;
|
|
16
17
|
invoicePreview: Invoice;
|
|
17
18
|
}>;
|
|
18
|
-
context?:
|
|
19
|
+
context?: PaymentAuthorizationContext;
|
|
19
20
|
validateOnSubmit?: () => Promise<boolean>;
|
|
20
21
|
}
|
|
21
22
|
export interface ExpressPaymentMethodsEmits {
|
|
@@ -14,6 +14,8 @@ export interface OnDemandPaymentModalShellProps {
|
|
|
14
14
|
customer?: Customer;
|
|
15
15
|
paymentMethodOptions?: PaymentMethodOptionsResponse;
|
|
16
16
|
isPaymentMethodOptionsPending?: boolean;
|
|
17
|
+
/** Leaves out the space below the panes, for content that ends in a link rather than a card. */
|
|
18
|
+
noBottomSpacing?: boolean;
|
|
17
19
|
}
|
|
18
20
|
export interface OnDemandPaymentModalShellEmits {
|
|
19
21
|
(e: 'confirm'): void;
|
package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts
CHANGED
|
@@ -31,7 +31,18 @@ export interface CheckoutAuthorizationContext extends AuthorizePaymentInitPricin
|
|
|
31
31
|
shipping_address_details?: ShippingAddressDetails;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Not in `@solvimon/solvimon-types` yet. The session decides the payer, the amount and the payment
|
|
36
|
+
* method; `version` is the one the price on screen was previewed at.
|
|
37
|
+
*/
|
|
38
|
+
export interface CheckoutSessionAuthorizationContext {
|
|
39
|
+
type: 'CHECKOUT_SESSION';
|
|
40
|
+
checkout_session: {
|
|
41
|
+
portal_url_id: string;
|
|
42
|
+
version: number;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export type PaymentAuthorizationContext = AuthorizePaymentPayload['context'] | CheckoutAuthorizationContext | ChargeOnDemandAuthorizationContext | CheckoutSessionAuthorizationContext;
|
|
35
46
|
interface BasePaymentIntegrationFormProps {
|
|
36
47
|
paymentMethodOptions: PaymentMethodOptionsResponse;
|
|
37
48
|
countryCode: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PaymentMethod } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export interface PaymentMethodsListProps {
|
|
3
3
|
paymentMethods: PaymentMethod[];
|
|
4
|
+
/** Leaves out each card's menu, for a summary whose methods are managed elsewhere. */
|
|
5
|
+
hideOptions?: boolean;
|
|
4
6
|
}
|
|
5
7
|
export interface PaymentMethodsListEmits {
|
|
6
8
|
(e: 'delete', paymentMethod: PaymentMethod): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Customer, PaymentMethod, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
export declare const PAYMENT_METHODS_MODAL_STEPS: readonly ["LIST", "ADD_PAYMENT_METHOD"];
|
|
3
|
+
export type PaymentMethodsModalStep = (typeof PAYMENT_METHODS_MODAL_STEPS)[number];
|
|
4
|
+
export interface PaymentMethodsModalProps {
|
|
5
|
+
showModal: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Where the modal opens. Opened on adding a method, it closes once one is stored rather than
|
|
8
|
+
* going on to the list.
|
|
9
|
+
* @default 'LIST'
|
|
10
|
+
*/
|
|
11
|
+
start?: PaymentMethodsModalStep;
|
|
12
|
+
customer?: Customer;
|
|
13
|
+
paymentMethods: PaymentMethod[];
|
|
14
|
+
/** Options the host already looked up; without them the modal looks them up when it opens. */
|
|
15
|
+
paymentMethodOptions?: PaymentMethodOptionsResponse;
|
|
16
|
+
}
|
|
17
|
+
export interface PaymentMethodsModalEmits {
|
|
18
|
+
(e: 'close'): void;
|
|
19
|
+
/** A method was stored, made the default or deleted: the methods shown elsewhere are stale. */
|
|
20
|
+
(e: 'changed'): void;
|
|
21
|
+
(e: 'payment-failed', error: unknown): void;
|
|
22
|
+
}
|
package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ActionRequestDetail } from '../../../public/core/action-request.types';
|
|
2
2
|
export type { ActionRequestDetail } from '../../../public/core/action-request.types';
|
|
3
|
-
export type RequestAction = (detail: ActionRequestDetail
|
|
3
|
+
export type RequestAction = (detail: ActionRequestDetail) => void;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { AuthProviderProps } from './AuthProvider.types';
|
|
2
|
-
declare var __VLS_1: {}, __VLS_3: {
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
3
|
+
ending: {
|
|
4
|
+
state: "ended";
|
|
5
|
+
reason: import('./AuthProvider.lib').PortalLinkEnding;
|
|
6
|
+
checkoutSessionStatus?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
};
|
|
3
9
|
type __VLS_Slots = {} & {
|
|
4
10
|
default?: (props: typeof __VLS_1) => any;
|
|
5
11
|
} & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
1
|
import { ProviderProps } from '../Provider/Provider.types';
|
|
3
2
|
import { EntryBaseProps } from '../../../types/EntryBaseProps';
|
|
3
|
+
import { PortalObject } from '../../../types/checkoutSession';
|
|
4
4
|
export interface EntryProviderProps {
|
|
5
5
|
/** The entry component's own props, which already carry everything the providers need. */
|
|
6
|
-
entry: EntryBaseProps<
|
|
6
|
+
entry: EntryBaseProps<PortalObject>;
|
|
7
7
|
componentName: string;
|
|
8
8
|
/** Which portal the entry accepts, decided by the entry rather than by its consumer. */
|
|
9
9
|
allowedPortalTypes: NonNullable<ProviderProps['allowedPortalTypes']>;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { EntryProviderProps } from './EntryProvider.types';
|
|
2
|
-
|
|
3
|
-
type __VLS_Slots =
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
'portal-unavailable'?: (props: typeof __VLS_12) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_base: import('vue').DefineComponent<EntryProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
-
error: (error: Error) => any;
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<EntryProviderProps> & Readonly<{
|
|
11
|
-
onError?: ((error: Error) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
2
|
+
import { ProviderSlots } from '../Provider/Provider.types';
|
|
3
|
+
type __VLS_Slots = ProviderSlots;
|
|
4
|
+
declare const __VLS_base: import('vue').DefineComponent<EntryProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EntryProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
5
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
6
|
declare const _default: typeof __VLS_export;
|
|
15
7
|
export default _default;
|
|
@@ -2,11 +2,7 @@ declare var __VLS_9: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_9) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
error: (error: Error) => any;
|
|
7
|
-
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
8
|
-
onError?: ((error: Error) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
6
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
7
|
declare const _default: typeof __VLS_export;
|
|
12
8
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentInternalInstance, InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { SolvimonEventMap } from '../../../public/core/events.types';
|
|
2
3
|
export interface HostElementContext {
|
|
3
4
|
/**
|
|
4
5
|
* The host element for the current component tree (custom element or mount container).
|
|
@@ -15,3 +16,13 @@ export declare const HOST_ELEMENT_PROVIDER_INJECTION_KEY: InjectionKey<HostEleme
|
|
|
15
16
|
* only, which is why `useHost()` returns nothing below the entry component.
|
|
16
17
|
*/
|
|
17
18
|
export declare function getCustomElementHost(instance: ComponentInternalInstance | null): HTMLElement | null;
|
|
19
|
+
/**
|
|
20
|
+
* Dispatches an SDK event on `host`: one of `SolvimonEventMap`, with the detail it declares. Every
|
|
21
|
+
* SDK event bubbles and crosses the shadow root, so one listener on a container hears every element
|
|
22
|
+
* inside it. Only `solvimon-payment-succeeded` is cancelable, since only it has a default action, the
|
|
23
|
+
* checkout's redirect, that a host could stop. Without a host there is no one to tell, and it
|
|
24
|
+
* dispatches nothing.
|
|
25
|
+
*
|
|
26
|
+
* @returns `false` when a listener cancelled the event.
|
|
27
|
+
*/
|
|
28
|
+
export declare function dispatchHostEvent<K extends keyof SolvimonEventMap>(host: HTMLElement | null | undefined, name: K, detail: SolvimonEventMap[K]['detail']): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SolvimonEventMap } from '../../../../public/core/events.types';
|
|
2
|
+
/** Dispatches SDK events from a component, and names the element it renders in. */
|
|
3
|
+
export interface HostEvent {
|
|
4
|
+
dispatch: <K extends keyof SolvimonEventMap>(name: K, detail: SolvimonEventMap[K]['detail']) => boolean;
|
|
5
|
+
/** The tag name of the element, for a `detail` that says where it came from. */
|
|
6
|
+
componentName: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Dispatches SDK events on the element the tree renders into (see `dispatchHostEvent`). Outside an
|
|
10
|
+
* element, as a screen mounted on its own in a spec is, it dispatches nothing and returns `true`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useHostEvent(): HostEvent;
|
|
@@ -17,9 +17,10 @@ export type LogEntry = {
|
|
|
17
17
|
* What happened, as a stable identifier. Filter and branch on this rather than on `message`:
|
|
18
18
|
* codes are part of the SDK's contract and are listed in the README, messages are not and are
|
|
19
19
|
* reworded freely. A `string` is accepted alongside the known codes because `debug` and `info`
|
|
20
|
-
* entries carry ad-hoc ones.
|
|
20
|
+
* entries carry ad-hoc ones. `string & Record<never, never>` keeps that from swallowing the
|
|
21
|
+
* known codes, so an editor still offers them.
|
|
21
22
|
*/
|
|
22
|
-
code: ErrorCode | WarnCode | string;
|
|
23
|
+
code: ErrorCode | WarnCode | (string & Record<never, never>);
|
|
23
24
|
/** A human-readable line for a person reading logs. Not stable — never match on it. */
|
|
24
25
|
message: string;
|
|
25
26
|
/** When the entry was created, as an ISO 8601 string. */
|
|
@@ -77,5 +78,5 @@ export interface LoggerProviderProps {
|
|
|
77
78
|
}
|
|
78
79
|
export type WarnCode =
|
|
79
80
|
/** Also an `ErrorCode`: the level separates a failure the SDK absorbed from one it did not. */
|
|
80
|
-
'REQUEST_FAILED' | 'ACTIVE_SCHEDULE_NOT_FOUND' | 'MISSING_REQUIRED_PROPERTIES' | 'UI_COMPONENT_RECOVERED' | 'ADYEN_INVALID_CONFIGURATION' | 'PAYMENT_INTEGRATION_NOT_RENDERABLE' | '
|
|
81
|
-
export type ErrorCode = 'REQUEST_FAILED' | 'UNHANDLED_ERROR' | 'RESOURCE_REVOKED' | 'PORTAL_TYPE_NOT_ALLOWED' | 'INVALID_EMAIL' | 'INVALID_COUNTRY_CODE' | 'PAYMENT_INTEGRATION_INITIALIZATION_FAILED' | 'PAYMENT_AUTHORIZATION_FAILED' | 'TOKENIZATION_FAILED' | 'INVALID_TOKEN' | 'SESSION_EXPIRED' | 'PORTAL_URL_EXPIRED' | 'PORTAL_URL_REVOKED' | 'PORTAL_TOKEN_UNAVAILABLE' | 'INVALID_REDIRECT_RESULT' | 'PAYMENT_DETAILS_CALL_FAILED' | 'PAYMENT_METHOD_OPTIONS_LOAD_FAILED' | 'NO_PAYMENT_METHODS_AVAILABLE' | 'INTEGRATION_ERROR' | '
|
|
81
|
+
'REQUEST_FAILED' | 'ACTIVE_SCHEDULE_NOT_FOUND' | 'MISSING_REQUIRED_PROPERTIES' | 'UI_COMPONENT_RECOVERED' | 'ADYEN_INVALID_CONFIGURATION' | 'PAYMENT_INTEGRATION_NOT_RENDERABLE' | 'APPLE_PAY_FORM_INCOMPLETE' | 'CHECKOUT_FORM_STATE_NOT_SAVED' | 'CHECKOUT_SESSION_CLOSED' | 'CHECKOUT_SESSION_UPDATE_REFUSED' | 'CHECKOUT_SESSION_EDIT_NOT_APPLIED' | 'CHECKOUT_SESSION_SEVERAL_INVOICES' | 'CHECKOUT_SESSION_COMPLETION_CHECK_FAILED' | 'INVOICE_PREVIEW_SKIPPED' | 'RECURRING_AMOUNT_UNRESOLVED' | 'ON_DEMAND_CHARGE_REFUSED' | 'PAYMENT_OUTCOME_UNCONFIRMED' | 'PROMOTION_CODE_REJECTED' | 'TRANSLATION_LOAD_FAILED' | 'UNSUPPORTED_LOCALE';
|
|
82
|
+
export type ErrorCode = 'REQUEST_FAILED' | 'UNHANDLED_ERROR' | 'RESOURCE_REVOKED' | 'PORTAL_TYPE_NOT_ALLOWED' | 'INVALID_EMAIL' | 'INVALID_COUNTRY_CODE' | 'PAYMENT_INTEGRATION_INITIALIZATION_FAILED' | 'PAYMENT_AUTHORIZATION_FAILED' | 'TOKENIZATION_FAILED' | 'INVALID_TOKEN' | 'SESSION_EXPIRED' | 'PORTAL_URL_EXPIRED' | 'PORTAL_URL_REVOKED' | 'PORTAL_TOKEN_UNAVAILABLE' | 'INVALID_REDIRECT_RESULT' | 'PAYMENT_DETAILS_CALL_FAILED' | 'PAYMENT_METHOD_OPTIONS_LOAD_FAILED' | 'NO_PAYMENT_METHODS_AVAILABLE' | 'INTEGRATION_ERROR' | 'APPLE_PAY_ERROR' | 'APPLE_PAY_AUTHORIZATION_FAILED' | 'PROMOTION_CODE_APPLY_FAILED' | 'PROMOTION_CODE_REMOVE_FAILED' | 'SUBSCRIPTION_UPDATE_FAILED' | 'SHIPPED_SUBSCRIPTIONS_LOAD_FAILED' | 'SHIPPING_ADDRESSES_LOAD_FAILED' | 'SHIPPING_ADDRESS_SAVE_FAILED' | 'SHIPPING_ADDRESS_DELETE_FAILED' | 'SUBSCRIPTION_PLAN_CHANGE_FAILED' | 'SUBSCRIPTION_PAYMENT_METHOD_UPDATE_FAILED' | 'PRICING_PLAN_GROUP_LOAD_FAILED' | 'SUBSCRIPTION_CANCELLATION_FAILED' | 'INITIAL_DATA_LOAD_FAILED' | 'SUBSCRIPTION_LOAD_FAILED' | 'CHECKOUT_SESSION_LOAD_FAILED' | 'CHECKOUT_SESSION_UPDATE_FAILED' | 'INVOICE_PREVIEW_FAILED' | 'TOP_UP_FAILED' | 'ON_DEMAND_ITEMS_LOAD_FAILED' | 'ON_DEMAND_CHARGE_FAILED' | 'AUTO_TOP_UP_SAVE_FAILED' | 'AUTO_TOP_UP_CANCELLATION_FAILED' | 'REQUEST_PARSE_FAILED' | 'ADYEN_SUBMIT_FAILED' | 'STRIPE_SUBMIT_FAILED' | 'STRIPE_CONFIRMATION_TOKEN_FAILED' | 'STRIPE_ACTION_FAILED' | 'STRIPE_REDIRECT_RETURN_FAILED' | 'ADYEN_PAYMENT_FAILED' | 'PAYMENT_DETAILS_REJECTED' | 'PAYMENT_ACCEPTOR_MISSING';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
export declare const PORTAL_INJECTION_KEY: InjectionKey<Readonly<Ref<
|
|
2
|
+
import { PortalObject } from '../../../types/checkoutSession';
|
|
3
|
+
export declare const PORTAL_INJECTION_KEY: InjectionKey<Readonly<Ref<PortalObject>>>;
|
|
4
4
|
export type PortalUnavailableReason = 'missing' | 'type-not-allowed' | 'not-published';
|
|
5
5
|
/**
|
|
6
6
|
* Why an element cannot use the portal object it was given, or `undefined` when it can. Every
|
|
7
7
|
* request the tree below makes is on the portal's behalf, so a portal of another type or one that
|
|
8
8
|
* was revoked must stop the element before any of them go out.
|
|
9
9
|
*/
|
|
10
|
-
export declare function getPortalUnavailableReason(portalObject:
|
|
10
|
+
export declare function getPortalUnavailableReason(portalObject: PortalObject | undefined, allowedPortalTypes?: PortalObject['type'][]): PortalUnavailableReason | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PortalObject } from '../../../types/checkoutSession';
|
|
2
2
|
export type PortalProviderProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The portal object to be used for the portal.
|
|
5
5
|
*/
|
|
6
|
-
portalObject:
|
|
6
|
+
portalObject: PortalObject;
|
|
7
7
|
/**
|
|
8
8
|
* The allowed portal types.
|
|
9
9
|
*/
|
|
10
|
-
allowedPortalTypes?:
|
|
10
|
+
allowedPortalTypes?: PortalObject['type'][];
|
|
11
11
|
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PortalProviderProps } from './PortalProvider.types';
|
|
2
|
-
declare var __VLS_1: {}, __VLS_3: {
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
3
|
+
ending: {
|
|
4
|
+
readonly state: "ended";
|
|
5
|
+
readonly reason: "revoked";
|
|
6
|
+
} | undefined;
|
|
7
|
+
};
|
|
3
8
|
type __VLS_Slots = {} & {
|
|
4
9
|
default?: (props: typeof __VLS_1) => any;
|
|
5
10
|
} & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { PortalUrl } from '../../../../vendor/@solvimon/solvimon-types/index';
|
|
3
|
+
/** The portal of an element that does not take a checkout session link, which PortalProvider refuses. */
|
|
3
4
|
export declare function usePortal(): Readonly<Ref<PortalUrl>>;
|
|
@@ -4,12 +4,19 @@ import { LoggerProviderProps } from '../LoggerProvider/LoggerProvider.types';
|
|
|
4
4
|
import { ExperimentalFeatureProviderProps } from '../ExperimentalFeatureProvider/ExperimentalFeatureProvider.types';
|
|
5
5
|
import { PortalProviderProps } from '../PortalProvider/PortalProvider.types';
|
|
6
6
|
import { AuthProviderProps } from '../AuthProvider';
|
|
7
|
+
import { AuthStatus } from '../AuthProvider/AuthProvider.lib';
|
|
7
8
|
import { ConfigProviderProps } from '../ConfigProvider/ConfigProvider.types';
|
|
8
9
|
import { TranslationProviderProps } from '../TranslationProvider/TranslationProvider.types';
|
|
9
10
|
import { CssOverridesProviderProps } from '../CssOverridesProvider/CssOverridesProvider.types';
|
|
10
11
|
export interface RequiredProviderProps extends Omit<AuthProviderProps, 'token' | 'authentication'>, ConfigProviderProps, TranslationProviderProps, BrandProviderProps, ExperimentalFeatureProviderProps, LoggerProviderProps, Pick<PortalProviderProps, 'allowedPortalTypes' | 'portalObject'>, HostElementProviderProps, CssOverridesProviderProps {
|
|
11
12
|
}
|
|
12
|
-
export interface ProviderEmits {
|
|
13
|
-
(e: 'error', error: Error): void;
|
|
14
|
-
}
|
|
15
13
|
export type ProviderProps = RequiredProviderProps;
|
|
14
|
+
export interface ProviderSlots {
|
|
15
|
+
default?: () => unknown;
|
|
16
|
+
/** `ending` is set when the exchange found the link expired, revoked or closed. */
|
|
17
|
+
'portal-unavailable'?: (props: {
|
|
18
|
+
ending?: Extract<AuthStatus, {
|
|
19
|
+
state: 'ended';
|
|
20
|
+
}>;
|
|
21
|
+
}) => unknown;
|
|
22
|
+
}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import { ProviderProps } from './Provider.types';
|
|
1
|
+
import { ProviderProps, ProviderSlots } from './Provider.types';
|
|
2
2
|
type __VLS_Props = ProviderProps & {
|
|
3
3
|
/** Required properties the entry was given no value for; nothing below renders until set. */
|
|
4
4
|
missingProperties?: string[];
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
default?: (props: typeof __VLS_86) => any;
|
|
9
|
-
} & {
|
|
10
|
-
'portal-unavailable'?: (props: typeof __VLS_89) => any;
|
|
11
|
-
} & {
|
|
12
|
-
'portal-unavailable'?: (props: typeof __VLS_92) => any;
|
|
13
|
-
};
|
|
14
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
-
error: (error: Error) => any;
|
|
16
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onError?: ((error: Error) => any) | undefined;
|
|
18
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
type __VLS_Slots = ProviderSlots;
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
9
|
declare const _default: typeof __VLS_export;
|
|
21
10
|
export default _default;
|
package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface ChargeOnDemandModalProps {
|
|
|
9
9
|
items: ChargeOnDemandItem[];
|
|
10
10
|
customer?: Customer;
|
|
11
11
|
paymentMethods?: PaymentMethod[];
|
|
12
|
-
|
|
12
|
+
showViewInvoiceButton?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export interface ChargeOnDemandModalEmits {
|
|
15
15
|
(e: 'close'): void;
|