@shopgate/engage 7.30.0-alpha.7 → 7.30.0-alpha.9

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 (1494) hide show
  1. package/a11y/action-creators/index.js +13 -3
  2. package/a11y/components/FocusTrap/index.js +2 -1
  3. package/a11y/components/LiveMessage/index.js +24 -2
  4. package/a11y/components/LiveMessage/styles.js +12 -1
  5. package/a11y/components/LiveMessenger/constants.js +3 -1
  6. package/a11y/components/LiveMessenger/helpers.js +24 -3
  7. package/a11y/components/LiveMessenger/index.js +62 -4
  8. package/a11y/components/ModalStateTracker/index.js +20 -2
  9. package/a11y/components/Navigation/index.js +40 -2
  10. package/a11y/components/Navigation/style.js +12 -1
  11. package/a11y/components/Section/index.js +64 -4
  12. package/a11y/components/VisuallyHidden/index.js +26 -2
  13. package/a11y/components/index.js +7 -1
  14. package/a11y/constants/index.js +3 -1
  15. package/a11y/helpers/index.js +1 -1
  16. package/a11y/hooks/index.js +49 -6
  17. package/a11y/index.js +5 -1
  18. package/a11y/reducers/index.js +37 -2
  19. package/a11y/selectors/index.js +9 -3
  20. package/a11y/styles.js +16 -2
  21. package/account/actions/addContacts.js +31 -2
  22. package/account/actions/deleteContact.js +25 -2
  23. package/account/actions/deleteCustomer.js +24 -2
  24. package/account/actions/fetchContacts.js +26 -2
  25. package/account/actions/fetchCustomer.js +27 -2
  26. package/account/actions/updateContact.js +32 -2
  27. package/account/actions/updateCustomer.js +27 -2
  28. package/account/components/Account/Account.connector.js +9 -2
  29. package/account/components/Account/Account.js +64 -2
  30. package/account/components/Account/Account.style.js +31 -1
  31. package/account/components/Account/index.js +1 -1
  32. package/account/components/Profile/Profile.config.js +35 -2
  33. package/account/components/Profile/Profile.constraints.js +25 -1
  34. package/account/components/Profile/Profile.js +24 -1
  35. package/account/components/Profile/Profile.provider.js +226 -14
  36. package/account/components/Profile/ProfileAddressBook.js +92 -3
  37. package/account/components/Profile/ProfileAddressCard.js +159 -2
  38. package/account/components/Profile/ProfileForm.js +130 -2
  39. package/account/components/Profile/ProfileHeader.js +35 -2
  40. package/account/components/Profile/index.js +1 -1
  41. package/account/components/ProfileContact/ProfileContact.config.js +106 -2
  42. package/account/components/ProfileContact/ProfileContact.constraints.js +62 -2
  43. package/account/components/ProfileContact/ProfileContact.js +192 -5
  44. package/account/components/ProfileContact/index.js +1 -1
  45. package/account/components/index.js +1 -1
  46. package/account/constants/actions.js +24 -1
  47. package/account/constants/index.js +3 -1
  48. package/account/constants/pipelines.js +1 -1
  49. package/account/constants/routes.js +6 -1
  50. package/account/helper/form.js +215 -24
  51. package/account/index.js +2 -1
  52. package/account/reducers/index.js +65 -2
  53. package/account/selectors/contacts.js +6 -2
  54. package/account/selectors/customer.js +6 -2
  55. package/app-rating/action-creators/appStart.js +13 -3
  56. package/app-rating/action-creators/ordersPlaced.js +13 -3
  57. package/app-rating/action-creators/popup.js +20 -4
  58. package/app-rating/action-creators/timer.js +13 -3
  59. package/app-rating/actions/showModal.js +110 -9
  60. package/app-rating/constants/index.js +14 -2
  61. package/app-rating/helpers/index.js +23 -2
  62. package/app-rating/reducers/index.js +102 -2
  63. package/app-rating/selectors/appRating.js +2 -1
  64. package/app-rating/subscriptions/index.js +133 -23
  65. package/back-in-stock/actions/index.js +86 -4
  66. package/back-in-stock/components/BackInStockButton/connector.js +8 -1
  67. package/back-in-stock/components/BackInStockButton/index.js +100 -3
  68. package/back-in-stock/components/BackInStockButton/style.js +43 -1
  69. package/back-in-stock/components/CharacteristicsButton/connector.js +21 -2
  70. package/back-in-stock/components/CharacteristicsButton/index.js +29 -2
  71. package/back-in-stock/components/ProductInfoBackInStockButton/connector.js +17 -2
  72. package/back-in-stock/components/ProductInfoBackInStockButton/index.js +38 -2
  73. package/back-in-stock/components/Subscriptions/components/List/index.js +56 -2
  74. package/back-in-stock/components/Subscriptions/components/Subscription/index.js +163 -3
  75. package/back-in-stock/components/Subscriptions/index.js +8 -2
  76. package/back-in-stock/components/index.js +4 -1
  77. package/back-in-stock/constants/Actions.js +9 -1
  78. package/back-in-stock/constants/Common.js +1 -1
  79. package/back-in-stock/constants/Pipelines.js +3 -1
  80. package/back-in-stock/constants/Portals.js +18 -4
  81. package/back-in-stock/constants/index.js +4 -1
  82. package/back-in-stock/hooks/index.js +6 -2
  83. package/back-in-stock/providers/BackInStockSubscriptionsProvider.connector.js +21 -3
  84. package/back-in-stock/providers/BackInStockSubscriptionsProvider.context.js +3 -1
  85. package/back-in-stock/providers/BackInStockSubscriptionsProvider.js +49 -3
  86. package/back-in-stock/providers/index.js +2 -1
  87. package/back-in-stock/reducers/index.js +92 -2
  88. package/back-in-stock/selectors/index.js +97 -19
  89. package/back-in-stock/streams/index.js +13 -1
  90. package/back-in-stock/subscriptions/index.js +46 -3
  91. package/cart/cart.constants.js +6 -1
  92. package/cart/cart.context.js +40 -1
  93. package/cart/cart.helpers.js +125 -6
  94. package/cart/cart.hooks.js +13 -3
  95. package/cart/cart.selectors.js +113 -10
  96. package/cart/cart.types.js +47 -1
  97. package/cart/components/CartHeaderWide/CartHeaderWide.js +10 -2
  98. package/cart/components/CartHeaderWide/CartHeaderWide.style.js +10 -1
  99. package/cart/components/CartHeaderWide/index.js +1 -1
  100. package/cart/components/CartItem/CartItem.hooks.js +10 -3
  101. package/cart/components/CartItem/CartItem.js +55 -2
  102. package/cart/components/CartItem/CartItem.style.js +23 -1
  103. package/cart/components/CartItem/CartItemCoupon.connector.js +26 -5
  104. package/cart/components/CartItem/CartItemCoupon.js +153 -18
  105. package/cart/components/CartItem/CartItemCoupon.style.js +30 -2
  106. package/cart/components/CartItem/CartItemCoupon.types.js +21 -0
  107. package/cart/components/CartItem/CartItemCouponCode.js +15 -2
  108. package/cart/components/CartItem/CartItemCouponDelete.js +19 -2
  109. package/cart/components/CartItem/CartItemCouponDelete.style.js +7 -1
  110. package/cart/components/CartItem/CartItemCouponFreeShipping.js +17 -2
  111. package/cart/components/CartItem/CartItemCouponIcon.js +23 -2
  112. package/cart/components/CartItem/CartItemCouponLayout.js +72 -3
  113. package/cart/components/CartItem/CartItemCouponLayout.style.js +29 -5
  114. package/cart/components/CartItem/CartItemCouponPrice.js +35 -3
  115. package/cart/components/CartItem/CartItemCouponPrice.style.js +10 -1
  116. package/cart/components/CartItem/CartItemCouponTitle.js +18 -2
  117. package/cart/components/CartItem/CartItemCouponTitle.style.js +7 -1
  118. package/cart/components/CartItem/CartItemProduct.js +52 -3
  119. package/cart/components/CartItem/CartItemProduct.style.js +5 -1
  120. package/cart/components/CartItem/CartItemProductLayout.js +149 -4
  121. package/cart/components/CartItem/CartItemProductLayout.style.js +94 -1
  122. package/cart/components/CartItem/CartItemProductLayoutWide.js +126 -3
  123. package/cart/components/CartItem/CartItemProductLayoutWide.style.js +113 -1
  124. package/cart/components/CartItem/CartItemProductLayoutWideFulfillmentLabel.js +25 -4
  125. package/cart/components/CartItem/CartItemProductLayoutWideFulfillmentLabel.style.js +10 -1
  126. package/cart/components/CartItem/CartItemProductLayoutWideOrderDetails.js +33 -3
  127. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +23 -4
  128. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.style.js +16 -1
  129. package/cart/components/CartItem/CartItemProductOrderDetails.js +69 -3
  130. package/cart/components/CartItem/CartItemProductOrderDetails.style.js +28 -1
  131. package/cart/components/CartItem/CartItemProductPriceCaption.js +40 -4
  132. package/cart/components/CartItem/CartItemProductPriceCaption.style.js +11 -1
  133. package/cart/components/CartItem/CartItemProductPriceList.js +92 -4
  134. package/cart/components/CartItem/CartItemProductPriceListPromotion.js +173 -5
  135. package/cart/components/CartItem/CartItemProductProvider.connector.js +46 -5
  136. package/cart/components/CartItem/CartItemProductProvider.context.js +3 -1
  137. package/cart/components/CartItem/CartItemProductProvider.js +136 -6
  138. package/cart/components/CartItem/CartItemProductProvider.types.js +36 -1
  139. package/cart/components/CartItem/CartItemProductProviderLegacy.js +67 -7
  140. package/cart/components/CartItem/CartItemProductTitle.js +92 -2
  141. package/cart/components/CartItem/CartItemProductTitle.style.js +28 -1
  142. package/cart/components/CartItem/CartItemProvider.connector.js +24 -2
  143. package/cart/components/CartItem/CartItemProvider.context.js +3 -1
  144. package/cart/components/CartItem/CartItemProvider.js +65 -3
  145. package/cart/components/CartItem/CartItemQuantityPicker.js +148 -28
  146. package/cart/components/CartItem/CartItemQuantityPicker.style.js +18 -1
  147. package/cart/components/CartItem/CartItemSubstitution.connector.js +12 -2
  148. package/cart/components/CartItem/CartItemSubstitution.js +41 -3
  149. package/cart/components/CartItem/CartItemSubstitution.style.js +9 -1
  150. package/cart/components/CartItem/index.js +3 -1
  151. package/cart/components/CartItems/CartItem.connector.js +12 -2
  152. package/cart/components/CartItems/CartItemCard.js +36 -3
  153. package/cart/components/CartItems/CartItemCard.style.js +52 -1
  154. package/cart/components/CartItems/CartItemCardReservation.js +63 -3
  155. package/cart/components/CartItems/CartItemCardReservationAccordion.js +46 -4
  156. package/cart/components/CartItems/CartItemCardReservationLabel.js +49 -4
  157. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +34 -2
  158. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.style.js +12 -1
  159. package/cart/components/CartItems/CartItemGroup.js +31 -3
  160. package/cart/components/CartItems/CartItemGroup.style.js +39 -1
  161. package/cart/components/CartItems/CartItemGroupReservation.js +58 -4
  162. package/cart/components/CartItems/CartItemGroupReservationLabel.js +29 -4
  163. package/cart/components/CartItems/CartItemGroupShipping.js +15 -2
  164. package/cart/components/CartItems/CartItems.js +94 -3
  165. package/cart/components/CartItems/CartItems.style.js +21 -1
  166. package/cart/components/CartItems/CartItemsHeaderWide.connector.js +20 -2
  167. package/cart/components/CartItems/CartItemsHeaderWide.js +67 -3
  168. package/cart/components/CartItems/CartItemsHeaderWide.style.js +60 -1
  169. package/cart/components/CartItems/CartItemsSubscription.connector.js +9 -2
  170. package/cart/components/CartItems/CartItemsSubstitution.js +43 -2
  171. package/cart/components/CartItems/index.js +2 -1
  172. package/cart/components/CartSummaryWide/CartSummaryWide.connector.js +13 -2
  173. package/cart/components/CartSummaryWide/CartSummaryWide.js +46 -2
  174. package/cart/components/CartSummaryWide/CartSummaryWide.style.js +37 -1
  175. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.connector.js +9 -2
  176. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.js +47 -3
  177. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.style.js +21 -1
  178. package/cart/components/CartSummaryWide/CartSummaryWideFooter.js +18 -2
  179. package/cart/components/CartSummaryWide/index.js +1 -1
  180. package/cart/components/PaymentBar/PaymentBar.js +24 -2
  181. package/cart/components/PaymentBar/PaymentBarAppliedPromotions.connector.js +9 -2
  182. package/cart/components/PaymentBar/PaymentBarAppliedPromotions.js +56 -2
  183. package/cart/components/PaymentBar/PaymentBarCheckoutButton.connector.js +9 -2
  184. package/cart/components/PaymentBar/PaymentBarCheckoutButton.js +42 -2
  185. package/cart/components/PaymentBar/PaymentBarCheckoutButton.style.js +15 -1
  186. package/cart/components/PaymentBar/PaymentBarContent.js +53 -2
  187. package/cart/components/PaymentBar/PaymentBarContent.style.js +40 -1
  188. package/cart/components/PaymentBar/PaymentBarDiscounts.connector.js +9 -2
  189. package/cart/components/PaymentBar/PaymentBarDiscounts.js +58 -3
  190. package/cart/components/PaymentBar/PaymentBarGrandTotal.connector.js +9 -2
  191. package/cart/components/PaymentBar/PaymentBarGrandTotal.js +56 -3
  192. package/cart/components/PaymentBar/PaymentBarPromotionCouponMessages.js +69 -2
  193. package/cart/components/PaymentBar/PaymentBarPromotionCoupons.connector.js +15 -3
  194. package/cart/components/PaymentBar/PaymentBarPromotionCoupons.js +107 -2
  195. package/cart/components/PaymentBar/PaymentBarPromotionalText.js +111 -2
  196. package/cart/components/PaymentBar/PaymentBarReserveButton.connector.js +6 -1
  197. package/cart/components/PaymentBar/PaymentBarReserveButton.js +50 -4
  198. package/cart/components/PaymentBar/PaymentBarShippingCost.connector.js +9 -2
  199. package/cart/components/PaymentBar/PaymentBarShippingCost.js +54 -3
  200. package/cart/components/PaymentBar/PaymentBarSubTotal.connector.js +9 -2
  201. package/cart/components/PaymentBar/PaymentBarSubTotal.js +51 -3
  202. package/cart/components/PaymentBar/PaymentBarTax.connector.js +9 -2
  203. package/cart/components/PaymentBar/PaymentBarTax.js +58 -3
  204. package/cart/components/PaymentBar/index.js +1 -1
  205. package/cart/components/Substitution/connector.js +9 -2
  206. package/cart/components/Substitution/index.js +50 -3
  207. package/cart/components/Substitution/style.js +32 -1
  208. package/cart/components/SupplementalContent/SupplementalContent.connector.js +12 -2
  209. package/cart/components/SupplementalContent/SupplementalContent.js +30 -2
  210. package/cart/components/SupplementalContent/SupplementalContent.styles.js +29 -1
  211. package/cart/components/SupplementalContent/index.js +1 -1
  212. package/cart/index.js +54 -10
  213. package/cart/streams/index.js +1 -1
  214. package/category/actions/index.js +5 -1
  215. package/category/components/CategoryImage/connector.js +9 -2
  216. package/category/components/CategoryImage/index.js +38 -2
  217. package/category/components/CategoryList/index.js +97 -2
  218. package/category/components/CategoryList/style.js +20 -1
  219. package/category/components/index.js +2 -1
  220. package/category/constants/index.js +3 -1
  221. package/category/helpers/index.js +1 -1
  222. package/category/index.js +10 -1
  223. package/category/selectors/index.js +1 -1
  224. package/category/streams/index.js +5 -1
  225. package/checkout/action-creators/addCheckoutCampaign.js +8 -2
  226. package/checkout/action-creators/clearCheckoutCampaign.js +7 -2
  227. package/checkout/action-creators/clearCheckoutOrder.js +7 -2
  228. package/checkout/action-creators/index.js +3 -1
  229. package/checkout/action-creators/validationErrorsCheckout.js +8 -2
  230. package/checkout/actions/errorCheckout.js +69 -7
  231. package/checkout/actions/fetchCheckoutOrder.js +28 -2
  232. package/checkout/actions/fetchPaymentMethods.js +25 -2
  233. package/checkout/actions/index.js +7 -1
  234. package/checkout/actions/initializeCheckout.js +26 -2
  235. package/checkout/actions/prepareCheckout.js +84 -6
  236. package/checkout/actions/submitCheckoutOrder.js +34 -2
  237. package/checkout/actions/updateCheckoutOrder.js +33 -2
  238. package/checkout/components/AddressBook/AddressBook.js +9 -2
  239. package/checkout/components/AddressBook/AddressList.js +142 -4
  240. package/checkout/components/AddressBook/index.js +1 -1
  241. package/checkout/components/AddressBookContact/AddressBookContact.js +41 -2
  242. package/checkout/components/AddressBookContact/index.js +1 -1
  243. package/checkout/components/Checkout/Checkout.js +70 -2
  244. package/checkout/components/Checkout/CheckoutActions.js +42 -2
  245. package/checkout/components/Checkout/CheckoutAddress.js +109 -3
  246. package/checkout/components/Checkout/CheckoutHeader.js +55 -2
  247. package/checkout/components/Checkout/CheckoutPickupContactForm.config.js +62 -2
  248. package/checkout/components/Checkout/CheckoutPickupContactForm.js +90 -2
  249. package/checkout/components/Checkout/CheckoutSection.js +147 -2
  250. package/checkout/components/Checkout/CheckoutSectionInfo.js +73 -2
  251. package/checkout/components/Checkout/CheckoutSectionMessages.js +54 -2
  252. package/checkout/components/Checkout/CheckoutSummary.js +67 -2
  253. package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.connector.js +13 -2
  254. package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.js +241 -5
  255. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationBilledTo.js +58 -2
  256. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationOrderContact.js +53 -2
  257. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationOrderSummary.js +58 -2
  258. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationPickUpContact.js +59 -2
  259. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationPickupNotes.js +23 -2
  260. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationSection.js +164 -2
  261. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationShippedTo.js +48 -2
  262. package/checkout/components/CheckoutConfirmation/index.js +6 -1
  263. package/checkout/components/GuestCheckout/GuestCheckout.js +68 -2
  264. package/checkout/components/GuestCheckout/GuestCheckoutOptIn.config.js +13 -2
  265. package/checkout/components/GuestCheckout/GuestCheckoutOptIn.js +64 -2
  266. package/checkout/components/GuestCheckout/GuestCheckoutPickup.js +45 -2
  267. package/checkout/components/GuestCheckout/GuestCheckoutPickupNotes.config.js +13 -2
  268. package/checkout/components/GuestCheckout/GuestCheckoutPickupNotes.js +54 -2
  269. package/checkout/components/PaymentMethodButton/PaymentMethodButton.js +59 -2
  270. package/checkout/components/PaymentMethodButton/index.js +1 -1
  271. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.js +40 -2
  272. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.style.js +25 -1
  273. package/checkout/components/ResponsiveBackButton/index.js +1 -1
  274. package/checkout/components/ShippingMethods/ShippingMethod.js +66 -2
  275. package/checkout/components/ShippingMethods/ShippingMethods.js +200 -12
  276. package/checkout/components/ShippingMethods/connector.js +12 -3
  277. package/checkout/components/ShippingMethods/index.js +1 -1
  278. package/checkout/components/SupplementalContent/SupplementalContent.connector.js +12 -2
  279. package/checkout/components/SupplementalContent/SupplementalContent.js +30 -2
  280. package/checkout/components/SupplementalContent/SupplementalContent.styles.js +29 -1
  281. package/checkout/components/SupplementalContent/index.js +1 -1
  282. package/checkout/components/index.js +7 -1
  283. package/checkout/constants/actionTypes.js +19 -1
  284. package/checkout/constants/errorCodes.js +1 -1
  285. package/checkout/constants/index.js +11 -1
  286. package/checkout/constants/routes.js +8 -1
  287. package/checkout/helpers/index.js +221 -10
  288. package/checkout/hooks/common.js +11 -3
  289. package/checkout/index.js +25 -6
  290. package/checkout/paymentMethods/context.js +2 -1
  291. package/checkout/paymentMethods/index.js +183 -19
  292. package/checkout/paymentMethods/paypal/PaypalButton.js +14 -2
  293. package/checkout/paymentMethods/paypal/PaypalButtonApp.js +48 -2
  294. package/checkout/paymentMethods/paypal/PaypalButtonWeb.js +88 -5
  295. package/checkout/paymentMethods/paypal/PaypalPayButton.js +120 -10
  296. package/checkout/paymentMethods/paypal/PaypalProvider.js +41 -4
  297. package/checkout/paymentMethods/paypal/index.js +13 -1
  298. package/checkout/paymentMethods/paypal/sdk.js +50 -3
  299. package/checkout/paymentMethods/stripe/StripeButton.connector.js +13 -3
  300. package/checkout/paymentMethods/stripe/StripeButton.js +88 -2
  301. package/checkout/paymentMethods/stripe/StripeCreditCard.js +173 -5
  302. package/checkout/paymentMethods/stripe/StripePayButton.js +56 -4
  303. package/checkout/paymentMethods/stripe/StripeProvider.connector.js +13 -3
  304. package/checkout/paymentMethods/stripe/StripeProvider.context.js +3 -1
  305. package/checkout/paymentMethods/stripe/StripeProvider.js +179 -18
  306. package/checkout/paymentMethods/stripe/index.js +11 -1
  307. package/checkout/paymentMethods/stripe/sdk.js +40 -4
  308. package/checkout/providers/AddressBookProvider.context.js +3 -1
  309. package/checkout/providers/AddressBookProvider.js +166 -4
  310. package/checkout/providers/CheckoutProvider.connector.js +48 -3
  311. package/checkout/providers/CheckoutProvider.constraints.js +34 -1
  312. package/checkout/providers/CheckoutProvider.context.js +3 -1
  313. package/checkout/providers/CheckoutProvider.js +461 -23
  314. package/checkout/reducers/index.js +89 -2
  315. package/checkout/selectors/campaign.js +20 -2
  316. package/checkout/selectors/guestCheckout.js +11 -3
  317. package/checkout/selectors/order.js +146 -17
  318. package/checkout/selectors/payment.js +23 -5
  319. package/checkout/selectors/route.js +13 -2
  320. package/checkout/streams/index.js +13 -1
  321. package/checkout/subscriptions/index.js +53 -2
  322. package/components/BrandingColorBanner/BrandingColorBanner.js +20 -2
  323. package/components/BrandingColorBanner/index.js +1 -1
  324. package/components/ChipLayout/index.js +150 -18
  325. package/components/ChipLayout/spec.js +30 -2
  326. package/components/ChipLayout/style.js +48 -2
  327. package/components/ConditionalWrapper/ConditionalWrapper.js +29 -3
  328. package/components/ConditionalWrapper/index.js +1 -1
  329. package/components/ConnectedReactPortal/index.js +20 -3
  330. package/components/Footer/Footer.js +63 -2
  331. package/components/Footer/Footer.style.js +11 -1
  332. package/components/Footer/constants.js +2 -1
  333. package/components/Footer/helpers.js +168 -36
  334. package/components/Footer/index.js +1 -1
  335. package/components/Form/Builder/Builder.constants.js +13 -1
  336. package/components/Form/Builder/Builder.js +298 -59
  337. package/components/Form/Builder/ElementCheckbox.js +46 -2
  338. package/components/Form/Builder/ElementMultiSelect.js +70 -2
  339. package/components/Form/Builder/ElementPhoneNumber.js +232 -12
  340. package/components/Form/Builder/ElementRadio.js +53 -2
  341. package/components/Form/Builder/ElementSelect.js +60 -2
  342. package/components/Form/Builder/ElementText.js +67 -3
  343. package/components/Form/Builder/FormHelper.js +33 -2
  344. package/components/Form/Builder/classes/ActionListener.constants.js +22 -2
  345. package/components/Form/Builder/classes/ActionListener.js +441 -93
  346. package/components/Form/Builder/helpers/buildCountryList.js +30 -6
  347. package/components/Form/Builder/helpers/buildFormDefaults.js +35 -6
  348. package/components/Form/Builder/helpers/buildFormElements.js +68 -10
  349. package/components/Form/Builder/helpers/buildProvinceList.js +19 -2
  350. package/components/Form/Builder/helpers/buildValidationErrorList.js +7 -2
  351. package/components/Form/Builder/helpers/common.js +3 -1
  352. package/components/Form/Builder/helpers/iso-3166-2.js +4943 -1
  353. package/components/Form/Builder/index.js +1 -1
  354. package/components/Form/Builder/stylePresets.js +153 -1
  355. package/components/Form/Form.js +56 -13
  356. package/components/Form/index.js +4 -1
  357. package/components/IntersectionVisibility/index.js +80 -14
  358. package/components/Logo/connector.js +13 -2
  359. package/components/Logo/index.js +35 -2
  360. package/components/Logo/spec.js +11 -1
  361. package/components/Logo/style.js +22 -1
  362. package/components/Menu/components/Item/index.js +39 -3
  363. package/components/Menu/components/Item/style.js +25 -2
  364. package/components/Menu/components/Position/index.js +61 -10
  365. package/components/Menu/components/Position/style.js +11 -1
  366. package/components/Menu/index.js +85 -7
  367. package/components/Menu/style.js +39 -1
  368. package/components/MessageBar/MessageBar.js +72 -2
  369. package/components/MessageBar/MessageBar.style.js +121 -5
  370. package/components/MessageBar/index.js +1 -1
  371. package/components/NavigationHandler/connector.js +17 -2
  372. package/components/NavigationHandler/index.js +43 -6
  373. package/components/NavigationHandler/spec.js +78 -1
  374. package/components/NullComponent/index.js +4 -1
  375. package/components/Picker/components/Button/index.js +23 -2
  376. package/components/Picker/components/Button/style.js +19 -1
  377. package/components/Picker/components/List/index.js +52 -2
  378. package/components/Picker/components/List/style.js +17 -1
  379. package/components/Picker/components/Modal/index.js +63 -7
  380. package/components/Picker/components/Modal/style.js +78 -1
  381. package/components/Picker/index.js +167 -21
  382. package/components/Picker/spec.js +82 -2
  383. package/components/PickerUtilize/components/Button/index.js +25 -2
  384. package/components/PickerUtilize/components/Button/style.js +42 -1
  385. package/components/PickerUtilize/index.js +90 -11
  386. package/components/PickerUtilize/spec.js +32 -2
  387. package/components/PickerUtilize/style.js +10 -1
  388. package/components/QuantityInput/QuantityInput.js +121 -7
  389. package/components/QuantityInput/helper.js +25 -4
  390. package/components/QuantityInput/index.js +1 -1
  391. package/components/QuantityLabel/QuantityLabel.js +26 -2
  392. package/components/QuantityLabel/index.js +1 -1
  393. package/components/Radio/Radio.js +115 -2
  394. package/components/Radio/index.js +1 -1
  395. package/components/RadioCard/RadioCard.js +104 -3
  396. package/components/RadioCard/index.js +1 -1
  397. package/components/RadioGroup/RadioGroup.context.js +3 -1
  398. package/components/RadioGroup/RadioGroup.js +56 -2
  399. package/components/RadioGroup/index.js +2 -1
  400. package/components/RadioGroup/useRadioGroup.js +8 -2
  401. package/components/RangeSlider/components/Handle/index.js +37 -2
  402. package/components/RangeSlider/components/Handle/style.js +15 -1
  403. package/components/RangeSlider/helper.js +48 -8
  404. package/components/RangeSlider/index.js +265 -39
  405. package/components/RangeSlider/spec.js +172 -23
  406. package/components/RangeSlider/style.js +18 -1
  407. package/components/ResponsiveContainer/ResponsiveContainer.js +42 -3
  408. package/components/ResponsiveContainer/breakpoints.js +62 -8
  409. package/components/ResponsiveContainer/condition.js +15 -2
  410. package/components/ResponsiveContainer/hooks.js +54 -5
  411. package/components/ResponsiveContainer/index.js +1 -1
  412. package/components/ResponsiveContainer/listener.js +29 -4
  413. package/components/ResponsiveContainer/mediaQuery.js +24 -4
  414. package/components/ScrollHeader/index.js +74 -2
  415. package/components/ScrollHeader/style.js +25 -1
  416. package/components/SheetDrawer/index.js +18 -3
  417. package/components/SheetList/components/Item/index.js +135 -7
  418. package/components/SheetList/components/Item/spec.js +106 -4
  419. package/components/SheetList/components/Item/style.js +76 -1
  420. package/components/SheetList/index.js +63 -5
  421. package/components/SheetList/spec.js +38 -1
  422. package/components/SheetList/style.js +36 -1
  423. package/components/SideNavigation/SideNavigation.hooks.js +6 -2
  424. package/components/SideNavigation/SideNavigation.js +29 -4
  425. package/components/SideNavigation/SideNavigationCategories.connector.js +25 -3
  426. package/components/SideNavigation/SideNavigationCategories.js +51 -4
  427. package/components/SideNavigation/SideNavigationCategories.style.js +12 -1
  428. package/components/SideNavigation/SideNavigationCategoriesItem.connector.js +31 -3
  429. package/components/SideNavigation/SideNavigationCategoriesItem.js +88 -5
  430. package/components/SideNavigation/SideNavigationCategoriesItem.style.js +41 -2
  431. package/components/SideNavigation/SideNavigationCategoriesItemChildren.js +21 -5
  432. package/components/SideNavigation/SideNavigationContent.js +44 -3
  433. package/components/SideNavigation/SideNavigationContent.style.js +6 -2
  434. package/components/SideNavigation/SideNavigationItem.js +68 -4
  435. package/components/SideNavigation/SideNavigationItem.style.js +39 -2
  436. package/components/SideNavigation/SideNavigationLinks.js +52 -2
  437. package/components/SideNavigation/SideNavigationLinksLegal.connector.js +15 -2
  438. package/components/SideNavigation/SideNavigationLinksLegal.js +31 -5
  439. package/components/SideNavigation/SideNavigationLinksQuicklinks.connector.js +15 -2
  440. package/components/SideNavigation/SideNavigationLinksQuicklinks.js +28 -3
  441. package/components/SideNavigation/SideNavigationNestedItem.js +52 -3
  442. package/components/SideNavigation/SideNavigationProvider.connector.js +20 -3
  443. package/components/SideNavigation/SideNavigationProvider.context.js +3 -1
  444. package/components/SideNavigation/SideNavigationProvider.js +72 -3
  445. package/components/SideNavigation/index.js +1 -1
  446. package/components/SideNavigation/selectors.js +28 -11
  447. package/components/SnackBarContainer/index.js +13 -2
  448. package/components/Switch/index.js +40 -2
  449. package/components/Switch/style.js +46 -1
  450. package/components/Tabs/TabContext.js +22 -3
  451. package/components/Tabs/components/Tab.js +64 -4
  452. package/components/Tabs/components/Tab.style.js +32 -1
  453. package/components/Tabs/components/TabIndicator.js +18 -2
  454. package/components/Tabs/components/TabIndicator.style.js +13 -1
  455. package/components/Tabs/components/TabPanel.js +24 -2
  456. package/components/Tabs/components/Tabs.js +138 -6
  457. package/components/Tabs/components/Tabs.style.js +19 -2
  458. package/components/Tabs/debounce.js +18 -3
  459. package/components/Tabs/index.js +3 -1
  460. package/components/Tabs/ownerDocument.js +4 -1
  461. package/components/Tabs/ownerWindow.js +8 -2
  462. package/components/Tabs/useEventCallback.js +12 -2
  463. package/components/TextLink/TextLink.js +19 -2
  464. package/components/TextLink/TextLink.style.js +10 -1
  465. package/components/TimeBoundary/index.js +69 -10
  466. package/components/TimeBoundary/spec.js +79 -6
  467. package/components/Toggle/index.js +38 -2
  468. package/components/Toggle/style.js +63 -1
  469. package/components/Typography/Typography.js +186 -4
  470. package/components/Typography/index.js +1 -1
  471. package/components/VideoPlayer/index.js +100 -10
  472. package/components/View/components/Above/index.js +24 -2
  473. package/components/View/components/Below/index.js +24 -2
  474. package/components/View/components/Content/components/ParallaxProvider/index.js +58 -7
  475. package/components/View/components/Content/index.js +195 -21
  476. package/components/View/components/Content/style.js +41 -3
  477. package/components/View/context.js +16 -1
  478. package/components/View/index.js +66 -4
  479. package/components/View/provider.js +141 -23
  480. package/components/View/style.js +12 -1
  481. package/components/constants.js +5 -1
  482. package/components/index.js +199 -9
  483. package/core/action-creators/app.js +7 -2
  484. package/core/action-creators/appPermissions.js +14 -2
  485. package/core/action-creators/index.js +5 -1
  486. package/core/action-creators/merchantSettings.js +8 -2
  487. package/core/action-creators/optIns.js +71 -7
  488. package/core/action-creators/shopSettings.js +15 -3
  489. package/core/actions/getGeolocation.js +24 -2
  490. package/core/actions/grantAppTrackingTransparencyPermission.js +15 -2
  491. package/core/actions/grantCameraPermissions.js +23 -2
  492. package/core/actions/grantGeolocationPermissions.js +28 -2
  493. package/core/actions/grantPermissions.js +152 -8
  494. package/core/actions/grantPushPermissions.js +28 -2
  495. package/core/actions/index.js +40 -7
  496. package/core/actions/requestAppPermission.js +37 -4
  497. package/core/actions/requestAppPermissionStatus.js +34 -4
  498. package/core/actions/updateStatusBarBackground.js +19 -2
  499. package/core/classes/GeolocationRequest.js +31 -5
  500. package/core/classes/GeolocationRequestApp.js +76 -8
  501. package/core/classes/GeolocationRequestBrowser.js +38 -3
  502. package/core/classes/index.js +15 -1
  503. package/core/collections/AppInitialization.js +52 -8
  504. package/core/collections/index.js +9 -1
  505. package/core/commands/analyticsSetConsent.js +13 -3
  506. package/core/commands/index.js +28 -1
  507. package/core/config/ThemeConfigResolver.js +131 -18
  508. package/core/config/config.action-creators.js +21 -4
  509. package/core/config/config.actions.js +23 -2
  510. package/core/config/config.constants.js +5 -1
  511. package/core/config/config.reducers.js +29 -2
  512. package/core/config/config.selectors.js +86 -13
  513. package/core/config/config.streams.js +17 -1
  514. package/core/config/config.subscriptions.js +16 -2
  515. package/core/config/config.types.js +19 -0
  516. package/core/config/getPageConfig.js +14 -2
  517. package/core/config/getPageSettings.js +25 -6
  518. package/core/config/getThemeAssets.js +10 -2
  519. package/core/config/getThemeColors.js +10 -2
  520. package/core/config/getThemeConfig.js +7 -2
  521. package/core/config/getThemeSettings.js +10 -2
  522. package/core/config/getThemeStyles.js +10 -2
  523. package/core/config/getWidgetConfig.js +19 -2
  524. package/core/config/getWidgetSettings.js +20 -5
  525. package/core/config/index.js +16 -1
  526. package/core/config/isBeta.js +7 -2
  527. package/core/constants/actionTypes.js +2 -1
  528. package/core/constants/appFeatures.js +3 -1
  529. package/core/constants/deviceTypes.js +2 -1
  530. package/core/constants/geolocationRequest.js +5 -1
  531. package/core/constants/index.js +44 -8
  532. package/core/constants/merchantSettings.js +11 -1
  533. package/core/constants/optIns.js +4 -1
  534. package/core/constants/pipelines.js +3 -1
  535. package/core/constants/shopSettings.js +27 -2
  536. package/core/contexts/AppContext.js +2 -1
  537. package/core/contexts/ThemeResourcesContext.js +13 -2
  538. package/core/contexts/index.js +3 -1
  539. package/core/events/index.js +1 -1
  540. package/core/helpers/androidNavigationBar.js +32 -4
  541. package/core/helpers/appFeatures.js +54 -13
  542. package/core/helpers/appPermissions.js +159 -15
  543. package/core/helpers/baseUrl.js +10 -3
  544. package/core/helpers/bridge.js +11 -2
  545. package/core/helpers/deviceType.js +8 -3
  546. package/core/helpers/environment.js +6 -2
  547. package/core/helpers/errorBehavior.js +152 -10
  548. package/core/helpers/featureFlag.js +32 -5
  549. package/core/helpers/getFullImageSource.js +83 -8
  550. package/core/helpers/getImageFormat.js +9 -2
  551. package/core/helpers/googleMaps.js +9 -2
  552. package/core/helpers/i18n.js +70 -7
  553. package/core/helpers/index.js +53 -4
  554. package/core/helpers/isIOSTheme.js +7 -1
  555. package/core/helpers/isTouchDevice.js +9 -1
  556. package/core/helpers/nl2br.js +5 -1
  557. package/core/helpers/scrollContainer.js +6 -2
  558. package/core/helpers/string.js +6 -2
  559. package/core/helpers/svgToDataUrl.js +18 -4
  560. package/core/helpers/updateLegacyNavigationBar.js +78 -5
  561. package/core/hocs/index.js +10 -1
  562. package/core/hocs/withApp.js +16 -3
  563. package/core/hocs/withCurrentProduct.js +35 -4
  564. package/core/hocs/withForwardedRef.js +18 -3
  565. package/core/hocs/withNavigation.js +34 -4
  566. package/core/hocs/withRoute.js +27 -4
  567. package/core/hocs/withTheme.js +33 -5
  568. package/core/hocs/withThemeResources.js +33 -4
  569. package/core/hocs/withWidgetSettings.js +19 -3
  570. package/core/hocs/withWidgetStyles.js +19 -3
  571. package/core/hooks/events/index.js +3 -1
  572. package/core/hooks/events/useLongPress.js +47 -4
  573. package/core/hooks/events/usePressHandler.js +33 -5
  574. package/core/hooks/events/useScrollDirectionChange.js +86 -11
  575. package/core/hooks/html/index.js +1 -1
  576. package/core/hooks/html/useLoadImage.js +14 -2
  577. package/core/hooks/index.js +17 -1
  578. package/core/hooks/layout/index.js +1 -1
  579. package/core/hooks/layout/useElementSize.js +83 -7
  580. package/core/hooks/useApp.js +9 -2
  581. package/core/hooks/useAsyncMemo.js +27 -4
  582. package/core/hooks/useCurrentProduct.js +15 -3
  583. package/core/hooks/useFormState.js +146 -11
  584. package/core/hooks/useNavigation.js +13 -2
  585. package/core/hooks/usePageConfig.js +11 -2
  586. package/core/hooks/usePageSettings.js +11 -2
  587. package/core/hooks/usePrevious.js +10 -2
  588. package/core/hooks/useRoute.js +9 -2
  589. package/core/hooks/useScrollTo.js +35 -2
  590. package/core/hooks/useTheme.js +13 -3
  591. package/core/hooks/useThemeResources.js +35 -7
  592. package/core/hooks/useWidgetConfig.js +11 -2
  593. package/core/hooks/useWidgetSettings.js +11 -2
  594. package/core/hooks/useWidgetStyles.js +13 -2
  595. package/core/index.js +35 -5
  596. package/core/initialization/index.js +146 -12
  597. package/core/providers/AppProvider.js +67 -10
  598. package/core/providers/ThemeResourcesProvider.js +33 -4
  599. package/core/providers/index.js +6 -1
  600. package/core/reducers/app.js +30 -2
  601. package/core/reducers/index.js +10 -1
  602. package/core/reducers/merchantSettings.js +38 -2
  603. package/core/reducers/shopSettings.js +52 -2
  604. package/core/router/helpers.js +36 -6
  605. package/core/selectors/app.js +9 -3
  606. package/core/selectors/index.js +20 -6
  607. package/core/selectors/merchantSettings.js +24 -4
  608. package/core/selectors/shopSettings.js +61 -10
  609. package/core/streams/app.js +36 -6
  610. package/core/streams/appPermissions.js +38 -7
  611. package/core/streams/index.js +15 -4
  612. package/core/streams/optIns.js +26 -5
  613. package/core/subscriptions/app.js +37 -6
  614. package/core/validation/index.js +2 -1
  615. package/core/validation/validation.hooks.js +31 -2
  616. package/core/validation/validation.js +52 -6
  617. package/development/action-creators/index.js +2 -1
  618. package/development/action-creators/settings.js +22 -4
  619. package/development/action-creators/storage.js +8 -2
  620. package/development/components/ClientInformation/ClientInformation.js +70 -3
  621. package/development/components/ClientInformation/actions.js +9 -2
  622. package/development/components/ClientInformation/index.js +1 -1
  623. package/development/components/DevelopmentSettings/DevelopmentSettings.js +56 -4
  624. package/development/components/DevelopmentSettings/index.js +1 -1
  625. package/development/components/DevelopmentTools/DevelopmentTools.js +17 -2
  626. package/development/components/DevelopmentTools/Shortcuts.js +16 -2
  627. package/development/components/DevelopmentTools/hooks.js +27 -3
  628. package/development/components/DevelopmentTools/index.js +1 -1
  629. package/development/components/SimulatedInsets/SimulatedInsetBottom.js +52 -2
  630. package/development/components/SimulatedInsets/SimulatedInsetTop.js +99 -5
  631. package/development/components/SimulatedInsets/SimulatedInsets.js +33 -2
  632. package/development/components/SimulatedInsets/index.js +1 -1
  633. package/development/components/index.js +2 -1
  634. package/development/constants/actionTypes.js +4 -1
  635. package/development/constants/index.js +1 -1
  636. package/development/reducers/index.js +7 -1
  637. package/development/reducers/settings.js +46 -3
  638. package/development/reducers/storage.js +35 -3
  639. package/development/selectors/index.js +2 -1
  640. package/development/selectors/settings.js +56 -11
  641. package/development/selectors/storage.js +15 -5
  642. package/development/streams/index.js +1 -1
  643. package/development/streams/insets.js +8 -2
  644. package/development/subscriptions/index.js +17 -4
  645. package/favorites/components/CommentDialog/CommentDialog.js +145 -6
  646. package/favorites/components/CommentDialog/index.js +1 -1
  647. package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +74 -4
  648. package/favorites/components/FavoriteButtonWide/index.js +1 -1
  649. package/favorites/components/Item/Item.js +360 -9
  650. package/favorites/components/Item/ItemCharacteristics.js +31 -2
  651. package/favorites/components/Item/ItemNotes.js +88 -3
  652. package/favorites/components/Item/ItemQuantity.js +50 -3
  653. package/favorites/components/Item/index.js +1 -1
  654. package/favorites/components/ItemFulfillmentMethod/ItemFulfillmentMethod.js +27 -2
  655. package/favorites/components/ItemFulfillmentMethod/index.js +1 -1
  656. package/favorites/components/List/List.js +116 -8
  657. package/favorites/components/List/ListAccordionHeader.js +24 -2
  658. package/favorites/components/List/ListAccordionLabel.js +12 -2
  659. package/favorites/components/List/ListContent.js +67 -3
  660. package/favorites/components/List/ListItemWrapper.js +40 -2
  661. package/favorites/components/List/index.js +1 -1
  662. package/favorites/components/List/styles.js +35 -1
  663. package/favorites/components/ListChooser/ListChooser.js +57 -4
  664. package/favorites/components/ListChooser/ListChooserItem.js +48 -3
  665. package/favorites/components/ListChooser/index.js +1 -1
  666. package/favorites/components/Lists/Lists.js +283 -18
  667. package/favorites/components/Lists/ListsModal.js +67 -3
  668. package/favorites/components/Lists/index.js +1 -1
  669. package/favorites/components/RemoveButton/RemoveButton.js +37 -2
  670. package/favorites/components/RemoveButton/index.js +1 -1
  671. package/favorites/constants/Portals.js +7 -1
  672. package/favorites/constants/index.js +2 -1
  673. package/favorites/index.js +20 -5
  674. package/filter/actions/index.js +1 -1
  675. package/filter/components/FilterItem/index.js +12 -2
  676. package/filter/components/FilterItem/spec.js +9 -1
  677. package/filter/components/FilterItem/style.js +9 -1
  678. package/filter/components/FilterPageContent/components/ApplyButton/index.js +46 -2
  679. package/filter/components/FilterPageContent/components/ApplyButton/spec.js +45 -1
  680. package/filter/components/FilterPageContent/components/ApplyButton/style.js +11 -1
  681. package/filter/components/FilterPageContent/components/ResetButton/index.js +32 -2
  682. package/filter/components/FilterPageContent/components/ResetButton/spec.js +28 -1
  683. package/filter/components/FilterPageContent/components/ResetButton/style.js +6 -1
  684. package/filter/components/FilterPageContent/components/Selector/components/Selected/index.js +43 -4
  685. package/filter/components/FilterPageContent/components/Selector/components/Selected/spec.js +25 -1
  686. package/filter/components/FilterPageContent/components/Selector/components/Selected/style.js +19 -1
  687. package/filter/components/FilterPageContent/components/Selector/components/Toggle/index.js +42 -4
  688. package/filter/components/FilterPageContent/components/Selector/components/Toggle/spec.js +33 -1
  689. package/filter/components/FilterPageContent/components/Selector/components/Toggle/style.js +30 -1
  690. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/index.js +47 -4
  691. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/spec.js +31 -1
  692. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/style.js +23 -1
  693. package/filter/components/FilterPageContent/components/Selector/index.js +145 -16
  694. package/filter/components/FilterPageContent/components/Selector/spec.js +32 -1
  695. package/filter/components/FilterPageContent/components/Selector/style.js +8 -1
  696. package/filter/components/FilterPageContent/index.js +72 -2
  697. package/filter/components/FilterPageContentWithProvider/index.js +34 -3
  698. package/filter/components/PriceSlider/components/Label/index.js +145 -7
  699. package/filter/components/PriceSlider/components/Label/spec.js +16 -1
  700. package/filter/components/PriceSlider/index.js +87 -10
  701. package/filter/components/PriceSlider/spec.js +24 -1
  702. package/filter/components/PriceSlider/style.js +95 -1
  703. package/filter/components/index.js +2 -1
  704. package/filter/constants/index.js +4 -1
  705. package/filter/constants/sort.js +30 -5
  706. package/filter/helpers/buildFilterParamsForFetchFiltersRequest.js +44 -6
  707. package/filter/helpers/buildInitialFilters.js +26 -2
  708. package/filter/helpers/buildUpdatedFilters.js +27 -5
  709. package/filter/helpers/index.js +4 -1
  710. package/filter/helpers/translateFilterLabel.js +7 -2
  711. package/filter/hocs/index.js +1 -1
  712. package/filter/hocs/withSort.js +28 -4
  713. package/filter/hooks/filterPage.js +6 -2
  714. package/filter/hooks/index.js +7 -2
  715. package/filter/index.js +12 -2
  716. package/filter/providers/FilterPageProvider.context.js +42 -9
  717. package/filter/providers/FilterPageProvider.js +229 -46
  718. package/filter/providers/SortProvider.connector.js +27 -2
  719. package/filter/providers/SortProvider.context.js +3 -1
  720. package/filter/providers/SortProvider.helpers.js +25 -4
  721. package/filter/providers/SortProvider.js +70 -4
  722. package/filter/providers/index.js +2 -1
  723. package/filter/selectors/index.js +59 -10
  724. package/filter/streams/index.js +1 -1
  725. package/i18n/countries.helpers.js +24 -2
  726. package/i18n/countries.hooks.js +10 -6
  727. package/i18n/index.js +1 -1
  728. package/index.js +4 -1
  729. package/locations/action-creators/errorInventories.js +11 -2
  730. package/locations/action-creators/errorLocations.js +10 -2
  731. package/locations/action-creators/errorProductInventories.js +11 -2
  732. package/locations/action-creators/errorProductLocations.js +10 -2
  733. package/locations/action-creators/index.js +25 -1
  734. package/locations/action-creators/provideProductAlternativeLocation.js +9 -2
  735. package/locations/action-creators/receiveInventories.js +9 -2
  736. package/locations/action-creators/receiveLocations.js +10 -2
  737. package/locations/action-creators/receiveProductInventories.js +11 -2
  738. package/locations/action-creators/receiveProductLocations.js +11 -2
  739. package/locations/action-creators/requestInventories.js +10 -2
  740. package/locations/action-creators/requestLocations.js +9 -2
  741. package/locations/action-creators/requestProductInventories.js +10 -2
  742. package/locations/action-creators/requestProductLocations.js +9 -2
  743. package/locations/action-creators/selectGlobalLocation.js +9 -2
  744. package/locations/action-creators/selectLocation.js +32 -2
  745. package/locations/action-creators/sendDefaultLocationCode.js +23 -4
  746. package/locations/action-creators/setStoreFinderSearchRadius.js +9 -2
  747. package/locations/action-creators/setUserGeolocation.js +10 -2
  748. package/locations/action-creators/setUserSearchCountryCode.js +24 -6
  749. package/locations/action-creators/setUserSearchGeolocation.js +12 -2
  750. package/locations/action-creators/setUserSearchPostalCode.js +24 -6
  751. package/locations/action-creators/storeFormInput.js +9 -2
  752. package/locations/action-creators/storeFulfillmentMethod.js +9 -2
  753. package/locations/action-creators/submitReservationError.js +11 -2
  754. package/locations/action-creators/submitReservationRequest.js +11 -2
  755. package/locations/action-creators/submitReservationSuccess.js +11 -2
  756. package/locations/actions/fetchDefaultLocation.js +22 -2
  757. package/locations/actions/fetchFulfillmentSlots.js +34 -2
  758. package/locations/actions/fetchInventories.js +39 -2
  759. package/locations/actions/fetchLocations.js +49 -2
  760. package/locations/actions/fetchProductInventories.js +28 -2
  761. package/locations/actions/fetchProductLocations.js +38 -2
  762. package/locations/actions/index.js +18 -2
  763. package/locations/actions/sendDefaultLocationCode.js +18 -2
  764. package/locations/actions/setUserGeolocation.js +22 -1
  765. package/locations/actions/setUserSearchGeolocation.js +19 -1
  766. package/locations/actions/submitReservation.js +35 -2
  767. package/locations/components/Cart/CartChangeFulfillmentMethod.connector.js +15 -3
  768. package/locations/components/Cart/CartChangeFulfillmentMethod.js +56 -7
  769. package/locations/components/Cart/CartChangeFulfillmentMethod.types.js +14 -0
  770. package/locations/components/Cart/CartContextMenuChangeFulfillment.js +32 -5
  771. package/locations/components/Cart/CartContextMenuChangeFulfillmentContent.js +48 -2
  772. package/locations/components/Cart/CartContextMenuChangeFulfillmentContent.style.js +24 -1
  773. package/locations/components/Cart/CartContextMenuItemChangeFulfillment.connector.js +12 -2
  774. package/locations/components/Cart/CartContextMenuItemChangeFulfillment.js +27 -2
  775. package/locations/components/Cart/CartContextMenuItemChangeLocation.js +32 -6
  776. package/locations/components/Cart/CartItemProductChangeLocation.connector.js +29 -3
  777. package/locations/components/Cart/CartItemProductChangeLocation.js +76 -9
  778. package/locations/components/Cart/CartItemProductChangeLocation.types.js +11 -0
  779. package/locations/components/Cart/index.js +5 -1
  780. package/locations/components/ChangeLocationButton/ChangeLocationButton.js +36 -4
  781. package/locations/components/ChangeLocationButton/ChangeLocationButton.style.js +17 -2
  782. package/locations/components/ChangeLocationButton/index.js +1 -1
  783. package/locations/components/FulfillmentPath/FulfillmentPath.js +68 -2
  784. package/locations/components/FulfillmentPath/FulfillmentPath.style.js +35 -2
  785. package/locations/components/FulfillmentPath/FulfillmentPathItem.js +28 -5
  786. package/locations/components/FulfillmentPath/index.js +1 -1
  787. package/locations/components/FulfillmentPathSelector/FulfillmentPathSelector.js +77 -7
  788. package/locations/components/FulfillmentPathSelector/FulfillmentPathSelector.style.js +4 -1
  789. package/locations/components/FulfillmentPathSelector/index.js +1 -1
  790. package/locations/components/FulfillmentSelector/FulfillmentSelector.connector.js +85 -8
  791. package/locations/components/FulfillmentSelector/FulfillmentSelector.context.js +27 -1
  792. package/locations/components/FulfillmentSelector/FulfillmentSelector.hooks.js +12 -3
  793. package/locations/components/FulfillmentSelector/FulfillmentSelector.js +195 -18
  794. package/locations/components/FulfillmentSelector/FulfillmentSelector.style.js +8 -1
  795. package/locations/components/FulfillmentSelector/FulfillmentSelector.types.js +72 -1
  796. package/locations/components/FulfillmentSelector/FulfillmentSelectorAddToCart.js +79 -8
  797. package/locations/components/FulfillmentSelector/FulfillmentSelectorAlternativeLocation.js +109 -3
  798. package/locations/components/FulfillmentSelector/FulfillmentSelectorBOPIS.js +22 -3
  799. package/locations/components/FulfillmentSelector/FulfillmentSelectorDirectShip.js +46 -4
  800. package/locations/components/FulfillmentSelector/FulfillmentSelectorHeader.js +11 -3
  801. package/locations/components/FulfillmentSelector/FulfillmentSelectorHeader.style.js +9 -1
  802. package/locations/components/FulfillmentSelector/FulfillmentSelectorImpossibleError.js +40 -2
  803. package/locations/components/FulfillmentSelector/FulfillmentSelectorImpossibleError.style.js +4 -1
  804. package/locations/components/FulfillmentSelector/FulfillmentSelectorItem.js +67 -5
  805. package/locations/components/FulfillmentSelector/FulfillmentSelectorItem.style.js +60 -1
  806. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocation.js +113 -2
  807. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocation.style.js +22 -1
  808. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocationMethodNotAvailable.js +35 -2
  809. package/locations/components/FulfillmentSelector/FulfillmentSelectorROPIS.js +21 -2
  810. package/locations/components/FulfillmentSelector/index.js +1 -1
  811. package/locations/components/FulfillmentSheet/FulfillmentSheet.js +17 -2
  812. package/locations/components/FulfillmentSheet/FulfillmentSheet.style.js +14 -1
  813. package/locations/components/FulfillmentSheet/FulfillmentSheetContent.js +36 -2
  814. package/locations/components/FulfillmentSheet/index.js +1 -1
  815. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +292 -14
  816. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider.connector.js +16 -3
  817. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider.context.js +2 -1
  818. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider.js +69 -5
  819. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.connector.js +14 -2
  820. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +65 -3
  821. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +42 -2
  822. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.style.js +42 -1
  823. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +36 -2
  824. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.style.js +27 -1
  825. package/locations/components/FulfillmentSlotSwitcher/index.js +2 -1
  826. package/locations/components/FulfillmentSlotSwitcher/time.js +31 -2
  827. package/locations/components/GlobalLocationSelector/GlobalLocationSelector.js +78 -6
  828. package/locations/components/GlobalLocationSelector/index.js +1 -1
  829. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcher.connector.js +20 -3
  830. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcher.js +63 -4
  831. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +38 -2
  832. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.style.js +39 -1
  833. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +28 -2
  834. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.style.js +27 -1
  835. package/locations/components/GlobalLocationSwitcher/index.js +1 -1
  836. package/locations/components/ReservationResponses/ReservationError.js +15 -2
  837. package/locations/components/ReservationResponses/ReservationResponse.style.js +28 -1
  838. package/locations/components/ReservationResponses/ReservationSuccess.js +23 -2
  839. package/locations/components/ReservationResponses/index.js +2 -1
  840. package/locations/components/ReserveForm/ReserveForm.constraints.js +33 -1
  841. package/locations/components/ReserveForm/ReserveForm.js +196 -6
  842. package/locations/components/ReserveForm/ReserveForm.style.js +77 -1
  843. package/locations/components/ReserveForm/ReserveFormPhone.connector.js +16 -3
  844. package/locations/components/ReserveForm/ReserveFormPhone.js +137 -3
  845. package/locations/components/ReserveForm/ReserveFormPhone.types.js +13 -0
  846. package/locations/components/ReserveForm/index.js +1 -1
  847. package/locations/components/StockInfo/StockInfo.defaultSettings.js +49 -1
  848. package/locations/components/StockInfo/StockInfo.js +75 -3
  849. package/locations/components/StockInfo/StockInfoInventory.js +38 -2
  850. package/locations/components/StockInfo/index.js +1 -1
  851. package/locations/components/StockInfoLists/index.js +79 -3
  852. package/locations/components/StoreDetails/components/FindMoreStores.js +84 -2
  853. package/locations/components/StoreDetails/components/GetDirectionsButton.js +46 -3
  854. package/locations/components/StoreDetails/components/StoreDetails.js +172 -3
  855. package/locations/components/StoreDetails/components/StoreFinderMap.js +120 -7
  856. package/locations/components/StoreDetails/components/StoreFinderMap.style.js +14 -1
  857. package/locations/components/StoreDetails/components/StoreLocationMap.js +29 -2
  858. package/locations/components/StoreDetails/components/StoresNearby.js +32 -2
  859. package/locations/components/StoreDetails/components/StoresNearbyListItem.js +134 -3
  860. package/locations/components/StoreDetails/index.js +20 -2
  861. package/locations/components/StoreFinder/Store.context.js +7 -1
  862. package/locations/components/StoreFinder/StoreFinder.js +23 -2
  863. package/locations/components/StoreFinder/StoreFinder.style.js +25 -1
  864. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.connector.js +14 -2
  865. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +35 -2
  866. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.style.js +12 -1
  867. package/locations/components/StoreFinder/StoreFinderLocation.js +31 -3
  868. package/locations/components/StoreFinder/StoreFinderLocation.style.js +10 -1
  869. package/locations/components/StoreFinder/StoreFinderLocationDetails.js +30 -2
  870. package/locations/components/StoreFinder/StoreFinderLocationDetails.style.js +15 -1
  871. package/locations/components/StoreFinder/StoreFinderLocationHeader.js +60 -2
  872. package/locations/components/StoreFinder/StoreFinderLocationHeader.style.js +74 -1
  873. package/locations/components/StoreFinder/StoreFinderLocationHeaderPhoneNumber.js +30 -2
  874. package/locations/components/StoreFinder/StoreFinderLocations.js +29 -2
  875. package/locations/components/StoreFinder/StoreFinderLocations.style.js +26 -1
  876. package/locations/components/StoreFinder/StoreFinderSearch.js +12 -2
  877. package/locations/components/StoreFinder/StoreFinderSearch.style.js +5 -1
  878. package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +29 -2
  879. package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +59 -3
  880. package/locations/components/StoreFinder/index.js +1 -1
  881. package/locations/components/StoreList/Store.context.js +6 -1
  882. package/locations/components/StoreList/Store.style.js +121 -1
  883. package/locations/components/StoreList/StoreAddress.js +51 -2
  884. package/locations/components/StoreList/StoreAddressShort.js +47 -2
  885. package/locations/components/StoreList/StoreCard.js +15 -2
  886. package/locations/components/StoreList/StoreDetails.js +31 -2
  887. package/locations/components/StoreList/StoreDetailsLine.js +30 -2
  888. package/locations/components/StoreList/StoreDistance.js +24 -2
  889. package/locations/components/StoreList/StoreHeader.js +61 -2
  890. package/locations/components/StoreList/StoreHoursToday.js +31 -2
  891. package/locations/components/StoreList/StoreList.js +9 -2
  892. package/locations/components/StoreList/StoreListLocations.js +38 -2
  893. package/locations/components/StoreList/StoreListProduct.js +40 -2
  894. package/locations/components/StoreList/StoreListProduct.style.js +43 -1
  895. package/locations/components/StoreList/StoreListProductInfo.js +33 -2
  896. package/locations/components/StoreList/StoreListProductName.js +23 -2
  897. package/locations/components/StoreList/StoreListSearch.connector.js +21 -3
  898. package/locations/components/StoreList/StoreListSearch.js +168 -10
  899. package/locations/components/StoreList/StoreListSearch.style.js +84 -1
  900. package/locations/components/StoreList/StoreListSearchRadius.connector.js +21 -3
  901. package/locations/components/StoreList/StoreListSearchRadius.js +62 -2
  902. package/locations/components/StoreList/StoreListSearchRadius.style.js +3 -1
  903. package/locations/components/StoreList/StoreOpeningHours.js +40 -2
  904. package/locations/components/StoreList/StoreOpeningHoursLine.js +29 -2
  905. package/locations/components/StoreList/StorePhoneNumber.js +34 -2
  906. package/locations/components/StoreList/StoreSelectLocationButton.js +45 -2
  907. package/locations/components/StoreList/index.js +4 -1
  908. package/locations/components/index.js +12 -1
  909. package/locations/constants/ActionTypes.js +46 -8
  910. package/locations/constants/Pipelines.js +5 -1
  911. package/locations/constants/Portals.js +31 -2
  912. package/locations/constants/Stages.js +5 -1
  913. package/locations/constants/index.js +28 -6
  914. package/locations/constants/routes.js +3 -1
  915. package/locations/helpers/createOrder.js +154 -7
  916. package/locations/helpers/formatDistance.js +43 -5
  917. package/locations/helpers/getAvailabilitySettings.js +39 -7
  918. package/locations/helpers/index.js +4 -1
  919. package/locations/helpers/productInventory.js +21 -2
  920. package/locations/helpers/showInventoryInLists.js +30 -4
  921. package/locations/index.js +40 -7
  922. package/locations/locations.context.js +78 -1
  923. package/locations/locations.hooks.js +8 -2
  924. package/locations/locations.streams.js +174 -2
  925. package/locations/locations.types.js +170 -1
  926. package/locations/providers/FulfillmentProvider.connector.js +65 -7
  927. package/locations/providers/FulfillmentProvider.js +458 -36
  928. package/locations/providers/FulfillmentProvider.types.js +50 -1
  929. package/locations/providers/StoreDetailsContext.js +2 -1
  930. package/locations/providers/StoreDetailsProvider.js +52 -4
  931. package/locations/providers/StoreFinder.connector.js +22 -2
  932. package/locations/providers/StoreFinderProvider.js +74 -7
  933. package/locations/providers/index.js +4 -1
  934. package/locations/reducers/index.js +18 -1
  935. package/locations/reducers/storage.js +153 -21
  936. package/locations/reducers/storeFinderSearch.js +27 -2
  937. package/locations/reducers/user.js +21 -2
  938. package/locations/reducers/userFormInput.js +22 -7
  939. package/locations/reducers/userSearch.js +36 -2
  940. package/locations/selectors/index.js +429 -42
  941. package/locations/subscriptions.js +363 -15
  942. package/login/action-creators/index.js +1 -1
  943. package/login/action-creators/resetPassword.js +23 -4
  944. package/login/actions/index.js +1 -1
  945. package/login/actions/resetPassword.js +22 -2
  946. package/login/components/ForgotPassword/ForgotPassword.connector.js +11 -2
  947. package/login/components/ForgotPassword/ForgotPassword.js +95 -2
  948. package/login/components/ForgotPassword/ForgotPassword.style.js +88 -1
  949. package/login/components/ForgotPassword/index.js +1 -1
  950. package/login/constants/actions.js +3 -1
  951. package/login/constants/index.js +3 -1
  952. package/login/constants/pipelines.js +1 -1
  953. package/login/constants/routes.js +1 -1
  954. package/login/index.js +3 -1
  955. package/market/index.js +9 -3
  956. package/orders/action-creators/index.js +2 -1
  957. package/orders/action-creators/orderDetails.js +27 -5
  958. package/orders/action-creators/orders.js +36 -6
  959. package/orders/actions/cancelOrder.js +43 -2
  960. package/orders/actions/fetchOrderDetails.js +19 -2
  961. package/orders/actions/fetchOrderHistory.js +23 -2
  962. package/orders/actions/index.js +3 -1
  963. package/orders/components/OrderDetails/OrderDetails.js +26 -2
  964. package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +95 -2
  965. package/orders/components/OrderDetails/OrderDetailsAuthenticate.style.js +33 -1
  966. package/orders/components/OrderDetails/OrderDetailsAuthenticateForm.config.js +28 -2
  967. package/orders/components/OrderDetails/OrderDetailsContent.js +22 -2
  968. package/orders/components/OrderDetails/OrderDetailsContent.style.js +18 -1
  969. package/orders/components/OrderDetails/OrderDetailsOrder.js +78 -2
  970. package/orders/components/OrderDetails/OrderDetailsOrder.style.js +62 -1
  971. package/orders/components/OrderDetails/OrderDetailsOrderHeader.js +65 -2
  972. package/orders/components/OrderDetails/OrderDetailsOrderHeader.style.js +42 -1
  973. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.connector.js +22 -2
  974. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.js +58 -2
  975. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.style.js +7 -1
  976. package/orders/components/OrderDetails/index.js +1 -1
  977. package/orders/components/OrderHistory/OrderHistory.js +39 -2
  978. package/orders/components/OrderHistory/OrderHistory.style.js +7 -1
  979. package/orders/components/OrderHistory/OrderHistoryList.js +50 -3
  980. package/orders/components/OrderHistory/OrderHistoryList.style.js +36 -1
  981. package/orders/components/OrderHistory/OrderHistoryLoader.js +37 -2
  982. package/orders/components/OrderHistory/OrderHistoryTable.js +48 -3
  983. package/orders/components/OrderHistory/OrderHistoryTable.style.js +25 -1
  984. package/orders/components/OrderHistory/index.js +1 -1
  985. package/orders/components/index.js +1 -1
  986. package/orders/constants/actionTypes.js +8 -1
  987. package/orders/constants/index.js +4 -1
  988. package/orders/constants/pipelines.js +3 -1
  989. package/orders/constants/routes.js +3 -1
  990. package/orders/constants/status.js +52 -5
  991. package/orders/helpers/index.js +1 -1
  992. package/orders/helpers/orderDetails.js +5 -2
  993. package/orders/helpers/orderStatus.js +23 -4
  994. package/orders/hooks/index.js +11 -3
  995. package/orders/index.js +8 -2
  996. package/orders/providers/OrderDetailsPrivateProvider.connector.js +34 -4
  997. package/orders/providers/OrderDetailsPrivateProvider.js +63 -3
  998. package/orders/providers/OrderDetailsProvider.connector.js +36 -4
  999. package/orders/providers/OrderDetailsProvider.constraints.js +21 -1
  1000. package/orders/providers/OrderDetailsProvider.context.js +3 -1
  1001. package/orders/providers/OrderDetailsProvider.js +170 -6
  1002. package/orders/providers/OrderHistoryProvider.connector.js +19 -3
  1003. package/orders/providers/OrderHistoryProvider.context.js +3 -1
  1004. package/orders/providers/OrderHistoryProvider.js +34 -2
  1005. package/orders/reducers/index.js +9 -1
  1006. package/orders/reducers/orders.js +45 -3
  1007. package/orders/reducers/ordersById.js +59 -3
  1008. package/orders/reducers/ordersByNumber.js +71 -3
  1009. package/orders/selectors/index.js +29 -8
  1010. package/orders/subscriptions/index.js +17 -2
  1011. package/package.json +9 -11
  1012. package/page/action-creators/index.js +39 -5
  1013. package/page/actions/index.js +1 -1
  1014. package/page/components/NotFound.js +72 -2
  1015. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.js +148 -8
  1016. package/page/components/ResponsiveWidgetImage/index.js +1 -1
  1017. package/page/components/WidgetHeadline/WidgetHeadline.js +66 -4
  1018. package/page/components/WidgetHeadline/index.js +1 -1
  1019. package/page/components/WidgetRichText/WidgetRichText.js +82 -2
  1020. package/page/components/WidgetRichText/index.js +1 -1
  1021. package/page/components/Widgets/Overlay.js +252 -27
  1022. package/page/components/Widgets/Tooltip.js +194 -17
  1023. package/page/components/Widgets/Widget.js +125 -7
  1024. package/page/components/Widgets/WidgetContext.js +10 -3
  1025. package/page/components/Widgets/WidgetProvider.js +37 -2
  1026. package/page/components/Widgets/Widgets.js +82 -6
  1027. package/page/components/Widgets/WidgetsPreviewContext.js +13 -3
  1028. package/page/components/Widgets/WidgetsPreviewProvider.js +29 -2
  1029. package/page/components/Widgets/constants.js +5 -2
  1030. package/page/components/Widgets/events.js +33 -6
  1031. package/page/components/Widgets/helpers.js +37 -7
  1032. package/page/components/Widgets/hooks.js +178 -27
  1033. package/page/components/Widgets/index.js +2 -1
  1034. package/page/components/index.js +4 -1
  1035. package/page/constants/actionTypes.js +3 -1
  1036. package/page/constants/index.js +20 -3
  1037. package/page/helpers/index.d.ts +14 -0
  1038. package/page/helpers/index.js +66 -8
  1039. package/page/hooks/index.js +135 -25
  1040. package/page/index.js +6 -1
  1041. package/page/reducers/index.js +126 -7
  1042. package/page/selectors/index.js +194 -14
  1043. package/page/subscriptions/index.js +7 -2
  1044. package/page/widgets/Button/Button.js +53 -2
  1045. package/page/widgets/Button/index.js +1 -1
  1046. package/page/widgets/CategoryList/CategoryList.js +37 -2
  1047. package/page/widgets/CategoryList/hooks.js +63 -6
  1048. package/page/widgets/CategoryList/index.js +1 -1
  1049. package/page/widgets/CategoryList/selectors.js +11 -3
  1050. package/page/widgets/HTML/HTML.js +90 -3
  1051. package/page/widgets/HTML/hooks.js +22 -4
  1052. package/page/widgets/HTML/index.js +1 -1
  1053. package/page/widgets/Headline/Headline.js +19 -2
  1054. package/page/widgets/Headline/index.js +1 -1
  1055. package/page/widgets/HeroBanner/HeroBanner.js +69 -2
  1056. package/page/widgets/HeroBanner/hooks.js +30 -4
  1057. package/page/widgets/HeroBanner/index.js +1 -1
  1058. package/page/widgets/Image/Image.js +41 -2
  1059. package/page/widgets/Image/hooks.js +48 -4
  1060. package/page/widgets/Image/index.js +1 -1
  1061. package/page/widgets/ImageRow/ImageRow.js +88 -2
  1062. package/page/widgets/ImageRow/hooks.js +51 -4
  1063. package/page/widgets/ImageRow/index.js +1 -1
  1064. package/page/widgets/ImageSlider/ImageSlider.js +48 -2
  1065. package/page/widgets/ImageSlider/hooks.js +146 -11
  1066. package/page/widgets/ImageSlider/index.js +1 -1
  1067. package/page/widgets/Placeholder/Placeholder.js +49 -2
  1068. package/page/widgets/Placeholder/hooks.js +11 -4
  1069. package/page/widgets/Placeholder/index.js +1 -1
  1070. package/page/widgets/ProductList/ProductList.js +65 -3
  1071. package/page/widgets/ProductList/hooks.js +48 -5
  1072. package/page/widgets/ProductList/index.js +1 -1
  1073. package/page/widgets/ProductSlider/ProductSlider.js +60 -3
  1074. package/page/widgets/ProductSlider/hooks.js +71 -5
  1075. package/page/widgets/ProductSlider/index.js +1 -1
  1076. package/page/widgets/RichText/RichText.js +27 -2
  1077. package/page/widgets/RichText/hooks.js +19 -4
  1078. package/page/widgets/RichText/index.js +1 -1
  1079. package/page/widgets/Video/Video.js +71 -0
  1080. package/page/widgets/Video/hooks.js +48 -0
  1081. package/page/widgets/Video/index.js +1 -0
  1082. package/page/widgets/index.js +13 -1
  1083. package/page/widgets/widgets.json +3 -0
  1084. package/product/collections/index.js +1 -1
  1085. package/product/components/Availability/Availability.connector.js +24 -3
  1086. package/product/components/Availability/Availability.js +45 -3
  1087. package/product/components/Availability/Availability.style.js +10 -1
  1088. package/product/components/Availability/index.js +1 -1
  1089. package/product/components/Characteristics/Characteristic/components/Sheet/index.js +158 -16
  1090. package/product/components/Characteristics/Characteristic/components/SheetItem/index.js +80 -8
  1091. package/product/components/Characteristics/Characteristic/components/SheetItem/style.js +69 -1
  1092. package/product/components/Characteristics/Characteristic/index.js +158 -16
  1093. package/product/components/Characteristics/Characteristic/style.js +40 -1
  1094. package/product/components/Characteristics/Swatch/index.js +88 -9
  1095. package/product/components/Characteristics/Swatch/style.js +28 -1
  1096. package/product/components/Characteristics/index.js +71 -10
  1097. package/product/components/Characteristics/transition.js +14 -1
  1098. package/product/components/Description/connector.js +23 -3
  1099. package/product/components/Description/index.js +46 -2
  1100. package/product/components/Description/style.js +41 -1
  1101. package/product/components/EffectivityDates/connector.js +18 -3
  1102. package/product/components/EffectivityDates/constants.js +2 -1
  1103. package/product/components/EffectivityDates/helpers.js +78 -5
  1104. package/product/components/EffectivityDates/index.js +79 -2
  1105. package/product/components/EffectivityDates/style.js +10 -1
  1106. package/product/components/FilterBar/FilterBarProvider.connector.js +22 -3
  1107. package/product/components/FilterBar/FilterBarProvider.context.js +8 -2
  1108. package/product/components/FilterBar/FilterBarProvider.js +39 -3
  1109. package/product/components/FilterBar/components/Content/actions/openFilterRoute.js +41 -2
  1110. package/product/components/FilterBar/components/Content/components/FilterButton/index.js +32 -2
  1111. package/product/components/FilterBar/components/Content/components/FilterButton/style.js +42 -1
  1112. package/product/components/FilterBar/components/Content/components/FilterChips/connector.js +16 -3
  1113. package/product/components/FilterBar/components/Content/components/FilterChips/index.js +152 -8
  1114. package/product/components/FilterBar/components/Content/components/FilterChips/style.js +14 -1
  1115. package/product/components/FilterBar/components/Content/components/Sort/components/Item/index.js +17 -2
  1116. package/product/components/FilterBar/components/Content/components/Sort/components/Item/style.js +7 -1
  1117. package/product/components/FilterBar/components/Content/components/Sort/index.js +31 -2
  1118. package/product/components/FilterBar/components/Content/components/Sort/style.js +76 -1
  1119. package/product/components/FilterBar/components/Content/index.js +45 -2
  1120. package/product/components/FilterBar/components/Content/spec.js +135 -6
  1121. package/product/components/FilterBar/components/Content/style.js +4 -1
  1122. package/product/components/FilterBar/components/FilterModal/FilterModal.js +63 -2
  1123. package/product/components/FilterBar/components/FilterModal/FilterModalContent.js +54 -2
  1124. package/product/components/FilterBar/components/FilterModal/FilterModalTitle.js +64 -2
  1125. package/product/components/FilterBar/components/FilterModal/index.js +1 -1
  1126. package/product/components/FilterBar/index.js +50 -2
  1127. package/product/components/FilterBar/mock.js +67 -4
  1128. package/product/components/FilterBar/selectors.js +6 -2
  1129. package/product/components/FilterBar/style.js +4 -1
  1130. package/product/components/Header/PriceStriked/connector.js +20 -3
  1131. package/product/components/Header/PriceStriked/index.js +46 -2
  1132. package/product/components/Header/PriceStriked/style.js +26 -1
  1133. package/product/components/Header/Shipping/components/Label/index.js +30 -3
  1134. package/product/components/Header/Shipping/components/Label/style.js +11 -1
  1135. package/product/components/Header/Shipping/connector.js +20 -3
  1136. package/product/components/Header/Shipping/index.js +31 -2
  1137. package/product/components/Header/Shipping/mock.js +38 -1
  1138. package/product/components/Header/Shipping/spec.js +31 -2
  1139. package/product/components/Header/Shipping/style.js +14 -1
  1140. package/product/components/Header/Tiers/components/Tier/index.js +37 -4
  1141. package/product/components/Header/Tiers/components/Tier/spec.js +47 -1
  1142. package/product/components/Header/Tiers/connector.js +20 -3
  1143. package/product/components/Header/Tiers/index.js +34 -2
  1144. package/product/components/Header/Tiers/spec.js +63 -1
  1145. package/product/components/Header/Tiers/style.js +17 -1
  1146. package/product/components/Header/index.js +3 -1
  1147. package/product/components/MapPriceHint/connector.js +14 -2
  1148. package/product/components/MapPriceHint/helpers.js +26 -4
  1149. package/product/components/MapPriceHint/index.js +44 -2
  1150. package/product/components/Media/FeaturedMedia.js +29 -2
  1151. package/product/components/Media/FeaturedVideo.js +10 -3
  1152. package/product/components/Media/MediaImage.js +58 -2
  1153. package/product/components/Media/MediaPlaceholder.js +22 -2
  1154. package/product/components/Media/helpers.js +31 -2
  1155. package/product/components/Media/index.js +2 -1
  1156. package/product/components/Media/props.js +13 -1
  1157. package/product/components/Media/style.js +41 -1
  1158. package/product/components/MediaSlider/components/MediaImage/index.js +24 -2
  1159. package/product/components/MediaSlider/components/MediaVideo/connector.js +9 -2
  1160. package/product/components/MediaSlider/components/MediaVideo/index.js +36 -2
  1161. package/product/components/MediaSlider/connector.js +28 -3
  1162. package/product/components/MediaSlider/constants.js +12 -2
  1163. package/product/components/MediaSlider/index.js +75 -3
  1164. package/product/components/MediaSlider/style.js +32 -1
  1165. package/product/components/Options/components/Content/connector.js +24 -3
  1166. package/product/components/Options/components/Content/index.js +91 -9
  1167. package/product/components/Options/components/Content/spec.js +72 -2
  1168. package/product/components/Options/components/Option/index.js +39 -2
  1169. package/product/components/Options/components/TextOption/components/OptionInfo/index.js +67 -3
  1170. package/product/components/Options/components/TextOption/components/OptionInfo/spec.js +62 -1
  1171. package/product/components/Options/components/TextOption/components/OptionInfo/style.js +23 -1
  1172. package/product/components/Options/components/TextOption/index.js +155 -20
  1173. package/product/components/Options/components/TextOption/style.js +37 -1
  1174. package/product/components/Options/index.js +27 -3
  1175. package/product/components/OrderQuantityHint/index.js +70 -3
  1176. package/product/components/OrderQuantityHint/style.js +6 -1
  1177. package/product/components/PriceDifference/index.js +30 -2
  1178. package/product/components/PriceDifference/style.js +18 -1
  1179. package/product/components/PriceInfo/PriceInfo.connector.js +13 -2
  1180. package/product/components/PriceInfo/PriceInfo.js +79 -3
  1181. package/product/components/PriceInfo/index.js +1 -1
  1182. package/product/components/ProductBadges/index.js +57 -2
  1183. package/product/components/ProductCard/index.js +115 -3
  1184. package/product/components/ProductCard/style.js +18 -1
  1185. package/product/components/ProductCharacteristics/connector.js +33 -4
  1186. package/product/components/ProductCharacteristics/context.js +2 -1
  1187. package/product/components/ProductCharacteristics/helpers/index.js +139 -21
  1188. package/product/components/ProductCharacteristics/index.js +278 -34
  1189. package/product/components/ProductDiscountBadge/connector.js +9 -2
  1190. package/product/components/ProductDiscountBadge/index.js +47 -2
  1191. package/product/components/ProductDiscountBadge/mock.js +35 -3
  1192. package/product/components/ProductDiscountBadge/spec.js +53 -2
  1193. package/product/components/ProductDiscountBadge/style.js +31 -1
  1194. package/product/components/ProductFilters/index.js +69 -4
  1195. package/product/components/ProductFilters/style.js +23 -1
  1196. package/product/components/ProductGrid/components/Item/components/ItemDetails/index.js +78 -2
  1197. package/product/components/ProductGrid/components/Item/components/ItemDetails/spec.js +68 -1
  1198. package/product/components/ProductGrid/components/Item/components/ItemDiscount/index.js +40 -2
  1199. package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/index.js +48 -2
  1200. package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/spec.js +30 -1
  1201. package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +34 -2
  1202. package/product/components/ProductGrid/components/Item/components/ItemImage/spec.js +15 -1
  1203. package/product/components/ProductGrid/components/Item/components/ItemName/index.js +53 -2
  1204. package/product/components/ProductGrid/components/Item/components/ItemName/spec.js +17 -1
  1205. package/product/components/ProductGrid/components/Item/components/ItemPrice/index.js +33 -2
  1206. package/product/components/ProductGrid/components/Item/components/ItemPrice/spec.js +34 -1
  1207. package/product/components/ProductGrid/components/Item/index.js +84 -2
  1208. package/product/components/ProductGrid/components/Iterator/index.js +36 -2
  1209. package/product/components/ProductGrid/components/Layout/index.js +42 -2
  1210. package/product/components/ProductGrid/index.js +80 -2
  1211. package/product/components/ProductGrid/spec.js +51 -1
  1212. package/product/components/ProductGridPrice/index.js +41 -2
  1213. package/product/components/ProductGridPrice/style.js +21 -1
  1214. package/product/components/ProductImage/ProductImagePlaceholder.js +55 -2
  1215. package/product/components/ProductImage/connector.js +9 -2
  1216. package/product/components/ProductImage/index.js +153 -17
  1217. package/product/components/ProductImage/spec.js +82 -1
  1218. package/product/components/ProductImage/style.js +52 -2
  1219. package/product/components/ProductList/components/Item/index.js +184 -2
  1220. package/product/components/ProductList/components/Item/style.js +66 -2
  1221. package/product/components/ProductList/components/Iterator/index.js +42 -2
  1222. package/product/components/ProductList/components/Iterator/style.js +15 -1
  1223. package/product/components/ProductList/components/Layout/index.js +19 -2
  1224. package/product/components/ProductList/components/Layout/style.js +11 -1
  1225. package/product/components/ProductList/index.js +62 -2
  1226. package/product/components/ProductName/ProductName.js +59 -2
  1227. package/product/components/ProductName/ProductNameContent.js +26 -2
  1228. package/product/components/ProductName/index.js +1 -1
  1229. package/product/components/ProductProperties/Content.js +38 -4
  1230. package/product/components/ProductProperties/Group.js +17 -2
  1231. package/product/components/ProductProperties/GroupedProperties.js +29 -2
  1232. package/product/components/ProductProperties/Lists.js +22 -2
  1233. package/product/components/ProductProperties/ListsHTML.js +40 -2
  1234. package/product/components/ProductProperties/ProductProperties.js +23 -2
  1235. package/product/components/ProductProperties/Row.js +36 -2
  1236. package/product/components/ProductProperties/RowHTML.js +38 -2
  1237. package/product/components/ProductProperties/Rows.js +29 -2
  1238. package/product/components/ProductProperties/Wrapper.js +25 -2
  1239. package/product/components/ProductProperties/connector.js +12 -2
  1240. package/product/components/ProductProperties/helpers/getGroupsFromProperties.js +44 -7
  1241. package/product/components/ProductProperties/helpers/getPropertiesBySubgroup.js +6 -1
  1242. package/product/components/ProductProperties/helpers/getPropertiesWithoutSubgroup.js +6 -1
  1243. package/product/components/ProductProperties/helpers/getSubgroupsFromProperties.js +13 -1
  1244. package/product/components/ProductProperties/style.js +44 -1
  1245. package/product/components/ProductSlider/index.js +72 -3
  1246. package/product/components/ProductSlider/spec.js +36 -1
  1247. package/product/components/ProductSlider/style.js +8 -1
  1248. package/product/components/ProductVariants/VariantAvailability.connector.js +9 -2
  1249. package/product/components/ProductVariants/VariantAvailability.js +32 -2
  1250. package/product/components/ProductVariants/VariantAvailability.style.js +5 -1
  1251. package/product/components/ProductVariants/index.js +1 -1
  1252. package/product/components/QuantityPicker/hooks.js +24 -3
  1253. package/product/components/QuantityPicker/index.js +100 -10
  1254. package/product/components/Rating/connector.js +20 -3
  1255. package/product/components/Rating/index.js +58 -3
  1256. package/product/components/Rating/mock.js +10 -1
  1257. package/product/components/Rating/spec.js +52 -2
  1258. package/product/components/Rating/style.js +12 -1
  1259. package/product/components/RelationsSlider/RelationsSheet.connector.js +15 -3
  1260. package/product/components/RelationsSlider/RelationsSheet.js +53 -2
  1261. package/product/components/RelationsSlider/RelationsSlider.connector.js +29 -4
  1262. package/product/components/RelationsSlider/RelationsSlider.js +32 -2
  1263. package/product/components/RelationsSlider/RelationsSliderContent.js +70 -2
  1264. package/product/components/RelationsSlider/constants.js +1 -1
  1265. package/product/components/RelationsSlider/index.js +1 -1
  1266. package/product/components/RelationsSlider/style.js +56 -1
  1267. package/product/components/Swatch/Swatch.js +30 -2
  1268. package/product/components/Swatch/SwatchContent.js +52 -2
  1269. package/product/components/Swatch/VariantSwatch.js +34 -2
  1270. package/product/components/Swatch/index.js +2 -1
  1271. package/product/components/Swatch/style.js +27 -1
  1272. package/product/components/Swatches/Swatches.js +52 -2
  1273. package/product/components/Swatches/connector.js +12 -2
  1274. package/product/components/Swatches/index.js +1 -1
  1275. package/product/components/Swatches/style.js +9 -1
  1276. package/product/components/UnitQuantityPicker/CartUnitQuantityPicker.js +40 -2
  1277. package/product/components/UnitQuantityPicker/ProductUnitQuantityPicker.connector.js +18 -3
  1278. package/product/components/UnitQuantityPicker/ProductUnitQuantityPicker.js +111 -3
  1279. package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +321 -9
  1280. package/product/components/UnitQuantityPicker/UnitQuantityPickerWithSection.js +80 -3
  1281. package/product/components/UnitQuantityPicker/helper.js +25 -4
  1282. package/product/components/UnitQuantityPicker/index.js +4 -1
  1283. package/product/components/UnitQuantityPicker/styles.js +7 -1
  1284. package/product/components/context.js +3 -1
  1285. package/product/components/index.js +32 -1
  1286. package/product/constants/index.js +13 -2
  1287. package/product/contexts/index.js +1 -1
  1288. package/product/helpers/index.js +85 -6
  1289. package/product/helpers/redirects.js +49 -3
  1290. package/product/hocs/index.js +6 -1
  1291. package/product/hocs/withMapPricing.js +48 -5
  1292. package/product/hocs/withPriceCalculation.js +22 -5
  1293. package/product/hocs/withProduct.js +9 -2
  1294. package/product/hocs/withProductListEntry.js +16 -3
  1295. package/product/hocs/withProductListEntryProduct.js +29 -4
  1296. package/product/hocs/withProductListType.js +16 -3
  1297. package/product/hocs/withProductStock.js +9 -2
  1298. package/product/hooks/index.js +3 -1
  1299. package/product/hooks/useLoadProductImage.js +19 -2
  1300. package/product/hooks/useProductListEntry.js +11 -3
  1301. package/product/hooks/useProductListType.js +11 -3
  1302. package/product/index.js +48 -6
  1303. package/product/product.types.js +38 -0
  1304. package/product/providers/Product/connector.js +13 -2
  1305. package/product/providers/Product/index.js +33 -2
  1306. package/product/providers/ProductListEntry/context.js +13 -2
  1307. package/product/providers/ProductListEntry/index.js +28 -2
  1308. package/product/providers/ProductListType/context.js +21 -4
  1309. package/product/providers/ProductListType/index.js +27 -2
  1310. package/product/providers/index.js +3 -1
  1311. package/product/selectors/helpers/filterProperties.js +29 -5
  1312. package/product/selectors/helpers/index.js +2 -1
  1313. package/product/selectors/helpers/wrapMemoizedSelector.js +8 -1
  1314. package/product/selectors/media.js +25 -8
  1315. package/product/selectors/price.js +23 -4
  1316. package/product/selectors/product.js +190 -25
  1317. package/product/selectors/relations.js +47 -7
  1318. package/product/selectors/variants.js +77 -5
  1319. package/product/streams/index.js +1 -1
  1320. package/push-opt-in/action-creators/index.js +2 -1
  1321. package/push-opt-in/action-creators/optInTrigger.js +43 -8
  1322. package/push-opt-in/action-creators/pushOptIn.js +14 -3
  1323. package/push-opt-in/actions/index.js +1 -1
  1324. package/push-opt-in/actions/pushOptInModal.js +31 -3
  1325. package/push-opt-in/components/PushOptInModal/connector.js +17 -3
  1326. package/push-opt-in/components/PushOptInModal/index.js +92 -3
  1327. package/push-opt-in/components/PushOptInModal/style.js +53 -1
  1328. package/push-opt-in/components/index.js +1 -1
  1329. package/push-opt-in/constants/index.js +2 -1
  1330. package/push-opt-in/constants/optInModal.js +2 -1
  1331. package/push-opt-in/constants/optInTrigger.js +9 -1
  1332. package/push-opt-in/reducers/index.js +7 -1
  1333. package/push-opt-in/reducers/optInModal.js +31 -2
  1334. package/push-opt-in/reducers/optInTrigger.js +83 -2
  1335. package/push-opt-in/selectors/index.js +2 -1
  1336. package/push-opt-in/selectors/optInModal.js +13 -4
  1337. package/push-opt-in/selectors/optInTrigger.js +38 -3
  1338. package/push-opt-in/subscriptions/index.js +6 -1
  1339. package/push-opt-in/subscriptions/optInTracking.js +103 -2
  1340. package/push-opt-in/subscriptions/optInTrigger.js +109 -6
  1341. package/registration/action-creators/index.js +30 -5
  1342. package/registration/actions/index.js +1 -1
  1343. package/registration/actions/submitRegistration.js +25 -2
  1344. package/registration/components/GuestRegistration/GuestRegistration.js +20 -2
  1345. package/registration/components/GuestRegistration/GuestRegistrationContent.js +59 -2
  1346. package/registration/components/GuestRegistration/GuestRegistrationFormPickup.config.js +58 -2
  1347. package/registration/components/GuestRegistration/GuestRegistrationFormPickup.js +81 -2
  1348. package/registration/components/Registration/Registration.js +15 -2
  1349. package/registration/components/Registration/RegistrationContent.js +28 -2
  1350. package/registration/components/Registration/RegistrationContent.style.js +58 -2
  1351. package/registration/components/Registration/RegistrationFormActions.js +40 -2
  1352. package/registration/components/Registration/RegistrationFormBase.config.js +38 -2
  1353. package/registration/components/Registration/RegistrationFormBase.js +36 -2
  1354. package/registration/components/Registration/RegistrationFormBilling.config.js +93 -2
  1355. package/registration/components/Registration/RegistrationFormBilling.js +63 -2
  1356. package/registration/components/Registration/RegistrationFormExtra.config.js +28 -2
  1357. package/registration/components/Registration/RegistrationFormExtra.js +50 -2
  1358. package/registration/components/Registration/RegistrationFormShipping.config.js +82 -2
  1359. package/registration/components/Registration/RegistrationFormShipping.js +56 -2
  1360. package/registration/components/Registration/RegistrationFormToggle.js +52 -2
  1361. package/registration/components/index.js +2 -1
  1362. package/registration/constants/actionTypes.js +4 -1
  1363. package/registration/constants/index.js +8 -1
  1364. package/registration/constants/pipelines.js +1 -1
  1365. package/registration/hooks/index.js +8 -3
  1366. package/registration/index.js +2 -1
  1367. package/registration/providers/GuestRegistrationProvider.actions.js +101 -2
  1368. package/registration/providers/GuestRegistrationProvider.connector.js +44 -3
  1369. package/registration/providers/GuestRegistrationProvider.constraints.js +144 -6
  1370. package/registration/providers/GuestRegistrationProvider.context.js +3 -1
  1371. package/registration/providers/GuestRegistrationProvider.js +346 -17
  1372. package/registration/providers/RegistrationProvider.actions.js +105 -3
  1373. package/registration/providers/RegistrationProvider.connector.js +27 -3
  1374. package/registration/providers/RegistrationProvider.constraints.js +128 -7
  1375. package/registration/providers/RegistrationProvider.context.js +3 -1
  1376. package/registration/providers/RegistrationProvider.js +250 -13
  1377. package/registration/streams/index.js +8 -2
  1378. package/registration/subscriptions/index.js +40 -4
  1379. package/reviews/actions/index.js +5 -1
  1380. package/reviews/components/Reviews/components/AllReviewsLink/connector.js +19 -3
  1381. package/reviews/components/Reviews/components/AllReviewsLink/index.js +31 -2
  1382. package/reviews/components/Reviews/components/AllReviewsLink/style.js +15 -2
  1383. package/reviews/components/Reviews/components/Header/components/AverageRating/index.js +45 -3
  1384. package/reviews/components/Reviews/components/Header/components/AverageRating/style.js +9 -1
  1385. package/reviews/components/Reviews/components/Header/components/NoReviews/index.js +27 -2
  1386. package/reviews/components/Reviews/components/Header/components/NoReviews/style.js +18 -1
  1387. package/reviews/components/Reviews/components/Header/components/ReviewsExcerpt/index.js +45 -2
  1388. package/reviews/components/Reviews/components/Header/components/ReviewsExcerpt/style.js +27 -1
  1389. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/index.js +23 -2
  1390. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/spec.js +30 -2
  1391. package/reviews/components/Reviews/components/Header/connector.js +10 -2
  1392. package/reviews/components/Reviews/components/Header/index.js +38 -2
  1393. package/reviews/components/Reviews/components/Header/spec.js +52 -2
  1394. package/reviews/components/Reviews/components/List/components/Info/components/Author/index.js +23 -2
  1395. package/reviews/components/Reviews/components/List/components/Info/components/ReviewDate/index.js +16 -2
  1396. package/reviews/components/Reviews/components/List/components/Info/index.js +25 -3
  1397. package/reviews/components/Reviews/components/List/components/Info/style.js +9 -1
  1398. package/reviews/components/Reviews/components/List/components/Rating/index.js +19 -2
  1399. package/reviews/components/Reviews/components/List/components/Rating/style.js +14 -1
  1400. package/reviews/components/Reviews/components/List/components/Review/index.js +23 -2
  1401. package/reviews/components/Reviews/components/List/components/Text/index.js +20 -2
  1402. package/reviews/components/Reviews/components/List/components/Text/style.js +6 -1
  1403. package/reviews/components/Reviews/components/List/components/Title/index.js +15 -2
  1404. package/reviews/components/Reviews/components/List/components/Title/style.js +5 -1
  1405. package/reviews/components/Reviews/components/List/index.js +48 -3
  1406. package/reviews/components/Reviews/components/List/spec.js +68 -1
  1407. package/reviews/components/Reviews/components/List/style.js +11 -1
  1408. package/reviews/components/Reviews/components/RatingCount/index.js +26 -2
  1409. package/reviews/components/Reviews/components/RatingCount/spec.js +17 -1
  1410. package/reviews/components/Reviews/components/RatingCount/style.js +20 -1
  1411. package/reviews/components/Reviews/components/ReviewsInfo/index.js +42 -2
  1412. package/reviews/components/Reviews/connector.js +14 -2
  1413. package/reviews/components/Reviews/index.js +42 -2
  1414. package/reviews/components/Reviews/mock.js +83 -7
  1415. package/reviews/components/Reviews/spec.js +67 -4
  1416. package/reviews/components/Reviews/style.js +11 -1
  1417. package/reviews/components/index.js +1 -1
  1418. package/reviews/constants/index.js +3 -1
  1419. package/reviews/index.js +11 -2
  1420. package/reviews/selectors/index.js +1 -1
  1421. package/reviews/streams/index.js +1 -1
  1422. package/scanner/action-creators/index.js +3 -1
  1423. package/scanner/actions/index.js +4 -1
  1424. package/scanner/classes/index.js +1 -1
  1425. package/scanner/constants/index.js +3 -1
  1426. package/scanner/helpers/index.js +1 -1
  1427. package/scanner/index.js +10 -1
  1428. package/scanner/streams/index.js +1 -1
  1429. package/search/actions/index.js +2 -1
  1430. package/search/constants/index.js +3 -1
  1431. package/search/helpers/index.js +3 -1
  1432. package/search/index.js +9 -1
  1433. package/search/selectors/index.js +1 -1
  1434. package/search/streams/index.js +1 -1
  1435. package/styles/helpers/color.js +19 -8
  1436. package/styles/helpers/cssCustomProperties.js +35 -4
  1437. package/styles/helpers/index.js +11 -1
  1438. package/styles/helpers/initCSSCustomProperties.js +70 -4
  1439. package/styles/helpers/loadCustomStyles.js +31 -3
  1440. package/styles/helpers/setPageBackgroundColor.js +18 -3
  1441. package/styles/helpers/setPageContentWidth.js +7 -2
  1442. package/styles/helpers/setViewportHeight.js +11 -2
  1443. package/styles/helpers/toggleBodyScroll.js +48 -2
  1444. package/styles/helpers/updatePageInsets.js +38 -2
  1445. package/styles/index.js +3 -1
  1446. package/styles/reset/form.js +50 -4
  1447. package/styles/reset/index.js +5 -1
  1448. package/styles/reset/media.js +20 -1
  1449. package/styles/reset/root.js +59 -3
  1450. package/styles/reset/table.js +8 -1
  1451. package/styles/reset/typography.js +24 -1
  1452. package/styles/theme/createTheme/createBreakpoints.js +100 -15
  1453. package/styles/theme/createTheme/createPalette.js +54 -2
  1454. package/styles/theme/createTheme/createSpacing.js +38 -5
  1455. package/styles/theme/createTheme/createTypography.js +74 -5
  1456. package/styles/theme/createTheme/index.js +26 -2
  1457. package/styles/theme/createTheme/transitions.js +81 -15
  1458. package/styles/theme/createTheme/zIndex.js +7 -1
  1459. package/styles/theme/hooks/index.js +4 -1
  1460. package/styles/theme/hooks/useActiveBreakpoint.js +7 -2
  1461. package/styles/theme/hooks/useMediaQuery.js +40 -7
  1462. package/styles/theme/hooks/useResponsiveValue.js +23 -4
  1463. package/styles/theme/hooks/useTheme.js +7 -2
  1464. package/styles/theme/index.js +3 -1
  1465. package/styles/theme/providers/ActiveBreakpointProvider.js +57 -6
  1466. package/styles/theme/providers/ThemeProvider.js +18 -2
  1467. package/styles/tss/index.js +21 -3
  1468. package/tracking/action-creators/cookieConsent.js +41 -5
  1469. package/tracking/action-creators/index.js +1 -1
  1470. package/tracking/actions/cookieConsent.js +89 -10
  1471. package/tracking/actions/index.js +1 -1
  1472. package/tracking/components/CookieConsentModal/connector.js +23 -3
  1473. package/tracking/components/CookieConsentModal/index.js +125 -3
  1474. package/tracking/components/CookieConsentModal/style.js +59 -1
  1475. package/tracking/components/PrivacySettings/connector.js +23 -3
  1476. package/tracking/components/PrivacySettings/index.js +128 -2
  1477. package/tracking/components/PrivacySettings/style.js +45 -1
  1478. package/tracking/components/index.js +2 -1
  1479. package/tracking/constants/index.js +5 -1
  1480. package/tracking/helpers/index.js +1 -1
  1481. package/tracking/reducers/cookieConsentModal.js +28 -2
  1482. package/tracking/reducers/cookieSettings.js +23 -2
  1483. package/tracking/reducers/index.js +7 -1
  1484. package/tracking/selectors/cookieConsent.js +69 -11
  1485. package/tracking/selectors/index.js +2 -1
  1486. package/tracking/streams/cookieConsent.js +101 -14
  1487. package/tracking/streams/index.js +1 -1
  1488. package/tracking/subscriptions/analytics.js +194 -7
  1489. package/tracking/subscriptions/cookieConsent.js +62 -8
  1490. package/tracking/subscriptions/index.js +6 -1
  1491. package/user/index.js +25 -6
  1492. package/user/selectors/data.js +15 -3
  1493. package/user/selectors/login.js +15 -3
  1494. package/types.js +0 -0
@@ -1,12 +1,202 @@
1
1
  /**
2
2
  * Holds the react components.
3
3
  * @module index
4
- */export{default as App}from'@shopgate/pwa-common/App';// COMMON
5
- export{default as Backdrop}from'@shopgate/pwa-common/components/Backdrop';export{default as BaseButton}from'@shopgate/pwa-common/components/Button';export{default as BaseCheckbox}from'@shopgate/pwa-common/components/Checkbox';export{default as Consume}from'@shopgate/pwa-common/components/Consume';export{default as CountdownTimer}from'@shopgate/pwa-common/components/CountdownTimer';export{default as Drawer}from'@shopgate/pwa-common/components/Drawer';export{default as Dropdown}from'@shopgate/pwa-common/components/Dropdown';export{default as Ellipsis}from'@shopgate/pwa-common/components/Ellipsis';export{default as ErrorBoundary}from'@shopgate/pwa-common/components/ErrorBoundary';export{default as Grid}from'@shopgate/pwa-common/components/Grid';export{default as HtmlSanitizer}from'@shopgate/pwa-common/components/HtmlSanitizer';export{default as I18n}from'@shopgate/pwa-common/components/I18n';export{default as Icon}from'@shopgate/pwa-common/components/Icon';export{default as Image}from'@shopgate/pwa-common/components/Image';export{default as InfiniteContainer}from'@shopgate/pwa-common/components/InfiniteContainer';export{default as Input}from'@shopgate/pwa-common/components/Input';export{default as KeyboardConsumer}from'@shopgate/pwa-common/components/KeyboardConsumer';export{default as Link}from'@shopgate/pwa-common/components/Link';export{default as List}from'@shopgate/pwa-common/components/List';export{default as Loading}from'@shopgate/pwa-common/components/Loading';export{default as Modal}from'@shopgate/pwa-common/components/Modal';export{default as ModalContainer,MODAL_EVENTS}from'@shopgate/pwa-common/components/ModalContainer';export{default as Picker}from"./Picker";export{default as Portal}from'@shopgate/pwa-common/components/Portal';export{default as RangeSlider}from"./RangeSlider";export{default as Route}from'@shopgate/pwa-common/components/Route';export{default as ScannerContainer}from'@shopgate/pwa-common/components/ScannerContainer';export{default as BaseSelect}from'@shopgate/pwa-common/components/Select';export{default as SelectBox}from'@shopgate/pwa-common/components/SelectBox';export{default as Slider}from'@shopgate/pwa-common/components/Slider';export{default as SurroundPortals}from'@shopgate/pwa-common/components/SurroundPortals';export{default as Swiper}from'@shopgate/pwa-common/components/Swiper';export{default as Toaster}from'@shopgate/pwa-common/components/Toaster';export{default as Transition}from'@shopgate/pwa-common/components/Transition';export{default as Widgets}from'@shopgate/pwa-common/components/Widgets';// iOS
6
- export{default as AppBarIOS}from'@shopgate/pwa-ui-ios/AppBar';export{default as BaseDialogIOS}from'@shopgate/pwa-ui-ios/BaseDialog';// ANDROID
7
- export{default as Accordion}from'@shopgate/pwa-ui-material/Accordion';export{default as AppBarAndroid}from'@shopgate/pwa-ui-material/AppBar';export{default as BaseDialogAndroid}from'@shopgate/pwa-ui-material/BaseDialog';export{default as FloatingActionButton}from'@shopgate/pwa-ui-material/FloatingActionButton';export{default as NavDrawer}from'@shopgate/pwa-ui-material/NavDrawer';export{default as SnackBar}from'@shopgate/pwa-ui-material/SnackBar';// SHARED
8
- export{default as AccordionContainer}from'@shopgate/pwa-ui-shared/AccordionContainer';export{default as ActionButton}from'@shopgate/pwa-ui-shared/ActionButton';export{default as AddToCartButton}from'@shopgate/pwa-ui-shared/AddToCartButton';export{default as Availability}from'@shopgate/pwa-ui-shared/Availability';export{default as Button}from'@shopgate/pwa-ui-shared/Button';export{default as ButtonLink}from'@shopgate/pwa-ui-shared/ButtonLink';export{default as Card}from'@shopgate/pwa-ui-shared/Card';export{default as CardList}from'@shopgate/pwa-ui-shared/CardList';export{default as CartTotalLine}from'@shopgate/pwa-ui-shared/CartTotalLine';export{default as Chip}from'@shopgate/pwa-ui-shared/Chip';export{default as ContextMenu}from'@shopgate/pwa-ui-shared/ContextMenu';export{default as Dialog}from'@shopgate/pwa-ui-shared/Dialog';export{default as DiscountBadge}from'@shopgate/pwa-ui-shared/DiscountBadge';export{default as FavoritesButton}from'@shopgate/pwa-ui-shared/FavoritesButton';export{default as Checkbox}from'@shopgate/pwa-ui-shared/Form/Checkbox';export{default as Password}from'@shopgate/pwa-ui-shared/Form/Password';export{default as RadioGroup}from'@shopgate/pwa-ui-shared/Form/RadioGroup';export{default as RadioGroupItem}from'@shopgate/pwa-ui-shared/Form/RadioGroup/components/Item';export{default as Select}from'@shopgate/pwa-ui-shared/Form/Select';export{default as TextField}from'@shopgate/pwa-ui-shared/Form/TextField';export{default as FormElement}from'@shopgate/pwa-ui-shared/FormElement';export{default as Glow}from'@shopgate/pwa-ui-shared/Glow';export{default as IndicatorCircle}from'@shopgate/pwa-ui-shared/IndicatorCircle';export{default as LoadingIndicator}from'@shopgate/pwa-ui-shared/LoadingIndicator';export{default as Manufacturer}from'@shopgate/pwa-ui-shared/Manufacturer';export{default as NoResults}from'@shopgate/pwa-ui-shared/NoResults';export{default as Placeholder}from'@shopgate/pwa-ui-shared/Placeholder';export{default as PlaceholderLabel}from'@shopgate/pwa-ui-shared/PlaceholderLabel';export{default as PlaceholderParagraph}from'@shopgate/pwa-ui-shared/PlaceholderParagraph';export{default as Price}from'@shopgate/pwa-ui-shared/Price';export{default as PriceInfo}from'@shopgate/pwa-ui-shared/PriceInfo';export{default as PriceStriked}from'@shopgate/pwa-ui-shared/PriceStriked';export{default as ProductProperties}from'@shopgate/pwa-ui-shared/ProductProperties';export{default as ProgressBar}from'@shopgate/pwa-ui-shared/ProgressBar';export{default as RadioButton}from'@shopgate/pwa-ui-shared/RadioButton';export{default as RatingNumber}from'@shopgate/pwa-ui-shared/RatingNumber';export{default as RatingStars}from'@shopgate/pwa-ui-shared/RatingStars';export{default as Ripple}from'@shopgate/pwa-ui-shared/Ripple';export{default as RippleButton}from'@shopgate/pwa-ui-shared/RippleButton';export{default as ScannerOverlay}from'@shopgate/pwa-ui-shared/ScannerOverlay';export{default as Sheet,SHEET_EVENTS}from'@shopgate/pwa-ui-shared/Sheet';export{default as TaxDisclaimer}from'@shopgate/pwa-ui-shared/TaxDisclaimer';export{default as ToggleIcon}from'@shopgate/pwa-ui-shared/ToggleIcon';// ICONS IOS
9
- export{default as CartIconIOS}from'@shopgate/pwa-ui-ios/icons/CartIcon';export{default as FilterIconIOS}from'@shopgate/pwa-ui-ios/icons/FilterIcon';export{default as HomeIconIOS}from'@shopgate/pwa-ui-ios/icons/HomeIcon';export{default as ShareIconIOS}from'@shopgate/pwa-ui-ios/icons/ShareIcon';// ICONS ANDROID
10
- export{default as ShareIconAndroid}from'@shopgate/pwa-ui-material/icons/ShareIcon';// ICONS SHARED
11
- export{default as AccountBoxIcon}from'@shopgate/pwa-ui-shared/icons/AccountBoxIcon';export{default as AddMoreIcon}from'@shopgate/pwa-ui-shared/icons/AddMoreIcon';export{default as ArrowDropIcon}from'@shopgate/pwa-ui-shared/icons/ArrowDropIcon';export{default as ArrowIcon}from'@shopgate/pwa-ui-shared/icons/ArrowIcon';export{default as BarcodeScannerIcon}from'@shopgate/pwa-ui-shared/icons/BarcodeScannerIcon';export{default as BoxIcon}from'@shopgate/pwa-ui-shared/icons/BoxIcon';export{default as BrowseIcon}from'@shopgate/pwa-ui-shared/icons/BrowseIcon';export{default as BurgerIcon}from'@shopgate/pwa-ui-shared/icons/BurgerIcon';export{default as CartIcon}from'@shopgate/pwa-ui-shared/icons/CartIcon';export{default as CartPlusIcon}from'@shopgate/pwa-ui-shared/icons/CartPlusIcon';export{default as CartCouponIcon}from'@shopgate/pwa-ui-shared/icons/CartCouponIcon';export{default as CheckedIcon}from'@shopgate/pwa-ui-shared/icons/CheckedIcon';export{default as CheckIcon}from'@shopgate/pwa-ui-shared/icons/CheckIcon';export{default as ChevronIcon}from'@shopgate/pwa-ui-shared/icons/ChevronIcon';export{default as CreditCardIcon}from'@shopgate/pwa-ui-shared/icons/CreditCardIcon';export{default as CrossIcon}from'@shopgate/pwa-ui-shared/icons/CrossIcon';export{default as DescriptionIcon}from'@shopgate/pwa-ui-shared/icons/DescriptionIcon';export{default as FilterIcon}from'@shopgate/pwa-ui-shared/icons/FilterIcon';export{default as FlashEnabledIcon}from'@shopgate/pwa-ui-shared/icons/FlashEnabledIcon';export{default as FlashDisabledIcon}from'@shopgate/pwa-ui-shared/icons/FlashDisabledIcon';export{default as GridIcon}from'@shopgate/pwa-ui-shared/icons/GridIcon';export{default as HeartIcon}from'@shopgate/pwa-ui-shared/icons/HeartIcon';export{default as HeartOutlineIcon}from'@shopgate/pwa-ui-shared/icons/HeartOutlineIcon';export{default as HeartPlusIcon}from'@shopgate/pwa-ui-shared/icons/HeartPlusIcon';export{default as HeartPlusOutlineIcon}from'@shopgate/pwa-ui-shared/icons/HeartPlusOutlineIcon';export{default as HomeIcon}from'@shopgate/pwa-ui-shared/icons/HomeIcon';export{default as InfoIcon}from'@shopgate/pwa-ui-shared/icons/InfoIcon';export{default as InfoOutlineIcon}from'@shopgate/pwa-ui-shared/icons/InfoOutlineIcon';export{default as ListIcon}from'@shopgate/pwa-ui-shared/icons/ListIcon';export{default as LocatorIcon}from'@shopgate/pwa-ui-shared/icons/LocatorIcon';export{default as LocalShippingIcon}from'@shopgate/pwa-ui-shared/icons/LocalShippingIcon';export{default as LocationIcon}from'@shopgate/pwa-ui-shared/icons/LocationIcon';export{default as LockIcon}from'@shopgate/pwa-ui-shared/icons/LockIcon';export{default as LogoutIcon}from'@shopgate/pwa-ui-shared/icons/LogoutIcon';export{default as MagnifierIcon}from'@shopgate/pwa-ui-shared/icons/MagnifierIcon';export{default as MoreIcon}from'@shopgate/pwa-ui-shared/icons/MoreIcon';export{default as MoreVertIcon}from'@shopgate/pwa-ui-shared/icons/MoreVertIcon';export{default as PersonIcon}from'@shopgate/pwa-ui-shared/icons/PersonIcon';export{default as PhoneIcon}from'@shopgate/pwa-ui-shared/icons/PhoneIcon';export{default as PlaceholderIcon}from'@shopgate/pwa-ui-shared/icons/PlaceholderIcon';export{default as RadioCheckedIcon}from'@shopgate/pwa-ui-shared/icons/RadioCheckedIcon';export{default as RadioUncheckedIcon}from'@shopgate/pwa-ui-shared/icons/RadioUncheckedIcon';export{default as SecurityIcon}from'@shopgate/pwa-ui-shared/icons/SecurityIcon';export{default as ShoppingCartIcon}from'@shopgate/pwa-ui-shared/icons/ShoppingCartIcon';export{default as SortIcon}from'@shopgate/pwa-ui-shared/icons/SortIcon';export{default as StarHalfIcon}from'@shopgate/pwa-ui-shared/icons/StarHalfIcon';export{default as StarIcon}from'@shopgate/pwa-ui-shared/icons/StarIcon';export{default as StarOutlineIcon}from'@shopgate/pwa-ui-shared/icons/StarOutlineIcon';export{default as TickIcon}from'@shopgate/pwa-ui-shared/icons/TickIcon';export{default as TrashIcon}from'@shopgate/pwa-ui-shared/icons/TrashIcon';export{default as TrashOutlineIcon}from'@shopgate/pwa-ui-shared/icons/TrashOutlineIcon';export{default as UncheckedIcon}from'@shopgate/pwa-ui-shared/icons/UncheckedIcon';export{default as ViewListIcon}from'@shopgate/pwa-ui-shared/icons/ViewListIcon';export{default as VisibilityIcon}from'@shopgate/pwa-ui-shared/icons/VisibilityIcon';export{default as VisibilityOffIcon}from'@shopgate/pwa-ui-shared/icons/VisibilityOffIcon';export{default as TimeIcon}from'@shopgate/pwa-ui-shared/icons/TimeIcon';export{default as NotificationIcon}from'@shopgate/pwa-ui-shared/icons/NotificationIcon';// LOCAL
12
- export{MessageBar}from"./MessageBar";export{default as NavigationHandler}from"./NavigationHandler";export{default as TimeBoundary}from"./TimeBoundary";export{default as IntersectionVisibility}from"./IntersectionVisibility";export{default as VideoPlayer}from"./VideoPlayer";export{default as SheetDrawer}from"./SheetDrawer";export{default as SheetList}from"./SheetList";export{default as NullComponent}from"./NullComponent";export{default as View,ViewContext}from"./View";export{default as QuantityInput}from"./QuantityInput";export{default as QuantityLabel}from"./QuantityLabel";export{default as ResponsiveContainer}from"./ResponsiveContainer";export{default as BrandingColorBanner}from"./BrandingColorBanner";export{default as ScrollHeader}from"./ScrollHeader";export{default as Menu}from"./Menu";export{default as Toggle}from"./Toggle";export{Form}from"./Form";export{FormBuilder}from"./Form";export{Footer}from"./Footer";export{SideNavigation}from"./SideNavigation";export{default as TextLink}from"./TextLink/TextLink";export{ConditionalWrapper}from"./ConditionalWrapper";export{default as RadioGroupV2,useRadioGroup}from"./RadioGroup";export{default as RadioV2}from"./Radio";export{default as RadioCard}from"./RadioCard";export{default as ChipLayout}from"./ChipLayout";export{default as Logo}from"./Logo";export{default as PickerUtilize}from"./PickerUtilize";export{default as Switch}from"./Switch";export{default as SnackBarContainer}from"./SnackBarContainer";export{default as ConnectedReactPortal}from"./ConnectedReactPortal";export{Typography}from"./Typography";
4
+ */
5
+
6
+ export { default as App } from '@shopgate/pwa-common/App';
7
+
8
+ // COMMON
9
+ export { default as Backdrop } from '@shopgate/pwa-common/components/Backdrop';
10
+ export { default as BaseButton } from '@shopgate/pwa-common/components/Button';
11
+ export { default as BaseCheckbox } from '@shopgate/pwa-common/components/Checkbox';
12
+ export { default as Consume } from '@shopgate/pwa-common/components/Consume';
13
+ export { default as CountdownTimer } from '@shopgate/pwa-common/components/CountdownTimer';
14
+ export { default as Drawer } from '@shopgate/pwa-common/components/Drawer';
15
+ export { default as Dropdown } from '@shopgate/pwa-common/components/Dropdown';
16
+ export { default as Ellipsis } from '@shopgate/pwa-common/components/Ellipsis';
17
+ export { default as ErrorBoundary } from '@shopgate/pwa-common/components/ErrorBoundary';
18
+ export { default as Grid } from '@shopgate/pwa-common/components/Grid';
19
+ export { default as HtmlSanitizer } from '@shopgate/pwa-common/components/HtmlSanitizer';
20
+ export { default as I18n } from '@shopgate/pwa-common/components/I18n';
21
+ export { default as Icon } from '@shopgate/pwa-common/components/Icon';
22
+ export { default as Image } from '@shopgate/pwa-common/components/Image';
23
+ export { default as InfiniteContainer } from '@shopgate/pwa-common/components/InfiniteContainer';
24
+ export { default as Input } from '@shopgate/pwa-common/components/Input';
25
+ export { default as KeyboardConsumer } from '@shopgate/pwa-common/components/KeyboardConsumer';
26
+ export { default as Link } from '@shopgate/pwa-common/components/Link';
27
+ export { default as List } from '@shopgate/pwa-common/components/List';
28
+ export { default as Loading } from '@shopgate/pwa-common/components/Loading';
29
+ export { default as Modal } from '@shopgate/pwa-common/components/Modal';
30
+ export { default as ModalContainer, MODAL_EVENTS } from '@shopgate/pwa-common/components/ModalContainer';
31
+ export { default as Picker } from "./Picker";
32
+ export { default as Portal } from '@shopgate/pwa-common/components/Portal';
33
+ export { default as RangeSlider } from "./RangeSlider";
34
+ export { default as Route } from '@shopgate/pwa-common/components/Route';
35
+ export { default as ScannerContainer } from '@shopgate/pwa-common/components/ScannerContainer';
36
+ export { default as BaseSelect } from '@shopgate/pwa-common/components/Select';
37
+ export { default as SelectBox } from '@shopgate/pwa-common/components/SelectBox';
38
+ export { default as Slider } from '@shopgate/pwa-common/components/Slider';
39
+ export { default as SurroundPortals } from '@shopgate/pwa-common/components/SurroundPortals';
40
+ export { default as Swiper } from '@shopgate/pwa-common/components/Swiper';
41
+ export { default as Toaster } from '@shopgate/pwa-common/components/Toaster';
42
+ export { default as Transition } from '@shopgate/pwa-common/components/Transition';
43
+ export { default as Widgets } from '@shopgate/pwa-common/components/Widgets';
44
+
45
+ // iOS
46
+ export { default as AppBarIOS } from '@shopgate/pwa-ui-ios/AppBar';
47
+ export { default as BaseDialogIOS } from '@shopgate/pwa-ui-ios/BaseDialog';
48
+
49
+ // ANDROID
50
+ export { default as Accordion } from '@shopgate/pwa-ui-material/Accordion';
51
+ export { default as AppBarAndroid } from '@shopgate/pwa-ui-material/AppBar';
52
+ export { default as BaseDialogAndroid } from '@shopgate/pwa-ui-material/BaseDialog';
53
+ export { default as FloatingActionButton } from '@shopgate/pwa-ui-material/FloatingActionButton';
54
+ export { default as NavDrawer } from '@shopgate/pwa-ui-material/NavDrawer';
55
+ export { default as SnackBar } from '@shopgate/pwa-ui-material/SnackBar';
56
+
57
+ // SHARED
58
+ export { default as AccordionContainer } from '@shopgate/pwa-ui-shared/AccordionContainer';
59
+ export { default as ActionButton } from '@shopgate/pwa-ui-shared/ActionButton';
60
+ export { default as AddToCartButton } from '@shopgate/pwa-ui-shared/AddToCartButton';
61
+ export { default as Availability } from '@shopgate/pwa-ui-shared/Availability';
62
+ export { default as Button } from '@shopgate/pwa-ui-shared/Button';
63
+ export { default as ButtonLink } from '@shopgate/pwa-ui-shared/ButtonLink';
64
+ export { default as Card } from '@shopgate/pwa-ui-shared/Card';
65
+ export { default as CardList } from '@shopgate/pwa-ui-shared/CardList';
66
+ export { default as CartTotalLine } from '@shopgate/pwa-ui-shared/CartTotalLine';
67
+ export { default as Chip } from '@shopgate/pwa-ui-shared/Chip';
68
+ export { default as ContextMenu } from '@shopgate/pwa-ui-shared/ContextMenu';
69
+ export { default as Dialog } from '@shopgate/pwa-ui-shared/Dialog';
70
+ export { default as DiscountBadge } from '@shopgate/pwa-ui-shared/DiscountBadge';
71
+ export { default as FavoritesButton } from '@shopgate/pwa-ui-shared/FavoritesButton';
72
+ export { default as Checkbox } from '@shopgate/pwa-ui-shared/Form/Checkbox';
73
+ export { default as Password } from '@shopgate/pwa-ui-shared/Form/Password';
74
+ export { default as RadioGroup } from '@shopgate/pwa-ui-shared/Form/RadioGroup';
75
+ export { default as RadioGroupItem } from '@shopgate/pwa-ui-shared/Form/RadioGroup/components/Item';
76
+ export { default as Select } from '@shopgate/pwa-ui-shared/Form/Select';
77
+ export { default as TextField } from '@shopgate/pwa-ui-shared/Form/TextField';
78
+ export { default as FormElement } from '@shopgate/pwa-ui-shared/FormElement';
79
+ export { default as Glow } from '@shopgate/pwa-ui-shared/Glow';
80
+ export { default as IndicatorCircle } from '@shopgate/pwa-ui-shared/IndicatorCircle';
81
+ export { default as LoadingIndicator } from '@shopgate/pwa-ui-shared/LoadingIndicator';
82
+ export { default as Manufacturer } from '@shopgate/pwa-ui-shared/Manufacturer';
83
+ export { default as NoResults } from '@shopgate/pwa-ui-shared/NoResults';
84
+ export { default as Placeholder } from '@shopgate/pwa-ui-shared/Placeholder';
85
+ export { default as PlaceholderLabel } from '@shopgate/pwa-ui-shared/PlaceholderLabel';
86
+ export { default as PlaceholderParagraph } from '@shopgate/pwa-ui-shared/PlaceholderParagraph';
87
+ export { default as Price } from '@shopgate/pwa-ui-shared/Price';
88
+ export { default as PriceInfo } from '@shopgate/pwa-ui-shared/PriceInfo';
89
+ export { default as PriceStriked } from '@shopgate/pwa-ui-shared/PriceStriked';
90
+ export { default as ProductProperties } from '@shopgate/pwa-ui-shared/ProductProperties';
91
+ export { default as ProgressBar } from '@shopgate/pwa-ui-shared/ProgressBar';
92
+ export { default as RadioButton } from '@shopgate/pwa-ui-shared/RadioButton';
93
+ export { default as RatingNumber } from '@shopgate/pwa-ui-shared/RatingNumber';
94
+ export { default as RatingStars } from '@shopgate/pwa-ui-shared/RatingStars';
95
+ export { default as Ripple } from '@shopgate/pwa-ui-shared/Ripple';
96
+ export { default as RippleButton } from '@shopgate/pwa-ui-shared/RippleButton';
97
+ export { default as ScannerOverlay } from '@shopgate/pwa-ui-shared/ScannerOverlay';
98
+ export { default as Sheet, SHEET_EVENTS } from '@shopgate/pwa-ui-shared/Sheet';
99
+ export { default as TaxDisclaimer } from '@shopgate/pwa-ui-shared/TaxDisclaimer';
100
+ export { default as ToggleIcon } from '@shopgate/pwa-ui-shared/ToggleIcon';
101
+
102
+ // ICONS IOS
103
+ export { default as CartIconIOS } from '@shopgate/pwa-ui-ios/icons/CartIcon';
104
+ export { default as FilterIconIOS } from '@shopgate/pwa-ui-ios/icons/FilterIcon';
105
+ export { default as HomeIconIOS } from '@shopgate/pwa-ui-ios/icons/HomeIcon';
106
+ export { default as ShareIconIOS } from '@shopgate/pwa-ui-ios/icons/ShareIcon';
107
+
108
+ // ICONS ANDROID
109
+ export { default as ShareIconAndroid } from '@shopgate/pwa-ui-material/icons/ShareIcon';
110
+
111
+ // ICONS SHARED
112
+ export { default as AccountBoxIcon } from '@shopgate/pwa-ui-shared/icons/AccountBoxIcon';
113
+ export { default as AddMoreIcon } from '@shopgate/pwa-ui-shared/icons/AddMoreIcon';
114
+ export { default as ArrowDropIcon } from '@shopgate/pwa-ui-shared/icons/ArrowDropIcon';
115
+ export { default as ArrowIcon } from '@shopgate/pwa-ui-shared/icons/ArrowIcon';
116
+ export { default as BarcodeScannerIcon } from '@shopgate/pwa-ui-shared/icons/BarcodeScannerIcon';
117
+ export { default as BoxIcon } from '@shopgate/pwa-ui-shared/icons/BoxIcon';
118
+ export { default as BrowseIcon } from '@shopgate/pwa-ui-shared/icons/BrowseIcon';
119
+ export { default as BurgerIcon } from '@shopgate/pwa-ui-shared/icons/BurgerIcon';
120
+ export { default as CartIcon } from '@shopgate/pwa-ui-shared/icons/CartIcon';
121
+ export { default as CartPlusIcon } from '@shopgate/pwa-ui-shared/icons/CartPlusIcon';
122
+ export { default as CartCouponIcon } from '@shopgate/pwa-ui-shared/icons/CartCouponIcon';
123
+ export { default as CheckedIcon } from '@shopgate/pwa-ui-shared/icons/CheckedIcon';
124
+ export { default as CheckIcon } from '@shopgate/pwa-ui-shared/icons/CheckIcon';
125
+ export { default as ChevronIcon } from '@shopgate/pwa-ui-shared/icons/ChevronIcon';
126
+ export { default as CreditCardIcon } from '@shopgate/pwa-ui-shared/icons/CreditCardIcon';
127
+ export { default as CrossIcon } from '@shopgate/pwa-ui-shared/icons/CrossIcon';
128
+ export { default as DescriptionIcon } from '@shopgate/pwa-ui-shared/icons/DescriptionIcon';
129
+ export { default as FilterIcon } from '@shopgate/pwa-ui-shared/icons/FilterIcon';
130
+ export { default as FlashEnabledIcon } from '@shopgate/pwa-ui-shared/icons/FlashEnabledIcon';
131
+ export { default as FlashDisabledIcon } from '@shopgate/pwa-ui-shared/icons/FlashDisabledIcon';
132
+ export { default as GridIcon } from '@shopgate/pwa-ui-shared/icons/GridIcon';
133
+ export { default as HeartIcon } from '@shopgate/pwa-ui-shared/icons/HeartIcon';
134
+ export { default as HeartOutlineIcon } from '@shopgate/pwa-ui-shared/icons/HeartOutlineIcon';
135
+ export { default as HeartPlusIcon } from '@shopgate/pwa-ui-shared/icons/HeartPlusIcon';
136
+ export { default as HeartPlusOutlineIcon } from '@shopgate/pwa-ui-shared/icons/HeartPlusOutlineIcon';
137
+ export { default as HomeIcon } from '@shopgate/pwa-ui-shared/icons/HomeIcon';
138
+ export { default as InfoIcon } from '@shopgate/pwa-ui-shared/icons/InfoIcon';
139
+ export { default as InfoOutlineIcon } from '@shopgate/pwa-ui-shared/icons/InfoOutlineIcon';
140
+ export { default as ListIcon } from '@shopgate/pwa-ui-shared/icons/ListIcon';
141
+ export { default as LocatorIcon } from '@shopgate/pwa-ui-shared/icons/LocatorIcon';
142
+ export { default as LocalShippingIcon } from '@shopgate/pwa-ui-shared/icons/LocalShippingIcon';
143
+ export { default as LocationIcon } from '@shopgate/pwa-ui-shared/icons/LocationIcon';
144
+ export { default as LockIcon } from '@shopgate/pwa-ui-shared/icons/LockIcon';
145
+ export { default as LogoutIcon } from '@shopgate/pwa-ui-shared/icons/LogoutIcon';
146
+ export { default as MagnifierIcon } from '@shopgate/pwa-ui-shared/icons/MagnifierIcon';
147
+ export { default as MoreIcon } from '@shopgate/pwa-ui-shared/icons/MoreIcon';
148
+ export { default as MoreVertIcon } from '@shopgate/pwa-ui-shared/icons/MoreVertIcon';
149
+ export { default as PersonIcon } from '@shopgate/pwa-ui-shared/icons/PersonIcon';
150
+ export { default as PhoneIcon } from '@shopgate/pwa-ui-shared/icons/PhoneIcon';
151
+ export { default as PlaceholderIcon } from '@shopgate/pwa-ui-shared/icons/PlaceholderIcon';
152
+ export { default as RadioCheckedIcon } from '@shopgate/pwa-ui-shared/icons/RadioCheckedIcon';
153
+ export { default as RadioUncheckedIcon } from '@shopgate/pwa-ui-shared/icons/RadioUncheckedIcon';
154
+ export { default as SecurityIcon } from '@shopgate/pwa-ui-shared/icons/SecurityIcon';
155
+ export { default as ShoppingCartIcon } from '@shopgate/pwa-ui-shared/icons/ShoppingCartIcon';
156
+ export { default as SortIcon } from '@shopgate/pwa-ui-shared/icons/SortIcon';
157
+ export { default as StarHalfIcon } from '@shopgate/pwa-ui-shared/icons/StarHalfIcon';
158
+ export { default as StarIcon } from '@shopgate/pwa-ui-shared/icons/StarIcon';
159
+ export { default as StarOutlineIcon } from '@shopgate/pwa-ui-shared/icons/StarOutlineIcon';
160
+ export { default as TickIcon } from '@shopgate/pwa-ui-shared/icons/TickIcon';
161
+ export { default as TrashIcon } from '@shopgate/pwa-ui-shared/icons/TrashIcon';
162
+ export { default as TrashOutlineIcon } from '@shopgate/pwa-ui-shared/icons/TrashOutlineIcon';
163
+ export { default as UncheckedIcon } from '@shopgate/pwa-ui-shared/icons/UncheckedIcon';
164
+ export { default as ViewListIcon } from '@shopgate/pwa-ui-shared/icons/ViewListIcon';
165
+ export { default as VisibilityIcon } from '@shopgate/pwa-ui-shared/icons/VisibilityIcon';
166
+ export { default as VisibilityOffIcon } from '@shopgate/pwa-ui-shared/icons/VisibilityOffIcon';
167
+ export { default as TimeIcon } from '@shopgate/pwa-ui-shared/icons/TimeIcon';
168
+ export { default as NotificationIcon } from '@shopgate/pwa-ui-shared/icons/NotificationIcon';
169
+
170
+ // LOCAL
171
+ export { MessageBar } from "./MessageBar";
172
+ export { default as NavigationHandler } from "./NavigationHandler";
173
+ export { default as TimeBoundary } from "./TimeBoundary";
174
+ export { default as IntersectionVisibility } from "./IntersectionVisibility";
175
+ export { default as VideoPlayer } from "./VideoPlayer";
176
+ export { default as SheetDrawer } from "./SheetDrawer";
177
+ export { default as SheetList } from "./SheetList";
178
+ export { default as NullComponent } from "./NullComponent";
179
+ export { default as View, ViewContext } from "./View";
180
+ export { default as QuantityInput } from "./QuantityInput";
181
+ export { default as QuantityLabel } from "./QuantityLabel";
182
+ export { default as ResponsiveContainer } from "./ResponsiveContainer";
183
+ export { default as BrandingColorBanner } from "./BrandingColorBanner";
184
+ export { default as ScrollHeader } from "./ScrollHeader";
185
+ export { default as Menu } from "./Menu";
186
+ export { default as Toggle } from "./Toggle";
187
+ export { Form } from "./Form";
188
+ export { FormBuilder } from "./Form";
189
+ export { Footer } from "./Footer";
190
+ export { SideNavigation } from "./SideNavigation";
191
+ export { default as TextLink } from "./TextLink/TextLink";
192
+ export { ConditionalWrapper } from "./ConditionalWrapper";
193
+ export { default as RadioGroupV2, useRadioGroup } from "./RadioGroup";
194
+ export { default as RadioV2 } from "./Radio";
195
+ export { default as RadioCard } from "./RadioCard";
196
+ export { default as ChipLayout } from "./ChipLayout";
197
+ export { default as Logo } from "./Logo";
198
+ export { default as PickerUtilize } from "./PickerUtilize";
199
+ export { default as Switch } from "./Switch";
200
+ export { default as SnackBarContainer } from "./SnackBarContainer";
201
+ export { default as ConnectedReactPortal } from "./ConnectedReactPortal";
202
+ export { Typography } from "./Typography";
@@ -1,5 +1,10 @@
1
- import{RELOAD_APP}from"../constants";/**
1
+ import { RELOAD_APP } from "../constants";
2
+
3
+ /**
2
4
  * Creates the RELOAD_APP Redux action object that's supposed to be dispatched
3
5
  * when the app is supposed to be reloaded.
4
6
  * @returns {Object} The Redux action object
5
- */export var reloadApp=function reloadApp(){return{type:RELOAD_APP};};
7
+ */
8
+ export const reloadApp = () => ({
9
+ type: RELOAD_APP
10
+ });
@@ -1,4 +1,6 @@
1
- import{APP_PERMISSION_STATUS_RECEIVED}from"../constants/actionTypes";/**
1
+ import { APP_PERMISSION_STATUS_RECEIVED } from "../constants/actionTypes";
2
+
3
+ /**
2
4
  * Creates the APP_PERMISSION_STATUS_RECEIVED Redux action object that's supposed to be dispatched
3
5
  * when a permission status was requested from the app.
4
6
  * @param {Object} params Action params
@@ -6,4 +8,14 @@ import{APP_PERMISSION_STATUS_RECEIVED}from"../constants/actionTypes";/**
6
8
  * @param {string} params.status The new status
7
9
  * @param {Object} [params.options={}] Extended options for the permission
8
10
  * @returns {Object} The Redux action object
9
- */export var appPermissionStatusReceived=function appPermissionStatusReceived(_ref){var permissionId=_ref.permissionId,status=_ref.status,_ref$options=_ref.options,options=_ref$options===void 0?{}:_ref$options;return{type:APP_PERMISSION_STATUS_RECEIVED,permissionId:permissionId,status:status,options:options};};
11
+ */
12
+ export const appPermissionStatusReceived = ({
13
+ permissionId,
14
+ status,
15
+ options = {}
16
+ }) => ({
17
+ type: APP_PERMISSION_STATUS_RECEIVED,
18
+ permissionId,
19
+ status,
20
+ options
21
+ });
@@ -1 +1,5 @@
1
- export{receiveShopSettings,errorShopSettings}from"./shopSettings";export{receiveMerchantSettings}from"./merchantSettings";export*from"./app";export*from"./appPermissions";export*from"./optIns";
1
+ export { receiveShopSettings, errorShopSettings } from "./shopSettings";
2
+ export { receiveMerchantSettings } from "./merchantSettings";
3
+ export * from "./app";
4
+ export * from "./appPermissions";
5
+ export * from "./optIns";
@@ -1,5 +1,11 @@
1
- import{RECEIVE_MERCHANT_SETTINGS}from"../constants";/**
1
+ import { RECEIVE_MERCHANT_SETTINGS } from "../constants";
2
+
3
+ /**
2
4
  * Creates the dispatched RECEIVE_MERCHANT_SETTINGS action object.
3
5
  * @param {Array} settings A list of shop settings.
4
6
  * @returns {Object} The dispatched action object.
5
- */export var receiveMerchantSettings=function receiveMerchantSettings(settings){return{type:RECEIVE_MERCHANT_SETTINGS,settings:settings};};
7
+ */
8
+ export const receiveMerchantSettings = settings => ({
9
+ type: RECEIVE_MERCHANT_SETTINGS,
10
+ settings
11
+ });
@@ -1,17 +1,35 @@
1
- function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}import{SOFT_OPT_IN_SHOWN,SOFT_OPT_IN_SELECTED,HARD_OPT_IN_SHOWN,HARD_OPT_IN_SELECTED,PERMISSION_STATUS_DENIED,PERMISSION_STATUS_GRANTED,PERMISSION_STATUS_NOT_DETERMINED}from'@shopgate/engage/core/constants';/**
1
+ import { SOFT_OPT_IN_SHOWN, SOFT_OPT_IN_SELECTED, HARD_OPT_IN_SHOWN, HARD_OPT_IN_SELECTED, PERMISSION_STATUS_DENIED, PERMISSION_STATUS_GRANTED, PERMISSION_STATUS_NOT_DETERMINED } from '@shopgate/engage/core/constants';
2
+
3
+ /**
2
4
  * @typedef {Object} OptInMeta
3
5
  * @property {string} permission Permission type the event is dispatched for
4
- */ /**
6
+ */
7
+
8
+ /**
5
9
  * Sanitizes the meta object of opt in actions
6
10
  * @param {OptInMeta} meta The original meta object
7
11
  * @returns {Object} The sanitized meta object
8
- */var sanitizeMeta=function sanitizeMeta(){var meta=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return _extends({permission:'other'},meta);};/**
12
+ */
13
+ const sanitizeMeta = (meta = {}) => ({
14
+ permission: 'other',
15
+ ...meta
16
+ });
17
+
18
+ /**
9
19
  * Creates the SOFT_OPT_IN_SHOWN Redux action object that's supposed to be dispatched when a
10
20
  * soft opt-in (e.g. push or tracking) was shown.
11
21
  * @param {Object} params Action params
12
22
  * @param {OptInMeta} params.meta Meta data for the action
13
23
  * @returns {Object} The Redux action object
14
- */export var softOptInShown=function softOptInShown(){var _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},meta=_ref.meta;return{type:SOFT_OPT_IN_SHOWN,meta:sanitizeMeta(meta)};};/**
24
+ */
25
+ export const softOptInShown = ({
26
+ meta
27
+ } = {}) => ({
28
+ type: SOFT_OPT_IN_SHOWN,
29
+ meta: sanitizeMeta(meta)
30
+ });
31
+
32
+ /**
15
33
  * Creates the SOFT_OPT_IN_SELECTED Redux action object that's supposed to be dispatched when a
16
34
  * a decision inside a soft opt-in (e.g. push or tracking) was taken.
17
35
  * @param {Object} params Action params
@@ -19,14 +37,34 @@ function _extends(){_extends=Object.assign||function(target){for(var i=1;i<argum
19
37
  * User selection
20
38
  * @param {OptInMeta} params.meta Meta data for the action
21
39
  * @returns {Object} The Redux action object
22
- */export var softOptInSelected=function softOptInSelected(_ref2){var selection=_ref2.selection,meta=_ref2.meta;return{type:SOFT_OPT_IN_SELECTED,selection:selection,meta:sanitizeMeta(meta)};};/**
40
+ */
41
+ export const softOptInSelected = ({
42
+ selection,
43
+ meta
44
+ }) => ({
45
+ type: SOFT_OPT_IN_SELECTED,
46
+ selection,
47
+ meta: sanitizeMeta(meta)
48
+ });
49
+
50
+ /**
23
51
  * Creates the HARD_OPT_IN_SHOWN Redux action object that's supposed to be dispatched when a
24
52
  * hard opt-in (native permission dialog) was shown.
25
53
  * @param {Object} params Action params
26
54
  * @param {string} params.permissionId Permission id the action was dispatched for
27
55
  * @param {OptInMeta} params.meta Meta data for the action
28
56
  * @returns {Object} The Redux action object
29
- */export var hardOptInShown=function hardOptInShown(_ref3){var permissionId=_ref3.permissionId,meta=_ref3.meta;return{type:HARD_OPT_IN_SHOWN,permissionId:permissionId,meta:sanitizeMeta(meta)};};/**
57
+ */
58
+ export const hardOptInShown = ({
59
+ permissionId,
60
+ meta
61
+ }) => ({
62
+ type: HARD_OPT_IN_SHOWN,
63
+ permissionId,
64
+ meta: sanitizeMeta(meta)
65
+ });
66
+
67
+ /**
30
68
  * Creates the HARD_OPT_IN_SELECTED Redux action object that's supposed to be dispatched when a
31
69
  * a decision inside a hard opt-in (native permission dialog) was taken.
32
70
  * @param {Object} params Action params
@@ -34,4 +72,30 @@ function _extends(){_extends=Object.assign||function(target){for(var i=1;i<argum
34
72
  * @param {string} params.status Permission status
35
73
  * @param {OptInMeta} params.meta Meta data for the action
36
74
  * @returns {Object} The Redux action object
37
- */export var hardOptInSelected=function hardOptInSelected(_ref4){var permissionId=_ref4.permissionId,status=_ref4.status,meta=_ref4.meta;var selection='other';switch(status){case PERMISSION_STATUS_GRANTED:selection='approved';break;case PERMISSION_STATUS_DENIED:selection='denied';break;case PERMISSION_STATUS_NOT_DETERMINED:selection='later';break;default:break;}return{type:HARD_OPT_IN_SELECTED,permissionId:permissionId,selection:selection,meta:sanitizeMeta(meta)};};
75
+ */
76
+ export const hardOptInSelected = ({
77
+ permissionId,
78
+ status,
79
+ meta
80
+ }) => {
81
+ let selection = 'other';
82
+ switch (status) {
83
+ case PERMISSION_STATUS_GRANTED:
84
+ selection = 'approved';
85
+ break;
86
+ case PERMISSION_STATUS_DENIED:
87
+ selection = 'denied';
88
+ break;
89
+ case PERMISSION_STATUS_NOT_DETERMINED:
90
+ selection = 'later';
91
+ break;
92
+ default:
93
+ break;
94
+ }
95
+ return {
96
+ type: HARD_OPT_IN_SELECTED,
97
+ permissionId,
98
+ selection,
99
+ meta: sanitizeMeta(meta)
100
+ };
101
+ };
@@ -1,9 +1,21 @@
1
- import{RECEIVE_SHOP_SETTINGS,ERROR_SHOP_SETTINGS}from"../constants";/**
1
+ import { RECEIVE_SHOP_SETTINGS, ERROR_SHOP_SETTINGS } from "../constants";
2
+
3
+ /**
2
4
  * Creates the dispatched RECEIVE_SHOP_SETTINGS action object.
3
5
  * @param {Array} settings A list of shop settings.
4
6
  * @returns {Object} The dispatched action object.
5
- */export var receiveShopSettings=function receiveShopSettings(settings){return{type:RECEIVE_SHOP_SETTINGS,settings:settings};};/**
7
+ */
8
+ export const receiveShopSettings = settings => ({
9
+ type: RECEIVE_SHOP_SETTINGS,
10
+ settings
11
+ });
12
+
13
+ /**
6
14
  * Creates the dispatched ERROR_SHOP_SETTINGS action object.
7
15
  * @param {Object} error An error object.
8
16
  * @returns {Object} The dispatched action object.
9
- */export var errorShopSettings=function errorShopSettings(error){return{type:ERROR_SHOP_SETTINGS,error:error};};
17
+ */
18
+ export const errorShopSettings = error => ({
19
+ type: ERROR_SHOP_SETTINGS,
20
+ error
21
+ });
@@ -1,4 +1,9 @@
1
- import _regeneratorRuntime from"@babel/runtime/regenerator";function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}import{hasWebBridge,hasSGJavaScriptBridge}from'@shopgate/engage/core/helpers';import{GEOLOCATION_ERROR_DENIED}from'@shopgate/engage/core/constants';import grantGeolocationPermissions from"./grantGeolocationPermissions";import GeolocationRequest from"../classes/GeolocationRequest";/**
1
+ import { hasWebBridge, hasSGJavaScriptBridge } from '@shopgate/engage/core/helpers';
2
+ import { GEOLOCATION_ERROR_DENIED } from '@shopgate/engage/core/constants';
3
+ import grantGeolocationPermissions from "./grantGeolocationPermissions";
4
+ import GeolocationRequest from "../classes/GeolocationRequest";
5
+
6
+ /**
2
7
  * Determines the geolocation of the user. When not geolocation permissions are granted yet,
3
8
  * the user will be prompted to grant access.
4
9
  * @param {Object} options Action options.
@@ -11,4 +16,21 @@ import _regeneratorRuntime from"@babel/runtime/regenerator";function _typeof(obj
11
16
  * @param {string} options.modal.dismiss Label for the dismiss button.
12
17
  * @param {Object} options.modal.params Additional parameters for i18n strings.
13
18
  * @return { Function } A redux thunk.
14
- */var getGeolocation=function getGeolocation(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return(/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(dispatch){var granted,error;return _regeneratorRuntime.wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return dispatch(grantGeolocationPermissions(_extends({resolveWithData:true},options)));case 2:granted=_context.sent;if(!(_typeof(granted)==='object')){_context.next=5;break;}return _context.abrupt("return",Promise.resolve(granted));case 5:if(granted){_context.next=9;break;}error=new Error('Geolocation permissions not granted.');error.code=GEOLOCATION_ERROR_DENIED;throw error;case 9:return _context.abrupt("return",new GeolocationRequest(!hasSGJavaScriptBridge()||hasWebBridge()).dispatch());case 10:case"end":return _context.stop();}},_callee);}));return function(_x){return _ref.apply(this,arguments);};}());};export default getGeolocation;
19
+ */
20
+ const getGeolocation = (options = {}) => async dispatch => {
21
+ const granted = await dispatch(grantGeolocationPermissions({
22
+ resolveWithData: true,
23
+ ...options
24
+ }));
25
+ if (typeof granted === 'object') {
26
+ // Other than the app, within browsers we might already have a geolocation.
27
+ return Promise.resolve(granted);
28
+ }
29
+ if (!granted) {
30
+ const error = new Error('Geolocation permissions not granted.');
31
+ error.code = GEOLOCATION_ERROR_DENIED;
32
+ throw error;
33
+ }
34
+ return new GeolocationRequest(!hasSGJavaScriptBridge() || hasWebBridge()).dispatch();
35
+ };
36
+ export default getGeolocation;
@@ -1,8 +1,21 @@
1
- import{PERMISSION_ID_APP_TRACKING_TRANSPARENCY}from'@shopgate/engage/core/constants';import grantPermissions from"./grantPermissions";/**
1
+ import { PERMISSION_ID_APP_TRACKING_TRANSPARENCY } from '@shopgate/engage/core/constants';
2
+ import grantPermissions from "./grantPermissions";
3
+
4
+ /**
2
5
  * Determines the current state of the app tracking transparency permission.
3
6
  * If not already happened, the user will be prompted to grant permissions.
4
7
  * The action returns a promise which resolves with a boolean value, that indicates the state.
5
8
  * @param {Object} options Action options.
6
9
  * @param {Object} [options.meta={}] Additional meta data used for opt-in tracking actions
7
10
  * @return { Function } A redux thunk.
8
- */var grantAppTrackingTransparencyPermission=function grantAppTrackingTransparencyPermission(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function(dispatch){var _options$meta=options.meta,meta=_options$meta===void 0?{}:_options$meta;return dispatch(grantPermissions({permissionId:PERMISSION_ID_APP_TRACKING_TRANSPARENCY,meta:meta}));};};export default grantAppTrackingTransparencyPermission;
11
+ */
12
+ const grantAppTrackingTransparencyPermission = (options = {}) => dispatch => {
13
+ const {
14
+ meta = {}
15
+ } = options;
16
+ return dispatch(grantPermissions({
17
+ permissionId: PERMISSION_ID_APP_TRACKING_TRANSPARENCY,
18
+ meta
19
+ }));
20
+ };
21
+ export default grantAppTrackingTransparencyPermission;
@@ -1,4 +1,7 @@
1
- function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}import{PERMISSION_ID_CAMERA}from'@shopgate/engage/core/constants';import grantPermissions from"./grantPermissions";/**
1
+ import { PERMISSION_ID_CAMERA } from '@shopgate/engage/core/constants';
2
+ import grantPermissions from "./grantPermissions";
3
+
4
+ /**
2
5
  * Determines the current state of the camera permissions.
3
6
  * If not already happened, the user will be prompted to grant permissions.
4
7
  * The action returns a promise which resolves with a boolean value, that indicates the state.
@@ -12,4 +15,22 @@ function _extends(){_extends=Object.assign||function(target){for(var i=1;i<argum
12
15
  * @param {string} options.modal.dismiss Label for the dismiss button.
13
16
  * @param {Object} options.modal.params Additional parameters for i18n strings.
14
17
  * @return { Function } A redux thunk.
15
- */var grantCameraPermissions=function grantCameraPermissions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function(dispatch){var _options$useSettingsM=options.useSettingsModal,useSettingsModal=_options$useSettingsM===void 0?false:_options$useSettingsM,_options$modal=options.modal,modal=_options$modal===void 0?{}:_options$modal;return dispatch(grantPermissions({permissionId:PERMISSION_ID_CAMERA,useSettingsModal:useSettingsModal,modal:_extends({title:null,message:'permissions.access_denied.camera_message',confirm:'permissions.access_denied.settings_button',dismiss:'common.close'},modal)}));};};export default grantCameraPermissions;
18
+ */
19
+ const grantCameraPermissions = (options = {}) => dispatch => {
20
+ const {
21
+ useSettingsModal = false,
22
+ modal = {}
23
+ } = options;
24
+ return dispatch(grantPermissions({
25
+ permissionId: PERMISSION_ID_CAMERA,
26
+ useSettingsModal,
27
+ modal: {
28
+ title: null,
29
+ message: 'permissions.access_denied.camera_message',
30
+ confirm: 'permissions.access_denied.settings_button',
31
+ dismiss: 'common.close',
32
+ ...modal
33
+ }
34
+ }));
35
+ };
36
+ export default grantCameraPermissions;
@@ -1,4 +1,8 @@
1
- function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}import{PERMISSION_ID_LOCATION}from'@shopgate/engage/core/constants';import{hasWebBridge}from'@shopgate/engage/core';import grantPermissions from"./grantPermissions";/**
1
+ import { PERMISSION_ID_LOCATION } from '@shopgate/engage/core/constants';
2
+ import { hasWebBridge } from '@shopgate/engage/core';
3
+ import grantPermissions from "./grantPermissions";
4
+
5
+ /**
2
6
  * Determines the current state of the geolocation permissions.
3
7
  * If not already happened, the user will be prompted to grant permissions.
4
8
  * The action returns a promise which resolves with a boolean value, that indicates the state.
@@ -16,4 +20,26 @@ function _extends(){_extends=Object.assign||function(target){for(var i=1;i<argum
16
20
  * @param {string} options.modal.dismiss Label for the dismiss button.
17
21
  * @param {Object} options.modal.params Additional parameters for i18n strings.
18
22
  * @return { Function } A redux thunk.
19
- */var grantGeolocationPermissions=function grantGeolocationPermissions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function(dispatch){var _options$useSettingsM=options.useSettingsModal,useSettingsModal=_options$useSettingsM===void 0?false:_options$useSettingsM,_options$modal=options.modal,modal=_options$modal===void 0?{}:_options$modal,_options$requestPermi=options.requestPermissions,requestPermissions=_options$requestPermi===void 0?true:_options$requestPermi,_options$resolveWithD=options.resolveWithData,resolveWithData=_options$resolveWithD===void 0?false:_options$resolveWithD;return dispatch(grantPermissions({permissionId:PERMISSION_ID_LOCATION,requestPermissions:requestPermissions,resolveWithData:resolveWithData,useSettingsModal:useSettingsModal,modal:_extends({title:null,message:'permissions.access_denied.geolocation_message',confirm:!hasWebBridge()?'permissions.access_denied.settings_button':null,dismiss:'modal.dismiss'},modal)}));};};export default grantGeolocationPermissions;
23
+ */
24
+ const grantGeolocationPermissions = (options = {}) => dispatch => {
25
+ const {
26
+ useSettingsModal = false,
27
+ modal = {},
28
+ requestPermissions = true,
29
+ resolveWithData = false
30
+ } = options;
31
+ return dispatch(grantPermissions({
32
+ permissionId: PERMISSION_ID_LOCATION,
33
+ requestPermissions,
34
+ resolveWithData,
35
+ useSettingsModal,
36
+ modal: {
37
+ title: null,
38
+ message: 'permissions.access_denied.geolocation_message',
39
+ confirm: !hasWebBridge() ? 'permissions.access_denied.settings_button' : null,
40
+ dismiss: 'modal.dismiss',
41
+ ...modal
42
+ }
43
+ }));
44
+ };
45
+ export default grantGeolocationPermissions;