@commercelayer/react-components 4.18.0 → 4.19.0

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 (335) hide show
  1. package/lib/cjs/components/ExternalFunction.d.ts +1 -1
  2. package/lib/cjs/components/MetadataInput.d.ts +1 -1
  3. package/lib/cjs/components/SubmitButton.d.ts +2 -2
  4. package/lib/cjs/components/addresses/Address.d.ts +1 -1
  5. package/lib/cjs/components/addresses/AddressCountrySelector.d.ts +1 -1
  6. package/lib/cjs/components/addresses/AddressField.d.ts +2 -2
  7. package/lib/cjs/components/addresses/AddressInput.d.ts +1 -1
  8. package/lib/cjs/components/addresses/AddressInputSelect.d.ts +1 -1
  9. package/lib/cjs/components/addresses/AddressStateSelector.d.ts +1 -1
  10. package/lib/cjs/components/addresses/AddressesEmpty.d.ts +1 -1
  11. package/lib/cjs/components/addresses/BillingAddressForm.d.ts +1 -1
  12. package/lib/cjs/components/addresses/SaveAddressesButton.d.ts +1 -1
  13. package/lib/cjs/components/addresses/ShippingAddressForm.d.ts +1 -1
  14. package/lib/cjs/components/customers/CustomerContainer.d.ts +1 -1
  15. package/lib/cjs/components/customers/CustomerField.d.ts +1 -1
  16. package/lib/cjs/components/customers/CustomerInput.d.ts +1 -1
  17. package/lib/cjs/components/customers/CustomerPaymentSource.d.ts +1 -1
  18. package/lib/cjs/components/customers/CustomerPaymentSourceEmpty.d.ts +1 -1
  19. package/lib/cjs/components/customers/MyAccountLink.d.ts +1 -1
  20. package/lib/cjs/components/customers/MyIdentityLink.d.ts +1 -1
  21. package/lib/cjs/components/customers/SaveCustomerButton.d.ts +1 -1
  22. package/lib/cjs/components/errors/Errors.d.ts +1 -1
  23. package/lib/cjs/components/gift_cards/GiftCard.d.ts +1 -1
  24. package/lib/cjs/components/gift_cards/GiftCardCurrencySelector.d.ts +1 -1
  25. package/lib/cjs/components/gift_cards/GiftCardInput.d.ts +1 -1
  26. package/lib/cjs/components/gift_cards/GiftCardOrCouponCode.d.ts +1 -1
  27. package/lib/cjs/components/gift_cards/GiftCardOrCouponInput.d.ts +2 -2
  28. package/lib/cjs/components/gift_cards/GiftCardOrCouponRemoveButton.d.ts +2 -2
  29. package/lib/cjs/components/gift_cards/GiftCardOrCouponSubmit.d.ts +2 -2
  30. package/lib/cjs/components/in_stock_subscriptions/InStockSubscriptionButton.d.ts +1 -1
  31. package/lib/cjs/components/in_stock_subscriptions/InStockSubscriptionsContainer.d.ts +1 -1
  32. package/lib/cjs/components/line_items/LineItemAmount.d.ts +1 -1
  33. package/lib/cjs/components/line_items/LineItemCode.d.ts +2 -2
  34. package/lib/cjs/components/line_items/LineItemField.d.ts +1 -1
  35. package/lib/cjs/components/line_items/LineItemImage.d.ts +2 -2
  36. package/lib/cjs/components/line_items/LineItemName.d.ts +1 -1
  37. package/lib/cjs/components/line_items/LineItemOption.d.ts +2 -2
  38. package/lib/cjs/components/line_items/LineItemQuantity.d.ts +2 -2
  39. package/lib/cjs/components/line_items/LineItemRemoveLink.d.ts +2 -2
  40. package/lib/cjs/components/line_items/LineItemsCount.d.ts +1 -1
  41. package/lib/cjs/components/line_items/LineItemsEmpty.d.ts +1 -1
  42. package/lib/cjs/components/orders/AddToCartButton.d.ts +2 -2
  43. package/lib/cjs/components/orders/AdjustmentAmount.d.ts +1 -1
  44. package/lib/cjs/components/orders/CartLink.d.ts +1 -1
  45. package/lib/cjs/components/orders/CheckoutLink.d.ts +1 -1
  46. package/lib/cjs/components/orders/DiscountAmount.d.ts +1 -1
  47. package/lib/cjs/components/orders/GiftCardAmount.d.ts +1 -1
  48. package/lib/cjs/components/orders/OrderContainer.d.ts +1 -1
  49. package/lib/cjs/components/orders/OrderList.d.ts +1 -1
  50. package/lib/cjs/components/orders/OrderListEmpty.d.ts +1 -1
  51. package/lib/cjs/components/orders/OrderListPaginationButtons.d.ts +1 -1
  52. package/lib/cjs/components/orders/OrderListPaginationInfo.d.ts +1 -1
  53. package/lib/cjs/components/orders/OrderStorage.d.ts +1 -1
  54. package/lib/cjs/components/orders/PaymentMethodAmount.d.ts +1 -1
  55. package/lib/cjs/components/orders/PlaceOrderButton.d.ts +1 -1
  56. package/lib/cjs/components/orders/ShippingAmount.d.ts +1 -1
  57. package/lib/cjs/components/orders/SubTotalAmount.d.ts +1 -1
  58. package/lib/cjs/components/orders/TaxesAmount.d.ts +1 -1
  59. package/lib/cjs/components/orders/TotalAmount.d.ts +1 -1
  60. package/lib/cjs/components/parcels/ParcelField.d.ts +1 -1
  61. package/lib/cjs/components/parcels/ParcelLineItemField.d.ts +1 -1
  62. package/lib/cjs/components/parcels/ParcelLineItemsCount.d.ts +1 -1
  63. package/lib/cjs/components/parcels/ParcelsCount.d.ts +1 -1
  64. package/lib/cjs/components/payment_gateways/AdyenGateway.d.ts +1 -1
  65. package/lib/cjs/components/payment_gateways/BraintreeGateway.d.ts +1 -1
  66. package/lib/cjs/components/payment_gateways/CheckoutComGateway.d.ts +1 -1
  67. package/lib/cjs/components/payment_gateways/ExternalGateway.d.ts +1 -1
  68. package/lib/cjs/components/payment_gateways/KlarnaGateway.d.ts +1 -1
  69. package/lib/cjs/components/payment_gateways/PaymentGateway.d.ts +2 -2
  70. package/lib/cjs/components/payment_gateways/PaypalGateway.d.ts +1 -1
  71. package/lib/cjs/components/payment_gateways/StripeGateway.d.ts +1 -1
  72. package/lib/cjs/components/payment_gateways/WireTransferGateway.d.ts +1 -1
  73. package/lib/cjs/components/payment_methods/PaymentMethodName.d.ts +1 -1
  74. package/lib/cjs/components/payment_methods/PaymentMethodPrice.d.ts +1 -1
  75. package/lib/cjs/components/payment_methods/PaymentMethodRadioButton.d.ts +1 -1
  76. package/lib/cjs/components/payment_source/AdyenPayment.d.ts +10 -74
  77. package/lib/cjs/components/payment_source/BraintreePayment.d.ts +2 -2
  78. package/lib/cjs/components/payment_source/CheckoutComPayment.d.ts +2 -2
  79. package/lib/cjs/components/payment_source/ExternalPayment.d.ts +2 -2
  80. package/lib/cjs/components/payment_source/KlarnaPayment.d.ts +2 -2
  81. package/lib/cjs/components/payment_source/PaymentSource.d.ts +2 -2
  82. package/lib/cjs/components/payment_source/PaymentSourceBrandIcon.d.ts +1 -1
  83. package/lib/cjs/components/payment_source/PaymentSourceBrandName.d.ts +1 -1
  84. package/lib/cjs/components/payment_source/PaymentSourceEditButton.d.ts +1 -1
  85. package/lib/cjs/components/payment_source/StripePayment.d.ts +3 -3
  86. package/lib/cjs/components/prices/Price.d.ts +2 -2
  87. package/lib/cjs/components/prices/PricesContainer.d.ts +2 -2
  88. package/lib/cjs/components/shipments/ShipmentField.d.ts +1 -1
  89. package/lib/cjs/components/shipments/ShipmentsCount.d.ts +1 -1
  90. package/lib/cjs/components/shipping_methods/ShippingMethodName.d.ts +1 -1
  91. package/lib/cjs/components/shipping_methods/ShippingMethodPrice.d.ts +1 -1
  92. package/lib/cjs/components/skus/AvailabilityTemplate.d.ts +2 -2
  93. package/lib/cjs/components/skus/SkuField.d.ts +1 -1
  94. package/lib/cjs/components/stock_transfers/StockTransferField.d.ts +1 -1
  95. package/lib/cjs/components/utils/AddressCardsTemplate.d.ts +1 -1
  96. package/lib/cjs/components/utils/BaseInput.d.ts +1 -1
  97. package/lib/cjs/components/utils/BaseOrderPrice.d.ts +2 -2
  98. package/lib/cjs/components/utils/BaseSelect.d.ts +1 -1
  99. package/lib/cjs/components/utils/GenericFieldComponent.d.ts +6 -6
  100. package/lib/cjs/components/utils/Parent.d.ts +1 -1
  101. package/lib/cjs/components/utils/PaymentCardsTemplate.d.ts +3 -3
  102. package/lib/cjs/components/utils/PriceTemplate.d.ts +1 -1
  103. package/lib/cjs/components/utils/getAllErrors.d.ts +3 -3
  104. package/lib/cjs/context/AddressChildrenContext.d.ts +1 -1
  105. package/lib/cjs/context/AddressContext.d.ts +1 -1
  106. package/lib/cjs/context/BillingAddressContext.d.ts +1 -1
  107. package/lib/cjs/context/CouponAndGiftCardFormContext.d.ts +1 -1
  108. package/lib/cjs/context/CustomerAddressFormContext.d.ts +2 -2
  109. package/lib/cjs/context/CustomerContext.d.ts +1 -1
  110. package/lib/cjs/context/CustomerPaymentSourceContext.d.ts +1 -1
  111. package/lib/cjs/context/GiftCardContext.d.ts +1 -1
  112. package/lib/cjs/context/InStockSubscriptionContext.d.ts +1 -1
  113. package/lib/cjs/context/LineItemChildrenContext.d.ts +1 -1
  114. package/lib/cjs/context/LineItemContext.d.ts +2 -2
  115. package/lib/cjs/context/OrderContext.d.ts +2 -2
  116. package/lib/cjs/context/OrderListChildrenContext.d.ts +3 -3
  117. package/lib/cjs/context/PaymentMethodChildrenContext.d.ts +1 -1
  118. package/lib/cjs/context/ShippingAddressContext.d.ts +1 -1
  119. package/lib/cjs/context/ShippingAddressFormContext.d.ts +1 -1
  120. package/lib/cjs/context/ShippingMethodChildrenContext.d.ts +1 -1
  121. package/lib/cjs/context/SkuChildrenContext.d.ts +1 -1
  122. package/lib/cjs/context/SkuContext.d.ts +1 -1
  123. package/lib/cjs/context/StockTransferChildrenContext.d.ts +1 -1
  124. package/lib/cjs/hooks/useCommerceLayer.d.ts +1 -1
  125. package/lib/cjs/hooks/useCustomerContainer.d.ts +1 -1
  126. package/lib/cjs/hooks/useOrderContainer.d.ts +1 -1
  127. package/lib/cjs/reducers/AddressReducer.d.ts +9 -9
  128. package/lib/cjs/reducers/AvailabilityReducer.d.ts +5 -5
  129. package/lib/cjs/reducers/BillingAddressReducer.d.ts +4 -4
  130. package/lib/cjs/reducers/CustomerReducer.d.ts +4 -4
  131. package/lib/cjs/reducers/GiftCardReducer.d.ts +6 -6
  132. package/lib/cjs/reducers/InStockSubscriptionReducer.d.ts +3 -3
  133. package/lib/cjs/reducers/LineItemReducer.d.ts +6 -6
  134. package/lib/cjs/reducers/OrderReducer.d.ts +6 -6
  135. package/lib/cjs/reducers/PaymentMethodReducer.d.ts +12 -12
  136. package/lib/cjs/reducers/PlaceOrderReducer.d.ts +1 -1
  137. package/lib/cjs/reducers/PriceReducer.d.ts +5 -5
  138. package/lib/cjs/reducers/ShipmentReducer.d.ts +5 -5
  139. package/lib/cjs/reducers/ShippingAddressReducer.d.ts +4 -4
  140. package/lib/cjs/reducers/SkuListsReducer.d.ts +2 -2
  141. package/lib/cjs/reducers/SkuReducer.d.ts +4 -4
  142. package/lib/cjs/typings/errors.d.ts +1 -1
  143. package/lib/cjs/typings/index.d.ts +2 -2
  144. package/lib/cjs/utils/addressesManager.d.ts +3 -3
  145. package/lib/cjs/utils/baseReducer.d.ts +1 -1
  146. package/lib/cjs/utils/canPlaceOrder.d.ts +1 -1
  147. package/lib/cjs/utils/checkIncludeResource.d.ts +1 -1
  148. package/lib/cjs/utils/customMessages.d.ts +1 -1
  149. package/lib/cjs/utils/expressPaymentHelper.d.ts +4 -4
  150. package/lib/cjs/utils/filterChildren.d.ts +1 -1
  151. package/lib/cjs/utils/formCleaner.d.ts +1 -1
  152. package/lib/cjs/utils/getCardDetails.d.ts +3 -3
  153. package/lib/cjs/utils/getErrors.d.ts +2 -2
  154. package/lib/cjs/utils/getLoaderComponent.d.ts +1 -1
  155. package/lib/cjs/utils/getPaymentAttributes.d.ts +2 -2
  156. package/lib/cjs/utils/getPrices.d.ts +1 -1
  157. package/lib/cjs/utils/getSdk.d.ts +1 -1
  158. package/lib/cjs/utils/getSkus.d.ts +1 -1
  159. package/lib/cjs/utils/hasSubscriptions.d.ts +1 -1
  160. package/lib/cjs/utils/organization.d.ts +4 -4
  161. package/lib/cjs/utils/organization.js +1 -1
  162. package/lib/cjs/utils/payment-methods/sortPaymentMethods.d.ts +2 -2
  163. package/lib/cjs/utils/shipments.d.ts +1 -1
  164. package/lib/cjs/utils/triggerAttributeHelper.d.ts +2 -2
  165. package/lib/cjs/utils/updateOrderSubscriptionCustomerPaymentSource.d.ts +2 -2
  166. package/lib/cjs/utils/validateFormFields.d.ts +5 -5
  167. package/lib/esm/components/ExternalFunction.d.ts +1 -1
  168. package/lib/esm/components/MetadataInput.d.ts +1 -1
  169. package/lib/esm/components/SubmitButton.d.ts +2 -2
  170. package/lib/esm/components/addresses/Address.d.ts +1 -1
  171. package/lib/esm/components/addresses/AddressCountrySelector.d.ts +1 -1
  172. package/lib/esm/components/addresses/AddressField.d.ts +2 -2
  173. package/lib/esm/components/addresses/AddressInput.d.ts +1 -1
  174. package/lib/esm/components/addresses/AddressInputSelect.d.ts +1 -1
  175. package/lib/esm/components/addresses/AddressStateSelector.d.ts +1 -1
  176. package/lib/esm/components/addresses/AddressesEmpty.d.ts +1 -1
  177. package/lib/esm/components/addresses/BillingAddressForm.d.ts +1 -1
  178. package/lib/esm/components/addresses/SaveAddressesButton.d.ts +1 -1
  179. package/lib/esm/components/addresses/ShippingAddressForm.d.ts +1 -1
  180. package/lib/esm/components/customers/CustomerContainer.d.ts +1 -1
  181. package/lib/esm/components/customers/CustomerField.d.ts +1 -1
  182. package/lib/esm/components/customers/CustomerInput.d.ts +1 -1
  183. package/lib/esm/components/customers/CustomerPaymentSource.d.ts +1 -1
  184. package/lib/esm/components/customers/CustomerPaymentSourceEmpty.d.ts +1 -1
  185. package/lib/esm/components/customers/MyAccountLink.d.ts +1 -1
  186. package/lib/esm/components/customers/MyIdentityLink.d.ts +1 -1
  187. package/lib/esm/components/customers/SaveCustomerButton.d.ts +1 -1
  188. package/lib/esm/components/errors/Errors.d.ts +1 -1
  189. package/lib/esm/components/gift_cards/GiftCard.d.ts +1 -1
  190. package/lib/esm/components/gift_cards/GiftCardCurrencySelector.d.ts +1 -1
  191. package/lib/esm/components/gift_cards/GiftCardInput.d.ts +1 -1
  192. package/lib/esm/components/gift_cards/GiftCardOrCouponCode.d.ts +1 -1
  193. package/lib/esm/components/gift_cards/GiftCardOrCouponInput.d.ts +2 -2
  194. package/lib/esm/components/gift_cards/GiftCardOrCouponRemoveButton.d.ts +2 -2
  195. package/lib/esm/components/gift_cards/GiftCardOrCouponSubmit.d.ts +2 -2
  196. package/lib/esm/components/in_stock_subscriptions/InStockSubscriptionButton.d.ts +1 -1
  197. package/lib/esm/components/in_stock_subscriptions/InStockSubscriptionsContainer.d.ts +1 -1
  198. package/lib/esm/components/line_items/LineItemAmount.d.ts +1 -1
  199. package/lib/esm/components/line_items/LineItemCode.d.ts +2 -2
  200. package/lib/esm/components/line_items/LineItemField.d.ts +1 -1
  201. package/lib/esm/components/line_items/LineItemImage.d.ts +2 -2
  202. package/lib/esm/components/line_items/LineItemName.d.ts +1 -1
  203. package/lib/esm/components/line_items/LineItemOption.d.ts +2 -2
  204. package/lib/esm/components/line_items/LineItemQuantity.d.ts +2 -2
  205. package/lib/esm/components/line_items/LineItemRemoveLink.d.ts +2 -2
  206. package/lib/esm/components/line_items/LineItemsCount.d.ts +1 -1
  207. package/lib/esm/components/line_items/LineItemsEmpty.d.ts +1 -1
  208. package/lib/esm/components/orders/AddToCartButton.d.ts +2 -2
  209. package/lib/esm/components/orders/AdjustmentAmount.d.ts +1 -1
  210. package/lib/esm/components/orders/CartLink.d.ts +1 -1
  211. package/lib/esm/components/orders/CheckoutLink.d.ts +1 -1
  212. package/lib/esm/components/orders/DiscountAmount.d.ts +1 -1
  213. package/lib/esm/components/orders/GiftCardAmount.d.ts +1 -1
  214. package/lib/esm/components/orders/OrderContainer.d.ts +1 -1
  215. package/lib/esm/components/orders/OrderList.d.ts +1 -1
  216. package/lib/esm/components/orders/OrderListEmpty.d.ts +1 -1
  217. package/lib/esm/components/orders/OrderListPaginationButtons.d.ts +1 -1
  218. package/lib/esm/components/orders/OrderListPaginationInfo.d.ts +1 -1
  219. package/lib/esm/components/orders/OrderStorage.d.ts +1 -1
  220. package/lib/esm/components/orders/PaymentMethodAmount.d.ts +1 -1
  221. package/lib/esm/components/orders/PlaceOrderButton.d.ts +1 -1
  222. package/lib/esm/components/orders/ShippingAmount.d.ts +1 -1
  223. package/lib/esm/components/orders/SubTotalAmount.d.ts +1 -1
  224. package/lib/esm/components/orders/TaxesAmount.d.ts +1 -1
  225. package/lib/esm/components/orders/TotalAmount.d.ts +1 -1
  226. package/lib/esm/components/parcels/ParcelField.d.ts +1 -1
  227. package/lib/esm/components/parcels/ParcelLineItemField.d.ts +1 -1
  228. package/lib/esm/components/parcels/ParcelLineItemsCount.d.ts +1 -1
  229. package/lib/esm/components/parcels/ParcelsCount.d.ts +1 -1
  230. package/lib/esm/components/payment_gateways/AdyenGateway.d.ts +1 -1
  231. package/lib/esm/components/payment_gateways/BraintreeGateway.d.ts +1 -1
  232. package/lib/esm/components/payment_gateways/CheckoutComGateway.d.ts +1 -1
  233. package/lib/esm/components/payment_gateways/ExternalGateway.d.ts +1 -1
  234. package/lib/esm/components/payment_gateways/KlarnaGateway.d.ts +1 -1
  235. package/lib/esm/components/payment_gateways/PaymentGateway.d.ts +2 -2
  236. package/lib/esm/components/payment_gateways/PaypalGateway.d.ts +1 -1
  237. package/lib/esm/components/payment_gateways/StripeGateway.d.ts +1 -1
  238. package/lib/esm/components/payment_gateways/WireTransferGateway.d.ts +1 -1
  239. package/lib/esm/components/payment_methods/PaymentMethodName.d.ts +1 -1
  240. package/lib/esm/components/payment_methods/PaymentMethodPrice.d.ts +1 -1
  241. package/lib/esm/components/payment_methods/PaymentMethodRadioButton.d.ts +1 -1
  242. package/lib/esm/components/payment_source/AdyenPayment.d.ts +10 -74
  243. package/lib/esm/components/payment_source/BraintreePayment.d.ts +2 -2
  244. package/lib/esm/components/payment_source/CheckoutComPayment.d.ts +2 -2
  245. package/lib/esm/components/payment_source/ExternalPayment.d.ts +2 -2
  246. package/lib/esm/components/payment_source/KlarnaPayment.d.ts +2 -2
  247. package/lib/esm/components/payment_source/PaymentSource.d.ts +2 -2
  248. package/lib/esm/components/payment_source/PaymentSourceBrandIcon.d.ts +1 -1
  249. package/lib/esm/components/payment_source/PaymentSourceBrandName.d.ts +1 -1
  250. package/lib/esm/components/payment_source/PaymentSourceEditButton.d.ts +1 -1
  251. package/lib/esm/components/payment_source/StripePayment.d.ts +3 -3
  252. package/lib/esm/components/prices/Price.d.ts +2 -2
  253. package/lib/esm/components/prices/PricesContainer.d.ts +2 -2
  254. package/lib/esm/components/shipments/ShipmentField.d.ts +1 -1
  255. package/lib/esm/components/shipments/ShipmentsCount.d.ts +1 -1
  256. package/lib/esm/components/shipping_methods/ShippingMethodName.d.ts +1 -1
  257. package/lib/esm/components/shipping_methods/ShippingMethodPrice.d.ts +1 -1
  258. package/lib/esm/components/skus/AvailabilityTemplate.d.ts +2 -2
  259. package/lib/esm/components/skus/SkuField.d.ts +1 -1
  260. package/lib/esm/components/stock_transfers/StockTransferField.d.ts +1 -1
  261. package/lib/esm/components/utils/AddressCardsTemplate.d.ts +1 -1
  262. package/lib/esm/components/utils/BaseInput.d.ts +1 -1
  263. package/lib/esm/components/utils/BaseOrderPrice.d.ts +2 -2
  264. package/lib/esm/components/utils/BaseSelect.d.ts +1 -1
  265. package/lib/esm/components/utils/GenericFieldComponent.d.ts +6 -6
  266. package/lib/esm/components/utils/Parent.d.ts +1 -1
  267. package/lib/esm/components/utils/PaymentCardsTemplate.d.ts +3 -3
  268. package/lib/esm/components/utils/PriceTemplate.d.ts +1 -1
  269. package/lib/esm/components/utils/getAllErrors.d.ts +3 -3
  270. package/lib/esm/context/AddressChildrenContext.d.ts +1 -1
  271. package/lib/esm/context/AddressContext.d.ts +1 -1
  272. package/lib/esm/context/BillingAddressContext.d.ts +1 -1
  273. package/lib/esm/context/CouponAndGiftCardFormContext.d.ts +1 -1
  274. package/lib/esm/context/CustomerAddressFormContext.d.ts +2 -2
  275. package/lib/esm/context/CustomerContext.d.ts +1 -1
  276. package/lib/esm/context/CustomerPaymentSourceContext.d.ts +1 -1
  277. package/lib/esm/context/GiftCardContext.d.ts +1 -1
  278. package/lib/esm/context/InStockSubscriptionContext.d.ts +1 -1
  279. package/lib/esm/context/LineItemChildrenContext.d.ts +1 -1
  280. package/lib/esm/context/LineItemContext.d.ts +2 -2
  281. package/lib/esm/context/OrderContext.d.ts +2 -2
  282. package/lib/esm/context/OrderListChildrenContext.d.ts +3 -3
  283. package/lib/esm/context/PaymentMethodChildrenContext.d.ts +1 -1
  284. package/lib/esm/context/ShippingAddressContext.d.ts +1 -1
  285. package/lib/esm/context/ShippingAddressFormContext.d.ts +1 -1
  286. package/lib/esm/context/ShippingMethodChildrenContext.d.ts +1 -1
  287. package/lib/esm/context/SkuChildrenContext.d.ts +1 -1
  288. package/lib/esm/context/SkuContext.d.ts +1 -1
  289. package/lib/esm/context/StockTransferChildrenContext.d.ts +1 -1
  290. package/lib/esm/hooks/useCommerceLayer.d.ts +1 -1
  291. package/lib/esm/hooks/useCustomerContainer.d.ts +1 -1
  292. package/lib/esm/hooks/useOrderContainer.d.ts +1 -1
  293. package/lib/esm/reducers/AddressReducer.d.ts +9 -9
  294. package/lib/esm/reducers/AvailabilityReducer.d.ts +5 -5
  295. package/lib/esm/reducers/BillingAddressReducer.d.ts +4 -4
  296. package/lib/esm/reducers/CustomerReducer.d.ts +4 -4
  297. package/lib/esm/reducers/GiftCardReducer.d.ts +6 -6
  298. package/lib/esm/reducers/InStockSubscriptionReducer.d.ts +3 -3
  299. package/lib/esm/reducers/LineItemReducer.d.ts +6 -6
  300. package/lib/esm/reducers/OrderReducer.d.ts +6 -6
  301. package/lib/esm/reducers/PaymentMethodReducer.d.ts +12 -12
  302. package/lib/esm/reducers/PlaceOrderReducer.d.ts +1 -1
  303. package/lib/esm/reducers/PriceReducer.d.ts +5 -5
  304. package/lib/esm/reducers/ShipmentReducer.d.ts +5 -5
  305. package/lib/esm/reducers/ShippingAddressReducer.d.ts +4 -4
  306. package/lib/esm/reducers/SkuListsReducer.d.ts +2 -2
  307. package/lib/esm/reducers/SkuReducer.d.ts +4 -4
  308. package/lib/esm/typings/errors.d.ts +1 -1
  309. package/lib/esm/typings/index.d.ts +2 -2
  310. package/lib/esm/utils/addressesManager.d.ts +3 -3
  311. package/lib/esm/utils/baseReducer.d.ts +1 -1
  312. package/lib/esm/utils/canPlaceOrder.d.ts +1 -1
  313. package/lib/esm/utils/checkIncludeResource.d.ts +1 -1
  314. package/lib/esm/utils/customMessages.d.ts +1 -1
  315. package/lib/esm/utils/expressPaymentHelper.d.ts +4 -4
  316. package/lib/esm/utils/filterChildren.d.ts +1 -1
  317. package/lib/esm/utils/formCleaner.d.ts +1 -1
  318. package/lib/esm/utils/getCardDetails.d.ts +3 -3
  319. package/lib/esm/utils/getErrors.d.ts +2 -2
  320. package/lib/esm/utils/getLoaderComponent.d.ts +1 -1
  321. package/lib/esm/utils/getPaymentAttributes.d.ts +2 -2
  322. package/lib/esm/utils/getPrices.d.ts +1 -1
  323. package/lib/esm/utils/getSdk.d.ts +1 -1
  324. package/lib/esm/utils/getSkus.d.ts +1 -1
  325. package/lib/esm/utils/hasSubscriptions.d.ts +1 -1
  326. package/lib/esm/utils/organization.d.ts +4 -4
  327. package/lib/esm/utils/organization.js +1 -1
  328. package/lib/esm/utils/payment-methods/sortPaymentMethods.d.ts +2 -2
  329. package/lib/esm/utils/shipments.d.ts +1 -1
  330. package/lib/esm/utils/triggerAttributeHelper.d.ts +2 -2
  331. package/lib/esm/utils/updateOrderSubscriptionCustomerPaymentSource.d.ts +2 -2
  332. package/lib/esm/utils/validateFormFields.d.ts +5 -5
  333. package/lib/tsconfig.prod.esm.tsbuildinfo +1 -1
  334. package/lib/tsconfig.prod.tsbuildinfo +1 -1
  335. package/package.json +39 -19
@@ -1,4 +1,4 @@
1
- import { type DefaultChildrenType } from '../../typings/globals';
1
+ import type { DefaultChildrenType } from '../../typings/globals';
2
2
  import { type JSX } from 'react';
3
3
  interface Props {
4
4
  children?: DefaultChildrenType;
@@ -1,4 +1,4 @@
1
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ChildrenFunction } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  interface Props extends Omit<JSX.IntrinsicElements['span'], 'children'> {
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  /**
5
5
  * The link href
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  /**
5
5
  * The link href
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode, type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  handleClick: () => void;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { CodeErrorType } from '../../typings/errors';
3
- import { type ChildrenFunction } from '../../typings/index';
3
+ import type { ChildrenFunction } from '../../typings/index';
4
4
  export type TResourceError = 'addresses' | 'billing_address' | 'gift_cards' | 'gift_card_or_coupon_code' | 'line_items' | 'orders' | 'payment_methods' | 'prices' | 'shipments' | 'shipping_address' | 'customer_address' | 'sku_options' | 'variant' | 'in_stock_subscriptions';
5
5
  type ErrorChildrenComponentProps = ChildrenFunction<Omit<TErrorComponent, 'children'> & {
6
6
  errors: string[];
@@ -1,5 +1,5 @@
1
1
  import { type RefObject, type JSX } from 'react';
2
- import { type BaseState } from '../../typings/index';
2
+ import type { BaseState } from '../../typings/index';
3
3
  import type { DefaultChildrenType } from '../../typings/globals';
4
4
  interface Props extends Omit<JSX.IntrinsicElements['form'], 'children' | 'ref'> {
5
5
  children: DefaultChildrenType;
@@ -1,4 +1,4 @@
1
- import { type BaseSelectComponentProps } from '../../typings/index';
1
+ import type { BaseSelectComponentProps } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  type Props = Omit<BaseSelectComponentProps, 'options' | 'name'> & {
4
4
  required?: boolean;
@@ -1,4 +1,4 @@
1
- import { type BaseInputComponentProps, type GiftCardInputName } from '../../typings/index';
1
+ import type { BaseInputComponentProps, GiftCardInputName } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  type Props = {
4
4
  name: GiftCardInputName;
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  import type { CodeType } from '../../reducers/OrderReducer';
4
4
  interface ChildrenProps extends Omit<Props, 'children' | 'type'> {
5
5
  code?: string | null;
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
- import { type BaseInputComponentProps } from '../../typings/index';
3
- import { type OrderCodeType } from '../../reducers/OrderReducer';
2
+ import type { BaseInputComponentProps } from '../../typings/index';
3
+ import type { OrderCodeType } from '../../reducers/OrderReducer';
4
4
  type FieldName = 'gift_card_code' | 'coupon_code';
5
5
  type Props = {
6
6
  name?: FieldName;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode, type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
3
- import { type CodeType, type OrderCodeType } from '../../reducers/OrderReducer';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
+ import type { CodeType, OrderCodeType } from '../../reducers/OrderReducer';
4
4
  import type { Order } from '@commercelayer/sdk';
5
5
  interface ChildrenProps extends Omit<Props, 'children' | 'onClick'> {
6
6
  codeType?: OrderCodeType;
@@ -1,5 +1,5 @@
1
- import { type ReactNode, type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ReactNode, JSX } from 'react';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  }
5
5
  interface Props extends Omit<JSX.IntrinsicElements['button'], 'children'> {
@@ -1,4 +1,4 @@
1
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ChildrenFunction } from '../../typings/index';
2
2
  import { type JSX } from 'react';
3
3
  interface Props extends Omit<JSX.IntrinsicElements['button'], 'children' | 'onClick'> {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { type DefaultChildrenType } from '../../typings/globals';
1
+ import type { DefaultChildrenType } from '../../typings/globals';
2
2
  import { type JSX } from 'react';
3
3
  interface Props {
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type BaseAmountComponent, type BasePriceType } from '../../typings/index';
2
+ import type { BaseAmountComponent, BasePriceType } from '../../typings/index';
3
3
  type Props = BaseAmountComponent & {
4
4
  type?: BasePriceType;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
- import { type LineItem } from '@commercelayer/sdk';
3
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { LineItem } from '@commercelayer/sdk';
3
+ import type { ChildrenFunction } from '../../typings/index';
4
4
  export interface TLineItemCode extends Omit<Props, 'children'> {
5
5
  lineItem: LineItem;
6
6
  skuCode: string;
@@ -1,4 +1,4 @@
1
- import { type ConditionalElement } from '../../typings/index';
1
+ import type { ConditionalElement } from '../../typings/index';
2
2
  import { type TGenericChildrenProps, type TResources } from '../utils/GenericFieldComponent';
3
3
  import type { JSX } from "react";
4
4
  type LineItemFieldChildrenProps = TGenericChildrenProps<TResources['LineItem']>;
@@ -1,7 +1,7 @@
1
1
  import { type JSX } from 'react';
2
- import { type LineItem } from '@commercelayer/sdk';
2
+ import type { LineItem } from '@commercelayer/sdk';
3
3
  import type { ChildrenFunction } from '../../typings/index';
4
- import { type TLineItem } from './LineItem';
4
+ import type { TLineItem } from './LineItem';
5
5
  export interface TLineItemImage extends Omit<Props, 'children'> {
6
6
  src: string;
7
7
  lineItem: LineItem;
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { LineItem } from '@commercelayer/sdk';
3
- import { type ChildrenFunction } from '../../typings/index';
3
+ import type { ChildrenFunction } from '../../typings/index';
4
4
  export interface TLineItemName extends Omit<Props, 'children'> {
5
5
  label: string;
6
6
  lineItem: LineItem;
@@ -1,6 +1,6 @@
1
1
  import { type CSSProperties, type JSX } from 'react';
2
- import { type LineItemOption as LineItemOptionType } from '@commercelayer/sdk';
3
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { LineItemOption as LineItemOptionType } from '@commercelayer/sdk';
3
+ import type { ChildrenFunction } from '../../typings/index';
4
4
  export interface TLineItemOption extends Omit<Props, 'children'> {
5
5
  lineItemOption: LineItemOptionType;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
3
- import { type LineItem } from '@commercelayer/sdk';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
+ import type { LineItem } from '@commercelayer/sdk';
4
4
  interface ChildrenProps extends Omit<Props, 'children'> {
5
5
  quantity: number;
6
6
  handleChange: (event: React.MouseEvent<HTMLSelectElement>) => void;
@@ -1,6 +1,6 @@
1
1
  import { type PropsWithoutRef, type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
3
- import { type LineItem } from '@commercelayer/sdk';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
+ import type { LineItem } from '@commercelayer/sdk';
4
4
  interface ChildrenProps extends Omit<Props, 'children'> {
5
5
  handleRemove: (event: React.MouseEvent<HTMLAnchorElement>) => void;
6
6
  label?: string;
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
2
  import { type TypeAccepted } from '../../utils/getLineItemsCount';
3
- import { type ChildrenFunction } from '../../typings/index';
3
+ import type { ChildrenFunction } from '../../typings/index';
4
4
  interface ChildrenProps extends Omit<Props, 'children'> {
5
5
  quantity: number;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  quantity: number;
5
5
  text: string;
@@ -1,6 +1,6 @@
1
1
  import { type PropsWithoutRef, type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
3
- import { type AddToCartReturn, type CustomLineItem, type LineItemOption } from '../../reducers/OrderReducer';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
+ import type { AddToCartReturn, CustomLineItem, LineItemOption } from '../../reducers/OrderReducer';
4
4
  interface TAddToCartButton extends Omit<Props, 'children'> {
5
5
  handleClick: () => AddToCartReturn;
6
6
  }
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function AdjustmentAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default AdjustmentAmount;
@@ -1,5 +1,5 @@
1
1
  import { type MouseEvent, type ReactNode, type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  /**
5
5
  * The url of the cart
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  checkoutUrl: string;
5
5
  href: string;
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function DiscountAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default DiscountAmount;
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function GiftCardAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default GiftCardAmount;
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type BaseMetadataObject } from '../../typings/index';
2
+ import type { BaseMetadataObject } from '../../typings/index';
3
3
  import type { OrderCreate, Order } from '@commercelayer/sdk';
4
4
  import type { DefaultChildrenType } from '../../typings/globals';
5
5
  interface Props {
@@ -45,7 +45,7 @@ type Props = {
45
45
  /**
46
46
  * Columns to show
47
47
  */
48
- columns: Array<OrderListColumn<TOrderList>>;
48
+ columns: OrderListColumn<TOrderList>[];
49
49
  /**
50
50
  * Custom loader component
51
51
  */
@@ -1,4 +1,4 @@
1
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ChildrenFunction } from '../../typings/index';
2
2
  import { type JSX } from 'react';
3
3
  interface Props extends Omit<JSX.IntrinsicElements['span'], 'children'> {
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { type OrderListPaginationContext as TOrderListPaginationContext } from '../../context/OrderListPaginationContext';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  import type { JSX } from "react";
4
4
  interface PaginationButton extends Omit<JSX.IntrinsicElements['button'], 'children' | 'disabled'> {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ChildrenFunction } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  type TAsComponent = keyof Pick<JSX.IntrinsicElements, 'p' | 'span' | 'div'>;
4
4
  type ChildrenProps<A extends TAsComponent> = Omit<Props<A>, 'children'> & {
@@ -1,4 +1,4 @@
1
- import { type ReactNode, type JSX } from 'react';
1
+ import type { ReactNode, JSX } from 'react';
2
2
  interface Props {
3
3
  children: ReactNode;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function PaymentMethodAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default PaymentMethodAmount;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode, type JSX } from 'react';
2
- import { type ChildrenFunction } from '../../typings/index';
2
+ import type { ChildrenFunction } from '../../typings/index';
3
3
  import type { BaseError } from '../../typings/errors';
4
4
  import type { Order } from '@commercelayer/sdk';
5
5
  interface ChildrenProps extends Omit<Props, 'children'> {
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function ShippingAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default ShippingAmount;
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function SubTotalAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default SubTotalAmount;
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function TaxesAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default TaxesAmount;
@@ -1,4 +1,4 @@
1
- import { type BaseAmountComponent } from '../../typings/index';
1
+ import type { BaseAmountComponent } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  export declare function TotalAmount(props: BaseAmountComponent): JSX.Element;
4
4
  export default TotalAmount;
@@ -1,4 +1,4 @@
1
- import { type ConditionalElement } from '../../typings/index';
1
+ import type { ConditionalElement } from '../../typings/index';
2
2
  import { type TGenericChildrenProps, type TResources } from '../utils/GenericFieldComponent';
3
3
  import type { JSX } from "react";
4
4
  type ParcelFieldChildrenProps = TGenericChildrenProps<TResources['Parcel']>;
@@ -1,4 +1,4 @@
1
- import { type ConditionalElement } from '../../typings/index';
1
+ import type { ConditionalElement } from '../../typings/index';
2
2
  import { type TGenericChildrenProps, type TResources } from '../utils/GenericFieldComponent';
3
3
  import type { JSX } from "react";
4
4
  type ParcelLineItemFieldChildrenProps = TGenericChildrenProps<TResources['ParcelLineItem']>;
@@ -1,4 +1,4 @@
1
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ChildrenFunction } from '../../typings/index';
2
2
  import type { Parcel } from '@commercelayer/sdk';
3
3
  import type { JSX } from "react";
4
4
  interface ChildrenProps extends Omit<Props, 'children'> {
@@ -1,4 +1,4 @@
1
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ChildrenFunction } from '../../typings/index';
2
2
  import type { Parcel } from '@commercelayer/sdk';
3
3
  import type { JSX } from "react";
4
4
  interface ChildrenProps extends Omit<Props, 'children'> {
@@ -1,4 +1,4 @@
1
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
1
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
2
  import { type JSX } from 'react';
3
3
  type Props = GatewayBaseType;
4
4
  export declare function AdyenGateway(props: Props): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
1
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
2
  import { type JSX } from 'react';
3
3
  type Props = GatewayBaseType;
4
4
  export declare function BraintreeGateway(props: Props): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
1
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
2
  import { type JSX } from 'react';
3
3
  type Props = GatewayBaseType;
4
4
  export declare function CheckoutComGateway(props: Props): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
1
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
2
  import { type JSX } from 'react';
3
3
  type Props = GatewayBaseType;
4
4
  export declare function ExternalGateway(props: Props): JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
3
3
  type Props = GatewayBaseType;
4
4
  export declare function KlarnaGateway(props: Props): JSX.Element | null;
5
5
  export default KlarnaGateway;
@@ -1,6 +1,6 @@
1
- import { type LoaderType } from '../../typings/index';
1
+ import type { LoaderType } from '../../typings/index';
2
2
  import { type JSX } from 'react';
3
- import { type PaymentSourceProps } from '../payment_source/PaymentSource';
3
+ import type { PaymentSourceProps } from '../payment_source/PaymentSource';
4
4
  export type GatewayBaseType = Props & {
5
5
  show: boolean;
6
6
  loading: boolean;
@@ -1,4 +1,4 @@
1
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
1
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
2
  import { type JSX } from 'react';
3
3
  type Props = Partial<GatewayBaseType>;
4
4
  export declare function PaypalGateway(props: Props): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
1
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
2
  import { type JSX } from 'react';
3
3
  type Props = GatewayBaseType;
4
4
  export declare function StripeGateway(props: Props): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type GatewayBaseType } from '../payment_gateways/PaymentGateway';
1
+ import type { GatewayBaseType } from '../payment_gateways/PaymentGateway';
2
2
  import { type JSX } from 'react';
3
3
  type Props = GatewayBaseType;
4
4
  export declare function WireTransferGateway(props: Props): JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type ChildrenFunction } from '../../typings/index';
1
+ import type { ChildrenFunction } from '../../typings/index';
2
2
  import type { JSX } from "react";
3
3
  interface ChildrenProps extends Omit<Props, 'children'> {
4
4
  labelName: string;
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
- import { type BaseAmountComponent } from '../../typings/index';
2
+ import type { BaseAmountComponent } from '../../typings/index';
3
3
  interface Props extends BaseAmountComponent {
4
4
  type?: 'amount';
5
5
  labelFree?: string;
@@ -1,6 +1,6 @@
1
1
  import { type ChangeEvent, type JSX } from 'react';
2
2
  import type { Order, PaymentMethod } from '@commercelayer/sdk';
3
- import { type ChildrenFunction } from '../../typings/index';
3
+ import type { ChildrenFunction } from '../../typings/index';
4
4
  interface ChildrenProps extends Omit<Props, 'children'> {
5
5
  checked: boolean;
6
6
  handleOnChange: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
@@ -1,73 +1,9 @@
1
- import { type JSX } from 'react';
2
- import { type PaymentSourceProps } from './PaymentSource';
3
- import { type CoreConfiguration, type DropinConfiguration } from '@adyen/adyen-web/auto';
4
- interface StyleDefinitions {
5
- background?: string;
6
- caretColor?: string;
7
- color?: string;
8
- display?: string;
9
- font?: string;
10
- fontFamily?: string;
11
- fontSize?: string;
12
- fontSizeAdjust?: string;
13
- fontSmoothing?: string;
14
- fontStretch?: string;
15
- fontStyle?: string;
16
- fontVariant?: string;
17
- fontVariantAlternates?: string;
18
- fontVariantCaps?: string;
19
- fontVariantEastAsian?: string;
20
- fontVariantLigatures?: string;
21
- fontVariantNumeric?: string;
22
- fontWeight?: string;
23
- letterSpacing?: string;
24
- lineHeight?: string;
25
- mozOsxFontSmoothing?: string;
26
- mozTransition?: string;
27
- outline?: string;
28
- opacity?: string;
29
- padding?: string;
30
- textAlign?: string;
31
- textShadow?: string;
32
- transition?: string;
33
- webkitFontSmoothing?: string;
34
- webkitTransition?: string;
35
- wordSpacing?: string;
36
- }
37
- interface Styles {
38
- error?: StyleDefinitions;
39
- placeholder?: StyleDefinitions;
40
- validated?: StyleDefinitions;
41
- }
42
- type PaypalStyle = Partial<{
43
- /**
44
- * @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#color}
45
- */
46
- color: 'gold' | 'blue' | 'silver' | 'white' | 'black';
47
- /**
48
- * @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#shape}
49
- */
50
- shape: 'rect' | 'pill';
51
- /**
52
- * @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#height}
53
- */
54
- height: string | number;
55
- /**
56
- * @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#label}
57
- */
58
- label: 'paypal' | 'checkout' | 'buynow' | 'pay';
59
- /**
60
- * @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#tagline}
61
- */
62
- tagline: boolean;
63
- /**
64
- * @see {@link https://developer.paypal.com/docs/checkout/integration-features/customize-button/#layout}
65
- */
66
- layout: 'vertical' | 'horizontal';
67
- }>;
1
+ import { type JSX } from "react";
2
+ import type { PaymentSourceProps } from "./PaymentSource";
3
+ import { type CardConfiguration, type CoreConfiguration, type DropinConfiguration, type PayPalConfiguration } from "@adyen/adyen-web/auto";
68
4
  interface PaymentMethodsStyle {
69
- card?: Styles;
70
- paypal?: PaypalStyle;
5
+ card?: CardConfiguration["styles"];
6
+ paypal?: PayPalConfiguration["style"];
71
7
  }
72
8
  /**
73
9
  * Configuration options for the Adyen payment component.
@@ -96,7 +32,7 @@ export interface AdyenPaymentConfig {
96
32
  /**
97
33
  * Configuration options for the payment methods.
98
34
  */
99
- paymentMethodsConfiguration?: DropinConfiguration['paymentMethodsConfiguration'];
35
+ paymentMethodsConfiguration?: DropinConfiguration["paymentMethodsConfiguration"];
100
36
  /**
101
37
  * Callback function to disable a stored payment method.
102
38
  * @param props - An object containing the recurring detail reference and shopper reference.
@@ -110,9 +46,9 @@ export interface AdyenPaymentConfig {
110
46
  interface Props {
111
47
  clientKey?: string;
112
48
  config?: AdyenPaymentConfig;
113
- templateCustomerSaveToWallet?: PaymentSourceProps['templateCustomerSaveToWallet'];
114
- locale?: CoreConfiguration['locale'];
115
- environment?: CoreConfiguration['environment'];
49
+ templateCustomerSaveToWallet?: PaymentSourceProps["templateCustomerSaveToWallet"];
50
+ locale?: CoreConfiguration["locale"];
51
+ environment?: CoreConfiguration["environment"];
116
52
  }
117
- export declare function AdyenPayment({ clientKey, config, templateCustomerSaveToWallet, environment, locale }: Props): JSX.Element | null;
53
+ export declare function AdyenPayment({ clientKey, config, templateCustomerSaveToWallet, environment, locale, }: Props): JSX.Element | null;
118
54
  export default AdyenPayment;
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
- import { type PaymentSourceProps } from './PaymentSource';
3
- import { type HostedFieldFieldOptions } from 'braintree-web';
2
+ import type { PaymentSourceProps } from './PaymentSource';
3
+ import type { HostedFieldFieldOptions } from 'braintree-web';
4
4
  type BraintreeHostedFields<Type> = {
5
5
  [Property in keyof Type]: {
6
6
  label?: string;
@@ -1,6 +1,6 @@
1
1
  import { type JSX } from 'react';
2
- import { type PaymentMethodConfig } from '../../reducers/PaymentMethodReducer';
3
- import { type PaymentSourceProps } from './PaymentSource';
2
+ import type { PaymentMethodConfig } from '../../reducers/PaymentMethodReducer';
3
+ import type { PaymentSourceProps } from './PaymentSource';
4
4
  import { type FramesStyle } from 'frames-react';
5
5
  export interface CheckoutComConfig {
6
6
  containerClassName?: string;