@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.
- package/api/addProductsToCart/graphql/AddProductsToCartMutation.d.ts +16 -0
- package/api/addProductsToCart/index.d.ts +16 -0
- package/api/createEmptyCart/createEmptyCart.d.ts +16 -0
- package/api/createEmptyCart/graphql/CreateCartMutation.d.ts +16 -0
- package/api/createEmptyCart/index.d.ts +16 -0
- package/api/fetch-graphql/fetch-graphql.d.ts +16 -0
- package/api/fetch-graphql/index.d.ts +16 -0
- package/api/getCartData/graphql/CartQuery.d.ts +16 -0
- package/api/getCartData/index.d.ts +16 -0
- package/api/getEstimateShipping/graphql/countriesAndRegionsQueries.d.ts +16 -0
- package/api/getEstimateShipping/graphql/estimateShippingMethodsMutation.d.ts +16 -0
- package/api/getEstimateShipping/index.d.ts +16 -0
- package/api/getEstimatedTotals/graphql/GetEstimatedTotalsMutation.d.ts +16 -0
- package/api/getEstimatedTotals/index.d.ts +16 -0
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +16 -0
- package/api/getStoreConfig/index.d.ts +16 -0
- package/api/graphql/CartFragment.d.ts +16 -0
- package/api/index.d.ts +16 -0
- package/api/initialize/index.d.ts +16 -0
- package/api/initializeCart/graphql/MergeCartsMutation.d.ts +16 -0
- package/api/initializeCart/index.d.ts +16 -0
- package/api/refreshCart/index.d.ts +16 -0
- package/api/resetCart/index.d.ts +16 -0
- package/api/updateProductsFromCart/graphql/UpdateProductsMutation.d.ts +16 -0
- package/api/updateProductsFromCart/index.d.ts +16 -0
- package/api.js +3 -3
- package/chunks/MiniCart.js +1 -1
- package/chunks/OrderSummary.js +1 -1
- package/chunks/acdl.js +1 -0
- package/chunks/updateProductsFromCart.js +4 -4
- package/components/Cart/index.d.ts +16 -0
- package/components/CartSummaryGrid/index.d.ts +16 -0
- package/components/CartSummaryList/index.d.ts +16 -0
- package/components/EmptyCart/index.d.ts +16 -0
- package/components/EstimateShipping/index.d.ts +16 -0
- package/components/MiniCart/index.d.ts +16 -0
- package/components/OrderSummary/index.d.ts +16 -0
- package/components/index.d.ts +16 -0
- package/containers/Cart/index.d.ts +16 -0
- package/containers/Cart.js +1 -1
- package/containers/CartSummaryGrid/index.d.ts +16 -0
- package/containers/CartSummaryList/index.d.ts +16 -0
- package/containers/CartSummaryList.js +1 -1
- package/containers/EmptyCart/index.d.ts +16 -0
- package/containers/EstimateShipping/index.d.ts +16 -0
- package/containers/MiniCart/index.d.ts +16 -0
- package/containers/MiniCart.js +1 -1
- package/containers/OrderSummary/index.d.ts +16 -0
- package/containers/OrderSummary.js +1 -1
- package/containers/index.d.ts +16 -0
- package/data/models/acdl-models.d.ts +16 -0
- package/data/models/cart-model.d.ts +16 -0
- package/data/models/index.d.ts +16 -0
- package/data/models/store-models.d.ts +16 -0
- package/data/transforms/__fixtures__/estimatedTotalsData.d.ts +16 -0
- package/data/transforms/__fixtures__/productTypesData.d.ts +16 -0
- package/data/transforms/index.d.ts +16 -0
- package/hooks/index.d.ts +16 -0
- package/hooks/useEstimatedShipping.d.ts +16 -0
- package/hooks/useEstimatedTotals.d.ts +16 -0
- package/lib/acdl.d.ts +2 -0
- package/lib/cookies.d.ts +16 -0
- package/lib/fetch-error.d.ts +16 -0
- package/package.json +1 -1
- 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
|
package/lib/fetch-error.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
|
/** 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.
|
|
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
|