@commercelayer/react-components 2.53.1 → 3.0.0-alpha.1

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 (1091) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +3 -3
  3. package/lib/components/AdyenPayment.d.ts +25 -0
  4. package/lib/components/AdyenPayment.js +1 -0
  5. package/lib/components/AvailabilityContainer.d.ts +14 -0
  6. package/lib/components/AvailabilityContainer.js +1 -0
  7. package/lib/components/AvailabilityTemplate.d.ts +24 -0
  8. package/lib/components/AvailabilityTemplate.js +1 -0
  9. package/lib/components/BillingAddressContainer.d.ts +11 -0
  10. package/lib/components/BillingAddressContainer.js +1 -0
  11. package/lib/components/BillingAddressForm.d.ts +13 -0
  12. package/lib/components/BillingAddressForm.js +1 -0
  13. package/lib/components/BraintreePayment.d.ts +30 -0
  14. package/lib/components/BraintreePayment.js +1 -0
  15. package/lib/components/CheckoutComPayment.d.ts +23 -0
  16. package/lib/components/CheckoutComPayment.js +1 -0
  17. package/lib/components/CheckoutLink.d.ts +23 -0
  18. package/lib/components/CheckoutLink.js +1 -0
  19. package/lib/components/DeliveryLeadTime.d.ts +17 -0
  20. package/lib/components/DeliveryLeadTime.js +1 -0
  21. package/lib/components/DiscountAmount.d.ts +18 -0
  22. package/lib/components/DiscountAmount.js +1 -0
  23. package/lib/components/Errors.d.ts +5 -0
  24. package/lib/components/Errors.js +1 -0
  25. package/lib/components/ExternalFunction.d.ts +14 -0
  26. package/lib/components/ExternalFunction.js +1 -0
  27. package/lib/components/GiftCard.d.ts +18 -0
  28. package/lib/components/GiftCard.js +1 -0
  29. package/lib/components/GiftCardContainer.d.ts +12 -0
  30. package/lib/components/GiftCardContainer.js +1 -0
  31. package/lib/components/GiftCardCurrencySelector.d.ts +22 -0
  32. package/lib/components/GiftCardCurrencySelector.js +1 -0
  33. package/lib/components/GiftCardInput.d.ts +16 -0
  34. package/lib/components/GiftCardInput.js +1 -0
  35. package/lib/components/GiftCardOrCouponCode.d.ts +24 -0
  36. package/lib/components/GiftCardOrCouponCode.js +1 -0
  37. package/lib/components/GiftCardOrCouponForm.d.ts +15 -0
  38. package/lib/components/GiftCardOrCouponForm.js +1 -0
  39. package/lib/components/GiftCardOrCouponInput.d.ts +19 -0
  40. package/lib/components/GiftCardOrCouponInput.js +1 -0
  41. package/lib/components/GiftCardOrCouponRemoveButton.d.ts +26 -0
  42. package/lib/components/GiftCardOrCouponRemoveButton.js +1 -0
  43. package/lib/components/GiftCardOrCouponSubmit.d.ts +16 -0
  44. package/lib/components/GiftCardOrCouponSubmit.js +1 -0
  45. package/lib/{cjs/components → components}/GiftCardRecipient.d.ts +0 -0
  46. package/lib/{cjs/components → components}/GiftCardRecipient.js +0 -0
  47. package/lib/{cjs/components → components}/GiftCardRecipientInput.d.ts +0 -0
  48. package/lib/{cjs/components → components}/GiftCardRecipientInput.js +0 -0
  49. package/lib/components/ItemContainer.d.ts +22 -0
  50. package/lib/components/ItemContainer.js +1 -0
  51. package/lib/components/KlarnaPayment.d.ts +10 -0
  52. package/lib/components/KlarnaPayment.js +1 -0
  53. package/lib/components/LineItem.d.ts +15 -0
  54. package/lib/components/LineItem.js +1 -0
  55. package/lib/components/LineItemAmount.d.ts +20 -0
  56. package/lib/components/LineItemAmount.js +1 -0
  57. package/lib/components/LineItemCode.d.ts +18 -0
  58. package/lib/components/LineItemCode.js +1 -0
  59. package/lib/components/LineItemImage.d.ts +23 -0
  60. package/lib/components/LineItemImage.js +1 -0
  61. package/lib/components/LineItemName.d.ts +17 -0
  62. package/lib/components/LineItemName.js +1 -0
  63. package/lib/components/LineItemOption.d.ts +30 -0
  64. package/lib/components/LineItemOption.js +1 -0
  65. package/lib/components/LineItemOptions.d.ts +19 -0
  66. package/lib/components/LineItemOptions.js +1 -0
  67. package/lib/components/LineItemQuantity.d.ts +26 -0
  68. package/lib/components/LineItemQuantity.js +1 -0
  69. package/lib/components/LineItemRemoveLink.d.ts +22 -0
  70. package/lib/components/LineItemRemoveLink.js +1 -0
  71. package/lib/components/LineItemsContainer.d.ts +20 -0
  72. package/lib/components/LineItemsContainer.js +1 -0
  73. package/lib/components/LineItemsCount.d.ts +22 -0
  74. package/lib/components/LineItemsCount.js +1 -0
  75. package/lib/components/LineItemsEmpty.d.ts +23 -0
  76. package/lib/components/LineItemsEmpty.js +1 -0
  77. package/lib/components/MetadataInput.d.ts +15 -0
  78. package/lib/components/MetadataInput.js +1 -0
  79. package/lib/components/PaymentGateway.d.ts +16 -0
  80. package/lib/components/PaymentGateway.js +1 -0
  81. package/lib/components/PaymentMethod.d.ts +22 -0
  82. package/lib/components/PaymentMethod.js +1 -0
  83. package/lib/components/PaymentMethodAmount.d.ts +18 -0
  84. package/lib/components/PaymentMethodAmount.js +1 -0
  85. package/lib/components/PaymentMethodName.d.ts +15 -0
  86. package/lib/components/PaymentMethodName.js +1 -0
  87. package/lib/components/PaymentMethodPrice.d.ts +20 -0
  88. package/lib/components/PaymentMethodPrice.js +1 -0
  89. package/lib/components/PaymentMethodRadioButton.d.ts +18 -0
  90. package/lib/components/PaymentMethodRadioButton.js +1 -0
  91. package/lib/components/PaymentMethodsContainer.d.ts +14 -0
  92. package/lib/components/PaymentMethodsContainer.js +1 -0
  93. package/lib/components/PaymentSource.d.ts +26 -0
  94. package/lib/components/PaymentSource.js +1 -0
  95. package/lib/components/PaymentSourceBrandIcon.d.ts +25 -0
  96. package/lib/components/PaymentSourceBrandIcon.js +1 -0
  97. package/lib/components/PaymentSourceBrandName.d.ts +19 -0
  98. package/lib/components/PaymentSourceBrandName.js +1 -0
  99. package/lib/components/PaymentSourceDetail.d.ts +18 -0
  100. package/lib/components/PaymentSourceDetail.js +1 -0
  101. package/lib/components/PaymentSourceEditButton.d.ts +16 -0
  102. package/lib/components/PaymentSourceEditButton.js +1 -0
  103. package/lib/components/PaypalPayment.d.ts +12 -0
  104. package/lib/components/PaypalPayment.js +1 -0
  105. package/lib/components/Price.d.ts +28 -0
  106. package/lib/components/Price.js +1 -0
  107. package/lib/components/PricesContainer.d.ts +27 -0
  108. package/lib/components/PricesContainer.js +1 -0
  109. package/lib/components/QuantitySelector.d.ts +31 -0
  110. package/lib/components/QuantitySelector.js +1 -0
  111. package/lib/components/SaveAddressesButton.d.ts +23 -0
  112. package/lib/components/SaveAddressesButton.js +1 -0
  113. package/lib/components/SaveCustomerButton.d.ts +24 -0
  114. package/lib/components/SaveCustomerButton.js +1 -0
  115. package/lib/components/Shipment.d.ts +15 -0
  116. package/lib/components/Shipment.js +1 -0
  117. package/lib/components/ShipmentField.d.ts +19 -0
  118. package/lib/components/ShipmentField.js +1 -0
  119. package/lib/components/ShipmentsContainer.d.ts +12 -0
  120. package/lib/components/ShipmentsContainer.js +1 -0
  121. package/lib/components/ShippingAddressContainer.d.ts +11 -0
  122. package/lib/components/ShippingAddressContainer.js +1 -0
  123. package/lib/components/ShippingAddressForm.d.ts +13 -0
  124. package/lib/components/ShippingAddressForm.js +1 -0
  125. package/lib/components/ShippingAmount.d.ts +15 -0
  126. package/lib/components/ShippingAmount.js +1 -0
  127. package/lib/components/ShippingMethod.d.ts +15 -0
  128. package/lib/components/ShippingMethod.js +1 -0
  129. package/lib/components/ShippingMethodName.d.ts +17 -0
  130. package/lib/components/ShippingMethodName.js +1 -0
  131. package/lib/components/ShippingMethodPrice.d.ts +25 -0
  132. package/lib/components/ShippingMethodPrice.js +1 -0
  133. package/lib/components/ShippingMethodRadioButton.d.ts +19 -0
  134. package/lib/components/ShippingMethodRadioButton.js +1 -0
  135. package/lib/components/StockTransfer.d.ts +12 -0
  136. package/lib/components/StockTransfer.js +1 -0
  137. package/lib/components/StockTransferField.d.ts +10 -0
  138. package/lib/components/StockTransferField.js +1 -0
  139. package/lib/components/StripePayment.d.ts +18 -0
  140. package/lib/components/StripePayment.js +1 -0
  141. package/lib/components/SubmitButton.d.ts +19 -0
  142. package/lib/components/SubmitButton.js +1 -0
  143. package/lib/components/VariantSelector.d.ts +52 -0
  144. package/lib/components/VariantSelector.js +1 -0
  145. package/lib/components/VariantsContainer.d.ts +20 -0
  146. package/lib/components/VariantsContainer.js +1 -0
  147. package/lib/components/WireTransferPayment.d.ts +10 -0
  148. package/lib/components/WireTransferPayment.js +1 -0
  149. package/lib/components/addresses/Address.d.ts +18 -0
  150. package/lib/components/addresses/Address.js +1 -0
  151. package/lib/components/addresses/AddressCountrySelector.d.ts +26 -0
  152. package/lib/components/addresses/AddressCountrySelector.js +1 -0
  153. package/lib/components/addresses/AddressField.d.ts +43 -0
  154. package/lib/components/addresses/AddressField.js +1 -0
  155. package/lib/components/addresses/AddressInput.d.ts +19 -0
  156. package/lib/components/addresses/AddressInput.js +1 -0
  157. package/lib/components/addresses/AddressStateSelector.d.ts +27 -0
  158. package/lib/components/addresses/AddressStateSelector.js +1 -0
  159. package/lib/components/addresses/AddressesContainer.d.ts +15 -0
  160. package/lib/components/addresses/AddressesContainer.js +1 -0
  161. package/lib/components/auth/CommerceLayer.d.ts +15 -0
  162. package/lib/components/auth/CommerceLayer.js +1 -0
  163. package/lib/components/customers/CustomerAddressForm.d.ts +13 -0
  164. package/lib/components/customers/CustomerAddressForm.js +1 -0
  165. package/lib/components/customers/CustomerContainer.d.ts +17 -0
  166. package/lib/components/customers/CustomerContainer.js +1 -0
  167. package/lib/components/customers/CustomerField.d.ts +10 -0
  168. package/lib/components/customers/CustomerField.js +1 -0
  169. package/lib/components/customers/CustomerInput.d.ts +23 -0
  170. package/lib/components/customers/CustomerInput.js +1 -0
  171. package/lib/components/gateways/AdyenGateway.d.ts +5 -0
  172. package/lib/components/gateways/AdyenGateway.js +1 -0
  173. package/lib/components/gateways/BraintreeGateway.d.ts +5 -0
  174. package/lib/components/gateways/BraintreeGateway.js +1 -0
  175. package/lib/components/gateways/CheckoutComGateway.d.ts +5 -0
  176. package/lib/components/gateways/CheckoutComGateway.js +1 -0
  177. package/lib/components/gateways/KlarnaGateway.d.ts +5 -0
  178. package/lib/components/gateways/KlarnaGateway.js +1 -0
  179. package/lib/components/gateways/PaypalGateway.d.ts +5 -0
  180. package/lib/components/gateways/PaypalGateway.js +1 -0
  181. package/lib/components/gateways/StripeGateway.d.ts +5 -0
  182. package/lib/components/gateways/StripeGateway.js +1 -0
  183. package/lib/components/gateways/WireTransferGateway.d.ts +5 -0
  184. package/lib/components/gateways/WireTransferGateway.js +1 -0
  185. package/lib/components/orders/AddToCartButton.d.ts +34 -0
  186. package/lib/components/orders/AddToCartButton.js +1 -0
  187. package/lib/components/orders/AdjustmentAmount.d.ts +18 -0
  188. package/lib/components/orders/AdjustmentAmount.js +1 -0
  189. package/lib/components/orders/CartLink.d.ts +12 -0
  190. package/lib/components/orders/CartLink.js +1 -0
  191. package/lib/components/orders/GiftCardAmount.d.ts +15 -0
  192. package/lib/components/orders/GiftCardAmount.js +1 -0
  193. package/lib/components/orders/OrderContainer.d.ts +26 -0
  194. package/lib/components/orders/OrderContainer.js +1 -0
  195. package/lib/components/orders/OrderList.d.ts +61 -0
  196. package/lib/components/orders/OrderList.js +1 -0
  197. package/lib/components/orders/OrderListRow.d.ts +30 -0
  198. package/lib/components/orders/OrderListRow.js +1 -0
  199. package/lib/components/orders/OrderNumber.d.ts +11 -0
  200. package/lib/components/orders/OrderNumber.js +1 -0
  201. package/lib/components/orders/OrderStorage.d.ts +16 -0
  202. package/lib/components/orders/OrderStorage.js +1 -0
  203. package/lib/components/orders/PlaceOrderButton.d.ts +24 -0
  204. package/lib/components/orders/PlaceOrderButton.js +1 -0
  205. package/lib/components/orders/PlaceOrderContainer.d.ts +14 -0
  206. package/lib/components/orders/PlaceOrderContainer.js +1 -0
  207. package/lib/components/orders/PrivacyAndTermsCheckbox.d.ts +10 -0
  208. package/lib/components/orders/PrivacyAndTermsCheckbox.js +1 -0
  209. package/lib/components/orders/SubTotalAmount.d.ts +18 -0
  210. package/lib/components/orders/SubTotalAmount.js +1 -0
  211. package/lib/components/orders/TaxesAmount.d.ts +18 -0
  212. package/lib/components/orders/TaxesAmount.js +1 -0
  213. package/lib/components/orders/TotalAmount.d.ts +18 -0
  214. package/lib/components/orders/TotalAmount.js +1 -0
  215. package/lib/components/skus/SkuField.d.ts +14 -0
  216. package/lib/components/skus/SkuField.js +1 -0
  217. package/lib/components/skus/SkuList.d.ts +14 -0
  218. package/lib/components/skus/SkuList.js +1 -0
  219. package/lib/components/skus/SkuListsContainer.d.ts +12 -0
  220. package/lib/components/skus/SkuListsContainer.js +1 -0
  221. package/lib/components/skus/SkuOption.d.ts +14 -0
  222. package/lib/components/skus/SkuOption.js +1 -0
  223. package/lib/components/skus/SkuOptionInput.d.ts +15 -0
  224. package/lib/components/skus/SkuOptionInput.js +1 -0
  225. package/lib/components/skus/SkuOptionsContainer.d.ts +14 -0
  226. package/lib/components/skus/SkuOptionsContainer.js +1 -0
  227. package/lib/components/skus/Skus.d.ts +11 -0
  228. package/lib/components/skus/Skus.js +1 -0
  229. package/lib/components/skus/SkusContainer.d.ts +23 -0
  230. package/lib/components/skus/SkusContainer.js +1 -0
  231. package/lib/components/utils/AddressCardsTemplate.d.ts +27 -0
  232. package/lib/components/utils/AddressCardsTemplate.js +1 -0
  233. package/lib/{cjs/components → components}/utils/BaseField.d.ts +0 -0
  234. package/lib/components/utils/BaseField.js +1 -0
  235. package/lib/components/utils/BaseInput.d.ts +5 -0
  236. package/lib/components/utils/BaseInput.js +1 -0
  237. package/lib/{cjs/components → components}/utils/BaseOrderPrice.d.ts +0 -0
  238. package/lib/components/utils/BaseOrderPrice.js +1 -0
  239. package/lib/{cjs/components → components}/utils/BaseSelect.d.ts +0 -0
  240. package/lib/components/utils/BaseSelect.js +1 -0
  241. package/lib/components/utils/GenericFieldComponent.d.ts +42 -0
  242. package/lib/components/utils/GenericFieldComponent.js +1 -0
  243. package/lib/components/utils/Parent.d.ts +6 -0
  244. package/lib/components/utils/Parent.js +1 -0
  245. package/lib/components/utils/PaymentCardsTemplate.d.ts +23 -0
  246. package/lib/components/utils/PaymentCardsTemplate.js +1 -0
  247. package/lib/components/utils/PriceTemplate.d.ts +8 -0
  248. package/lib/components/utils/PriceTemplate.js +1 -0
  249. package/lib/{cjs/components → components}/utils/VariantTemplate.d.ts +0 -0
  250. package/lib/components/utils/VariantTemplate.js +1 -0
  251. package/lib/{cjs/components → components}/utils/getAllErrors.d.ts +0 -0
  252. package/lib/components/utils/getAllErrors.js +1 -0
  253. package/lib/config/components.d.ts +934 -0
  254. package/lib/config/components.js +1 -0
  255. package/lib/{cjs/config → config}/currency.d.ts +0 -0
  256. package/lib/{esm/config → config}/currency.js +0 -0
  257. package/lib/context/AddressChildrenContext.d.ts +7 -0
  258. package/lib/context/AddressChildrenContext.js +1 -0
  259. package/lib/context/AddressContext.d.ts +17 -0
  260. package/lib/{esm/context → context}/AddressContext.js +0 -0
  261. package/lib/{cjs/context → context}/AvailabilityContext.d.ts +0 -0
  262. package/lib/{esm/context → context}/AvailabilityContext.js +0 -0
  263. package/lib/context/BillingAddressContext.d.ts +10 -0
  264. package/lib/context/BillingAddressContext.js +1 -0
  265. package/lib/context/BillingAddressFormContext.d.ts +25 -0
  266. package/lib/{esm/context → context}/BillingAddressFormContext.js +0 -0
  267. package/lib/{cjs/context → context}/CommerceLayerContext.d.ts +0 -0
  268. package/lib/{esm/context → context}/CommerceLayerContext.js +0 -0
  269. package/lib/context/CouponAndGiftCardFormContext.d.ts +9 -0
  270. package/lib/{esm/context → context}/CouponAndGiftCardFormContext.js +0 -0
  271. package/lib/context/CustomerAddressFormContext.d.ts +20 -0
  272. package/lib/context/CustomerAddressFormContext.js +1 -0
  273. package/lib/context/CustomerContext.d.ts +22 -0
  274. package/lib/context/CustomerContext.js +1 -0
  275. package/lib/{cjs/context → context}/ExternalFunctionContext.d.ts +0 -0
  276. package/lib/{esm/context → context}/ExternalFunctionContext.js +0 -0
  277. package/lib/{cjs/context → context}/GiftCardContext.d.ts +0 -0
  278. package/lib/{esm/context → context}/GiftCardContext.js +0 -0
  279. package/lib/{cjs/context → context}/ItemContext.d.ts +0 -0
  280. package/lib/{esm/context → context}/ItemContext.js +0 -0
  281. package/lib/{cjs/context → context}/LineItemChildrenContext.d.ts +0 -0
  282. package/lib/{esm/context → context}/LineItemChildrenContext.js +0 -0
  283. package/lib/{cjs/context → context}/LineItemContext.d.ts +0 -0
  284. package/lib/{esm/context → context}/LineItemContext.js +0 -0
  285. package/lib/{cjs/context → context}/LineItemOptionChildrenContext.d.ts +0 -0
  286. package/lib/{esm/context → context}/LineItemOptionChildrenContext.js +0 -0
  287. package/lib/context/OrderContext.d.ts +30 -0
  288. package/lib/context/OrderContext.js +1 -0
  289. package/lib/context/OrderListChildrenContext.d.ts +60 -0
  290. package/lib/context/OrderListChildrenContext.js +1 -0
  291. package/lib/{cjs/context → context}/OrderStorageContext.d.ts +0 -0
  292. package/lib/{esm/context → context}/OrderStorageContext.js +0 -0
  293. package/lib/{cjs/context → context}/PaymentMethodChildrenContext.d.ts +0 -0
  294. package/lib/{esm/context → context}/PaymentMethodChildrenContext.js +0 -0
  295. package/lib/{cjs/context → context}/PaymentMethodContext.d.ts +0 -0
  296. package/lib/{esm/context → context}/PaymentMethodContext.js +0 -0
  297. package/lib/context/PaymentSourceContext.d.ts +14 -0
  298. package/lib/{esm/context → context}/PaymentSourceContext.js +0 -0
  299. package/lib/context/PlaceOrderContext.d.ts +18 -0
  300. package/lib/{esm/context → context}/PlaceOrderContext.js +0 -0
  301. package/lib/{cjs/context → context}/PricesContext.d.ts +0 -0
  302. package/lib/{esm/context → context}/PricesContext.js +0 -0
  303. package/lib/{cjs/context → context}/ShipmentChildrenContext.d.ts +0 -0
  304. package/lib/{esm/context → context}/ShipmentChildrenContext.js +0 -0
  305. package/lib/{cjs/context → context}/ShipmentContext.d.ts +0 -0
  306. package/lib/{esm/context → context}/ShipmentContext.js +0 -0
  307. package/lib/context/ShippingAddressContext.d.ts +10 -0
  308. package/lib/{esm/context → context}/ShippingAddressContext.js +0 -0
  309. package/lib/{cjs/context → context}/ShippingAddressFormContext.d.ts +0 -0
  310. package/lib/{esm/context → context}/ShippingAddressFormContext.js +0 -0
  311. package/lib/{cjs/context → context}/ShippingMethodChildrenContext.d.ts +0 -0
  312. package/lib/{esm/context → context}/ShippingMethodChildrenContext.js +0 -0
  313. package/lib/context/SkuChildrenContext.d.ts +9 -0
  314. package/lib/context/SkuChildrenContext.js +1 -0
  315. package/lib/context/SkuContext.d.ts +9 -0
  316. package/lib/context/SkuContext.js +1 -0
  317. package/lib/{cjs/context → context}/SkuListsContext.d.ts +0 -0
  318. package/lib/{esm/context → context}/SkuListsContext.js +0 -0
  319. package/lib/{cjs/context → context}/SkuOptionChildrenContext.d.ts +0 -0
  320. package/lib/{esm/context → context}/SkuOptionChildrenContext.js +0 -0
  321. package/lib/{cjs/context → context}/SkuOptionsContext.d.ts +0 -0
  322. package/lib/{esm/context → context}/SkuOptionsContext.js +0 -0
  323. package/lib/{cjs/context → context}/StockTransferChildrenContext.d.ts +0 -0
  324. package/lib/{esm/context → context}/StockTransferChildrenContext.js +0 -0
  325. package/lib/{cjs/context → context}/VariantsContext.d.ts +0 -0
  326. package/lib/{esm/context → context}/VariantsContext.js +0 -0
  327. package/lib/index.d.ts +107 -0
  328. package/lib/index.js +1 -0
  329. package/lib/reducers/AddressReducer.d.ts +60 -0
  330. package/lib/reducers/AddressReducer.js +1 -0
  331. package/lib/reducers/AvailabilityReducer.d.ts +61 -0
  332. package/lib/reducers/AvailabilityReducer.js +1 -0
  333. package/lib/{cjs/reducers → reducers}/BillingAddressReducer.d.ts +0 -0
  334. package/lib/reducers/BillingAddressReducer.js +1 -0
  335. package/lib/reducers/CustomerReducer.d.ts +131 -0
  336. package/lib/reducers/CustomerReducer.js +1 -0
  337. package/lib/{cjs/reducers → reducers}/GiftCardReducer.d.ts +0 -0
  338. package/lib/reducers/GiftCardReducer.js +1 -0
  339. package/lib/{cjs/reducers → reducers}/ItemReducer.d.ts +0 -0
  340. package/lib/{esm/reducers → reducers}/ItemReducer.js +0 -0
  341. package/lib/{cjs/reducers → reducers}/LineItemReducer.d.ts +0 -0
  342. package/lib/reducers/LineItemReducer.js +1 -0
  343. package/lib/reducers/OrderReducer.d.ts +147 -0
  344. package/lib/reducers/OrderReducer.js +1 -0
  345. package/lib/reducers/PaymentMethodReducer.d.ts +151 -0
  346. package/lib/reducers/PaymentMethodReducer.js +1 -0
  347. package/lib/reducers/PlaceOrderReducer.d.ts +59 -0
  348. package/lib/reducers/PlaceOrderReducer.js +1 -0
  349. package/lib/{cjs/reducers → reducers}/PriceReducer.d.ts +0 -0
  350. package/lib/{esm/reducers → reducers}/PriceReducer.js +0 -0
  351. package/lib/{cjs/reducers → reducers}/ShipmentReducer.d.ts +0 -0
  352. package/lib/reducers/ShipmentReducer.js +1 -0
  353. package/lib/{cjs/reducers → reducers}/ShippingAddressReducer.d.ts +0 -0
  354. package/lib/reducers/ShippingAddressReducer.js +1 -0
  355. package/lib/{cjs/reducers → reducers}/SkuListsReducer.d.ts +0 -0
  356. package/lib/{esm/reducers → reducers}/SkuListsReducer.js +0 -0
  357. package/lib/{cjs/reducers → reducers}/SkuOptionsReducer.d.ts +0 -0
  358. package/lib/{esm/reducers → reducers}/SkuOptionsReducer.js +0 -0
  359. package/lib/reducers/SkuReducer.d.ts +21 -0
  360. package/lib/reducers/SkuReducer.js +1 -0
  361. package/lib/reducers/VariantReducer.d.ts +72 -0
  362. package/lib/reducers/VariantReducer.js +1 -0
  363. package/lib/typings/errors.d.ts +51 -0
  364. package/lib/typings/errors.js +1 -0
  365. package/lib/typings/index.d.ts +137 -0
  366. package/lib/{esm/typings → typings}/index.js +0 -0
  367. package/lib/{cjs/utils → utils}/PropsType.d.ts +0 -0
  368. package/lib/{esm/utils → utils}/PropsType.js +0 -0
  369. package/lib/utils/addressesManager.d.ts +28 -0
  370. package/lib/utils/addressesManager.js +1 -0
  371. package/lib/{cjs/utils → utils}/baseReducer.d.ts +0 -0
  372. package/lib/{esm/utils → utils}/baseReducer.js +0 -0
  373. package/lib/{cjs/utils → utils}/browserInfo.d.ts +0 -0
  374. package/lib/{esm/utils → utils}/browserInfo.js +0 -0
  375. package/lib/utils/checkIncludeResource.d.ts +8 -0
  376. package/lib/utils/checkIncludeResource.js +1 -0
  377. package/lib/utils/childrenTypes.d.ts +9 -0
  378. package/lib/utils/childrenTypes.js +1 -0
  379. package/lib/utils/compareObjAttribute.d.ts +7 -0
  380. package/lib/utils/compareObjAttribute.js +1 -0
  381. package/lib/{cjs/utils → utils}/countryStateCity.d.ts +0 -0
  382. package/lib/utils/countryStateCity.js +1 -0
  383. package/lib/utils/customMessages.d.ts +2 -0
  384. package/lib/utils/customMessages.js +1 -0
  385. package/lib/{cjs/utils → utils}/customerOrderOptions.d.ts +0 -0
  386. package/lib/{esm/utils → utils}/customerOrderOptions.js +0 -0
  387. package/lib/{cjs/utils → utils}/getAmount.d.ts +0 -0
  388. package/lib/{esm/utils → utils}/getAmount.js +0 -0
  389. package/lib/utils/getCardDetails.d.ts +15 -0
  390. package/lib/utils/getCardDetails.js +1 -0
  391. package/lib/utils/getCartLink.d.ts +7 -0
  392. package/lib/utils/getCartLink.js +1 -0
  393. package/lib/{cjs/utils → utils}/getCurrentItemKey.d.ts +0 -0
  394. package/lib/utils/getCurrentItemKey.js +1 -0
  395. package/lib/utils/getErrors.d.ts +11 -0
  396. package/lib/utils/getErrors.js +1 -0
  397. package/lib/utils/getLineItemsCount.d.ts +10 -0
  398. package/lib/utils/getLineItemsCount.js +1 -0
  399. package/lib/{cjs/utils → utils}/getLoaderComponent.d.ts +0 -0
  400. package/lib/utils/getLoaderComponent.js +1 -0
  401. package/lib/{cjs/utils → utils}/getPrices.d.ts +0 -0
  402. package/lib/utils/getPrices.js +1 -0
  403. package/lib/{cjs/utils → utils}/getSdk.d.ts +0 -0
  404. package/lib/{esm/utils → utils}/getSdk.js +0 -0
  405. package/lib/{cjs/utils → utils}/getSkus.d.ts +0 -0
  406. package/lib/utils/getSkus.js +1 -0
  407. package/lib/utils/hooks/useExternalScript.d.ts +1 -0
  408. package/lib/utils/hooks/useExternalScript.js +1 -0
  409. package/lib/utils/icons.d.ts +3 -0
  410. package/lib/utils/icons.js +1 -0
  411. package/lib/utils/isDate.d.ts +1 -0
  412. package/lib/utils/isDate.js +1 -0
  413. package/lib/{cjs/utils → utils}/isEmptyStates.d.ts +0 -0
  414. package/lib/{esm/utils → utils}/isEmptyStates.js +0 -0
  415. package/lib/{cjs/utils → utils}/isJSON.d.ts +0 -0
  416. package/lib/{esm/utils → utils}/isJSON.js +0 -0
  417. package/lib/utils/jwt.d.ts +27 -0
  418. package/lib/{esm/utils → utils}/jwt.js +0 -0
  419. package/lib/{cjs/utils → utils}/localStorage.d.ts +0 -0
  420. package/lib/{esm/utils → utils}/localStorage.js +0 -0
  421. package/lib/{cjs/utils → utils}/organization.d.ts +0 -0
  422. package/lib/{esm/utils → utils}/organization.js +0 -0
  423. package/lib/{cjs/utils → utils}/paypalPayment.d.ts +0 -0
  424. package/lib/{esm/utils → utils}/paypalPayment.js +0 -0
  425. package/lib/utils/placeholderImages.d.ts +2 -0
  426. package/lib/utils/placeholderImages.js +1 -0
  427. package/lib/{cjs/utils → utils}/promisify.d.ts +0 -0
  428. package/lib/utils/promisify.js +1 -0
  429. package/lib/utils/scrollbarWidth.d.ts +1 -0
  430. package/lib/utils/scrollbarWidth.js +1 -0
  431. package/lib/utils/shipments.d.ts +3 -0
  432. package/lib/utils/shipments.js +1 -0
  433. package/lib/utils/validateFormFields.d.ts +22 -0
  434. package/lib/utils/validateFormFields.js +1 -0
  435. package/package.json +98 -95
  436. package/lib/cjs/components/AddToCartButton.d.ts +0 -20
  437. package/lib/cjs/components/AddToCartButton.js +0 -1
  438. package/lib/cjs/components/Address.d.ts +0 -13
  439. package/lib/cjs/components/Address.js +0 -1
  440. package/lib/cjs/components/AddressCountrySelector.d.ts +0 -9
  441. package/lib/cjs/components/AddressCountrySelector.js +0 -1
  442. package/lib/cjs/components/AddressField.d.ts +0 -15
  443. package/lib/cjs/components/AddressField.js +0 -1
  444. package/lib/cjs/components/AddressInput.d.ts +0 -7
  445. package/lib/cjs/components/AddressInput.js +0 -1
  446. package/lib/cjs/components/AddressStateSelector.d.ts +0 -11
  447. package/lib/cjs/components/AddressStateSelector.js +0 -1
  448. package/lib/cjs/components/AddressesContainer.d.ts +0 -7
  449. package/lib/cjs/components/AddressesContainer.js +0 -1
  450. package/lib/cjs/components/AdjustmentAmount.d.ts +0 -4
  451. package/lib/cjs/components/AdjustmentAmount.js +0 -1
  452. package/lib/cjs/components/AdyenPayment.d.ts +0 -25
  453. package/lib/cjs/components/AdyenPayment.js +0 -1
  454. package/lib/cjs/components/AvailabilityContainer.d.ts +0 -7
  455. package/lib/cjs/components/AvailabilityContainer.js +0 -1
  456. package/lib/cjs/components/AvailabilityTemplate.d.ts +0 -15
  457. package/lib/cjs/components/AvailabilityTemplate.js +0 -1
  458. package/lib/cjs/components/BillingAddressContainer.d.ts +0 -6
  459. package/lib/cjs/components/BillingAddressContainer.js +0 -1
  460. package/lib/cjs/components/BillingAddressForm.d.ts +0 -8
  461. package/lib/cjs/components/BillingAddressForm.js +0 -1
  462. package/lib/cjs/components/BraintreePayment.d.ts +0 -30
  463. package/lib/cjs/components/BraintreePayment.js +0 -1
  464. package/lib/cjs/components/CheckoutLink.d.ts +0 -11
  465. package/lib/cjs/components/CheckoutLink.js +0 -1
  466. package/lib/cjs/components/CommerceLayer.d.ts +0 -8
  467. package/lib/cjs/components/CommerceLayer.js +0 -1
  468. package/lib/cjs/components/CustomerContainer.d.ts +0 -7
  469. package/lib/cjs/components/CustomerContainer.js +0 -1
  470. package/lib/cjs/components/CustomerInput.d.ts +0 -11
  471. package/lib/cjs/components/CustomerInput.js +0 -1
  472. package/lib/cjs/components/DeliveryLeadTime.d.ts +0 -10
  473. package/lib/cjs/components/DeliveryLeadTime.js +0 -1
  474. package/lib/cjs/components/DiscountAmount.d.ts +0 -4
  475. package/lib/cjs/components/DiscountAmount.js +0 -1
  476. package/lib/cjs/components/Errors.d.ts +0 -5
  477. package/lib/cjs/components/Errors.js +0 -1
  478. package/lib/cjs/components/ExternalFunction.d.ts +0 -7
  479. package/lib/cjs/components/ExternalFunction.js +0 -1
  480. package/lib/cjs/components/GiftCard.d.ts +0 -8
  481. package/lib/cjs/components/GiftCard.js +0 -1
  482. package/lib/cjs/components/GiftCardAmount.d.ts +0 -4
  483. package/lib/cjs/components/GiftCardAmount.js +0 -1
  484. package/lib/cjs/components/GiftCardContainer.d.ts +0 -6
  485. package/lib/cjs/components/GiftCardContainer.js +0 -1
  486. package/lib/cjs/components/GiftCardCurrencySelector.d.ts +0 -7
  487. package/lib/cjs/components/GiftCardCurrencySelector.js +0 -1
  488. package/lib/cjs/components/GiftCardInput.d.ts +0 -7
  489. package/lib/cjs/components/GiftCardInput.js +0 -1
  490. package/lib/cjs/components/GiftCardOrCouponCode.d.ts +0 -13
  491. package/lib/cjs/components/GiftCardOrCouponCode.js +0 -1
  492. package/lib/cjs/components/GiftCardOrCouponForm.d.ts +0 -10
  493. package/lib/cjs/components/GiftCardOrCouponForm.js +0 -1
  494. package/lib/cjs/components/GiftCardOrCouponInput.d.ts +0 -8
  495. package/lib/cjs/components/GiftCardOrCouponInput.js +0 -1
  496. package/lib/cjs/components/GiftCardOrCouponRemoveButton.d.ts +0 -16
  497. package/lib/cjs/components/GiftCardOrCouponRemoveButton.js +0 -1
  498. package/lib/cjs/components/GiftCardOrCouponSubmit.d.ts +0 -9
  499. package/lib/cjs/components/GiftCardOrCouponSubmit.js +0 -1
  500. package/lib/cjs/components/ItemContainer.d.ts +0 -11
  501. package/lib/cjs/components/ItemContainer.js +0 -1
  502. package/lib/cjs/components/LineItem.d.ts +0 -8
  503. package/lib/cjs/components/LineItem.js +0 -1
  504. package/lib/cjs/components/LineItemAmount.d.ts +0 -7
  505. package/lib/cjs/components/LineItemAmount.js +0 -1
  506. package/lib/cjs/components/LineItemCode.d.ts +0 -12
  507. package/lib/cjs/components/LineItemCode.js +0 -1
  508. package/lib/cjs/components/LineItemImage.d.ts +0 -16
  509. package/lib/cjs/components/LineItemImage.js +0 -1
  510. package/lib/cjs/components/LineItemName.d.ts +0 -11
  511. package/lib/cjs/components/LineItemName.js +0 -1
  512. package/lib/cjs/components/LineItemOption.d.ts +0 -19
  513. package/lib/cjs/components/LineItemOption.js +0 -1
  514. package/lib/cjs/components/LineItemOptions.d.ts +0 -14
  515. package/lib/cjs/components/LineItemOptions.js +0 -1
  516. package/lib/cjs/components/LineItemQuantity.d.ts +0 -14
  517. package/lib/cjs/components/LineItemQuantity.js +0 -1
  518. package/lib/cjs/components/LineItemRemoveLink.d.ts +0 -12
  519. package/lib/cjs/components/LineItemRemoveLink.js +0 -1
  520. package/lib/cjs/components/LineItemsContainer.d.ts +0 -8
  521. package/lib/cjs/components/LineItemsContainer.js +0 -1
  522. package/lib/cjs/components/LineItemsCount.d.ts +0 -12
  523. package/lib/cjs/components/LineItemsCount.js +0 -1
  524. package/lib/cjs/components/LineItemsEmpty.d.ts +0 -12
  525. package/lib/cjs/components/LineItemsEmpty.js +0 -1
  526. package/lib/cjs/components/MetadataInput.d.ts +0 -5
  527. package/lib/cjs/components/MetadataInput.js +0 -1
  528. package/lib/cjs/components/OrderContainer.d.ts +0 -11
  529. package/lib/cjs/components/OrderContainer.js +0 -1
  530. package/lib/cjs/components/OrderNumber.d.ts +0 -5
  531. package/lib/cjs/components/OrderNumber.js +0 -1
  532. package/lib/cjs/components/OrderStorage.d.ts +0 -8
  533. package/lib/cjs/components/OrderStorage.js +0 -1
  534. package/lib/cjs/components/PaymentGateway.d.ts +0 -16
  535. package/lib/cjs/components/PaymentGateway.js +0 -1
  536. package/lib/cjs/components/PaymentMethod.d.ts +0 -16
  537. package/lib/cjs/components/PaymentMethod.js +0 -1
  538. package/lib/cjs/components/PaymentMethodAmount.d.ts +0 -4
  539. package/lib/cjs/components/PaymentMethodAmount.js +0 -1
  540. package/lib/cjs/components/PaymentMethodName.d.ts +0 -9
  541. package/lib/cjs/components/PaymentMethodName.js +0 -1
  542. package/lib/cjs/components/PaymentMethodPrice.d.ts +0 -9
  543. package/lib/cjs/components/PaymentMethodPrice.js +0 -1
  544. package/lib/cjs/components/PaymentMethodRadioButton.d.ts +0 -11
  545. package/lib/cjs/components/PaymentMethodRadioButton.js +0 -1
  546. package/lib/cjs/components/PaymentMethodsContainer.d.ts +0 -8
  547. package/lib/cjs/components/PaymentMethodsContainer.js +0 -1
  548. package/lib/cjs/components/PaymentSource.d.ts +0 -19
  549. package/lib/cjs/components/PaymentSource.js +0 -1
  550. package/lib/cjs/components/PaymentSourceBrandIcon.d.ts +0 -15
  551. package/lib/cjs/components/PaymentSourceBrandIcon.js +0 -1
  552. package/lib/cjs/components/PaymentSourceBrandName.d.ts +0 -12
  553. package/lib/cjs/components/PaymentSourceBrandName.js +0 -1
  554. package/lib/cjs/components/PaymentSourceDetail.d.ts +0 -12
  555. package/lib/cjs/components/PaymentSourceDetail.js +0 -1
  556. package/lib/cjs/components/PaymentSourceEditButton.d.ts +0 -9
  557. package/lib/cjs/components/PaymentSourceEditButton.js +0 -1
  558. package/lib/cjs/components/PaypalPayment.d.ts +0 -12
  559. package/lib/cjs/components/PaypalPayment.js +0 -1
  560. package/lib/cjs/components/PlaceOrderButton.d.ts +0 -12
  561. package/lib/cjs/components/PlaceOrderButton.js +0 -1
  562. package/lib/cjs/components/PlaceOrderContainer.d.ts +0 -8
  563. package/lib/cjs/components/PlaceOrderContainer.js +0 -1
  564. package/lib/cjs/components/Price.d.ts +0 -16
  565. package/lib/cjs/components/Price.js +0 -1
  566. package/lib/cjs/components/PricesContainer.d.ts +0 -11
  567. package/lib/cjs/components/PricesContainer.js +0 -1
  568. package/lib/cjs/components/PrivacyAndTermsCheckbox.d.ts +0 -4
  569. package/lib/cjs/components/PrivacyAndTermsCheckbox.js +0 -1
  570. package/lib/cjs/components/QuantitySelector.d.ts +0 -17
  571. package/lib/cjs/components/QuantitySelector.js +0 -1
  572. package/lib/cjs/components/SaveAddressesButton.d.ts +0 -10
  573. package/lib/cjs/components/SaveAddressesButton.js +0 -1
  574. package/lib/cjs/components/SaveCustomerButton.d.ts +0 -13
  575. package/lib/cjs/components/SaveCustomerButton.js +0 -1
  576. package/lib/cjs/components/Shipment.d.ts +0 -8
  577. package/lib/cjs/components/Shipment.js +0 -1
  578. package/lib/cjs/components/ShipmentField.d.ts +0 -12
  579. package/lib/cjs/components/ShipmentField.js +0 -1
  580. package/lib/cjs/components/ShipmentsContainer.d.ts +0 -6
  581. package/lib/cjs/components/ShipmentsContainer.js +0 -1
  582. package/lib/cjs/components/ShippingAddressContainer.d.ts +0 -6
  583. package/lib/cjs/components/ShippingAddressContainer.js +0 -1
  584. package/lib/cjs/components/ShippingAddressForm.d.ts +0 -8
  585. package/lib/cjs/components/ShippingAddressForm.js +0 -1
  586. package/lib/cjs/components/ShippingAmount.d.ts +0 -4
  587. package/lib/cjs/components/ShippingAmount.js +0 -1
  588. package/lib/cjs/components/ShippingMethod.d.ts +0 -8
  589. package/lib/cjs/components/ShippingMethod.js +0 -1
  590. package/lib/cjs/components/ShippingMethodName.d.ts +0 -11
  591. package/lib/cjs/components/ShippingMethodName.js +0 -1
  592. package/lib/cjs/components/ShippingMethodPrice.d.ts +0 -13
  593. package/lib/cjs/components/ShippingMethodPrice.js +0 -1
  594. package/lib/cjs/components/ShippingMethodRadioButton.d.ts +0 -13
  595. package/lib/cjs/components/ShippingMethodRadioButton.js +0 -1
  596. package/lib/cjs/components/SkuList.d.ts +0 -7
  597. package/lib/cjs/components/SkuList.js +0 -1
  598. package/lib/cjs/components/SkuListsContainer.d.ts +0 -6
  599. package/lib/cjs/components/SkuListsContainer.js +0 -1
  600. package/lib/cjs/components/SkuOption.d.ts +0 -7
  601. package/lib/cjs/components/SkuOption.js +0 -1
  602. package/lib/cjs/components/SkuOptionInput.d.ts +0 -5
  603. package/lib/cjs/components/SkuOptionInput.js +0 -1
  604. package/lib/cjs/components/SkuOptionsContainer.d.ts +0 -7
  605. package/lib/cjs/components/SkuOptionsContainer.js +0 -1
  606. package/lib/cjs/components/StockTransfer.d.ts +0 -6
  607. package/lib/cjs/components/StockTransfer.js +0 -1
  608. package/lib/cjs/components/StockTransferField.d.ts +0 -9
  609. package/lib/cjs/components/StockTransferField.js +0 -1
  610. package/lib/cjs/components/StripePayment.d.ts +0 -18
  611. package/lib/cjs/components/StripePayment.js +0 -1
  612. package/lib/cjs/components/SubTotalAmount.d.ts +0 -4
  613. package/lib/cjs/components/SubTotalAmount.js +0 -1
  614. package/lib/cjs/components/SubmitButton.d.ts +0 -9
  615. package/lib/cjs/components/SubmitButton.js +0 -1
  616. package/lib/cjs/components/TaxesAmount.d.ts +0 -4
  617. package/lib/cjs/components/TaxesAmount.js +0 -1
  618. package/lib/cjs/components/TotalAmount.d.ts +0 -4
  619. package/lib/cjs/components/TotalAmount.js +0 -1
  620. package/lib/cjs/components/VariantSelector.d.ts +0 -29
  621. package/lib/cjs/components/VariantSelector.js +0 -1
  622. package/lib/cjs/components/VariantsContainer.d.ts +0 -8
  623. package/lib/cjs/components/VariantsContainer.js +0 -1
  624. package/lib/cjs/components/WireTransferPayment.d.ts +0 -10
  625. package/lib/cjs/components/WireTransferPayment.js +0 -1
  626. package/lib/cjs/components/gateways/AdyenGateway.d.ts +0 -5
  627. package/lib/cjs/components/gateways/AdyenGateway.js +0 -1
  628. package/lib/cjs/components/gateways/BraintreeGateway.d.ts +0 -5
  629. package/lib/cjs/components/gateways/BraintreeGateway.js +0 -1
  630. package/lib/cjs/components/gateways/PaypalGateway.d.ts +0 -5
  631. package/lib/cjs/components/gateways/PaypalGateway.js +0 -1
  632. package/lib/cjs/components/gateways/StripeGateway.d.ts +0 -5
  633. package/lib/cjs/components/gateways/StripeGateway.js +0 -1
  634. package/lib/cjs/components/gateways/WireTransferGateway.d.ts +0 -5
  635. package/lib/cjs/components/gateways/WireTransferGateway.js +0 -1
  636. package/lib/cjs/components/utils/AddressCardsTemplate.d.ts +0 -27
  637. package/lib/cjs/components/utils/AddressCardsTemplate.js +0 -1
  638. package/lib/cjs/components/utils/BaseField.js +0 -1
  639. package/lib/cjs/components/utils/BaseInput.d.ts +0 -5
  640. package/lib/cjs/components/utils/BaseInput.js +0 -1
  641. package/lib/cjs/components/utils/BaseOrderPrice.js +0 -1
  642. package/lib/cjs/components/utils/BaseSelect.js +0 -1
  643. package/lib/cjs/components/utils/Parent.d.ts +0 -8
  644. package/lib/cjs/components/utils/Parent.js +0 -1
  645. package/lib/cjs/components/utils/PaymentCardsTemplate.d.ts +0 -23
  646. package/lib/cjs/components/utils/PaymentCardsTemplate.js +0 -1
  647. package/lib/cjs/components/utils/PriceTemplate.d.ts +0 -8
  648. package/lib/cjs/components/utils/PriceTemplate.js +0 -1
  649. package/lib/cjs/components/utils/VariantTemplate.js +0 -1
  650. package/lib/cjs/components/utils/getAllErrors.js +0 -1
  651. package/lib/cjs/config/components.d.ts +0 -892
  652. package/lib/cjs/config/components.js +0 -1
  653. package/lib/cjs/config/currency.js +0 -1
  654. package/lib/cjs/context/AddressChildrenContext.d.ts +0 -7
  655. package/lib/cjs/context/AddressChildrenContext.js +0 -1
  656. package/lib/cjs/context/AddressContext.d.ts +0 -17
  657. package/lib/cjs/context/AddressContext.js +0 -1
  658. package/lib/cjs/context/AvailabilityContext.js +0 -1
  659. package/lib/cjs/context/BillingAddressContext.d.ts +0 -12
  660. package/lib/cjs/context/BillingAddressContext.js +0 -1
  661. package/lib/cjs/context/BillingAddressFormContext.d.ts +0 -18
  662. package/lib/cjs/context/BillingAddressFormContext.js +0 -1
  663. package/lib/cjs/context/CommerceLayerContext.js +0 -1
  664. package/lib/cjs/context/CouponAndGiftCardFormContext.d.ts +0 -7
  665. package/lib/cjs/context/CouponAndGiftCardFormContext.js +0 -1
  666. package/lib/cjs/context/CustomerContext.d.ts +0 -16
  667. package/lib/cjs/context/CustomerContext.js +0 -1
  668. package/lib/cjs/context/ExternalFunctionContext.js +0 -1
  669. package/lib/cjs/context/GiftCardContext.js +0 -1
  670. package/lib/cjs/context/ItemContext.js +0 -1
  671. package/lib/cjs/context/LineItemChildrenContext.js +0 -1
  672. package/lib/cjs/context/LineItemContext.js +0 -1
  673. package/lib/cjs/context/LineItemOptionChildrenContext.js +0 -1
  674. package/lib/cjs/context/OrderContext.d.ts +0 -26
  675. package/lib/cjs/context/OrderContext.js +0 -1
  676. package/lib/cjs/context/OrderStorageContext.js +0 -1
  677. package/lib/cjs/context/PaymentMethodChildrenContext.js +0 -1
  678. package/lib/cjs/context/PaymentMethodContext.js +0 -1
  679. package/lib/cjs/context/PaymentSourceContext.d.ts +0 -14
  680. package/lib/cjs/context/PaymentSourceContext.js +0 -1
  681. package/lib/cjs/context/PlaceOrderContext.d.ts +0 -16
  682. package/lib/cjs/context/PlaceOrderContext.js +0 -1
  683. package/lib/cjs/context/PricesContext.js +0 -1
  684. package/lib/cjs/context/ShipmentChildrenContext.js +0 -1
  685. package/lib/cjs/context/ShipmentContext.js +0 -1
  686. package/lib/cjs/context/ShippingAddressContext.d.ts +0 -10
  687. package/lib/cjs/context/ShippingAddressContext.js +0 -1
  688. package/lib/cjs/context/ShippingAddressFormContext.js +0 -1
  689. package/lib/cjs/context/ShippingMethodChildrenContext.js +0 -1
  690. package/lib/cjs/context/SkuListsContext.js +0 -1
  691. package/lib/cjs/context/SkuOptionChildrenContext.js +0 -1
  692. package/lib/cjs/context/SkuOptionsContext.js +0 -1
  693. package/lib/cjs/context/StockTransferChildrenContext.js +0 -1
  694. package/lib/cjs/context/VariantsContext.js +0 -1
  695. package/lib/cjs/index.d.ts +0 -96
  696. package/lib/cjs/index.js +0 -1
  697. package/lib/cjs/reducers/AddressReducer.d.ts +0 -58
  698. package/lib/cjs/reducers/AddressReducer.js +0 -1
  699. package/lib/cjs/reducers/AvailabilityReducer.d.ts +0 -53
  700. package/lib/cjs/reducers/AvailabilityReducer.js +0 -1
  701. package/lib/cjs/reducers/BillingAddressReducer.js +0 -1
  702. package/lib/cjs/reducers/CustomerReducer.d.ts +0 -50
  703. package/lib/cjs/reducers/CustomerReducer.js +0 -1
  704. package/lib/cjs/reducers/GiftCardReducer.js +0 -1
  705. package/lib/cjs/reducers/ItemReducer.js +0 -1
  706. package/lib/cjs/reducers/LineItemReducer.js +0 -1
  707. package/lib/cjs/reducers/OrderReducer.d.ts +0 -131
  708. package/lib/cjs/reducers/OrderReducer.js +0 -1
  709. package/lib/cjs/reducers/PaymentMethodReducer.d.ts +0 -105
  710. package/lib/cjs/reducers/PaymentMethodReducer.js +0 -1
  711. package/lib/cjs/reducers/PlaceOrderReducer.d.ts +0 -52
  712. package/lib/cjs/reducers/PlaceOrderReducer.js +0 -1
  713. package/lib/cjs/reducers/PriceReducer.js +0 -1
  714. package/lib/cjs/reducers/ShipmentReducer.js +0 -1
  715. package/lib/cjs/reducers/ShippingAddressReducer.js +0 -1
  716. package/lib/cjs/reducers/SkuListsReducer.js +0 -1
  717. package/lib/cjs/reducers/SkuOptionsReducer.js +0 -1
  718. package/lib/cjs/reducers/VariantReducer.d.ts +0 -71
  719. package/lib/cjs/reducers/VariantReducer.js +0 -1
  720. package/lib/cjs/typings/errors.d.ts +0 -42
  721. package/lib/cjs/typings/errors.js +0 -1
  722. package/lib/cjs/typings/index.d.ts +0 -126
  723. package/lib/cjs/typings/index.js +0 -1
  724. package/lib/cjs/utils/PropsType.js +0 -1
  725. package/lib/cjs/utils/addressesManager.d.ts +0 -28
  726. package/lib/cjs/utils/addressesManager.js +0 -1
  727. package/lib/cjs/utils/baseReducer.js +0 -1
  728. package/lib/cjs/utils/browserInfo.js +0 -1
  729. package/lib/cjs/utils/childrenTypes.d.ts +0 -9
  730. package/lib/cjs/utils/childrenTypes.js +0 -1
  731. package/lib/cjs/utils/countryStateCity.js +0 -1
  732. package/lib/cjs/utils/customMessages.d.ts +0 -8
  733. package/lib/cjs/utils/customMessages.js +0 -1
  734. package/lib/cjs/utils/customerOrderOptions.js +0 -1
  735. package/lib/cjs/utils/getAmount.js +0 -1
  736. package/lib/cjs/utils/getCurrentItemKey.js +0 -1
  737. package/lib/cjs/utils/getErrors.d.ts +0 -11
  738. package/lib/cjs/utils/getErrors.js +0 -1
  739. package/lib/cjs/utils/getLineItemsCount.d.ts +0 -12
  740. package/lib/cjs/utils/getLineItemsCount.js +0 -1
  741. package/lib/cjs/utils/getLoaderComponent.js +0 -1
  742. package/lib/cjs/utils/getPrices.js +0 -1
  743. package/lib/cjs/utils/getSdk.js +0 -1
  744. package/lib/cjs/utils/getSkus.js +0 -1
  745. package/lib/cjs/utils/isEmptyStates.js +0 -1
  746. package/lib/cjs/utils/isJSON.js +0 -1
  747. package/lib/cjs/utils/jwt.d.ts +0 -27
  748. package/lib/cjs/utils/jwt.js +0 -1
  749. package/lib/cjs/utils/localStorage.js +0 -1
  750. package/lib/cjs/utils/organization.js +0 -1
  751. package/lib/cjs/utils/paypalPayment.js +0 -1
  752. package/lib/cjs/utils/promisify.js +0 -1
  753. package/lib/cjs/utils/shipments.d.ts +0 -2
  754. package/lib/cjs/utils/shipments.js +0 -1
  755. package/lib/cjs/utils/validateFormFields.d.ts +0 -20
  756. package/lib/cjs/utils/validateFormFields.js +0 -1
  757. package/lib/esm/components/AddToCartButton.d.ts +0 -20
  758. package/lib/esm/components/AddToCartButton.js +0 -1
  759. package/lib/esm/components/Address.d.ts +0 -13
  760. package/lib/esm/components/Address.js +0 -1
  761. package/lib/esm/components/AddressCountrySelector.d.ts +0 -9
  762. package/lib/esm/components/AddressCountrySelector.js +0 -1
  763. package/lib/esm/components/AddressField.d.ts +0 -15
  764. package/lib/esm/components/AddressField.js +0 -1
  765. package/lib/esm/components/AddressInput.d.ts +0 -7
  766. package/lib/esm/components/AddressInput.js +0 -1
  767. package/lib/esm/components/AddressStateSelector.d.ts +0 -11
  768. package/lib/esm/components/AddressStateSelector.js +0 -1
  769. package/lib/esm/components/AddressesContainer.d.ts +0 -7
  770. package/lib/esm/components/AddressesContainer.js +0 -1
  771. package/lib/esm/components/AdjustmentAmount.d.ts +0 -4
  772. package/lib/esm/components/AdjustmentAmount.js +0 -1
  773. package/lib/esm/components/AdyenPayment.d.ts +0 -25
  774. package/lib/esm/components/AdyenPayment.js +0 -1
  775. package/lib/esm/components/AvailabilityContainer.d.ts +0 -7
  776. package/lib/esm/components/AvailabilityContainer.js +0 -1
  777. package/lib/esm/components/AvailabilityTemplate.d.ts +0 -15
  778. package/lib/esm/components/AvailabilityTemplate.js +0 -1
  779. package/lib/esm/components/BillingAddressContainer.d.ts +0 -6
  780. package/lib/esm/components/BillingAddressContainer.js +0 -1
  781. package/lib/esm/components/BillingAddressForm.d.ts +0 -8
  782. package/lib/esm/components/BillingAddressForm.js +0 -1
  783. package/lib/esm/components/BraintreePayment.d.ts +0 -30
  784. package/lib/esm/components/BraintreePayment.js +0 -1
  785. package/lib/esm/components/CheckoutLink.d.ts +0 -11
  786. package/lib/esm/components/CheckoutLink.js +0 -1
  787. package/lib/esm/components/CommerceLayer.d.ts +0 -8
  788. package/lib/esm/components/CommerceLayer.js +0 -1
  789. package/lib/esm/components/CustomerContainer.d.ts +0 -7
  790. package/lib/esm/components/CustomerContainer.js +0 -1
  791. package/lib/esm/components/CustomerInput.d.ts +0 -11
  792. package/lib/esm/components/CustomerInput.js +0 -1
  793. package/lib/esm/components/DeliveryLeadTime.d.ts +0 -10
  794. package/lib/esm/components/DeliveryLeadTime.js +0 -1
  795. package/lib/esm/components/DiscountAmount.d.ts +0 -4
  796. package/lib/esm/components/DiscountAmount.js +0 -1
  797. package/lib/esm/components/Errors.d.ts +0 -5
  798. package/lib/esm/components/Errors.js +0 -1
  799. package/lib/esm/components/ExternalFunction.d.ts +0 -7
  800. package/lib/esm/components/ExternalFunction.js +0 -1
  801. package/lib/esm/components/GiftCard.d.ts +0 -8
  802. package/lib/esm/components/GiftCard.js +0 -1
  803. package/lib/esm/components/GiftCardAmount.d.ts +0 -4
  804. package/lib/esm/components/GiftCardAmount.js +0 -1
  805. package/lib/esm/components/GiftCardContainer.d.ts +0 -6
  806. package/lib/esm/components/GiftCardContainer.js +0 -1
  807. package/lib/esm/components/GiftCardCurrencySelector.d.ts +0 -7
  808. package/lib/esm/components/GiftCardCurrencySelector.js +0 -1
  809. package/lib/esm/components/GiftCardInput.d.ts +0 -7
  810. package/lib/esm/components/GiftCardInput.js +0 -1
  811. package/lib/esm/components/GiftCardOrCouponCode.d.ts +0 -13
  812. package/lib/esm/components/GiftCardOrCouponCode.js +0 -1
  813. package/lib/esm/components/GiftCardOrCouponForm.d.ts +0 -10
  814. package/lib/esm/components/GiftCardOrCouponForm.js +0 -1
  815. package/lib/esm/components/GiftCardOrCouponInput.d.ts +0 -8
  816. package/lib/esm/components/GiftCardOrCouponInput.js +0 -1
  817. package/lib/esm/components/GiftCardOrCouponRemoveButton.d.ts +0 -16
  818. package/lib/esm/components/GiftCardOrCouponRemoveButton.js +0 -1
  819. package/lib/esm/components/GiftCardOrCouponSubmit.d.ts +0 -9
  820. package/lib/esm/components/GiftCardOrCouponSubmit.js +0 -1
  821. package/lib/esm/components/GiftCardRecipient.d.ts +0 -0
  822. package/lib/esm/components/GiftCardRecipient.js +0 -1
  823. package/lib/esm/components/GiftCardRecipientInput.d.ts +0 -0
  824. package/lib/esm/components/GiftCardRecipientInput.js +0 -1
  825. package/lib/esm/components/ItemContainer.d.ts +0 -11
  826. package/lib/esm/components/ItemContainer.js +0 -1
  827. package/lib/esm/components/LineItem.d.ts +0 -8
  828. package/lib/esm/components/LineItem.js +0 -1
  829. package/lib/esm/components/LineItemAmount.d.ts +0 -7
  830. package/lib/esm/components/LineItemAmount.js +0 -1
  831. package/lib/esm/components/LineItemCode.d.ts +0 -12
  832. package/lib/esm/components/LineItemCode.js +0 -1
  833. package/lib/esm/components/LineItemImage.d.ts +0 -16
  834. package/lib/esm/components/LineItemImage.js +0 -1
  835. package/lib/esm/components/LineItemName.d.ts +0 -11
  836. package/lib/esm/components/LineItemName.js +0 -1
  837. package/lib/esm/components/LineItemOption.d.ts +0 -19
  838. package/lib/esm/components/LineItemOption.js +0 -1
  839. package/lib/esm/components/LineItemOptions.d.ts +0 -14
  840. package/lib/esm/components/LineItemOptions.js +0 -1
  841. package/lib/esm/components/LineItemQuantity.d.ts +0 -14
  842. package/lib/esm/components/LineItemQuantity.js +0 -1
  843. package/lib/esm/components/LineItemRemoveLink.d.ts +0 -12
  844. package/lib/esm/components/LineItemRemoveLink.js +0 -1
  845. package/lib/esm/components/LineItemsContainer.d.ts +0 -8
  846. package/lib/esm/components/LineItemsContainer.js +0 -1
  847. package/lib/esm/components/LineItemsCount.d.ts +0 -12
  848. package/lib/esm/components/LineItemsCount.js +0 -1
  849. package/lib/esm/components/LineItemsEmpty.d.ts +0 -12
  850. package/lib/esm/components/LineItemsEmpty.js +0 -1
  851. package/lib/esm/components/MetadataInput.d.ts +0 -5
  852. package/lib/esm/components/MetadataInput.js +0 -1
  853. package/lib/esm/components/OrderContainer.d.ts +0 -11
  854. package/lib/esm/components/OrderContainer.js +0 -1
  855. package/lib/esm/components/OrderNumber.d.ts +0 -5
  856. package/lib/esm/components/OrderNumber.js +0 -1
  857. package/lib/esm/components/OrderStorage.d.ts +0 -8
  858. package/lib/esm/components/OrderStorage.js +0 -1
  859. package/lib/esm/components/PaymentGateway.d.ts +0 -16
  860. package/lib/esm/components/PaymentGateway.js +0 -1
  861. package/lib/esm/components/PaymentMethod.d.ts +0 -16
  862. package/lib/esm/components/PaymentMethod.js +0 -1
  863. package/lib/esm/components/PaymentMethodAmount.d.ts +0 -4
  864. package/lib/esm/components/PaymentMethodAmount.js +0 -1
  865. package/lib/esm/components/PaymentMethodName.d.ts +0 -9
  866. package/lib/esm/components/PaymentMethodName.js +0 -1
  867. package/lib/esm/components/PaymentMethodPrice.d.ts +0 -9
  868. package/lib/esm/components/PaymentMethodPrice.js +0 -1
  869. package/lib/esm/components/PaymentMethodRadioButton.d.ts +0 -11
  870. package/lib/esm/components/PaymentMethodRadioButton.js +0 -1
  871. package/lib/esm/components/PaymentMethodsContainer.d.ts +0 -8
  872. package/lib/esm/components/PaymentMethodsContainer.js +0 -1
  873. package/lib/esm/components/PaymentSource.d.ts +0 -19
  874. package/lib/esm/components/PaymentSource.js +0 -1
  875. package/lib/esm/components/PaymentSourceBrandIcon.d.ts +0 -15
  876. package/lib/esm/components/PaymentSourceBrandIcon.js +0 -1
  877. package/lib/esm/components/PaymentSourceBrandName.d.ts +0 -12
  878. package/lib/esm/components/PaymentSourceBrandName.js +0 -1
  879. package/lib/esm/components/PaymentSourceDetail.d.ts +0 -12
  880. package/lib/esm/components/PaymentSourceDetail.js +0 -1
  881. package/lib/esm/components/PaymentSourceEditButton.d.ts +0 -9
  882. package/lib/esm/components/PaymentSourceEditButton.js +0 -1
  883. package/lib/esm/components/PaypalPayment.d.ts +0 -12
  884. package/lib/esm/components/PaypalPayment.js +0 -1
  885. package/lib/esm/components/PlaceOrderButton.d.ts +0 -12
  886. package/lib/esm/components/PlaceOrderButton.js +0 -1
  887. package/lib/esm/components/PlaceOrderContainer.d.ts +0 -8
  888. package/lib/esm/components/PlaceOrderContainer.js +0 -1
  889. package/lib/esm/components/Price.d.ts +0 -16
  890. package/lib/esm/components/Price.js +0 -1
  891. package/lib/esm/components/PricesContainer.d.ts +0 -11
  892. package/lib/esm/components/PricesContainer.js +0 -1
  893. package/lib/esm/components/PrivacyAndTermsCheckbox.d.ts +0 -4
  894. package/lib/esm/components/PrivacyAndTermsCheckbox.js +0 -1
  895. package/lib/esm/components/QuantitySelector.d.ts +0 -17
  896. package/lib/esm/components/QuantitySelector.js +0 -1
  897. package/lib/esm/components/SaveAddressesButton.d.ts +0 -10
  898. package/lib/esm/components/SaveAddressesButton.js +0 -1
  899. package/lib/esm/components/SaveCustomerButton.d.ts +0 -13
  900. package/lib/esm/components/SaveCustomerButton.js +0 -1
  901. package/lib/esm/components/Shipment.d.ts +0 -8
  902. package/lib/esm/components/Shipment.js +0 -1
  903. package/lib/esm/components/ShipmentField.d.ts +0 -12
  904. package/lib/esm/components/ShipmentField.js +0 -1
  905. package/lib/esm/components/ShipmentsContainer.d.ts +0 -6
  906. package/lib/esm/components/ShipmentsContainer.js +0 -1
  907. package/lib/esm/components/ShippingAddressContainer.d.ts +0 -6
  908. package/lib/esm/components/ShippingAddressContainer.js +0 -1
  909. package/lib/esm/components/ShippingAddressForm.d.ts +0 -8
  910. package/lib/esm/components/ShippingAddressForm.js +0 -1
  911. package/lib/esm/components/ShippingAmount.d.ts +0 -4
  912. package/lib/esm/components/ShippingAmount.js +0 -1
  913. package/lib/esm/components/ShippingMethod.d.ts +0 -8
  914. package/lib/esm/components/ShippingMethod.js +0 -1
  915. package/lib/esm/components/ShippingMethodName.d.ts +0 -11
  916. package/lib/esm/components/ShippingMethodName.js +0 -1
  917. package/lib/esm/components/ShippingMethodPrice.d.ts +0 -13
  918. package/lib/esm/components/ShippingMethodPrice.js +0 -1
  919. package/lib/esm/components/ShippingMethodRadioButton.d.ts +0 -13
  920. package/lib/esm/components/ShippingMethodRadioButton.js +0 -1
  921. package/lib/esm/components/SkuList.d.ts +0 -7
  922. package/lib/esm/components/SkuList.js +0 -1
  923. package/lib/esm/components/SkuListsContainer.d.ts +0 -6
  924. package/lib/esm/components/SkuListsContainer.js +0 -1
  925. package/lib/esm/components/SkuOption.d.ts +0 -7
  926. package/lib/esm/components/SkuOption.js +0 -1
  927. package/lib/esm/components/SkuOptionInput.d.ts +0 -5
  928. package/lib/esm/components/SkuOptionInput.js +0 -1
  929. package/lib/esm/components/SkuOptionsContainer.d.ts +0 -7
  930. package/lib/esm/components/SkuOptionsContainer.js +0 -1
  931. package/lib/esm/components/StockTransfer.d.ts +0 -6
  932. package/lib/esm/components/StockTransfer.js +0 -1
  933. package/lib/esm/components/StockTransferField.d.ts +0 -9
  934. package/lib/esm/components/StockTransferField.js +0 -1
  935. package/lib/esm/components/StripePayment.d.ts +0 -18
  936. package/lib/esm/components/StripePayment.js +0 -1
  937. package/lib/esm/components/SubTotalAmount.d.ts +0 -4
  938. package/lib/esm/components/SubTotalAmount.js +0 -1
  939. package/lib/esm/components/SubmitButton.d.ts +0 -9
  940. package/lib/esm/components/SubmitButton.js +0 -1
  941. package/lib/esm/components/TaxesAmount.d.ts +0 -4
  942. package/lib/esm/components/TaxesAmount.js +0 -1
  943. package/lib/esm/components/TotalAmount.d.ts +0 -4
  944. package/lib/esm/components/TotalAmount.js +0 -1
  945. package/lib/esm/components/VariantSelector.d.ts +0 -29
  946. package/lib/esm/components/VariantSelector.js +0 -1
  947. package/lib/esm/components/VariantsContainer.d.ts +0 -8
  948. package/lib/esm/components/VariantsContainer.js +0 -1
  949. package/lib/esm/components/WireTransferPayment.d.ts +0 -10
  950. package/lib/esm/components/WireTransferPayment.js +0 -1
  951. package/lib/esm/components/gateways/AdyenGateway.d.ts +0 -5
  952. package/lib/esm/components/gateways/AdyenGateway.js +0 -1
  953. package/lib/esm/components/gateways/BraintreeGateway.d.ts +0 -5
  954. package/lib/esm/components/gateways/BraintreeGateway.js +0 -1
  955. package/lib/esm/components/gateways/PaypalGateway.d.ts +0 -5
  956. package/lib/esm/components/gateways/PaypalGateway.js +0 -1
  957. package/lib/esm/components/gateways/StripeGateway.d.ts +0 -5
  958. package/lib/esm/components/gateways/StripeGateway.js +0 -1
  959. package/lib/esm/components/gateways/WireTransferGateway.d.ts +0 -5
  960. package/lib/esm/components/gateways/WireTransferGateway.js +0 -1
  961. package/lib/esm/components/utils/AddressCardsTemplate.d.ts +0 -27
  962. package/lib/esm/components/utils/AddressCardsTemplate.js +0 -1
  963. package/lib/esm/components/utils/BaseField.d.ts +0 -8
  964. package/lib/esm/components/utils/BaseField.js +0 -1
  965. package/lib/esm/components/utils/BaseInput.d.ts +0 -5
  966. package/lib/esm/components/utils/BaseInput.js +0 -1
  967. package/lib/esm/components/utils/BaseOrderPrice.d.ts +0 -6
  968. package/lib/esm/components/utils/BaseOrderPrice.js +0 -1
  969. package/lib/esm/components/utils/BaseSelect.d.ts +0 -5
  970. package/lib/esm/components/utils/BaseSelect.js +0 -1
  971. package/lib/esm/components/utils/Parent.d.ts +0 -8
  972. package/lib/esm/components/utils/Parent.js +0 -1
  973. package/lib/esm/components/utils/PaymentCardsTemplate.d.ts +0 -23
  974. package/lib/esm/components/utils/PaymentCardsTemplate.js +0 -1
  975. package/lib/esm/components/utils/PriceTemplate.d.ts +0 -8
  976. package/lib/esm/components/utils/PriceTemplate.js +0 -1
  977. package/lib/esm/components/utils/VariantTemplate.d.ts +0 -36
  978. package/lib/esm/components/utils/VariantTemplate.js +0 -1
  979. package/lib/esm/components/utils/getAllErrors.d.ts +0 -17
  980. package/lib/esm/components/utils/getAllErrors.js +0 -1
  981. package/lib/esm/config/components.d.ts +0 -892
  982. package/lib/esm/config/components.js +0 -1
  983. package/lib/esm/config/currency.d.ts +0 -5
  984. package/lib/esm/context/AddressChildrenContext.d.ts +0 -7
  985. package/lib/esm/context/AddressChildrenContext.js +0 -1
  986. package/lib/esm/context/AddressContext.d.ts +0 -17
  987. package/lib/esm/context/AvailabilityContext.d.ts +0 -3
  988. package/lib/esm/context/BillingAddressContext.d.ts +0 -12
  989. package/lib/esm/context/BillingAddressContext.js +0 -1
  990. package/lib/esm/context/BillingAddressFormContext.d.ts +0 -18
  991. package/lib/esm/context/CommerceLayerContext.d.ts +0 -7
  992. package/lib/esm/context/CouponAndGiftCardFormContext.d.ts +0 -7
  993. package/lib/esm/context/CustomerContext.d.ts +0 -16
  994. package/lib/esm/context/CustomerContext.js +0 -1
  995. package/lib/esm/context/ExternalFunctionContext.d.ts +0 -12
  996. package/lib/esm/context/GiftCardContext.d.ts +0 -11
  997. package/lib/esm/context/ItemContext.d.ts +0 -13
  998. package/lib/esm/context/LineItemChildrenContext.d.ts +0 -9
  999. package/lib/esm/context/LineItemContext.d.ts +0 -8
  1000. package/lib/esm/context/LineItemOptionChildrenContext.d.ts +0 -8
  1001. package/lib/esm/context/OrderContext.d.ts +0 -26
  1002. package/lib/esm/context/OrderContext.js +0 -1
  1003. package/lib/esm/context/OrderStorageContext.d.ts +0 -11
  1004. package/lib/esm/context/PaymentMethodChildrenContext.d.ts +0 -10
  1005. package/lib/esm/context/PaymentMethodContext.d.ts +0 -23
  1006. package/lib/esm/context/PaymentSourceContext.d.ts +0 -14
  1007. package/lib/esm/context/PlaceOrderContext.d.ts +0 -16
  1008. package/lib/esm/context/PricesContext.d.ts +0 -7
  1009. package/lib/esm/context/ShipmentChildrenContext.d.ts +0 -13
  1010. package/lib/esm/context/ShipmentContext.d.ts +0 -12
  1011. package/lib/esm/context/ShippingAddressContext.d.ts +0 -10
  1012. package/lib/esm/context/ShippingAddressFormContext.d.ts +0 -4
  1013. package/lib/esm/context/ShippingMethodChildrenContext.d.ts +0 -10
  1014. package/lib/esm/context/SkuListsContext.d.ts +0 -6
  1015. package/lib/esm/context/SkuOptionChildrenContext.d.ts +0 -8
  1016. package/lib/esm/context/SkuOptionsContext.d.ts +0 -3
  1017. package/lib/esm/context/StockTransferChildrenContext.d.ts +0 -7
  1018. package/lib/esm/context/VariantsContext.d.ts +0 -3
  1019. package/lib/esm/index.d.ts +0 -96
  1020. package/lib/esm/index.js +0 -1
  1021. package/lib/esm/reducers/AddressReducer.d.ts +0 -58
  1022. package/lib/esm/reducers/AddressReducer.js +0 -1
  1023. package/lib/esm/reducers/AvailabilityReducer.d.ts +0 -53
  1024. package/lib/esm/reducers/AvailabilityReducer.js +0 -1
  1025. package/lib/esm/reducers/BillingAddressReducer.d.ts +0 -31
  1026. package/lib/esm/reducers/BillingAddressReducer.js +0 -1
  1027. package/lib/esm/reducers/CustomerReducer.d.ts +0 -50
  1028. package/lib/esm/reducers/CustomerReducer.js +0 -1
  1029. package/lib/esm/reducers/GiftCardReducer.d.ts +0 -76
  1030. package/lib/esm/reducers/GiftCardReducer.js +0 -1
  1031. package/lib/esm/reducers/ItemReducer.d.ts +0 -69
  1032. package/lib/esm/reducers/LineItemReducer.d.ts +0 -52
  1033. package/lib/esm/reducers/LineItemReducer.js +0 -1
  1034. package/lib/esm/reducers/OrderReducer.d.ts +0 -131
  1035. package/lib/esm/reducers/OrderReducer.js +0 -1
  1036. package/lib/esm/reducers/PaymentMethodReducer.d.ts +0 -105
  1037. package/lib/esm/reducers/PaymentMethodReducer.js +0 -1
  1038. package/lib/esm/reducers/PlaceOrderReducer.d.ts +0 -52
  1039. package/lib/esm/reducers/PlaceOrderReducer.js +0 -1
  1040. package/lib/esm/reducers/PriceReducer.d.ts +0 -44
  1041. package/lib/esm/reducers/ShipmentReducer.d.ts +0 -40
  1042. package/lib/esm/reducers/ShipmentReducer.js +0 -1
  1043. package/lib/esm/reducers/ShippingAddressReducer.d.ts +0 -32
  1044. package/lib/esm/reducers/ShippingAddressReducer.js +0 -1
  1045. package/lib/esm/reducers/SkuListsReducer.d.ts +0 -21
  1046. package/lib/esm/reducers/SkuOptionsReducer.d.ts +0 -26
  1047. package/lib/esm/reducers/VariantReducer.d.ts +0 -71
  1048. package/lib/esm/reducers/VariantReducer.js +0 -1
  1049. package/lib/esm/typings/errors.d.ts +0 -42
  1050. package/lib/esm/typings/errors.js +0 -1
  1051. package/lib/esm/typings/index.d.ts +0 -126
  1052. package/lib/esm/utils/PropsType.d.ts +0 -33
  1053. package/lib/esm/utils/addressesManager.d.ts +0 -28
  1054. package/lib/esm/utils/addressesManager.js +0 -1
  1055. package/lib/esm/utils/baseReducer.d.ts +0 -3
  1056. package/lib/esm/utils/browserInfo.d.ts +0 -9
  1057. package/lib/esm/utils/childrenTypes.d.ts +0 -9
  1058. package/lib/esm/utils/childrenTypes.js +0 -1
  1059. package/lib/esm/utils/countryStateCity.d.ts +0 -9
  1060. package/lib/esm/utils/countryStateCity.js +0 -1
  1061. package/lib/esm/utils/customMessages.d.ts +0 -8
  1062. package/lib/esm/utils/customMessages.js +0 -1
  1063. package/lib/esm/utils/customerOrderOptions.d.ts +0 -3
  1064. package/lib/esm/utils/getAmount.d.ts +0 -9
  1065. package/lib/esm/utils/getCurrentItemKey.d.ts +0 -6
  1066. package/lib/esm/utils/getCurrentItemKey.js +0 -1
  1067. package/lib/esm/utils/getErrors.d.ts +0 -11
  1068. package/lib/esm/utils/getErrors.js +0 -1
  1069. package/lib/esm/utils/getLineItemsCount.d.ts +0 -12
  1070. package/lib/esm/utils/getLineItemsCount.js +0 -1
  1071. package/lib/esm/utils/getLoaderComponent.d.ts +0 -3
  1072. package/lib/esm/utils/getLoaderComponent.js +0 -1
  1073. package/lib/esm/utils/getPrices.d.ts +0 -17
  1074. package/lib/esm/utils/getPrices.js +0 -1
  1075. package/lib/esm/utils/getSdk.d.ts +0 -3
  1076. package/lib/esm/utils/getSkus.d.ts +0 -3
  1077. package/lib/esm/utils/getSkus.js +0 -1
  1078. package/lib/esm/utils/isEmptyStates.d.ts +0 -1
  1079. package/lib/esm/utils/isJSON.d.ts +0 -1
  1080. package/lib/esm/utils/jwt.d.ts +0 -27
  1081. package/lib/esm/utils/localStorage.d.ts +0 -17
  1082. package/lib/esm/utils/organization.d.ts +0 -6
  1083. package/lib/esm/utils/paypalPayment.d.ts +0 -3
  1084. package/lib/esm/utils/promisify.d.ts +0 -1
  1085. package/lib/esm/utils/promisify.js +0 -1
  1086. package/lib/esm/utils/shipments.d.ts +0 -2
  1087. package/lib/esm/utils/shipments.js +0 -1
  1088. package/lib/esm/utils/validateFormFields.d.ts +0 -20
  1089. package/lib/esm/utils/validateFormFields.js +0 -1
  1090. package/lib/tsconfig.prod.esm.tsbuildinfo +0 -1
  1091. package/lib/tsconfig.prod.tsbuildinfo +0 -1
@@ -1,8 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- import { LoaderType } from '../typings/index';
3
- declare type ShipmentProps = {
4
- children: ReactNode;
5
- loader?: LoaderType;
6
- };
7
- declare const Shipment: FunctionComponent<ShipmentProps>;
8
- export default Shipment;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{Fragment,useContext,useState,useEffect}from"react";import ShipmentContext from"../context/ShipmentContext";import ShipmentChildrenContext from"../context/ShipmentChildrenContext";import components from"../config/components";import getLoaderComponent from"../utils/getLoaderComponent";const propTypes=components.Shipment.propTypes,displayName=components.Shipment.displayName,Shipment=({children,loader="Loading..."})=>{const[loading,setLoading]=useState(!0),{shipments,deliveryLeadTimes}=useContext(ShipmentContext);useEffect(()=>(shipments&&setLoading(!1),()=>{setLoading(!0)}),[shipments]);const components2=shipments&&shipments.map((shipment,k)=>{var _a;const shipmentLineItems=shipment.shipment_line_items,lineItems=shipmentLineItems==null?void 0:shipmentLineItems.map(shipmentLineItem=>{const l=shipmentLineItem.line_item;return l&&(l.quantity=shipmentLineItem.quantity),l}),shippingMethods=shipment.available_shipping_methods,currentShippingMethodId=(_a=shipment.shipping_method)===null||_a===void 0?void 0:_a.id,stockTransfers=shipment.stock_transfers,times=deliveryLeadTimes==null?void 0:deliveryLeadTimes.filter(time=>{var _a2,_b;return((_a2=time.stock_location)===null||_a2===void 0?void 0:_a2.id)===((_b=shipment.stock_location)===null||_b===void 0?void 0:_b.id)}),shipmentProps={lineItems,shippingMethods,currentShippingMethodId,stockTransfers,deliveryLeadTimes:times,shipment,keyNumber:k+1};return _jsx(ShipmentChildrenContext.Provider,Object.assign({value:shipmentProps},{children}),k)});return loading?getLoaderComponent(loader):_jsx(Fragment,{children:components2},void 0)};Shipment.propTypes=propTypes,Shipment.displayName=displayName;export default Shipment;
@@ -1,12 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- import { Shipment } from '@commercelayer/sdk';
3
- declare type ShipmentFieldChildrenProps = Omit<ShipmentFieldProps, 'children'> & {
4
- shipment: Shipment;
5
- };
6
- export declare type ShipmentAttribute = 'number' | 'currency_code' | 'status' | 'cost_amount_cents' | 'cost_amount_float' | 'formatted_cost_amount' | 'key_number';
7
- declare type ShipmentFieldProps = {
8
- children?: (props: ShipmentFieldChildrenProps) => ReactNode;
9
- name: ShipmentAttribute;
10
- } & JSX.IntrinsicElements['span'];
11
- declare const ShipmentField: FunctionComponent<ShipmentFieldProps>;
12
- export default ShipmentField;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import Parent from"./utils/Parent";import components from"../config/components";import get from"lodash/get";import ShipmentChildrenContext from"../context/ShipmentChildrenContext";const propTypes=components.ShipmentField.propTypes,displayName=components.ShipmentField.displayName,ShipmentField=props=>{const{name}=props,{shipment,keyNumber}=useContext(ShipmentChildrenContext),key=name,text=key!=="key_number"?get(shipment,key):keyNumber,parentProps=Object.assign({shipment},props);return props.children?_jsx(Parent,Object.assign({},parentProps,{children:props.children}),void 0):_jsx("span",Object.assign({},props,{children:text}),void 0)};ShipmentField.propTypes=propTypes,ShipmentField.displayName=displayName;export default ShipmentField;
@@ -1,6 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type ShipmentsContainerProps = {
3
- children: ReactNode;
4
- };
5
- declare const ShipmentsContainer: FunctionComponent<ShipmentsContainerProps>;
6
- export default ShipmentsContainer;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import ShipmentContext,{defaultShipmentContext}from"../context/ShipmentContext";import{useContext,useEffect,useReducer}from"react";import shipmentReducer,{shipmentInitialState,getShipments,setShippingMethod}from"../reducers/ShipmentReducer";import OrderContext from"../context/OrderContext";import CommerceLayerContext from"../context/CommerceLayerContext";import components from"../config/components";import{isEmpty}from"lodash";const propTypes=components.ShipmentsContainer.propTypes,displayName=components.ShipmentsContainer.displayName,ShipmentsContainer=props=>{const{children}=props,[state,dispatch]=useReducer(shipmentReducer,shipmentInitialState),{order,getOrder,include,addResourceToInclude,includeLoaded}=useContext(OrderContext),config=useContext(CommerceLayerContext);useEffect(()=>{(include==null?void 0:include.includes("shipments.available_shipping_methods"))?(includeLoaded==null?void 0:includeLoaded["shipments.available_shipping_methods"])||addResourceToInclude({newResourceLoaded:{"shipments.available_shipping_methods":!0,"shipments.shipment_line_items.line_item":!0,"shipments.shipping_method":!0,"shipments.stock_transfers":!0,"shipments.stock_location":!0}}):addResourceToInclude({newResource:["shipments.available_shipping_methods","shipments.shipment_line_items.line_item","shipments.shipping_method","shipments.stock_transfers","shipments.stock_location"]}),order&&!isEmpty(config)&&order.shipments&&getShipments({order,dispatch,config})},[order,include,includeLoaded]);const contextValue=Object.assign(Object.assign({},state),{setShipmentErrors:errors=>defaultShipmentContext.setShipmentErrors(errors,dispatch),setShippingMethod:async(shipmentId,shippingMethodId)=>await setShippingMethod({shippingMethodId,shipmentId,config,getOrder,order})});return _jsx(ShipmentContext.Provider,Object.assign({value:contextValue},{children}),void 0)};ShipmentsContainer.propTypes=propTypes,ShipmentsContainer.displayName=displayName;export default ShipmentsContainer;
@@ -1,6 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type Props = {
3
- children: ReactNode;
4
- };
5
- declare const ShippingAddressContainer: FunctionComponent<Props>;
6
- export default ShippingAddressContainer;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import ShippingAddressContext from"../context/ShippingAddressContext";import{useContext,useEffect,useReducer}from"react";import shippingAddressReducer,{setShippingAddress,shippingAddressInitialState,setShippingCustomerAddressId}from"../reducers/ShippingAddressReducer";import CommerceLayerContext from"../context/CommerceLayerContext";import components from"../config/components";import OrderContext from"../context/OrderContext";import AddressContext from"../context/AddressContext";const propTypes=components.ShippingAddressContainer.propTypes,ShippingAddressContainer=props=>{const{children}=props,[state,dispatch]=useReducer(shippingAddressReducer,shippingAddressInitialState),config=useContext(CommerceLayerContext),{order,updateOrder}=useContext(OrderContext),{setCloneAddress}=useContext(AddressContext);useEffect(()=>(order&&config&&setShippingCustomerAddressId({dispatch,order,setCloneAddress}),()=>{dispatch({type:"cleanup",payload:{}})}),[config,order]);const contextValue=Object.assign(Object.assign({},state),{setShippingAddress:async(id,options)=>{await setShippingAddress(id,{config,dispatch,order,customerAddressId:options==null?void 0:options.customerAddressId}),setCloneAddress(id,"shipping_address")}});return _jsx(ShippingAddressContext.Provider,Object.assign({value:contextValue},{children}),void 0)};ShippingAddressContainer.propTypes=propTypes;export default ShippingAddressContainer;
@@ -1,8 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type ShippingAddressFormProps = {
3
- children: ReactNode;
4
- reset?: boolean;
5
- errorClassName?: string;
6
- } & Omit<JSX.IntrinsicElements['form'], 'onSubmit'>;
7
- declare const ShippingAddressForm: FunctionComponent<ShippingAddressFormProps>;
8
- export default ShippingAddressForm;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import AddressesContext from"../context/AddressContext";import useRapidForm from"rapid-form";import{useContext,useEffect,useRef}from"react";import ShippingAddressFormContext from"../context/ShippingAddressFormContext";import{isEmpty}from"lodash";import components from"../config/components";import OrderContext from"../context/OrderContext";import{getSaveShippingAddressToAddressBook}from"../utils/localStorage";const propTypes=components.ShippingAddressForm.propTypes,ShippingAddressForm=props=>{const{children,errorClassName,autoComplete="on",reset=!1}=props,p=__rest(props,["children","errorClassName","autoComplete","reset"]),{validation,values,errors,reset:resetForm}=useRapidForm(),{setAddressErrors,setAddress,shipToDifferentAddress}=useContext(AddressesContext),{saveAddressToCustomerAddressBook,include,addResourceToInclude,includeLoaded}=useContext(OrderContext),ref=useRef(null);useEffect(()=>{var _a,_b,_c;if((include==null?void 0:include.includes("shipping_address"))?(includeLoaded==null?void 0:includeLoaded.shipping_address)||addResourceToInclude({newResourceLoaded:{shipping_address:!0}}):addResourceToInclude({newResource:"shipping_address"}),isEmpty(errors)){if(!isEmpty(values)&&shipToDifferentAddress){setAddressErrors([],"shipping_address");for(const name in values){const field=values[name];(field==null?void 0:field.value)&&(values[name.replace("shipping_address_","")]=field.value,delete values[name]),(field==null?void 0:field.type)==="checkbox"&&(delete values[name],saveAddressToCustomerAddressBook({type:"shipping_address",value:field.checked}))}setAddress({values,resource:"shipping_address"})}}else{const formErrors=[];for(const fieldName in errors){const{code,message}=errors[fieldName];["shipping_address_state_code"].includes(fieldName)?isEmpty(values.state_code)?delete errors[fieldName]:formErrors.push({code,message,resource:"shipping_address",field:fieldName}):formErrors.push({code,message,resource:"shipping_address",field:fieldName})}shipToDifferentAddress&&setAddressErrors(formErrors,"shipping_address")}const checkboxChecked=((_b=(_a=ref.current)===null||_a===void 0?void 0:_a.querySelector('[name="shipping_address_save_to_customer_book"]'))===null||_b===void 0?void 0:_b.checked)||getSaveShippingAddressToAddressBook();reset&&(!isEmpty(values)||!isEmpty(errors)||checkboxChecked)&&(saveAddressToCustomerAddressBook&&saveAddressToCustomerAddressBook({type:"shipping_address",value:!1}),ref&&((_c=ref.current)===null||_c===void 0||_c.reset(),resetForm({target:ref.current}),setAddressErrors([],"shipping_address"),setAddress({values:{},resource:"shipping_address"})))},[values,errors,shipToDifferentAddress,reset,include,includeLoaded]);const providerValues={values,validation,setValue:(name,value)=>{const field={[name.replace("shipping_address_","")]:value};setAddress({values:Object.assign(Object.assign({},values),field),resource:"shipping_address"})},errorClassName,errors,resetField:name=>resetForm({currentTarget:ref.current},name)};return _jsx(ShippingAddressFormContext.Provider,Object.assign({value:providerValues},{children:_jsx("form",Object.assign({ref,autoComplete},p,{children}),void 0)}),void 0)};ShippingAddressForm.propTypes=propTypes;export default ShippingAddressForm;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseAmountComponent } from '../typings/index';
3
- declare const ShippingAmount: FunctionComponent<BaseAmountComponent>;
4
- export default ShippingAmount;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import BaseOrderPrice from"./utils/BaseOrderPrice";import components from"../config/components";const propTypes=components.ShippingAmount.propTypes,displayName=components.ShippingAmount.displayName,ShippingAmount=props=>_jsx(BaseOrderPrice,Object.assign({base:"amount",type:"shipping"},props),void 0);ShippingAmount.propTypes=propTypes,ShippingAmount.displayName=displayName;export default ShippingAmount;
@@ -1,8 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type ShippingMethodProps = {
3
- children: ReactNode;
4
- readonly?: boolean;
5
- emptyText?: string;
6
- };
7
- declare const ShippingMethod: FunctionComponent<ShippingMethodProps>;
8
- export default ShippingMethod;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{Fragment,useContext,useEffect,useState}from"react";import ShippingMethodChildrenContext from"../context/ShippingMethodChildrenContext";import components from"../config/components";import ShipmentChildrenContext from"../context/ShipmentChildrenContext";import isEmpty from"lodash/isEmpty";const propTypes=components.ShippingMethod.propTypes,displayName=components.ShippingMethod.displayName,ShippingMethod=props=>{const{children,readonly,emptyText="There are not any shipping method available"}=props,{shippingMethods,currentShippingMethodId,deliveryLeadTimes,shipment}=useContext(ShipmentChildrenContext),[items,setItems]=useState([]);useEffect(()=>{const methods=shippingMethods&&shippingMethods.filter(s=>readonly?s.id===currentShippingMethodId:!0).map((shippingMethod,k)=>{const[deliveryLeadTimeForShipment]=deliveryLeadTimes==null?void 0:deliveryLeadTimes.filter(delivery=>{var _a;const deliveryShippingMethodId=(_a=delivery.shipping_method)===null||_a===void 0?void 0:_a.id;return shippingMethod.id===deliveryShippingMethodId}),shippingProps={shipmentId:shipment==null?void 0:shipment.id,shippingMethod,currentShippingMethodId,deliveryLeadTimeForShipment};return _jsx(ShippingMethodChildrenContext.Provider,Object.assign({value:shippingProps},{children}),k)});methods&&setItems(methods)},[currentShippingMethodId,deliveryLeadTimes,shippingMethods]);const components2=!isEmpty(items)&&items||emptyText;return _jsx(Fragment,{children:components2},void 0)};ShippingMethod.propTypes=propTypes,ShippingMethod.displayName=displayName;export default ShippingMethod;
@@ -1,11 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- import { ShippingMethod } from '@commercelayer/sdk';
3
- declare type LineItemNameChildrenProps = Omit<LineItemNameProps, 'children'> & {
4
- label: string;
5
- shippingMethod: ShippingMethod;
6
- };
7
- declare type LineItemNameProps = {
8
- children?: (props: LineItemNameChildrenProps) => ReactNode;
9
- } & JSX.IntrinsicElements['label'];
10
- declare const ShippingMethodName: FunctionComponent<LineItemNameProps>;
11
- export default ShippingMethodName;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import ShippingMethodChildrenContext from"../context/ShippingMethodChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";const propTypes=components.ShippingMethodName.propTypes,displayName=components.ShippingMethodName.displayName,ShippingMethodName=props=>{const{shippingMethod,deliveryLeadTimeForShipment,shipmentId}=useContext(ShippingMethodChildrenContext),htmlFor=`shipment-${shipmentId}-${shippingMethod==null?void 0:shippingMethod.id}`||"",labelName=shippingMethod==null?void 0:shippingMethod.name,parentProps=Object.assign({shippingMethod,deliveryLeadTimeForShipment,label:labelName,htmlFor},props);return props.children?_jsx(Parent,Object.assign({},parentProps,{children:props.children}),void 0):_jsx("label",Object.assign({htmlFor},props,{children:labelName}),void 0)};ShippingMethodName.propTypes=propTypes,ShippingMethodName.displayName=displayName;export default ShippingMethodName;
@@ -1,13 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseAmountComponent } from '../typings/index';
3
- export declare type ShippingMethodPriceProps = BaseAmountComponent & {
4
- labelFreeOver?: string;
5
- } & ({
6
- type?: 'amount';
7
- base?: 'freeOver';
8
- } | {
9
- type?: 'amount' | 'amountForShipment';
10
- base?: 'price';
11
- });
12
- declare const ShippingMethodPrice: FunctionComponent<ShippingMethodPriceProps>;
13
- export default ShippingMethodPrice;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import{useState,useEffect,useContext}from"react";import getAmount from"../utils/getAmount";import ShippingMethodChildrenContext from"../context/ShippingMethodChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";import OrderContext from"../context/OrderContext";import{isNumber}from"lodash";const propTypes=components.ShippingMethodPrice.propTypes,displayName=components.ShippingMethodPrice.displayName,ShippingMethodPrice=props=>{const{format="formatted",type="amount",base="price",labelFreeOver="Free"}=props,p=__rest(props,["format","type","base","labelFreeOver"]),{shippingMethod}=useContext(ShippingMethodChildrenContext),{order}=useContext(OrderContext),[price,setPrice]=useState(""),[freeOverAmountCents,setFreeOverAmountCents]=useState(0);useEffect(()=>{if(shippingMethod){const p2=getAmount({base,type,format,obj:shippingMethod});setPrice(p2);const c=getAmount({base:"freeOver",type,format:"cents",obj:shippingMethod});setFreeOverAmountCents(c)}return()=>{setPrice(""),setFreeOverAmountCents(0)}},[shippingMethod]);const parentProps=Object.assign({price},p);return props.children?_jsx(Parent,Object.assign({},parentProps,{children:props.children}),void 0):_jsx("span",Object.assign({},p,{children:(order==null?void 0:order.total_amount_cents)&&isNumber(freeOverAmountCents)&&freeOverAmountCents<order.total_amount_cents?labelFreeOver:price}),void 0)};ShippingMethodPrice.propTypes=propTypes,ShippingMethodPrice.displayName=displayName;export default ShippingMethodPrice;
@@ -1,13 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- import { ShippingMethod } from '@commercelayer/sdk';
3
- export declare type ShippingMethodRadioButtonType = Omit<ShippingMethodRadioButtonProps, 'children'> & {
4
- shippingMethod: ShippingMethod;
5
- shipmentId: string;
6
- };
7
- export declare type ShippingMethodRadioButtonOnChangeType = (shippingMethod: ShippingMethod, shipmentId: string) => void;
8
- declare type ShippingMethodRadioButtonProps = {
9
- children?: (props: ShippingMethodRadioButtonType) => ReactNode;
10
- onChange?: ShippingMethodRadioButtonOnChangeType;
11
- } & Omit<JSX.IntrinsicElements['input'], 'onChange'>;
12
- declare const ShippingMethodRadioButton: FunctionComponent<ShippingMethodRadioButtonProps>;
13
- export default ShippingMethodRadioButton;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import ShippingMethodChildrenContext from"../context/ShippingMethodChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";import ShipmentContext from"../context/ShipmentContext";const propTypes=components.ShippingMethodRadioButton.propTypes,displayName=components.ShippingMethodRadioButton.displayName,ShippingMethodRadioButton=props=>{const{onChange}=props,p=__rest(props,["onChange"]),{shippingMethod,currentShippingMethodId,shipmentId}=useContext(ShippingMethodChildrenContext),{setShippingMethod}=useContext(ShipmentContext),shippingMethodId=shippingMethod==null?void 0:shippingMethod.id,name=`shipment-${shipmentId}`,id=`${name}-${shippingMethodId}`,checked=shippingMethodId===currentShippingMethodId,handleOnChange=async()=>{shipmentId&&(shippingMethodId&&await setShippingMethod(shipmentId,shippingMethodId),shippingMethod&&onChange&&onChange(shippingMethod,shipmentId))},parentProps=Object.assign({shippingMethod,shipmentId,handleOnChange,name,id},props);return props.children?_jsx(Parent,Object.assign({},parentProps,{children:props.children}),void 0):_jsx("input",Object.assign({type:"radio",name,id,onChange:handleOnChange,defaultChecked:checked},p),void 0)};ShippingMethodRadioButton.propTypes=propTypes,ShippingMethodRadioButton.displayName=displayName;export default ShippingMethodRadioButton;
@@ -1,7 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type SkuListProp = {
3
- children: ReactNode;
4
- id: string;
5
- };
6
- declare const SkuList: FunctionComponent<SkuListProp>;
7
- export default SkuList;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useContext,useEffect,Fragment}from"react";import SkuListsContext from"../context/SkuListsContext";import components from"../config/components";const propTypes=components.SkuList.propTypes,displayName=components.SkuList.displayName,SkuList=props=>{const{id,children}=props,{listIds}=useContext(SkuListsContext);return useEffect(()=>{listIds&&!listIds.includes(id)&&listIds.push(id)},[]),_jsx(Fragment,{children},void 0)};SkuList.propTypes=propTypes,SkuList.displayName=displayName;export default SkuList;
@@ -1,6 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type SkuListsContainerProp = {
3
- children: ReactNode;
4
- };
5
- declare const SkuListsContainer: FunctionComponent<SkuListsContainerProp>;
6
- export default SkuListsContainer;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useReducer,useContext,useEffect}from"react";import SkuListsContext from"../context/SkuListsContext";import CommerceLayerContext from"../context/CommerceLayerContext";import skuListsReducer,{skuListsInitialState,getSkuList}from"../reducers/SkuListsReducer";import components from"../config/components";const propTypes=components.SkuListsContainer.propTypes,displayName=components.SkuListsContainer.displayName,SkuListsContainer=props=>{const{children}=props,[state,dispatch]=useReducer(skuListsReducer,skuListsInitialState),config=useContext(CommerceLayerContext);return useEffect(()=>{state.listIds&&state.listIds.length>0&&config.accessToken&&getSkuList({listIds:state.listIds,dispatch,config,state})},[config.accessToken]),_jsx(SkuListsContext.Provider,Object.assign({value:state},{children}),void 0)};SkuListsContainer.propTypes=propTypes,SkuListsContainer.displayName=displayName;export default SkuListsContainer;
@@ -1,7 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- export declare type SkuOptionProps = {
3
- children: ReactNode;
4
- id: string;
5
- };
6
- declare const SkuOption: FunctionComponent<SkuOptionProps>;
7
- export default SkuOption;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{Fragment,useContext}from"react";import SkuOptionChildrenContext from"../context/SkuOptionChildrenContext";import SkuOptionsContext from"../context/SkuOptionsContext";import components from"../config/components";const propTypes=components.SkuOption.propTypes,displayName=components.SkuOption.displayName,SkuOption=props=>{const{id}=props,{skuOptions,skuCode}=useContext(SkuOptionsContext),items=skuOptions&&skuOptions.filter(l=>l.id===id).map((skuOption,k)=>_jsx(SkuOptionChildrenContext.Provider,Object.assign({value:{skuOption,skuCode}},{children:props.children}),k));return _jsx(Fragment,{children:items},void 0)};SkuOption.propTypes=propTypes,SkuOption.displayName=displayName;export default SkuOption;
@@ -1,5 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseInputComponentProps } from '../typings/index';
3
- declare type SkuOptionInputProps = BaseInputComponentProps & JSX.IntrinsicElements['input'] & JSX.IntrinsicElements['textarea'];
4
- declare const SkuOptionInput: FunctionComponent<SkuOptionInputProps>;
5
- export default SkuOptionInput;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import BaseInput from"./utils/BaseInput";import ItemContext from"../context/ItemContext";import SkuOptionChildrenContext from"../context/SkuOptionChildrenContext";import{has}from"lodash";import components from"../config/components";const propTypes=components.SkuOptionInput.propTypes,displayName=components.SkuOptionInput.displayName,SkuOptionInput=props=>{const{name}=props,{option,setOption}=useContext(ItemContext),{skuOption,skuCode}=useContext(SkuOptionChildrenContext);return _jsx(BaseInput,Object.assign({onChange:event=>{const val=event.target.value,options=has(option,`${skuCode}.${skuOption==null?void 0:skuOption.id}`)?option[skuCode][`${skuOption==null?void 0:skuOption.id}`].options:{},o={[skuCode]:Object.assign(Object.assign({},option[skuCode]),{[`${skuOption==null?void 0:skuOption.id}`]:{skuOptionId:skuOption==null?void 0:skuOption.id,options:Object.assign(Object.assign({},options),{[name]:val})}})};setOption&&setOption(o)}},props),void 0)};SkuOptionInput.propTypes=propTypes,SkuOptionInput.displayName=displayName;export default SkuOptionInput;
@@ -1,7 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type SkuOptionsContainerProp = {
3
- children: ReactNode;
4
- skuCode?: string;
5
- };
6
- declare const SkuOptionsContainer: FunctionComponent<SkuOptionsContainerProp>;
7
- export default SkuOptionsContainer;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useReducer,useContext,useEffect}from"react";import SkuOptionsContext from"../context/SkuOptionsContext";import skuOptionsReducer,{skuOptionsInitialState}from"../reducers/SkuOptionsReducer";import CommerceLayerContext from"../context/CommerceLayerContext";import{isEmpty}from"lodash";import getCurrentItemKey from"../utils/getCurrentItemKey";import ItemContext from"../context/ItemContext";import{getSkuOptions}from"../reducers/SkuOptionsReducer";import components from"../config/components";const propTypes=components.SkuOptionsContainer.propTypes,displayName=components.SkuOptionsContainer.displayName,SkuOptionsContainer=props=>{var _a;const{skuCode,children}=props,[state,dispatch]=useReducer(skuOptionsReducer,skuOptionsInitialState),config=useContext(CommerceLayerContext),{item,items}=useContext(ItemContext),sCode=!isEmpty(items)&&skuCode?(_a=items[skuCode])===null||_a===void 0?void 0:_a.code:skuCode||getCurrentItemKey(item),skuOptionsValue=Object.assign(Object.assign({},state),{skuCode:sCode});return useEffect(()=>(sCode&&item[sCode].sku_options&&getSkuOptions({skuOptions:item[sCode].sku_options,dispatch}),()=>{isEmpty(sCode)&&dispatch({type:"setSkuOptions",payload:{skuOptions:[]}})}),[config,sCode]),_jsx(SkuOptionsContext.Provider,Object.assign({value:skuOptionsValue},{children}),void 0)};SkuOptionsContainer.propTypes=propTypes,SkuOptionsContainer.displayName=displayName;export default SkuOptionsContainer;
@@ -1,6 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type StockTransferProps = {
3
- children: ReactNode;
4
- } & JSX.IntrinsicElements['p'];
5
- declare const StockTransfer: FunctionComponent<StockTransferProps>;
6
- export default StockTransfer;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useContext,Fragment}from"react";import LineItemChildrenContext from"../context/LineItemChildrenContext";import components from"../config/components";import ShipmentChildrenContext from"../context/ShipmentChildrenContext";import StockTransferChildrenContext from"../context/StockTransferChildrenContext";const propTypes=components.StockTransfer.propTypes,displayName=components.StockTransfer.displayName,StockTransfer=props=>{const{children}=props,{lineItem}=useContext(LineItemChildrenContext),{stockTransfers}=useContext(ShipmentChildrenContext),components2=stockTransfers==null?void 0:stockTransfers.filter(stock=>stock.sku_code===(lineItem==null?void 0:lineItem.sku_code)).map((stockTransfer,k)=>{const stockTransferProps={stockTransfer};return _jsx(StockTransferChildrenContext.Provider,Object.assign({value:stockTransferProps},{children}),k)});return _jsx(Fragment,{children:components2},void 0)};StockTransfer.propTypes=propTypes,StockTransfer.displayName=displayName;export default StockTransfer;
@@ -1,9 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type StockTransferFieldChildrenProps = Omit<StockTransferFieldProps, 'children'>;
3
- export declare type StockTransferFieldType = 'quantity' | 'sku_code';
4
- declare type StockTransferFieldProps = {
5
- children?: (props: StockTransferFieldChildrenProps) => ReactNode;
6
- type: StockTransferFieldType;
7
- } & JSX.IntrinsicElements['p'];
8
- declare const StockTransferField: FunctionComponent<StockTransferFieldProps>;
9
- export default StockTransferField;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useContext}from"react";import StockTransferChildrenContext from"../context/StockTransferChildrenContext";import Parent from"./utils/Parent";import components from"../config/components";const propTypes=components.StockTransferField.propTypes,displayName=components.StockTransferField.displayName,StockTransferField=props=>{const{type}=props,{stockTransfer}=useContext(StockTransferChildrenContext),text=stockTransfer?stockTransfer[type]:"",parentProps=Object.assign({},props);return props.children?_jsx(Parent,Object.assign({},parentProps,{children:props.children}),void 0):_jsx("p",Object.assign({},props,{children:text}),void 0)};StockTransferField.propTypes=propTypes,StockTransferField.displayName=displayName;export default StockTransferField;
@@ -1,18 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { StripeCardElementOptions, StripeElementLocale } from '@stripe/stripe-js';
3
- import { PaymentMethodConfig } from '../reducers/PaymentMethodReducer';
4
- import { PaymentSourceProps } from './PaymentSource';
5
- export declare type StripeConfig = {
6
- containerClassName?: string;
7
- hintLabel?: string;
8
- name?: string;
9
- options?: StripeCardElementOptions;
10
- [key: string]: any;
11
- };
12
- declare type StripePaymentProps = PaymentMethodConfig['stripePayment'] & JSX.IntrinsicElements['div'] & Partial<PaymentSourceProps['templateCustomerSaveToWallet']> & {
13
- show?: boolean;
14
- publishableKey: string;
15
- locale?: StripeElementLocale;
16
- };
17
- declare const StripePayment: FunctionComponent<StripePaymentProps>;
18
- export default StripePayment;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{useContext,useEffect,useRef,useState}from"react";import PaymentMethodContext from"../context/PaymentMethodContext";import{CardElement,Elements,useElements,useStripe}from"@stripe/react-stripe-js";import Parent from"./utils/Parent";import OrderContext from"../context/OrderContext";import{setCustomerOrderParam}from"../utils/localStorage";const defaultOptions={style:{base:{fontSize:"16px",color:"#424770","::placeholder":{color:"#aab7c4"}},invalid:{color:"#9e2146"}},hidePostalCode:!0},StripePaymentForm=({options=defaultOptions,templateCustomerSaveToWallet})=>{const ref=useRef(null),{setPaymentSource,paymentSource,currentPaymentMethodType,setPaymentMethodErrors,setPaymentRef}=useContext(PaymentMethodContext),{order}=useContext(OrderContext),stripe=useStripe(),elements=useElements();useEffect(()=>(ref.current&&stripe&&elements&&(ref.current.onsubmit=()=>onSubmit(ref.current,stripe,elements),setPaymentRef({ref})),()=>{setPaymentRef({ref:{current:null}})}),[ref,stripe,elements]);const onSubmit=async(event,stripe2,elements2)=>{var _a,_b;if(!stripe2)return!1;const savePaymentSourceToCustomerWallet=(_b=(_a=event==null?void 0:event.elements)===null||_a===void 0?void 0:_a.save_payment_source_to_customer_wallet)===null||_b===void 0?void 0:_b.checked;savePaymentSourceToCustomerWallet&&setCustomerOrderParam("_save_payment_source_to_customer_wallet",savePaymentSourceToCustomerWallet);const cardElement=elements2&&elements2.getElement(CardElement);if(cardElement){const billingInfo=order==null?void 0:order.billing_address,email=order==null?void 0:order.customer_email,billing_details={name:billingInfo==null?void 0:billingInfo.full_name,email,phone:billingInfo==null?void 0:billingInfo.phone,address:{city:billingInfo==null?void 0:billingInfo.city,country:billingInfo==null?void 0:billingInfo.country_code,line1:billingInfo==null?void 0:billingInfo.line_1,postal_code:billingInfo==null?void 0:billingInfo.zip_code,state:billingInfo==null?void 0:billingInfo.state_code}},{paymentMethod}=await stripe2.createPaymentMethod({type:"card",card:cardElement,billing_details});if(paymentSource==null?void 0:paymentSource.client_secret){const{error,paymentIntent}=await stripe2.confirmCardPayment(paymentSource.client_secret,{payment_method:{card:cardElement,billing_details}});if(error)console.error(error),setPaymentMethodErrors([{code:"PAYMENT_INTENT_AUTHENTICATION_FAILURE",resource:"payment_methods",field:currentPaymentMethodType,message:error.message}]);else if(paymentIntent&&paymentMethod&&paymentSource&&currentPaymentMethodType)try{return await setPaymentSource({paymentSourceId:paymentSource.id,paymentResource:currentPaymentMethodType,attributes:{options:Object.assign(Object.assign({},paymentMethod),{setup_future_usage:"off_session"})}}),!0}catch{return!1}}}return!1};return _jsxs("form",Object.assign({ref,onSubmit:e=>onSubmit(e,stripe,elements)},{children:[_jsx(CardElement,{options:Object.assign(Object.assign({},defaultOptions),options)},void 0),templateCustomerSaveToWallet&&_jsx(Parent,Object.assign({},{name:"save_payment_source_to_customer_wallet"},{children:templateCustomerSaveToWallet}),void 0)]}),void 0)},StripePayment=_a=>{var{publishableKey,show,options,locale="auto"}=_a,p=__rest(_a,["publishableKey","show","options","locale"]);const[isLoaded,setIsLoaded]=useState(!1),[stripe,setStripe]=useState(null),{containerClassName,templateCustomerSaveToWallet,fonts=[]}=p,divProps=__rest(p,["containerClassName","templateCustomerSaveToWallet","fonts"]);return useEffect(()=>{if(show&&publishableKey){const{loadStripe}=require("@stripe/stripe-js");(async()=>{const res=await loadStripe(publishableKey,{locale});setStripe(res),setIsLoaded(!0)})()}return()=>{setIsLoaded(!1)}},[show,publishableKey]),isLoaded&&stripe?_jsx("div",Object.assign({className:containerClassName},divProps,{children:_jsx(Elements,Object.assign({stripe,options:{fonts}},{children:_jsx(StripePaymentForm,{options,templateCustomerSaveToWallet},void 0)}),void 0)}),void 0):null};export default StripePayment;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseAmountComponent } from '../typings/index';
3
- declare const SubTotalAmount: FunctionComponent<BaseAmountComponent>;
4
- export default SubTotalAmount;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import BaseOrderPrice from"./utils/BaseOrderPrice";import components from"../config/components";const propTypes=components.SubTotalAmount.propTypes,defaultProps=components.SubTotalAmount.defaultProps,displayName=components.SubTotalAmount.displayName,SubTotalAmount=props=>_jsx(BaseOrderPrice,Object.assign({base:"amount",type:"subtotal"},props),void 0);SubTotalAmount.propTypes=propTypes,SubTotalAmount.defaultProps=defaultProps,SubTotalAmount.displayName=displayName;export default SubTotalAmount;
@@ -1,9 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- import { FunctionChildren } from '../typings/index';
3
- declare type SubmitButtonChildrenProps = FunctionChildren<Omit<SubmitButtonProps, 'children'>>;
4
- declare type SubmitButtonProps = {
5
- children?: SubmitButtonChildrenProps;
6
- label?: string | ReactNode;
7
- } & JSX.IntrinsicElements['button'];
8
- declare const SubmitButton: FunctionComponent<SubmitButtonProps>;
9
- export default SubmitButton;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import Parent from"./utils/Parent";import components from"../config/components";import isFunction from"lodash/isFunction";const propTypes=components.SubmitButton.propTypes,defaultProps=components.SubmitButton.defaultProps,displayName=components.SubmitButton.displayName,SubmitButton=props=>{const{children,label="Submit"}=props,p=__rest(props,["children","label"]),parentProps=Object.assign(Object.assign({},p),{label});return children?_jsx(Parent,Object.assign({},parentProps,{children}),void 0):_jsx("button",Object.assign({type:"submit"},p,{children:isFunction(label)?label():label}),void 0)};SubmitButton.propTypes=propTypes,SubmitButton.defaultProps=defaultProps,SubmitButton.displayName=displayName;export default SubmitButton;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseAmountComponent } from '../typings/index';
3
- declare const TaxesAmount: FunctionComponent<BaseAmountComponent>;
4
- export default TaxesAmount;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import BaseOrderPrice from"./utils/BaseOrderPrice";import components from"../config/components";const propTypes=components.TaxesAmount.propTypes,defaultProps=components.TaxesAmount.defaultProps,displayName=components.TaxesAmount.displayName,TaxesAmount=props=>_jsx(BaseOrderPrice,Object.assign({base:"amount",type:"total_tax"},props),void 0);TaxesAmount.propTypes=propTypes,TaxesAmount.defaultProps=defaultProps,TaxesAmount.displayName=displayName;export default TaxesAmount;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { BaseAmountComponent } from '../typings/index';
3
- declare const TotalAmount: FunctionComponent<BaseAmountComponent>;
4
- export default TotalAmount;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import BaseOrderPrice from"./utils/BaseOrderPrice";import components from"../config/components";const propTypes=components.TotalAmount.propTypes,defaultProps=components.TotalAmount.defaultProps,displayName=components.TotalAmount.displayName,TotalAmount=props=>_jsx(BaseOrderPrice,Object.assign({base:"total_amount",type:"with_taxes"},props),void 0);TotalAmount.propTypes=propTypes,TotalAmount.defaultProps=defaultProps,TotalAmount.displayName=displayName;export default TotalAmount;
@@ -1,29 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- import { VariantHandleCallback } from './utils/VariantTemplate';
3
- import { BaseSelectorType } from '../typings/index';
4
- import { FunctionChildren } from '../typings/index';
5
- import { VariantsObject, SetSkuCode } from '../reducers/VariantReducer';
6
- export interface VariantOption {
7
- label: string;
8
- code: string;
9
- lineItem?: {
10
- name: string;
11
- imageUrl?: string | null;
12
- } | null;
13
- }
14
- declare type VariantSelectorChildrenProps = FunctionChildren<Omit<VariantSelectorProps, 'children'> & {
15
- variants: VariantsObject;
16
- handleSelect: SetSkuCode;
17
- loading: boolean;
18
- }>;
19
- declare type VariantSelectorProps = {
20
- children?: VariantSelectorChildrenProps;
21
- options: VariantOption[];
22
- type?: BaseSelectorType;
23
- loader?: ReactNode;
24
- placeholder?: string;
25
- skuCode?: string;
26
- handleCallback?: VariantHandleCallback;
27
- } & JSX.IntrinsicElements['input'] & JSX.IntrinsicElements['select'];
28
- declare const VariantSelector: FunctionComponent<VariantSelectorProps>;
29
- export default VariantSelector;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment,useContext,useEffect}from"react";import VariantTemplate from"./utils/VariantTemplate";import Parent from"./utils/Parent";import VariantsContext from"../context/VariantsContext";import components from"../config/components";const propTypes=components.VariantSelector.propTypes,defaultProps=components.VariantSelector.defaultProps,displayName=components.VariantSelector.displayName,VariantSelector=props=>{const{children,type,placeholder,skuCode,name,options}=props,prs=__rest(props,["children","type","placeholder","skuCode","name","options"]),{setSkuCode,skuCode:variantSkuCode,loading,variants,setSkuCodes}=useContext(VariantsContext);useEffect(()=>(setSkuCodes&&setSkuCodes(options),()=>{setSkuCodes&&setSkuCodes([])}),[options]);const sCode=variantSkuCode||skuCode||"",DefaultTemplate=()=>loading?_jsx(Fragment,{children:props.loader||"Loading..."},void 0):_jsx(VariantTemplate,Object.assign({variants,type,placeholder,skuCode:sCode,options,handleChange:setSkuCode,name},prs),void 0),parentProps=Object.assign({variants,loading:!!loading,handleSelect:setSkuCode,skuCode:sCode},props);return children?_jsx(Parent,Object.assign({},parentProps,{children}),void 0):_jsx(Fragment,{children:_jsx(DefaultTemplate,{},void 0)},void 0)};VariantSelector.propTypes=propTypes,VariantSelector.defaultProps=defaultProps,VariantSelector.displayName=displayName;export default VariantSelector;
@@ -1,8 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type VariantsContainerProps = {
3
- children: ReactNode;
4
- filters?: Record<string, any>;
5
- skuCode?: string;
6
- };
7
- declare const VariantsContainer: FunctionComponent<VariantsContainerProps>;
8
- export default VariantsContainer;
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import{useEffect,useReducer,useContext}from"react";import variantReducer,{variantInitialState,unsetVariantState,setSkuCode,getVariants}from"../reducers/VariantReducer";import CommerceLayerContext from"../context/CommerceLayerContext";import VariantsContext from"../context/VariantsContext";import{setVariantSkuCodes}from"../reducers/VariantReducer";import{isEmpty,isEqual}from"lodash";import getCurrentItemKey from"../utils/getCurrentItemKey";import ItemContext from"../context/ItemContext";import components from"../config/components";const propTypes=components.VariantsContainer.propTypes,defaultProps=components.VariantsContainer.defaultProps,displayName=components.VariantsContainer.displayName,VariantsContainer=props=>{const{children,skuCode="",filters={}}=props,config=useContext(CommerceLayerContext),{setItem,setItems,items,item:currentItem,setCustomLineItems,skuCode:itemSkuCode}=useContext(ItemContext),[state,dispatch]=useReducer(variantReducer,variantInitialState),sCode=getCurrentItemKey(currentItem)||skuCode||state.skuCode||itemSkuCode||"";useEffect(()=>{if(!isEmpty(items)&&!isEmpty(state.variants)&&!isEqual(items,state.variants)){const mergeItems=Object.assign(Object.assign({},items),state.variants);setItems&&setItems(mergeItems)}return state.skuCodes.length>=1&&config.accessToken&&(dispatch({type:"setLoading",payload:{loading:!0}}),getVariants({config,state,dispatch,setItem,skuCode:sCode,filters})),()=>unsetVariantState(dispatch)},[config.accessToken]);const variantValue=Object.assign(Object.assign({},state),{skuCode:sCode,setSkuCode:(code,id,lineItem={})=>{isEmpty(lineItem)||setCustomLineItems&&setCustomLineItems({[code]:lineItem}),setSkuCode({code,id,config,setItem,dispatch})},setSkuCodes:skuCodes=>setVariantSkuCodes({skuCodes,dispatch,setCustomLineItems})});return _jsx(VariantsContext.Provider,Object.assign({value:variantValue},{children}),void 0)};VariantsContainer.propTypes=propTypes,VariantsContainer.defaultProps=defaultProps,VariantsContainer.displayName=displayName;export default VariantsContainer;
@@ -1,10 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- export declare type WireTransferConfig = {
3
- infoMessage?: {
4
- text?: string | ReactNode;
5
- className?: string;
6
- };
7
- };
8
- declare type Props = WireTransferConfig & JSX.IntrinsicElements['div'];
9
- declare const WireTransferPayment: FunctionComponent<Props>;
10
- export default WireTransferPayment;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import PaymentMethodContext from"../context/PaymentMethodContext";import isFunction from"lodash/isFunction";import{useContext,useEffect,useRef}from"react";const defaultMessage="after placing the order, you will need to manually complete the payment with your bank",WireTransferPayment=_a=>{var{infoMessage}=_a,p=__rest(_a,["infoMessage"]);const ref=useRef(null),{setPaymentSource,paymentSource,currentPaymentMethodType,setPaymentRef}=useContext(PaymentMethodContext);useEffect(()=>(ref.current&&paymentSource&&currentPaymentMethodType&&(ref.current.onsubmit=()=>handleClick(),setPaymentRef({ref})),()=>{setPaymentRef({ref:{current:null}})}),[ref,paymentSource,currentPaymentMethodType]);const handleClick=async()=>{if(paymentSource&&currentPaymentMethodType)try{return await setPaymentSource({paymentSourceId:paymentSource.id,paymentResource:currentPaymentMethodType,attributes:{metadata:{card:{id:paymentSource.id,brand:"wire-transfer",last4:""}}}}),!0}catch{return!1}return!1};return _jsx("form",Object.assign({ref},{children:_jsx("div",Object.assign({},p,{children:_jsx("span",Object.assign({className:infoMessage==null?void 0:infoMessage.className},{children:isFunction(infoMessage==null?void 0:infoMessage.text)?infoMessage==null?void 0:infoMessage.text():(infoMessage==null?void 0:infoMessage.text)||defaultMessage}),void 0)}),void 0)}),void 0)};export default WireTransferPayment;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { GatewayBaseType } from '../PaymentGateway';
3
- declare type AdyenGateway = GatewayBaseType;
4
- export default function AdyenGateway(props: AdyenGateway): JSX.Element | null;
5
- export {};
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import CommerceLayerContext from"../../context/CommerceLayerContext";import CustomerContext from"../../context/CustomerContext";import OrderContext from"../../context/OrderContext";import PaymentMethodChildrenContext from"../../context/PaymentMethodChildrenContext";import PaymentMethodContext from"../../context/PaymentMethodContext";import PaymentSourceContext from"../../context/PaymentSourceContext";import{getPaymentConfig}from"../../reducers/PaymentMethodReducer";import isEmpty from"lodash/isEmpty";import{Fragment,useContext}from"react";import AdyenPayment from"../AdyenPayment";import PaymentCardsTemplate from"../utils/PaymentCardsTemplate";import jwt from"../../utils/jwt";export default function AdyenGateway(props){var _a;const{readonly,showCard,handleEditClick,children,templateCustomerCards,show,loading,onClickCustomerCards,loaderComponent,templateCustomerSaveToWallet}=props,p=__rest(props,["readonly","showCard","handleEditClick","children","templateCustomerCards","show","loading","onClickCustomerCards","loaderComponent","templateCustomerSaveToWallet"]),{order}=useContext(OrderContext),{accessToken}=useContext(CommerceLayerContext),{payment}=useContext(PaymentMethodChildrenContext),{payments,isGuest}=useContext(CustomerContext),{currentPaymentMethodId,config,paymentSource}=useContext(PaymentMethodContext),paymentResource="adyen_payments",locale=order==null?void 0:order.language_code;if(!readonly&&(payment==null?void 0:payment.id)!==currentPaymentMethodId)return null;const clientKey=paymentSource==null?void 0:paymentSource.public_key,environment=jwt(accessToken).test?"test":"live",adyenConfig=config?getPaymentConfig(paymentResource,config):{},customerPayments=!isEmpty(payments)&&payments?payments.filter(customerPayment=>{var _a2;return((_a2=customerPayment.payment_source)===null||_a2===void 0?void 0:_a2.type)==="adyen_payments"}):[];if(readonly||showCard){const card=(_a=paymentSource==null?void 0:paymentSource.payment_request_data)===null||_a===void 0?void 0:_a.payment_method,value=Object.assign(Object.assign({},card),{showCard,handleEditClick,readonly});return isEmpty(card)?null:_jsx(PaymentSourceContext.Provider,Object.assign({value},{children}),void 0)}return!isGuest&&templateCustomerCards?clientKey&&!loading&&(paymentSource==null?void 0:paymentSource.payment_methods)?_jsxs(Fragment,{children:[isEmpty(customerPayments)?null:_jsx("div",Object.assign({className:p.className},{children:_jsx(PaymentCardsTemplate,Object.assign({},{paymentResource,customerPayments},{children:templateCustomerCards}),void 0)}),void 0),_jsx(AdyenPayment,{templateCustomerSaveToWallet,clientKey,locale,environment,config:adyenConfig},void 0)]},void 0):loaderComponent:clientKey&&!loading&&(paymentSource==null?void 0:paymentSource.payment_methods)?_jsx(AdyenPayment,{clientKey,locale,config:adyenConfig},void 0):loaderComponent}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { GatewayBaseType } from '../PaymentGateway';
3
- declare type BraintreeGateway = GatewayBaseType;
4
- export default function BraintreeGateway(props: BraintreeGateway): JSX.Element | null;
5
- export {};
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import BraintreePayment from"../BraintreePayment";import CustomerContext from"../../context/CustomerContext";import OrderContext from"../../context/OrderContext";import PaymentMethodChildrenContext from"../../context/PaymentMethodChildrenContext";import PaymentMethodContext from"../../context/PaymentMethodContext";import PaymentSourceContext from"../../context/PaymentSourceContext";import{getPaymentConfig}from"../../reducers/PaymentMethodReducer";import isEmpty from"lodash/isEmpty";import{Fragment,useContext}from"react";import PaymentCardsTemplate from"../utils/PaymentCardsTemplate";export default function BraintreeGateway(props){var _a;const{readonly,showCard,handleEditClick,children,templateCustomerCards,show,loading,onClickCustomerCards,loaderComponent,templateCustomerSaveToWallet}=props,p=__rest(props,["readonly","showCard","handleEditClick","children","templateCustomerCards","show","loading","onClickCustomerCards","loaderComponent","templateCustomerSaveToWallet"]),{order}=useContext(OrderContext),{payment}=useContext(PaymentMethodChildrenContext),{payments,isGuest}=useContext(CustomerContext),{currentPaymentMethodId,config,paymentSource}=useContext(PaymentMethodContext),paymentResource="braintree_payments",locale=order==null?void 0:order.language_code;if(!readonly&&(payment==null?void 0:payment.id)!==currentPaymentMethodId)return null;const authorization=paymentSource==null?void 0:paymentSource.client_token,braintreeConfig=config?getPaymentConfig(paymentResource,config):{},customerPayments=!isEmpty(payments)&&payments?payments.filter(customerPayment=>{var _a2;return((_a2=customerPayment.payment_source)===null||_a2===void 0?void 0:_a2.type)==="braintree_payments"}):[];if(readonly||showCard){const card=(_a=paymentSource==null?void 0:paymentSource.options)===null||_a===void 0?void 0:_a.card,value=Object.assign(Object.assign({},card),{showCard,handleEditClick,readonly});return isEmpty(card)?null:_jsx(PaymentSourceContext.Provider,Object.assign({value},{children}),void 0)}return!isGuest&&templateCustomerCards?authorization&&!loading?_jsxs(Fragment,{children:[isEmpty(customerPayments)?null:_jsx("div",Object.assign({className:p.className},{children:_jsx(PaymentCardsTemplate,Object.assign({},{paymentResource,customerPayments},{children:templateCustomerCards}),void 0)}),void 0),_jsx(BraintreePayment,{templateCustomerSaveToWallet,authorization,locale,config:braintreeConfig},void 0)]},void 0):loaderComponent:authorization&&!loading?_jsx(BraintreePayment,{locale,authorization,config:braintreeConfig},void 0):loaderComponent}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { GatewayBaseType } from '../PaymentGateway';
3
- declare type PaypalGateway = GatewayBaseType;
4
- export default function PaypalGateway(props: PaypalGateway): JSX.Element | null;
5
- export {};
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import PaypalPayment from"../PaypalPayment";import PaymentMethodChildrenContext from"../../context/PaymentMethodChildrenContext";import PaymentMethodContext from"../../context/PaymentMethodContext";import PaymentSourceContext from"../../context/PaymentSourceContext";import{getPaymentConfig}from"../../reducers/PaymentMethodReducer";import isEmpty from"lodash/isEmpty";import{useContext}from"react";export default function PaypalGateway(props){var _a,_b;const{readonly,showCard,handleEditClick,children,templateCustomerCards,show,loading,onClickCustomerCards,loaderComponent,templateCustomerSaveToWallet}=props,p=__rest(props,["readonly","showCard","handleEditClick","children","templateCustomerCards","show","loading","onClickCustomerCards","loaderComponent","templateCustomerSaveToWallet"]),{payment}=useContext(PaymentMethodChildrenContext),{currentPaymentMethodId,config,paymentSource}=useContext(PaymentMethodContext),paymentResource="paypal_payments";if(!readonly&&(payment==null?void 0:payment.id)!==currentPaymentMethodId)return null;if(readonly||showCard){const card=((_a=paymentSource==null?void 0:paymentSource.options)===null||_a===void 0?void 0:_a.card)||((_b=paymentSource==null?void 0:paymentSource.metadata)===null||_b===void 0?void 0:_b.card),value=Object.assign(Object.assign({},card),{showCard,handleEditClick,readonly});return isEmpty(card)?null:_jsx(PaymentSourceContext.Provider,Object.assign({value},{children}),void 0)}const paypalConfig=config&&getPaymentConfig(paymentResource,config);return _jsx(PaypalPayment,Object.assign({},p,{infoMessage:paypalConfig==null?void 0:paypalConfig.infoMessage}),void 0)}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { GatewayBaseType } from '../PaymentGateway';
3
- declare type StripeGateway = GatewayBaseType;
4
- export default function StripeGateway(props: StripeGateway): JSX.Element | null;
5
- export {};
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import StripePayment from"../StripePayment";import CustomerContext from"../../context/CustomerContext";import OrderContext from"../../context/OrderContext";import PaymentMethodChildrenContext from"../../context/PaymentMethodChildrenContext";import PaymentMethodContext from"../../context/PaymentMethodContext";import PaymentSourceContext from"../../context/PaymentSourceContext";import{getPaymentConfig}from"../../reducers/PaymentMethodReducer";import isEmpty from"lodash/isEmpty";import{Fragment,useContext}from"react";import PaymentCardsTemplate from"../utils/PaymentCardsTemplate";export default function StripeGateway(props){var _a;const{readonly,showCard,handleEditClick,children,templateCustomerCards,show,loading,onClickCustomerCards,loaderComponent,templateCustomerSaveToWallet}=props,p=__rest(props,["readonly","showCard","handleEditClick","children","templateCustomerCards","show","loading","onClickCustomerCards","loaderComponent","templateCustomerSaveToWallet"]),{order}=useContext(OrderContext),{payment}=useContext(PaymentMethodChildrenContext),{payments,isGuest}=useContext(CustomerContext),{currentPaymentMethodId,config,paymentSource}=useContext(PaymentMethodContext),paymentResource="stripe_payments",locale=order==null?void 0:order.language_code;if(!readonly&&(payment==null?void 0:payment.id)!==currentPaymentMethodId)return null;const publishableKey=paymentSource==null?void 0:paymentSource.publishable_key,stripeConfig=config?getPaymentConfig(paymentResource,config):{},customerPayments=!isEmpty(payments)&&payments?payments.filter(customerPayment=>{var _a2;return((_a2=customerPayment.payment_source)===null||_a2===void 0?void 0:_a2.type)==="stripe_payments"}):[];if(readonly||showCard){const card=(_a=paymentSource==null?void 0:paymentSource.options)===null||_a===void 0?void 0:_a.card,value=Object.assign(Object.assign({},card),{showCard,handleEditClick,readonly});return isEmpty(card)?null:_jsx(PaymentSourceContext.Provider,Object.assign({value},{children}),void 0)}return!isGuest&&templateCustomerCards?_jsxs(Fragment,{children:[isEmpty(customerPayments)?null:_jsx("div",Object.assign({className:p.className},{children:_jsx(PaymentCardsTemplate,Object.assign({},{paymentResource,customerPayments},{children:templateCustomerCards}),void 0)}),void 0),_jsx(StripePayment,Object.assign({show,templateCustomerSaveToWallet,publishableKey,locale},stripeConfig),void 0)]},void 0):publishableKey&&!loading?_jsx(StripePayment,Object.assign({show,publishableKey,locale},stripeConfig),void 0):loaderComponent}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { GatewayBaseType } from '../PaymentGateway';
3
- declare type WireTransferGateway = GatewayBaseType;
4
- export default function WireTransferGateway(props: WireTransferGateway): JSX.Element | null;
5
- export {};
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import WireTransferPayment from"../WireTransferPayment";import PaymentMethodChildrenContext from"../../context/PaymentMethodChildrenContext";import PaymentMethodContext from"../../context/PaymentMethodContext";import PaymentSourceContext from"../../context/PaymentSourceContext";import{getPaymentConfig}from"../../reducers/PaymentMethodReducer";import isEmpty from"lodash/isEmpty";import{useContext}from"react";export default function WireTransferGateway(props){var _a,_b;const{readonly,showCard,handleEditClick,children,templateCustomerCards,show,loading,onClickCustomerCards,loaderComponent,templateCustomerSaveToWallet}=props,p=__rest(props,["readonly","showCard","handleEditClick","children","templateCustomerCards","show","loading","onClickCustomerCards","loaderComponent","templateCustomerSaveToWallet"]),{payment}=useContext(PaymentMethodChildrenContext),{currentPaymentMethodId,config,paymentSource}=useContext(PaymentMethodContext),paymentResource="wire_transfers";if(!readonly&&(payment==null?void 0:payment.id)!==currentPaymentMethodId)return null;if(readonly||showCard){const card=((_a=paymentSource==null?void 0:paymentSource.options)===null||_a===void 0?void 0:_a.card)||((_b=paymentSource==null?void 0:paymentSource.metadata)===null||_b===void 0?void 0:_b.card),value=Object.assign(Object.assign({},card),{showCard,handleEditClick,readonly});return isEmpty(card)?null:_jsx(PaymentSourceContext.Provider,Object.assign({value},{children}),void 0)}const wireTransferConfig=config&&paymentResource?getPaymentConfig(paymentResource,config):{};return _jsx(WireTransferPayment,Object.assign({},p,wireTransferConfig),void 0)}
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { Address } from '@commercelayer/sdk';
3
- import AddressChildrenContext from '../../context/AddressChildrenContext';
4
- import { FunctionChildren } from '../../typings/index';
5
- declare type ChildrenProps = Pick<Props, 'customerAddresses' | 'className'> & {
6
- AddressProvider: typeof AddressChildrenContext.Provider;
7
- };
8
- export declare type CustomerAddress = Address & {
9
- onClick: () => void;
10
- handleSelect?: () => void;
11
- };
12
- export declare type AddressCardsTemplateChildren = FunctionChildren<ChildrenProps>;
13
- export declare type AddressCardsType = ChildrenProps;
14
- declare type HandleSelect = (k: number, addressId: string, customerAddressId: string, disabled: boolean) => void;
15
- declare type Props = {
16
- customerAddresses: CustomerAddress[];
17
- countryLock?: string;
18
- children: AddressCardsTemplateChildren;
19
- selectedClassName?: string;
20
- disabledClassName?: string;
21
- deselect?: boolean;
22
- selected?: number | null;
23
- className?: string;
24
- handleSelect: HandleSelect;
25
- };
26
- export default function AddressCardsTemplate({ customerAddresses, children, deselect, countryLock, selected, selectedClassName, className, disabledClassName, handleSelect, }: Props): JSX.Element;
27
- export {};
@@ -1 +0,0 @@
1
- import{jsx as _jsx}from"react/jsx-runtime";import Parent from"../utils/Parent";import{useContext}from"react";import AddressChildrenContext from"../../context/AddressChildrenContext";import ShippingAddressContext from"../../context/ShippingAddressContext";export default function AddressCardsTemplate({customerAddresses,children,deselect,countryLock,selected,selectedClassName,className,disabledClassName,handleSelect}){const{setShippingAddress}=useContext(ShippingAddressContext),value={customerAddresses:customerAddresses.map((address,k)=>{const attributes=address,disabled=setShippingAddress&&countryLock&&countryLock!==address.country_code||!1,addressSelectedClass=selected===k?`${className} ${deselect?"":selectedClassName}`:className,finalClassName=disabled?`${className} ${disabledClassName}`:addressSelectedClass,customerAddressId=(address==null?void 0:address.reference)||"",onClick=()=>handleSelect(k,address.id,customerAddressId,disabled);return Object.assign(Object.assign({},attributes),{className:finalClassName,onClick})}),AddressProvider:AddressChildrenContext.Provider};return _jsx(Parent,Object.assign({},value,{children}),void 0)}
@@ -1,8 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- declare type BaseFieldChildren = Omit<BaseFieldProps, 'children'>;
3
- export declare type BaseFieldProps = {
4
- attribute: 'number' | 'id';
5
- children?: (props: BaseFieldChildren) => ReactNode;
6
- } & JSX.IntrinsicElements['span'];
7
- declare const BaseField: FunctionComponent<BaseFieldProps>;
8
- export default BaseField;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import OrderContext from"../../context/OrderContext";import{useContext,useEffect,useState}from"react";import Parent from"./Parent";const BaseField=_a=>{var{children,attribute}=_a,p=__rest(_a,["children","attribute"]);const{order}=useContext(OrderContext),[field,setField]=useState("");useEffect(()=>(order&&attribute in order&&setField(order[attribute]),()=>{setField("")}),[order]);const parentProps=Object.assign({attribute:field},p);return children?_jsx(Parent,Object.assign({},parentProps,{children}),void 0):_jsx("span",Object.assign({},p,{children:field}),void 0)};export default BaseField;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { BaseInputComponentProps } from '../../typings/index';
3
- export declare type BaseInputProps = BaseInputComponentProps & JSX.IntrinsicElements['input'] & JSX.IntrinsicElements['textarea'];
4
- declare const _default: React.ForwardRefExoticComponent<Pick<BaseInputProps, "children" | "form" | "slot" | "style" | "title" | "pattern" | "type" | "key" | "resource" | "id" | "value" | "placeholder" | "className" | "required" | "name" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "min" | "max" | "disabled" | "width" | "height" | "src" | "list" | "step" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "readOnly" | "size" | "cols" | "dirName" | "rows" | "wrap"> & React.RefAttributes<any>>;
5
- export default _default;
@@ -1 +0,0 @@
1
- import{__rest}from"tslib";import{jsx as _jsx}from"react/jsx-runtime";import React from"react";import Parent from"./Parent";const BaseInput=(props,ref)=>{const{children}=props,p=__rest(props,["children"]),input=props.type==="textarea"?_jsx("textarea",Object.assign({ref},p),void 0):_jsx("input",Object.assign({ref},p),void 0);return children?_jsx(Parent,Object.assign({},p,{children}),void 0):input};export default React.forwardRef(BaseInput);
@@ -1,6 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { PropsType } from '../../utils/PropsType';
3
- import { baseOrderPricePropTypes } from '../../typings/index';
4
- export declare type BaseOrderPriceProps = PropsType<typeof baseOrderPricePropTypes> & JSX.IntrinsicElements['span'];
5
- declare const BaseOrderPrice: FunctionComponent<BaseOrderPriceProps>;
6
- export default BaseOrderPrice;