@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.
Files changed (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. 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
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. 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
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. 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
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. 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
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -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
- addressLine1?: ErrorObject[];
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
+ }
@@ -1,11 +1,12 @@
1
- import { AuthorizePaymentPayload, Invoice } from '../../../vendor/@solvimon/solvimon-types/index';
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?: AuthorizePaymentPayload['context'];
10
+ context?: PaymentAuthorizationContext;
10
11
  validateOnSubmit?: () => Promise<boolean>;
11
12
  }
@@ -1,6 +1,7 @@
1
- import { Address, Amount, AuthorizePaymentPayload, Invoice, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
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?: AuthorizePaymentPayload['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;
@@ -31,7 +31,18 @@ export interface CheckoutAuthorizationContext extends AuthorizePaymentInitPricin
31
31
  shipping_address_details?: ShippingAddressDetails;
32
32
  };
33
33
  }
34
- export type PaymentAuthorizationContext = AuthorizePaymentPayload['context'] | CheckoutAuthorizationContext | ChargeOnDemandAuthorizationContext;
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
+ }
@@ -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, originalEvent?: Event) => boolean;
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<PortalUrl>;
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
- declare var __VLS_9: {}, __VLS_12: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_9) => any;
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' | 'APPLE_PAY_ACTION_REQUIRED' | 'APPLE_PAY_FORM_INCOMPLETE' | 'CHECKOUT_FORM_STATE_NOT_SAVED' | 'CHECKOUT_SESSION_CLOSED' | 'INVOICE_PREVIEW_SKIPPED' | 'RECURRING_AMOUNT_UNRESOLVED' | 'ON_DEMAND_CHARGE_REFUSED' | 'PAYMENT_OUTCOME_UNCONFIRMED' | 'PROMOTION_CODE_REJECTED' | 'TRANSLATION_LOAD_FAILED' | 'UNSUPPORTED_LOCALE';
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' | 'EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR' | 'EXPRESS_CHECKOUT_PAYPAL_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_CANCELLATION_FAILED' | 'INITIAL_DATA_LOAD_FAILED' | 'SUBSCRIPTION_LOAD_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';
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 { PortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
3
- export declare const PORTAL_INJECTION_KEY: InjectionKey<Readonly<Ref<PortalUrl>>>;
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: PortalUrl | undefined, allowedPortalTypes?: PortalUrl['type'][]): PortalUnavailableReason | undefined;
10
+ export declare function getPortalUnavailableReason(portalObject: PortalObject | undefined, allowedPortalTypes?: PortalObject['type'][]): PortalUnavailableReason | undefined;
@@ -1,11 +1,11 @@
1
- import { PortalUrl } from '../../../vendor/@solvimon/solvimon-types/index';
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: PortalUrl;
6
+ portalObject: PortalObject;
7
7
  /**
8
8
  * The allowed portal types.
9
9
  */
10
- allowedPortalTypes?: PortalUrl['type'][];
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
- declare var __VLS_86: {}, __VLS_89: {}, __VLS_92: {};
7
- type __VLS_Slots = {} & {
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;
@@ -9,7 +9,7 @@ export interface ChargeOnDemandModalProps {
9
9
  items: ChargeOnDemandItem[];
10
10
  customer?: Customer;
11
11
  paymentMethods?: PaymentMethod[];
12
- canViewCreatedInvoice?: boolean;
12
+ showViewInvoiceButton?: boolean;
13
13
  }
14
14
  export interface ChargeOnDemandModalEmits {
15
15
  (e: 'close'): void;
@@ -1,13 +1,19 @@
1
1
  import { CountryCode, Invoice, Pricing, PricingPlanSubscriptionExpanded } from '../../vendor/@solvimon/solvimon-types/index';
2
+ import { OrderSummaryInvoiceSection } from './OrderSummaryInvoice.types';
3
+ import { UsagePriceGroup } from './OrderSummaryUsage.lib';
2
4
  export interface OrderSummaryProps {
3
5
  /**
4
6
  * The subscription to display.
5
7
  */
6
8
  subscription: PricingPlanSubscriptionExpanded;
9
+ /** Every subscription of an order of several, each summarised in place of `subscription`. */
10
+ subscriptions?: PricingPlanSubscriptionExpanded[];
7
11
  /**
8
12
  * The invoice to display.
9
13
  */
10
14
  invoice?: Invoice;
15
+ /** Lists the invoice's lines in these parts, such as one per customer of the order. */
16
+ invoiceSections?: OrderSummaryInvoiceSection[];
11
17
  /**
12
18
  * The invoice previews per billing period.
13
19
  */
@@ -32,6 +38,10 @@ export interface OrderSummaryProps {
32
38
  * Whether the invoice is usage based.
33
39
  */
34
40
  isUsageBased?: boolean;
41
+ /**
42
+ * The usage prices of the plan, grouped by pricing category.
43
+ */
44
+ usagePriceGroups?: UsagePriceGroup[];
35
45
  /**
36
46
  * Whether the subscription is collapsible, if not provided,
37
47
  * the subscription will be displayed in the expanded state.
@@ -53,4 +63,8 @@ export interface OrderSummaryProps {
53
63
  * The variant of the order summary.
54
64
  */
55
65
  variant?: 'default' | 'products-inline';
66
+ /**
67
+ * Whether a change to the order is still being priced: the invoice shown no longer applies.
68
+ */
69
+ isUpdating?: boolean;
56
70
  }
@@ -1,4 +1,13 @@
1
- import { Invoice } from '../../vendor/@solvimon/solvimon-types/index';
1
+ import { Invoice, PricingPlanSubscriptionExpanded } from '../../vendor/@solvimon/solvimon-types/index';
2
+ /** A part of the order with a heading of its own, such as one customer's subscriptions. */
3
+ export interface OrderSummaryInvoiceSection {
4
+ key: string;
5
+ title: string;
6
+ /** What this part comes to on its own; the totals still come from `invoice`. */
7
+ invoices: Invoice[];
8
+ /** The subscriptions this part is for, named beside its title. */
9
+ subscriptions?: PricingPlanSubscriptionExpanded[];
10
+ }
2
11
  export interface OrderSummaryInvoiceProps {
3
12
  invoice: Invoice;
4
13
  /** Priced instead of `invoice` in the totals, while a trial runs. */
@@ -13,4 +22,8 @@ export interface OrderSummaryInvoiceProps {
13
22
  * @default 'default'
14
23
  */
15
24
  variant?: 'default' | 'products-inline';
25
+ /** Lists the lines in these parts instead of from `invoice`, each with its own subtotal. */
26
+ sections?: OrderSummaryInvoiceSection[];
27
+ /** Blurs the invoice while a change is priced again, so a total that no longer applies does not read as current. */
28
+ isUpdating?: boolean;
16
29
  }
@@ -6,4 +6,13 @@ export interface PlanCustomizationEditorProps {
6
6
  initialUnitsValues?: ConfiguredMeterValue[];
7
7
  billingPeriod: BillingPeriod;
8
8
  currency?: Currency['currencyCode'];
9
+ /** The highest number of each seat and unit config, by config. */
10
+ maxSeatsValues?: ConfiguredMeterValue[];
11
+ maxUnitsValues?: ConfiguredMeterValue[];
12
+ /** The seat and unit configs that can be changed; every config when left out. */
13
+ editableConfigIds?: string[];
14
+ /** Leaves out the pricing groups and add-ons, for an order whose pricings are fixed. */
15
+ hidePricingChoices?: boolean;
16
+ /** Replaces the default title. */
17
+ title?: string;
9
18
  }
@@ -3,4 +3,8 @@ export interface SeatsEditorProps {
3
3
  modelValue: ConfiguredMeterValue[];
4
4
  initialSeatsValues?: ConfiguredMeterValue[];
5
5
  pricings: PricingExtended[];
6
+ /** The highest number of each config, by config. */
7
+ maxValues?: ConfiguredMeterValue[];
8
+ /** The configs that can be changed; every config when left out. */
9
+ editableConfigIds?: string[];
6
10
  }
@@ -3,4 +3,6 @@ export interface SeatsEditorItemProps {
3
3
  modelValue: ConfiguredMeterValue;
4
4
  defaultValue?: ConfiguredMeterValue;
5
5
  pricings: PricingExtended[];
6
+ maxValue?: ConfiguredMeterValue;
7
+ disabled?: boolean;
6
8
  }
@@ -3,4 +3,8 @@ export interface UnitsEditorProps {
3
3
  modelValue: ConfiguredMeterValue[];
4
4
  initialUnitsValues?: ConfiguredMeterValue[];
5
5
  pricings: PricingExtended[];
6
+ /** The highest number of each config, by config. */
7
+ maxValues?: ConfiguredMeterValue[];
8
+ /** The configs that can be changed; every config when left out. */
9
+ editableConfigIds?: string[];
6
10
  }
@@ -3,4 +3,6 @@ export interface UnitsEditorItemProps {
3
3
  modelValue: ConfiguredMeterValue;
4
4
  defaultValue?: ConfiguredMeterValue;
5
5
  pricings: PricingExtended[];
6
+ maxValue?: ConfiguredMeterValue;
7
+ disabled?: boolean;
6
8
  }
@@ -0,0 +1,4 @@
1
+ import { SubscriptionCancellationVariant } from '../../../services/subscriptions';
2
+ export interface SubscriptionCancellationSuccessProps {
3
+ variant: SubscriptionCancellationVariant;
4
+ }
@@ -1,22 +1,23 @@
1
1
  import { BillingPeriod, Currency, PaymentMethod, PricingGroupExtended } from '../../../vendor/@solvimon/solvimon-types/index';
2
+ import { SubscriptionPlanOption } from '../../../composables/useSubscriptionPlanGroup';
2
3
  export interface SubscriptionManagementFormProps {
3
4
  /** Lets a submit button outside the form name it with its `form` attribute. */
4
5
  id?: string;
5
- /** The group being changed. Its pricings are the options the customer picks between. */
6
- pricingGroup: PricingGroupExtended;
7
- /**
8
- * What the change can be charged to. The API only charges the subscription's own method, so
9
- * nothing can be added here.
10
- */
6
+ /** Absent when the plan offers nothing to customise, or while another plan is picked. */
7
+ pricingGroup?: PricingGroupExtended;
8
+ /** Cheapest first. Fewer than two leaves the plan choice out. */
9
+ planOptions?: SubscriptionPlanOption[];
11
10
  paymentMethods?: PaymentMethod[];
12
- /** The subscription's own method is a card that has expired, which is why none is on offer. */
11
+ /** The subscription's own method is a card that has expired, so it is not on offer. */
13
12
  hasExpiredPaymentMethod?: boolean;
14
- /** Drives how each pricing's amount is rendered on its option. */
15
13
  billingPeriod: BillingPeriod;
16
14
  currency?: Currency['currencyCode'];
17
15
  disabled?: boolean;
16
+ avatar?: string;
17
+ /** @default true */
18
+ canAddPaymentMethod?: boolean;
18
19
  }
19
20
  export interface SubscriptionManagementFormEmits {
20
- /** The customer submitted the form, from its own fields or a button tied to it by `form`. */
21
21
  (e: 'submit'): void;
22
+ (e: 'add-payment-method'): void;
22
23
  }
@@ -1,4 +1,9 @@
1
1
  export interface SubscriptionManagementSuccessProps {
2
+ /**
3
+ * The plan the subscription was moved to, when the change was a move within its pricing plan
4
+ * group. Named ahead of the pricing group, since the plan is the larger of the two changes.
5
+ */
6
+ pricingPlanName?: string;
2
7
  /**
3
8
  * What the subscription now runs on, named after the group it was chosen from — "Credit packs".
4
9
  * Left out when the group is not known, in which case the confirmation stays generic.
@@ -4,4 +4,7 @@ export interface SubscriptionManagementSummaryProps {
4
4
  invoice?: Invoice;
5
5
  isPending?: boolean;
6
6
  hasError?: boolean;
7
+ /** The plan the subscription runs on once the change is committed. */
8
+ planName?: string;
9
+ avatar?: string;
7
10
  }
@@ -0,0 +1,4 @@
1
+ import { PricingPlanGroupChangeType } from '../../../types/pricingPlanGroup';
2
+ export interface SubscriptionPlanChangeSummaryProps {
3
+ changeType?: PricingPlanGroupChangeType;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { SubscriptionPlanOption } from '../../../composables/useSubscriptionPlanGroup';
2
+ export interface SubscriptionPlanSelectorProps {
3
+ /** Cheapest first, the current plan among them. */
4
+ options: SubscriptionPlanOption[];
5
+ disabled?: boolean;
6
+ avatar?: string;
7
+ }