@dropins/storefront-cart 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/api/addProductsToCart/graphql/AddProductsToCartMutation.d.ts +16 -0
  2. package/api/addProductsToCart/index.d.ts +16 -0
  3. package/api/createEmptyCart/createEmptyCart.d.ts +16 -0
  4. package/api/createEmptyCart/graphql/CreateCartMutation.d.ts +16 -0
  5. package/api/createEmptyCart/index.d.ts +16 -0
  6. package/api/fetch-graphql/fetch-graphql.d.ts +16 -0
  7. package/api/fetch-graphql/index.d.ts +16 -0
  8. package/api/getCartData/graphql/CartQuery.d.ts +16 -0
  9. package/api/getCartData/index.d.ts +16 -0
  10. package/api/getEstimateShipping/graphql/countriesAndRegionsQueries.d.ts +16 -0
  11. package/api/getEstimateShipping/graphql/estimateShippingMethodsMutation.d.ts +16 -0
  12. package/api/getEstimateShipping/index.d.ts +16 -0
  13. package/api/getEstimatedTotals/graphql/GetEstimatedTotalsMutation.d.ts +16 -0
  14. package/api/getEstimatedTotals/index.d.ts +16 -0
  15. package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +16 -0
  16. package/api/getStoreConfig/index.d.ts +16 -0
  17. package/api/graphql/CartFragment.d.ts +16 -0
  18. package/api/index.d.ts +16 -0
  19. package/api/initialize/index.d.ts +16 -0
  20. package/api/initializeCart/graphql/MergeCartsMutation.d.ts +16 -0
  21. package/api/initializeCart/index.d.ts +16 -0
  22. package/api/refreshCart/index.d.ts +16 -0
  23. package/api/resetCart/index.d.ts +16 -0
  24. package/api/updateProductsFromCart/graphql/UpdateProductsMutation.d.ts +16 -0
  25. package/api/updateProductsFromCart/index.d.ts +16 -0
  26. package/api.js +3 -3
  27. package/chunks/MiniCart.js +1 -1
  28. package/chunks/OrderSummary.js +1 -1
  29. package/chunks/acdl.js +1 -0
  30. package/chunks/updateProductsFromCart.js +4 -4
  31. package/components/Cart/index.d.ts +16 -0
  32. package/components/CartSummaryGrid/index.d.ts +16 -0
  33. package/components/CartSummaryList/index.d.ts +16 -0
  34. package/components/EmptyCart/index.d.ts +16 -0
  35. package/components/EstimateShipping/index.d.ts +16 -0
  36. package/components/MiniCart/index.d.ts +16 -0
  37. package/components/OrderSummary/index.d.ts +16 -0
  38. package/components/index.d.ts +16 -0
  39. package/containers/Cart/index.d.ts +16 -0
  40. package/containers/Cart.js +1 -1
  41. package/containers/CartSummaryGrid/index.d.ts +16 -0
  42. package/containers/CartSummaryList/index.d.ts +16 -0
  43. package/containers/CartSummaryList.js +1 -1
  44. package/containers/EmptyCart/index.d.ts +16 -0
  45. package/containers/EstimateShipping/index.d.ts +16 -0
  46. package/containers/MiniCart/index.d.ts +16 -0
  47. package/containers/MiniCart.js +1 -1
  48. package/containers/OrderSummary/index.d.ts +16 -0
  49. package/containers/OrderSummary.js +1 -1
  50. package/containers/index.d.ts +16 -0
  51. package/data/models/acdl-models.d.ts +16 -0
  52. package/data/models/cart-model.d.ts +16 -0
  53. package/data/models/index.d.ts +16 -0
  54. package/data/models/store-models.d.ts +16 -0
  55. package/data/transforms/__fixtures__/estimatedTotalsData.d.ts +16 -0
  56. package/data/transforms/__fixtures__/productTypesData.d.ts +16 -0
  57. package/data/transforms/index.d.ts +16 -0
  58. package/hooks/index.d.ts +16 -0
  59. package/hooks/useEstimatedShipping.d.ts +16 -0
  60. package/hooks/useEstimatedTotals.d.ts +16 -0
  61. package/lib/acdl.d.ts +2 -0
  62. package/lib/cookies.d.ts +16 -0
  63. package/lib/fetch-error.d.ts +16 -0
  64. package/package.json +1 -1
  65. package/render/index.d.ts +16 -0
package/hooks/index.d.ts CHANGED
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './useEstimatedTotals';
2
18
  export * from './useEstimatedShipping';
3
19
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare const useEstimatedShipping: () => {
2
18
  loading: boolean;
3
19
  regionsLoading: boolean;
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare const useEstimatedTotals: () => {
2
18
  handleEstimateTotals: (formValues: {
3
19
  shippingCountry: string;
package/lib/acdl.d.ts CHANGED
@@ -16,6 +16,7 @@ export declare const events: {
16
16
  ADD_TO_CART: string;
17
17
  REMOVE_FROM_CART: string;
18
18
  SHOPPING_CART_VIEW: string;
19
+ INITIATE_CHECKOUT: string;
19
20
  };
20
21
  export declare function getAdobeDataLayer(): any;
21
22
  export declare function publishOpenCartEvent(cart: CartModel, addedItems: Item[], locale: string): void;
@@ -23,4 +24,5 @@ export declare function publishShoppingCartViewEvent(cart: CartModel, locale: st
23
24
  export declare function publishCartUpdateEvents(cart: CartModel, updatedItems: {
24
25
  uid: string;
25
26
  }[], locale: string): void;
27
+ export declare function publishInitiateCheckoutEvent(cart: CartModel, locale?: string): void;
26
28
  //# sourceMappingURL=acdl.d.ts.map
package/lib/cookies.d.ts CHANGED
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export declare function getCookie(cookieName: string): string | null;
2
18
  //# sourceMappingURL=cookies.d.ts.map
@@ -1,3 +1,19 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  /** Actions */
2
18
  export declare const handleFetchError: (errors: Array<{
3
19
  message: string;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/storefront-cart", "version": "0.5.0", "@dropins/tools": "~0.29.0"}
1
+ {"name": "@dropins/storefront-cart", "version": "0.6.0", "@dropins/tools": "~0.30.0"}
package/render/index.d.ts CHANGED
@@ -1,2 +1,18 @@
1
+ /********************************************************************
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
16
+ *******************************************************************/
1
17
  export * from './render';
2
18
  //# sourceMappingURL=index.d.ts.map