@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
@@ -1,6 +1,6 @@
1
1
  import { ref as i } from "vue";
2
- import { c as m } from "./customer-lf6S5DBR.mjs";
3
- import { u as s } from "./useService-BwzIBIRp.mjs";
2
+ import { c as m } from "./customer-CNCSN_G5.mjs";
3
+ import { u as s } from "./useService-DayNZhPh.mjs";
4
4
  function C({ customerId: r }) {
5
5
  const { getCustomer: u, updateCustomer: o } = m(), e = i(), { data: p, ...c } = s({
6
6
  service: async () => {
@@ -0,0 +1,39 @@
1
+ import { computed as N, watch as O } from "vue";
2
+ const x = (c) => {
3
+ const n = Date.parse(c ?? "");
4
+ return Number.isFinite(n) ? n : 0;
5
+ };
6
+ function T({
7
+ paymentMethods: c,
8
+ selectedPaymentMethodId: n,
9
+ preferredPaymentMethodId: f
10
+ }) {
11
+ const _ = N(
12
+ () => [...c.value ?? []].sort(
13
+ (a, l) => x(l.created_at) - x(a.created_at)
14
+ )
15
+ );
16
+ return O(
17
+ () => [
18
+ c.value,
19
+ f == null ? void 0 : f.value,
20
+ n.value
21
+ ],
22
+ ([a, l, F], t) => {
23
+ var w;
24
+ const u = t == null ? void 0 : t[0], b = a == null ? void 0 : a.find(
25
+ ({ id: i }) => !(u != null && u.some((D) => D.id === i))
26
+ );
27
+ if (b && (u != null && u.length)) {
28
+ n.value = b.id;
29
+ return;
30
+ }
31
+ const g = (i) => !!i && !!(a != null && a.some((D) => D.id === i));
32
+ g(F) || (n.value = g(l) ? l : (w = (a == null ? void 0 : a.find(({ is_default: i }) => i)) ?? _.value[0]) == null ? void 0 : w.id);
33
+ },
34
+ { immediate: !0 }
35
+ ), { sortedPaymentMethods: _ };
36
+ }
37
+ export {
38
+ T as u
39
+ };
@@ -0,0 +1,6 @@
1
+ import { inject as e } from "vue";
2
+ import { h as r } from "./customElements-d7Bhfqi_.mjs";
3
+ const m = () => e(r);
4
+ export {
5
+ m as u
6
+ };
@@ -0,0 +1,12 @@
1
+ import { inject as o } from "vue";
2
+ import { H as m, g as E } from "./customElements-d7Bhfqi_.mjs";
3
+ function c() {
4
+ const t = o(m, null);
5
+ return {
6
+ dispatch: (e, n) => E(t == null ? void 0 : t.hostRef.value, e, n),
7
+ componentName: (t == null ? void 0 : t.customElementName) ?? ""
8
+ };
9
+ }
10
+ export {
11
+ c as u
12
+ };
@@ -1,7 +1,7 @@
1
1
  import { A as e } from "./ApiStatus-CSFKl_ra.mjs";
2
- import { g as q } from "./api.es-qgvzNMU-.mjs";
2
+ import { g as q } from "./api.es-QaC926Xu.mjs";
3
3
  import { shallowRef as A, ref as f, computed as h } from "vue";
4
- import { t as w } from "./customElements-DK4GKNJG.mjs";
4
+ import { t as w } from "./customElements-d7Bhfqi_.mjs";
5
5
  function y(u) {
6
6
  return "data" in u && "links" in u;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { ref as n, onMounted as m } from "vue";
2
- import { c as f } from "./invoices-DdREPDXV.mjs";
3
- import { c as l } from "./payments-CKpU1K3t.mjs";
2
+ import { c as f } from "./invoices-CXvL8KQx.mjs";
3
+ import { c as l } from "./payments-Dy81gmkC.mjs";
4
4
  function y(e, { includePayments: o = !1 } = {}) {
5
5
  const { getInvoice: c } = f(), { getPayments: s } = l(), t = n(), a = n(!0);
6
6
  return m(async () => {
@@ -1,17 +1,17 @@
1
1
  import { inject as L, defineComponent as I, provide as x, computed as s, openBlock as i, createElementBlock as m, renderSlot as C, ref as O, onMounted as oe, onBeforeUnmount as H, normalizeClass as A, unref as e, Fragment as Z, createElementVNode as P, toDisplayString as p, createCommentVNode as T, createBlock as y, resolveDynamicComponent as ne, normalizeStyle as le, withCtx as a, createVNode as f, createTextVNode as g, useSlots as ie, shallowRef as ae, watchPostEffect as se, nextTick as re, renderList as ce, createSlots as ue, withModifiers as de } from "vue";
2
- import { _ as ve } from "./Section.vue.es-Oqn1wGPZ.mjs";
3
- import { a as Q, d as U } from "./customElements-DK4GKNJG.mjs";
2
+ import { _ as ve } from "./Section.vue.es-CwKTCeZ1.mjs";
3
+ import { a as Q, d as U } from "./customElements-d7Bhfqi_.mjs";
4
4
  import { _ as fe } from "./Amount.vue.es-DPqHB8Xd.mjs";
5
- import { a as R, _ as F } from "./Button.vue.es-j7iYlqtJ.mjs";
6
- import { _ as V } from "./Chip.vue.es-Dxx_0dte.mjs";
7
- import { _ as me } from "./ErrorNotification.vue.es-F068p7PY.mjs";
8
- import { _ as _e, T as be, a as he } from "./TooltipParagraph.vue.es-BES3zsYN.mjs";
5
+ import { a as R, _ as F } from "./Button.vue.es-BHbanjR0.mjs";
6
+ import { _ as V } from "./Chip.vue.es-Dc6-PjEn.mjs";
7
+ import { _ as me } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
8
+ import { _ as _e, T as be, a as he } from "./TooltipParagraph.vue.es-4HaXi8RP.mjs";
9
9
  import { _ as pe } from "./useLazyFloating.es-CycqRyeb.mjs";
10
10
  import { g as j, i as ge, a as ye, b as we } from "./invoiceState-BJVHaKs7.mjs";
11
- import { u as ke } from "./useActionDispatchProvider-ChAHdwR8.mjs";
11
+ import { u as ke } from "./useActionDispatchProvider-BWna0S6N.mjs";
12
12
  import { r as Ce } from "./configuration-BytDBAWs.mjs";
13
- import { u as $e } from "./useIncrementalLoading-CBVutPH8.mjs";
14
- import { c as Le } from "./invoices-DdREPDXV.mjs";
13
+ import { u as $e } from "./useIncrementalLoading-B3gp58X-.mjs";
14
+ import { c as Le } from "./invoices-CXvL8KQx.mjs";
15
15
  const Ie = Symbol.for("solvimon-ui:navigation"), xe = {
16
16
  resolve: (t) => typeof t == "string" ? t : void 0
17
17
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as r, onMounted as i } from "vue";
2
- import { e as n } from "./customElements-DK4GKNJG.mjs";
2
+ import { e as n } from "./customElements-d7Bhfqi_.mjs";
3
3
  function u(...e) {
4
4
  const a = r(!0), o = n();
5
5
  return i(async () => {
@@ -0,0 +1,19 @@
1
+ import { ref as r, watch as t, computed as a } from "vue";
2
+ function s(u) {
3
+ const e = r(!1);
4
+ return t(
5
+ u,
6
+ (o) => {
7
+ o || (e.value = !1);
8
+ },
9
+ { flush: "sync" }
10
+ ), {
11
+ isFormHeld: a(() => u.value && !e.value),
12
+ handleActionRequired: () => {
13
+ e.value = !0;
14
+ }
15
+ };
16
+ }
17
+ export {
18
+ s as u
19
+ };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as y, computed as r, openBlock as v, createBlock as A, withCtx as _, createElementVNode as N, createVNode as b, unref as g, createTextVNode as w, toDisplayString as E, renderSlot as I, toValue as u, watch as x } from "vue";
2
- import { a as M, d as L, e as B } from "./customElements-DK4GKNJG.mjs";
3
- import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs";
4
- import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs";
5
- import { a as V } from "./usePaymentFormHold-Cwdr-vyc.mjs";
2
+ import { a as M, d as L, e as B } from "./customElements-d7Bhfqi_.mjs";
3
+ import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs";
4
+ import { h as O } from "./paymentIntegrationFormLoaders-wi1vMgf_.mjs";
5
+ import { u as V } from "./useExperimentalFeature-DAKAF_a2.mjs";
6
6
  const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
7
7
  __name: "PaymentMethodsUnavailableCard",
8
8
  props: {
@@ -0,0 +1,67 @@
1
+ import { u as v, a as m } from "./useService-DayNZhPh.mjs";
2
+ import { c as x } from "./paymentMethods-CG1fcG2v.mjs";
3
+ const h = ["applepay"];
4
+ function D(e) {
5
+ return e.filter(
6
+ (s) => !h.some((n) => {
7
+ var r;
8
+ return n === ((r = s.type) == null ? void 0 : r.toLowerCase());
9
+ })
10
+ );
11
+ }
12
+ function _(e, s = /* @__PURE__ */ new Date()) {
13
+ var i;
14
+ if (e.type !== "CARD" || !((i = e.card) != null && i.expiry_date)) return !1;
15
+ const { expiry_month: n, expiry_year: r } = e.card.expiry_date;
16
+ return s.getTime() >= Date.UTC(r, n, 1);
17
+ }
18
+ function M(e, s = /* @__PURE__ */ new Date()) {
19
+ return e.status === "ACTIVE" && !_(e, s);
20
+ }
21
+ function C(e) {
22
+ return e.portalUrlId !== void 0;
23
+ }
24
+ function S(e) {
25
+ return e.customerId !== void 0;
26
+ }
27
+ function O() {
28
+ const { getPaymentMethodOptions: e } = x(), s = (t) => C(t) ? e({ portalUrlId: t.portalUrlId }) : S(t) ? e({
29
+ customerId: t.customerId,
30
+ subscriptionId: t.subscriptionId,
31
+ invoiceId: t.invoiceId,
32
+ amount: t.amount,
33
+ country: t.country
34
+ }) : e({
35
+ subscriptionId: t.subscriptionId,
36
+ amount: t.amount,
37
+ country: t.country
38
+ });
39
+ let n, r;
40
+ const i = ({
41
+ payload: t,
42
+ fresh: u
43
+ }) => {
44
+ if (!u && r && m(t, r.payload))
45
+ return r.options;
46
+ const o = s(t), a = () => {
47
+ (r == null ? void 0 : r.options) === o && (r = void 0);
48
+ };
49
+ return o.then(a, a), r = { payload: t, options: o }, o;
50
+ }, f = [], { data: d, execute: p, settle: I, apiStatus: P, error: l, isPending: E } = v({
51
+ initialValue: f,
52
+ service: i
53
+ });
54
+ let c;
55
+ return { paymentMethodOptions: d, get: async (t, { fresh: u = !1 } = {}) => {
56
+ if (c = t, !u && n && m(t, n.payload))
57
+ return I(n.options), n.options;
58
+ const o = await p({ payload: t, fresh: u });
59
+ return c === t && (n = { payload: t, options: o }), o;
60
+ }, apiStatus: P, error: l, isPending: E };
61
+ }
62
+ export {
63
+ _ as a,
64
+ D as f,
65
+ M as i,
66
+ O as u
67
+ };
@@ -1,5 +1,5 @@
1
- import { u as s } from "./useIncrementalLoading-CBVutPH8.mjs";
2
- import { c as a } from "./paymentMethods-8w-ccfY_.mjs";
1
+ import { u as s } from "./useIncrementalLoading-B3gp58X-.mjs";
2
+ import { c as a } from "./paymentMethods-CG1fcG2v.mjs";
3
3
  const m = {
4
4
  orderBy: "default",
5
5
  orderDirection: "desc"
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as b, createPropsRestProxy as C, ref as _, computed as o, openBlock as c, createElementBlock as A, createVNode as g, unref as l, mergeProps as O, createSlots as S, withCtx as s, renderSlot as h, createBlock as p, createTextVNode as v, toDisplayString as D, createCommentVNode as I, createElementVNode as L } from "vue";
2
- import { a as N, d as R } from "./customElements-DK4GKNJG.mjs";
3
- import { _ as B } from "./IconTitle.vue.es-6VJtjJX2.mjs";
4
- import { _ as P } from "./Chip.vue.es-Dxx_0dte.mjs";
2
+ import { a as N, d as R } from "./customElements-d7Bhfqi_.mjs";
3
+ import { _ as B } from "./IconTitle.vue.es-GyanM-JQ.mjs";
4
+ import { _ as P } from "./Chip.vue.es-Dc6-PjEn.mjs";
5
5
  import { a as x } from "./formatting.es-RclXHhKo.mjs";
6
- import { a as V, b as z } from "./index.es-BrVTOW5D.mjs";
7
- import { _ as $ } from "./Button.vue.es-j7iYlqtJ.mjs";
8
- import { _ as k } from "./FormMessage.vue.es-CwMQpIAW.mjs";
9
- import { c as U } from "./invoices-DdREPDXV.mjs";
10
- import { u as T } from "./useService-BwzIBIRp.mjs";
11
- import { c as M } from "./payments-CKpU1K3t.mjs";
6
+ import { c as V, d as z } from "./index.es-C7J3WGGo.mjs";
7
+ import { _ as $ } from "./Button.vue.es-BHbanjR0.mjs";
8
+ import { _ as k } from "./FormMessage.vue.es-CQ64C8dt.mjs";
9
+ import { c as U } from "./invoices-CXvL8KQx.mjs";
10
+ import { u as T } from "./useService-DayNZhPh.mjs";
11
+ import { c as M } from "./payments-Dy81gmkC.mjs";
12
12
  const G = {
13
13
  neutral: { indicatorClass: "border-gray-500 bg-gray-500", chipIntent: "neutral" },
14
14
  info: { indicatorClass: "border-blue-600 bg-blue-600", chipIntent: "info" },
@@ -0,0 +1,14 @@
1
+ import { computed as t } from "vue";
2
+ import { i as e, P as a, C as n } from "./customElements-d7Bhfqi_.mjs";
3
+ function c() {
4
+ const o = e(a, "PortalProvider");
5
+ return t(() => {
6
+ const r = o.value;
7
+ if (r.type === "CHECKOUT_SESSION")
8
+ throw new n("PORTAL_TYPE_NOT_ALLOWED", "Unexpected checkout session portal");
9
+ return r;
10
+ });
11
+ }
12
+ export {
13
+ c as u
14
+ };
@@ -1,6 +1,6 @@
1
1
  import { A as n } from "./ApiStatus-CSFKl_ra.mjs";
2
2
  import { shallowRef as g, ref as p, computed as A } from "vue";
3
- import { t as h } from "./customElements-DK4GKNJG.mjs";
3
+ import { t as h } from "./customElements-d7Bhfqi_.mjs";
4
4
  function C(e) {
5
5
  return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !0;
6
6
  }
@@ -0,0 +1,122 @@
1
+ import { ref as u, toValue as g } from "vue";
2
+ import { c as h, u as S, b as p, e as m } from "./customElements-d7Bhfqi_.mjs";
3
+ import { a as v } from "./api.es-QaC926Xu.mjs";
4
+ const C = ({
5
+ line1: i,
6
+ line2: e,
7
+ city: a,
8
+ postal_code: d,
9
+ state: c,
10
+ country: o
11
+ }) => ({
12
+ line1: i ?? void 0,
13
+ line2: e ?? void 0,
14
+ city: a ?? void 0,
15
+ postal_code: d ?? void 0,
16
+ state: c ?? void 0,
17
+ country: o
18
+ }), _ = 50;
19
+ function w() {
20
+ const i = h(), e = S(), a = ["portal", "shipping-addresses"];
21
+ function d({
22
+ customerId: n
23
+ }) {
24
+ return i({
25
+ url: p(e.apiUrls.config, ...a),
26
+ query: v(
27
+ { customer_id: n, statuses: ["ACTIVE"] },
28
+ { page: 1, pageSize: _ }
29
+ ),
30
+ isCollection: !0
31
+ });
32
+ }
33
+ function c(n) {
34
+ return i({
35
+ url: p(e.apiUrls.config, ...a),
36
+ data: n,
37
+ options: { method: "POST" }
38
+ });
39
+ }
40
+ function o({
41
+ shippingAddressId: n,
42
+ payload: A
43
+ }) {
44
+ return i({
45
+ url: p(e.apiUrls.config, ...a, n),
46
+ data: A,
47
+ options: { method: "PATCH" }
48
+ });
49
+ }
50
+ function l({
51
+ shippingAddressId: n
52
+ }) {
53
+ return i({
54
+ url: p(e.apiUrls.config, ...a, n, "deprecate"),
55
+ options: { method: "POST" }
56
+ });
57
+ }
58
+ return {
59
+ getShippingAddresses: d,
60
+ createShippingAddress: c,
61
+ updateShippingAddress: o,
62
+ deleteShippingAddress: l
63
+ };
64
+ }
65
+ const f = ({ reference: i, ...e }) => JSON.stringify(e), I = (i, e) => +!!e.is_default - +!!i.is_default || (Date.parse(e.created_at ?? "") || 0) - (Date.parse(i.created_at ?? "") || 0);
66
+ function N({
67
+ customerId: i
68
+ }) {
69
+ const e = w(), a = m(), d = u([]), c = u(!1), o = u(), l = async () => {
70
+ const s = g(i);
71
+ if (s) {
72
+ c.value = !0, o.value = void 0;
73
+ try {
74
+ const t = await e.getShippingAddresses({ customerId: s });
75
+ d.value = t.data.filter(({ status: r }) => r === "ACTIVE").sort(I);
76
+ } catch (t) {
77
+ a.error(
78
+ "SHIPPING_ADDRESSES_LOAD_FAILED",
79
+ "Failed to load the shipping addresses",
80
+ {},
81
+ t
82
+ ), o.value = t;
83
+ } finally {
84
+ c.value = !1;
85
+ }
86
+ }
87
+ }, n = (s) => e.createShippingAddress({ ...s, status: "ACTIVE" });
88
+ return {
89
+ items: d,
90
+ isPending: c,
91
+ error: o,
92
+ fetchAll: l,
93
+ create: async (s) => {
94
+ try {
95
+ return await n(s);
96
+ } finally {
97
+ await l();
98
+ }
99
+ },
100
+ replace: async (s, t, r) => {
101
+ t = { description: s.description, ...t };
102
+ try {
103
+ return r.replacement ? r.storedDetails !== f(t) && (r.replacement = await e.updateShippingAddress({
104
+ shippingAddressId: r.replacement.id,
105
+ payload: {
106
+ ...t,
107
+ reference: r.replacement.reference ?? t.reference
108
+ }
109
+ }), r.storedDetails = f(t)) : (r.replacement = await n(t), r.storedDetails = f(t)), await e.deleteShippingAddress({ shippingAddressId: s.id }), r.replacement;
110
+ } finally {
111
+ await l();
112
+ }
113
+ },
114
+ remove: async (s) => {
115
+ await e.deleteShippingAddress({ shippingAddressId: s.id }), await l();
116
+ }
117
+ };
118
+ }
119
+ export {
120
+ C as t,
121
+ N as u
122
+ };
@@ -0,0 +1,35 @@
1
+ import { u as a } from "./useService-DayNZhPh.mjs";
2
+ import { c as d } from "./subscriptions-Bm1eu9wc.mjs";
3
+ const p = (n, e) => {
4
+ var r, i;
5
+ return !!((r = n.enabled_pricings) != null && r.some(({ pricing_id: s }) => s === e.id) || (i = n.override_pricings) != null && i.some(
6
+ (s) => "id" in s && s.id === e.id || s.original_pricing_id === e.id
7
+ ));
8
+ }, l = (n) => {
9
+ var e, r;
10
+ return [
11
+ ...((e = n.enabled_pricings) == null ? void 0 : e.map(({ pricing_id: i }) => i)) ?? [],
12
+ ...((r = n.override_pricings) == null ? void 0 : r.map(
13
+ (i) => "id" in i ? i.id : i.original_pricing_id
14
+ )) ?? []
15
+ ];
16
+ };
17
+ function _({
18
+ subscriptionId: n
19
+ }) {
20
+ const { getSubscription: e } = d(), {
21
+ data: r,
22
+ execute: i,
23
+ apiStatus: s,
24
+ error: o,
25
+ isPending: t
26
+ } = a({
27
+ service: () => e({ id: n, expanded: !0 })
28
+ });
29
+ return { subscription: r, apiStatus: s, error: o, get: i, isPending: t };
30
+ }
31
+ export {
32
+ l as g,
33
+ p as i,
34
+ _ as u
35
+ };
@@ -0,0 +1,44 @@
1
+ import { computed as t, ref as i, watch as r } from "vue";
2
+ import { u } from "./useActionDispatchProvider-BWna0S6N.mjs";
3
+ import { i as v, g as m, a as d } from "./subscription-DQ5mRp_e.mjs";
4
+ function N({
5
+ subscription: a
6
+ }) {
7
+ const { dispatchAction: l } = u(), c = t(
8
+ () => v(a.value) && !m(a.value, "CANCEL")
9
+ ), s = t(
10
+ () => !!d(a.value)
11
+ ), e = i(), o = i();
12
+ return r(e, (n) => {
13
+ n && (o.value = void 0);
14
+ }), {
15
+ isCancellable: c,
16
+ isRenewable: s,
17
+ pendingVariant: e,
18
+ confirmedVariant: o,
19
+ confirm: () => {
20
+ o.value = e.value;
21
+ },
22
+ cancel: () => {
23
+ a.value && (e.value = "CANCEL");
24
+ },
25
+ renew: () => {
26
+ a.value && (e.value = "RENEW");
27
+ },
28
+ dismiss: () => {
29
+ e.value = void 0;
30
+ },
31
+ manage: (n) => {
32
+ a.value && l({
33
+ action: "manage-subscription",
34
+ data: {
35
+ subscriptionId: a.value.id,
36
+ ...n && { currentPricingId: n }
37
+ }
38
+ });
39
+ }
40
+ };
41
+ }
42
+ export {
43
+ N as u
44
+ };
@@ -0,0 +1,20 @@
1
+ import { watch as m, toValue as n, onScopeDispose as p } from "vue";
2
+ function d(i, t, o) {
3
+ let e;
4
+ m(
5
+ i,
6
+ (r, u) => {
7
+ clearTimeout(e);
8
+ const c = n(o.debounce);
9
+ if (c <= 0) {
10
+ t(r, u);
11
+ return;
12
+ }
13
+ e = setTimeout(() => t(r, u), c);
14
+ },
15
+ { deep: o.deep }
16
+ ), p(() => clearTimeout(e));
17
+ }
18
+ export {
19
+ d as u
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvimon/solvimon-web",
3
- "version": "0.1.0-alpha.30",
3
+ "version": "0.1.0-alpha.31",
4
4
  "description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
5
5
  "private": false,
6
6
  "engines": {
@@ -39,6 +39,8 @@
39
39
  "tests:check-labels": "node ./scripts/check-test-labels.mjs",
40
40
  "types:check-published": "node ./scripts/ci/check-published-types.mjs",
41
41
  "types:check-consumer": "node ./scripts/ci/check-consumer-types.mjs",
42
+ "api:check": "node ./scripts/ci/api-snapshot.mjs",
43
+ "api:update": "node ./scripts/ci/api-snapshot.mjs --update",
42
44
  "bundle:check-contents": "node ./scripts/ci/check-bundle-contents.mjs",
43
45
  "logs:list": "node ./scripts/list-log-codes.mjs",
44
46
  "test:e2e:run-app": "node scripts/generate-ssl-cert.mjs && node scripts/start-test-app.mjs",
@@ -75,13 +77,14 @@
75
77
  "types": "./dist/core/index.d.ts",
76
78
  "default": "./dist/core/index.mjs"
77
79
  },
78
- "./core/action-request-types": {
79
- "types": "./dist/core/action-request.types.d.ts"
80
- },
81
80
  "./screens/checkout": {
82
81
  "types": "./dist/screens/Checkout/Checkout.ce.d.ts",
83
82
  "default": "./dist/screens/Checkout/Checkout.mjs"
84
83
  },
84
+ "./screens/checkout-session": {
85
+ "types": "./dist/screens/CheckoutSession/CheckoutSession.ce.d.ts",
86
+ "default": "./dist/screens/CheckoutSession/CheckoutSession.mjs"
87
+ },
85
88
  "./screens/customer-overview": {
86
89
  "types": "./dist/screens/CustomerOverview/CustomerOverview.ce.d.ts",
87
90
  "default": "./dist/screens/CustomerOverview/CustomerOverview.mjs"
@@ -122,6 +125,10 @@
122
125
  "types": "./dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts",
123
126
  "default": "./dist/components/BillingInformationForm/BillingInformationForm.mjs"
124
127
  },
128
+ "./components/shipping-address-form": {
129
+ "types": "./dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts",
130
+ "default": "./dist/components/ShippingAddressForm/ShippingAddressForm.mjs"
131
+ },
125
132
  "./components/invoice": {
126
133
  "types": "./dist/components/Invoice/Invoice.ce.d.ts",
127
134
  "default": "./dist/components/Invoice/Invoice.mjs"
@@ -164,7 +171,7 @@
164
171
  "@formatjs/intl": "^3.1.8",
165
172
  "@playwright/test": "^1.64.1",
166
173
  "@solvimon/solvimon-types": "^1.10.0",
167
- "@solvimon/solvimon-ui": "^1.24.1",
174
+ "@solvimon/solvimon-ui": "^1.28.1",
168
175
  "@stripe/stripe-js": "^9.8.0",
169
176
  "@types/node": "^22.10.2",
170
177
  "@typescript-eslint/parser": "^8.46.2",
@@ -1,50 +0,0 @@
1
- import { f as c } from "./customElements-DK4GKNJG.mjs";
2
- const r = [1e3, 2e3, 4e3], d = {
3
- PORTAL_URL_EXPIRED: "expired",
4
- PORTAL_URL_REVOKED: "revoked",
5
- CHECKOUT_SESSION_CLOSED: "closed"
6
- }, i = (e) => !c(e) || e.statusCode >= 500 || e.statusCode === 429, E = (e) => new Promise((t) => setTimeout(t, e));
7
- function s(e, t) {
8
- if (c(t) && t.statusCode === 410) {
9
- e.clearToken();
10
- const a = d[t.errorCode ?? ""] ?? "expired", { checkoutSessionStatus: o } = t;
11
- e.setStatus({
12
- state: "ended",
13
- reason: a,
14
- ...o ? { checkoutSessionStatus: o } : {}
15
- }), e.forEachLogger((n) => {
16
- a === "closed" ? n.warn(
17
- "CHECKOUT_SESSION_CLOSED",
18
- "The checkout session of the portal link is closed",
19
- { status: o },
20
- t
21
- ) : a === "revoked" ? n.error("PORTAL_URL_REVOKED", "The portal link is revoked", {}, t) : n.error("PORTAL_URL_EXPIRED", "The portal link has expired", {}, t);
22
- });
23
- return;
24
- }
25
- if (i(t)) {
26
- e.markUnverified(t);
27
- return;
28
- }
29
- e.hasToken() || e.setStatus({ state: "invalid" }), e.forEachLogger(
30
- (a) => a.error("INVALID_TOKEN", "Failed to fetch access token", {}, t)
31
- );
32
- }
33
- async function f(e, t) {
34
- for (let a = 0; ; a++)
35
- try {
36
- const o = await t.exchangeHandle(e);
37
- return t.applyToken(o), o.access_token;
38
- } catch (o) {
39
- const n = r[a];
40
- if (i(o) && n !== void 0) {
41
- if (await E(n), t.isAbandoned()) return;
42
- continue;
43
- }
44
- s(t, o);
45
- return;
46
- }
47
- }
48
- export {
49
- f as runExchange
50
- };