@dropins/storefront-order 1.0.0 → 1.0.1-beta2
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/cancelOrder/graphql/cancelOrderMutation.d.ts +15 -0
- package/api/confirmCancelOrder/confirmCancelOrder.d.ts +3 -15
- package/api/confirmGuestReturn/confirmGuestReturn.d.ts +3 -1
- package/api/confirmGuestReturn/graphql/confirmGuestReturn.graphql.d.ts +15 -0
- package/api/confirmGuestReturn/index.d.ts +15 -0
- package/api/fetch-graphql/fetch-graphql.d.ts +15 -0
- package/api/fetch-graphql/index.d.ts +15 -0
- package/api/fragments.d.ts +15 -0
- package/api/getAttributesForm/graphql/getAttributesForm.graphql.d.ts +15 -0
- package/api/getAttributesForm/index.d.ts +15 -0
- package/api/getAttributesList/graphql/getAttributesList.graphql.d.ts +15 -0
- package/api/getAttributesList/index.d.ts +15 -0
- package/api/getCustomer/graphql/getCustomer.graphql.d.ts +15 -0
- package/api/getCustomer/index.d.ts +15 -0
- package/api/getCustomerOrdersReturn/graphql/getCustomerOrdersReturn.graphql.d.ts +15 -0
- package/api/getCustomerOrdersReturn/index.d.ts +15 -0
- package/api/getGuestOrder/graphql/getGuestOrder.graphql.d.ts +15 -0
- package/api/getGuestOrder/graphql/index.d.ts +15 -0
- package/api/getGuestOrder/index.d.ts +15 -0
- package/api/getOrderDetailsById/graphql/orderByNumber.graphql.d.ts +15 -0
- package/api/getOrderDetailsById/index.d.ts +15 -0
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +15 -0
- package/api/getStoreConfig/index.d.ts +15 -0
- package/api/graphql/CustomerAddressFragment.graphql.d.ts +15 -0
- package/api/graphql/GurestOrderFragment.graphql.d.ts +15 -0
- package/api/graphql/OrderItemsFragment.graphql.d.ts +15 -0
- package/api/graphql/OrderSummaryFragment.graphql.d.ts +15 -0
- package/api/graphql/RequestReturnOrderFragment.graphql.d.ts +15 -0
- package/api/graphql/ReturnsFragment.graphql.d.ts +15 -0
- package/api/guestOrderByToken/graphql/guestOrderByToken.graphql.d.ts +15 -0
- package/api/guestOrderByToken/index.d.ts +15 -0
- package/api/helpers/initializeOrderDetails.d.ts +2 -2
- package/api/index.d.ts +15 -0
- package/api/initialize/index.d.ts +15 -0
- package/api/initialize/initialize.d.ts +4 -2
- package/api/placeOrder/graphql/placeOrderMutation.d.ts +15 -0
- package/api/placeOrder/index.d.ts +15 -0
- package/api/reorderItems/graphql/reorderItems.graphql.d.ts +15 -0
- package/api/reorderItems/index.d.ts +15 -0
- package/api/requestGuestOrderCancel/graphql/requestGuestOrderCancelMutation.d.ts +15 -0
- package/api/requestGuestOrderCancel/index.d.ts +15 -0
- package/api/requestGuestOrderCancel/requestGuestOrderCancel.d.ts +15 -0
- package/api/requestGuestReturn/graphql/requestGuestReturn.graphql.d.ts +15 -0
- package/api/requestGuestReturn/index.d.ts +15 -0
- package/api/requestReturn/graphql/requestReturn.graphql.d.ts +15 -0
- package/api/requestReturn/index.d.ts +15 -0
- package/api.js +1 -1
- package/chunks/CartSummaryItem.js +1 -1
- package/chunks/OrderCancelForm.js +1 -1
- package/chunks/OrderLoaders.js +1 -1
- package/chunks/ReturnsListContent.js +2 -2
- package/chunks/ShippingStatusCard.js +1 -1
- package/chunks/capitalizeFirst.js +1 -1
- package/chunks/confirmCancelOrder.js +1 -1
- package/chunks/fetch-graphql.js +1 -1
- package/chunks/formatDateToLocale.js +1 -1
- package/chunks/getAttributesForm.js +1 -1
- package/chunks/getCustomerOrdersReturn.js +1 -1
- package/chunks/getFormValues.js +1 -1
- package/chunks/getGuestOrder.js +1 -1
- package/chunks/getQueryParam.js +1 -1
- package/chunks/getStoreConfig.js +1 -1
- package/chunks/initialize.js +12 -12
- package/chunks/network-error.js +2 -2
- package/chunks/redirectTo.js +1 -1
- package/chunks/requestGuestOrderCancel.js +1 -1
- package/chunks/requestGuestReturn.js +2 -2
- package/chunks/returnOrdersHelper.js +1 -1
- package/chunks/setTaxStatus.js +1 -1
- package/chunks/transform-attributes-form.js +2 -2
- package/chunks/useGetStoreConfig.js +1 -1
- package/chunks/useIsMobile.js +1 -1
- package/components/CustomerDetailsContent/index.d.ts +15 -0
- package/components/EmptyList/index.d.ts +15 -0
- package/components/Form/FormInputs/index.d.ts +15 -0
- package/components/Form/index.d.ts +15 -0
- package/components/OrderActions/index.d.ts +15 -0
- package/components/OrderCancel/index.d.ts +15 -0
- package/components/OrderCostSummaryContent/index.d.ts +15 -0
- package/components/OrderHeader/index.d.ts +15 -0
- package/components/OrderLoaders/index.d.ts +15 -0
- package/components/OrderProductListContent/index.d.ts +15 -0
- package/components/OrderSearchForm/index.d.ts +15 -0
- package/components/OrderStatusContent/index.d.ts +15 -0
- package/components/Reorder/index.d.ts +15 -0
- package/components/ReturnOrderMessage/index.d.ts +15 -0
- package/components/ReturnOrderProductList/index.d.ts +15 -0
- package/components/ReturnReasonForm/index.d.ts +15 -0
- package/components/ReturnsListContent/index.d.ts +15 -0
- package/components/ShippingStatusCard/index.d.ts +15 -0
- package/components/index.d.ts +15 -0
- package/configs/defaultAttributePreset.config.d.ts +15 -0
- package/configs/mock.config.d.ts +16 -0
- package/containers/CreateReturn/index.d.ts +15 -0
- package/containers/CreateReturn.js +1 -1
- package/containers/CustomerDetails/index.d.ts +15 -0
- package/containers/CustomerDetails.js +2 -2
- package/containers/OrderCancelForm/index.d.ts +15 -0
- package/containers/OrderCancelForm.js +1 -1
- package/containers/OrderCostSummary/index.d.ts +15 -0
- package/containers/OrderCostSummary.js +1 -1
- package/containers/OrderHeader/index.d.ts +15 -0
- package/containers/OrderHeader.js +2 -2
- package/containers/OrderProductList/index.d.ts +15 -0
- package/containers/OrderProductList.js +2 -2
- package/containers/OrderReturns/index.d.ts +15 -0
- package/containers/OrderReturns.js +1 -1
- package/containers/OrderSearch/index.d.ts +15 -0
- package/containers/OrderSearch.js +2 -2
- package/containers/OrderStatus/index.d.ts +15 -0
- package/containers/OrderStatus.js +2 -2
- package/containers/ReturnsList/index.d.ts +15 -0
- package/containers/ReturnsList.js +1 -1
- package/containers/ShippingStatus/index.d.ts +15 -0
- package/containers/ShippingStatus.js +1 -1
- package/containers/index.d.ts +15 -0
- package/data/models/acdl.d.ts +15 -0
- package/data/models/customer.d.ts +15 -0
- package/data/models/index.d.ts +15 -0
- package/data/models/order-details.d.ts +24 -2
- package/data/models/request-return.d.ts +15 -0
- package/data/models/store-config.d.ts +15 -0
- package/data/transforms/index.d.ts +15 -0
- package/data/transforms/transform-order-details.d.ts +2 -2
- package/fragments.js +1 -1
- package/hooks/containers/useOrderSearch.d.ts +1 -0
- package/hooks/index.d.ts +15 -0
- package/hooks/useIsMobile.d.ts +15 -0
- package/lib/capitalizeFirst.d.ts +15 -0
- package/lib/categorizeProducts.d.ts +18 -4
- package/lib/checkIsFunction.d.ts +15 -0
- package/lib/convertCase.d.ts +15 -0
- package/lib/fetch-error.d.ts +15 -0
- package/lib/formatDateToLocale.d.ts +15 -0
- package/lib/getFormValues.d.ts +15 -0
- package/lib/getQueryParam.d.ts +15 -0
- package/lib/network-error.d.ts +15 -0
- package/lib/redirectTo.d.ts +15 -0
- package/lib/removeQueryParams.d.ts +15 -0
- package/lib/returnOrdersHelper.d.ts +15 -0
- package/package.json +1 -1
- package/render/index.d.ts +15 -0
- package/render.js +1 -1
- package/types/api/getAttributesForm.types.d.ts +15 -0
- package/types/api/getAttributesList.types.d.ts +15 -0
- package/types/api/getCustomer.types.d.ts +15 -0
- package/types/api/getOrderDetails.types.d.ts +22 -1
- package/types/api/reorderItems.types.d.ts +15 -0
- package/types/api/requestReturn.types.d.ts +15 -0
- package/types/createReturn.types.d.ts +2 -2
- package/types/emptyList.types.d.ts +15 -0
- package/types/form.types.d.ts +15 -0
- package/types/index.d.ts +15 -0
- package/types/orderEmailActionHandler.types.d.ts +15 -0
package/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export * from './containers/useCreateReturn';
|
|
2
17
|
export * from './containers/useCustomerDetails';
|
|
3
18
|
export * from './containers/useOrderCostSummary';
|
package/hooks/useIsMobile.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare const useIsMobile: () => boolean;
|
|
2
17
|
//# sourceMappingURL=useIsMobile.d.ts.map
|
package/lib/capitalizeFirst.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare const capitalizeFirst: (str: string) => string;
|
|
2
17
|
//# sourceMappingURL=capitalizeFirst.d.ts.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { OrderDataModel } from '../data/models';
|
|
1
|
+
import { OrderDataModel, OrderItemModel } from '../data/models';
|
|
2
2
|
|
|
3
3
|
export declare const categorizeProducts: (order: OrderDataModel) => {
|
|
4
4
|
returnedList: {
|
|
5
5
|
totalQuantity: number;
|
|
6
|
+
productSalePrice: import('../types/index').MoneyProps;
|
|
7
|
+
status?: string | undefined;
|
|
6
8
|
currentReturnOrderQuantity?: number | undefined;
|
|
7
9
|
eligibleForReturn: boolean;
|
|
8
10
|
productSku?: string | undefined;
|
|
@@ -26,6 +28,18 @@ export declare const categorizeProducts: (order: OrderDataModel) => {
|
|
|
26
28
|
count: number;
|
|
27
29
|
result: string;
|
|
28
30
|
} | null;
|
|
31
|
+
prices: {
|
|
32
|
+
priceIncludingTax: import('../types/index').MoneyProps;
|
|
33
|
+
originalPrice: import('../types/index').MoneyProps;
|
|
34
|
+
originalPriceIncludingTax: import('../types/index').MoneyProps;
|
|
35
|
+
price: import('../types/index').MoneyProps;
|
|
36
|
+
discounts: [{
|
|
37
|
+
label: string;
|
|
38
|
+
amount: {
|
|
39
|
+
value: number;
|
|
40
|
+
};
|
|
41
|
+
}];
|
|
42
|
+
};
|
|
29
43
|
itemPrices: {
|
|
30
44
|
priceIncludingTax: import('../types/index').MoneyProps;
|
|
31
45
|
originalPrice: import('../types/index').MoneyProps;
|
|
@@ -56,11 +70,11 @@ export declare const categorizeProducts: (order: OrderDataModel) => {
|
|
|
56
70
|
quantityRefunded: number;
|
|
57
71
|
quantityReturned: number;
|
|
58
72
|
quantityShipped: number;
|
|
59
|
-
requestQuantity
|
|
73
|
+
requestQuantity?: number | undefined;
|
|
60
74
|
returnableQuantity?: number | undefined;
|
|
61
75
|
quantityReturnRequested: number;
|
|
62
76
|
}[];
|
|
63
|
-
canceledItems:
|
|
64
|
-
nonCanceledItems:
|
|
77
|
+
canceledItems: OrderItemModel[];
|
|
78
|
+
nonCanceledItems: OrderItemModel[];
|
|
65
79
|
};
|
|
66
80
|
//# sourceMappingURL=categorizeProducts.d.ts.map
|
package/lib/checkIsFunction.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare const checkIsFunction: (value: any) => value is Function;
|
|
2
17
|
//# sourceMappingURL=checkIsFunction.d.ts.map
|
package/lib/convertCase.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare const convertToCamelCase: (key: string) => string;
|
|
2
17
|
export declare const convertToSnakeCase: (key: string) => string;
|
|
3
18
|
export declare const convertKeysCase: (data: any, type: 'snakeCase' | 'camelCase', dictionary?: Record<string, string>) => any;
|
package/lib/fetch-error.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
/** Actions */
|
|
2
17
|
export declare const handleFetchError: (errors: Array<{
|
|
3
18
|
message: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
/**
|
|
2
17
|
* Formats a date string according to a specified locale and options.
|
|
3
18
|
* Returns "Invalid Date" if the input date string is invalid.
|
package/lib/getFormValues.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare const getFormValues: (form: HTMLFormElement) => any;
|
|
2
17
|
//# sourceMappingURL=getFormValues.d.ts.map
|
package/lib/getQueryParam.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare const getQueryParam: (param: string) => string;
|
|
2
17
|
//# sourceMappingURL=getQueryParam.d.ts.map
|
package/lib/network-error.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
/**
|
|
2
17
|
* A function which can be attached to fetchGraphQL to handle thrown errors in
|
|
3
18
|
* a generic way.
|
package/lib/redirectTo.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export type QueryParams = Record<string, string | number | boolean>;
|
|
2
17
|
export declare const redirectTo: (getUrl?: ((params?: any) => string) | undefined, queryParams?: QueryParams, functionParams?: any) => void;
|
|
3
18
|
//# sourceMappingURL=redirectTo.d.ts.map
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare const removeQueryParams: (params: string[]) => void;
|
|
2
17
|
//# sourceMappingURL=removeQueryParams.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
declare const returnStatus: {
|
|
2
17
|
readonly PENDING: "pending";
|
|
3
18
|
readonly AUTHORIZED: "authorized";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-order", "version": "1.0.
|
|
1
|
+
{"name": "@dropins/storefront-order", "version": "1.0.1-beta2", "@dropins/elsie": "~0.38.0", "license": "SEE LICENSE IN LICENSE.md"}
|
package/render/index.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export * from './render';
|
|
2
17
|
//# sourceMappingURL=index.d.ts.map
|
package/render.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Copyright
|
|
1
|
+
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
3
|
(function(n,e){try{if(typeof document<"u"){const r=document.createElement("style"),a=e.styleId;for(const t in e.attributes)r.setAttribute(t,e.attributes[t]);r.setAttribute("data-dropin",a),r.appendChild(document.createTextNode(n));const o=document.querySelector('style[data-dropin="sdk"]');if(o)o.after(r);else{const t=document.querySelector('link[rel="stylesheet"], style');t?t.before(r):document.head.append(r)}}}catch(r){console.error("dropin-styles (injectCodeFunction)",r)}})(`.dropin-button,.dropin-iconButton{border:0 none;cursor:pointer;white-space:normal}.dropin-button{border-radius:var(--shape-border-radius-3);font-size:var(--type-button-1-font);font-weight:var(--type-button-1-font);padding:var(--spacing-xsmall) var(--spacing-medium);display:flex;justify-content:center;align-items:center;text-align:left;word-wrap:break-word}.dropin-iconButton{height:var(--spacing-xbig);width:var(--spacing-xbig);padding:var(--spacing-xsmall)}.dropin-button:disabled,.dropin-iconButton:disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.dropin-button:not(:disabled),.dropin-iconButton:not(:disabled){cursor:pointer}.dropin-button:focus,.dropin-iconButton:focus{outline:none}.dropin-button:focus-visible,.dropin-iconButton:focus-visible{outline:var(--spacing-xxsmall) solid var(--color-button-focus)}.dropin-button--primary,a.dropin-button--primary,.dropin-iconButton--primary{border:none;background:var(--color-brand-500) 0 0% no-repeat padding-box;color:var(--color-neutral-50);text-align:left;margin-right:0}.dropin-iconButton--primary{border-radius:var(--spacing-xbig);min-height:var(--spacing-xbig);min-width:var(--spacing-xbig);padding:var(--spacing-xsmall)}.dropin-button--primary--disabled,a.dropin-button--primary--disabled,.dropin-iconButton--primary--disabled{background:var(--color-neutral-300) 0 0% no-repeat padding-box;color:var(--color-neutral-500);fill:var(--color-neutral-300);pointer-events:none;-webkit-user-select:none;user-select:none}.dropin-button--primary:hover,a.dropin-button--primary:hover,.dropin-iconButton--primary:hover,.dropin-button--primary:focus:hover,.dropin-iconButton--primary:focus:hover{background-color:var(--color-button-hover);text-decoration:none}.dropin-button--primary:focus,.dropin-iconButton--primary:focus{background-color:var(--color-brand-500)}.dropin-button--primary:hover:active,.dropin-iconButton--primary:hover:active{background-color:var(--color-button-active)}.dropin-button--secondary,a.dropin-button--secondary,.dropin-iconButton--secondary{border:var(--shape-border-width-2) solid var(--color-brand-500);background:none 0 0% no-repeat padding-box;color:var(--color-brand-500);padding-top:calc(var(--spacing-xsmall) - var(--shape-border-width-2));padding-left:calc(var(--spacing-medium) - var(--shape-border-width-2))}.dropin-iconButton--secondary{border-radius:var(--spacing-xbig);min-height:var(--spacing-xbig);min-width:var(--spacing-xbig);padding:var(--spacing-xsmall);padding-top:calc(var(--spacing-xsmall) - var(--shape-border-width-2));padding-left:calc(var(--spacing-xsmall) - var(--shape-border-width-2))}.dropin-button--secondary--disabled,a.dropin-button--secondary--disabled,.dropin-iconButton--secondary--disabled{border:var(--shape-border-width-2) solid var(--color-neutral-300);background:none 0 0% no-repeat padding-box;color:var(--color-neutral-500);fill:var(--color-neutral-300);pointer-events:none;-webkit-user-select:none;user-select:none}.dropin-button--secondary:hover,a.dropin-button--secondary:hover,.dropin-iconButton--secondary:hover{border:var(--shape-border-width-2) solid var(--color-button-hover);color:var(--color-button-hover);text-decoration:none}.dropin-button--secondary:active,.dropin-iconButton--secondary:active{border:var(--shape-border-width-2) solid var(--color-button-active);color:var(--color-button-active)}.dropin-button--tertiary,a.dropin-button--tertiary,.dropin-iconButton--tertiary{border:none;background:none 0 0% no-repeat padding-box;color:var(--color-brand-500)}.dropin-iconButton--tertiary{border:none;border-radius:var(--spacing-xbig);min-height:var(--spacing-xbig);min-width:var(--spacing-xbig);padding:var(--spacing-xsmall)}.dropin-button--tertiary--disabled,a.dropin-button--tertiary--disabled,.dropin-iconButton--tertiary--disabled{border:none;color:var(--color-neutral-500);pointer-events:none;-webkit-user-select:none;user-select:none}.dropin-button--tertiary:hover,a.dropin-button--tertiary:hover,.dropin-iconButton--tertiary:hover{color:var(--color-button-hover);text-decoration:none}.dropin-button--tertiary:active,.dropin-iconButton--tertiary:active{color:var(--color-button-active)}.dropin-button--tertiary:focus-visible,.dropin-iconButton--tertiary:focus-visible{-webkit-box-shadow:inset 0 0 0 2px var(--color-neutral-800);-moz-box-shadow:inset 0 0 0 2px var(--color-neutral-800);box-shadow:inset 0 0 0 2px var(--color-neutral-800)}.dropin-button--large{font:var(--type-button-1-font);letter-spacing:var(--type-button-1-letter-spacing)}.dropin-button--medium{font:var(--type-button-2-font);letter-spacing:var(--type-button-2-letter-spacing)}.dropin-button-icon{height:24px}.dropin-button--with-icon{column-gap:var(--spacing-xsmall);row-gap:var(--spacing-xsmall)}
|
|
4
4
|
.order-customer-details-content .dropin-card__content{gap:0}.order-customer-details-content__container{display:block;flex-direction:column}.order-customer-details-content__container-shipping_address,.order-customer-details-content__container-billing_address{margin:var(--spacing-medium) 0}@media (min-width: 768px){.order-customer-details-content__container{display:grid;grid-template-columns:auto;grid-template-rows:auto auto auto;grid-auto-flow:row}.order-customer-details-content__container-email{grid-area:1 / 1 / 2 / 2}.order-customer-details-content__container--no-margin p{margin-bottom:0}.order-customer-details-content__container-shipping_address{grid-area:2 / 1 / 3 / 2;margin:var(--spacing-medium) 0}.order-customer-details-content__container-billing_address,.order-customer-details-content__container-return-information{grid-area:2 / 2 / 3 / 3;margin:var(--spacing-medium) 0}.order-customer-details-content__container-billing_address--fullwidth{grid-area:2 / 1 / 3 / 3}.order-customer-details-content__container-shipping_methods{grid-area:3 / 1 / 4 / 2}.order-customer-details-content__container-payment_methods{grid-area:3 / 2 / 4 / 3}.order-customer-details-content__container-payment_methods--fullwidth{grid-area:3 / 1 / 4 / 3}}.order-customer-details-content__container-title{font:var(--type-body-1-strong-font);letter-spacing:var(--type-body-1-strong-letter-spacing);margin:0 0 var(--spacing-xsmall) 0}.order-customer-details-content__container p{color:var(--color-neutral-800);font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);margin-top:0}.order-customer-details-content__container-payment_methods p{display:grid;gap:0;grid-template-columns:auto 1fr}.order-customer-details-content__container-payment_methods p.order-customer-details-content__container-payment_methods--icon{gap:0 var(--spacing-xsmall)}.order-customer-details-content__container-description p{margin:0 var(--spacing-xsmall) 0 0;line-height:var(--spacing-big);padding:0}.order-customer-details-content__container-description p:nth-child(1),.order-customer-details-content__container-description p:nth-child(3),.order-customer-details-content__container-description p:nth-child(4),.order-customer-details-content__container-description p:nth-child(6){float:left}.order-customer-details-content__container-return-information .order-customer-details-content__container-description p{float:none;display:block}.order-empty-list{margin-bottom:var(--spacing-small)}.order-empty-list.order-empty-list--minified,.order-empty-list .dropin-card{border:none}.order-empty-list .dropin-card__content{gap:0;padding:var(--spacing-xxbig)}.order-empty-list.order-empty-list--minified .dropin-card__content{flex-direction:row;align-items:center;padding:var(--spacing-big) var(--spacing-small)}.order-empty-list .dropin-card__content svg{width:64px;height:64px;margin-bottom:var(--spacing-medium)}.order-empty-list.order-empty-list--minified .dropin-card__content svg{margin:0 var(--spacing-small) 0 0;width:32px;height:32px}.order-empty-list .dropin-card__content svg path{fill:var(--color-neutral-800)}.order-empty-list.order-empty-list--minified .dropin-card__content svg path{fill:var(--color-neutral-500)}.order-empty-list--empty-box .dropin-card__content svg path{fill:var(--color-neutral-500)}.order-empty-list .dropin-card__content p{font:var(--type-headline-1-font);letter-spacing:var(--type-headline-1-letter-spacing);color:var(--color-neutral-800)}.order-empty-list.order-empty-list--minified .dropin-card__content p{font:var(--type-body-1-strong-font);color:var(--color-neutral-800)}.order-order-actions__wrapper{display:flex;justify-content:space-between;gap:0 var(--spacing-small);margin-bottom:var(--spacing-small);margin-top:var(--spacing-medium)}.order-order-actions__wrapper button{width:100%;font:var(--type-body-1-strong-font);letter-spacing:var(--type-body-1-default-letter-spacing);cursor:pointer}.order-order-actions__wrapper--empty{display:none}.order-order-cancel-reasons-form__text{text-align:left;color:var(--color-neutral-800);font:var(--type-details-caption-1-font);letter-spacing:var(--type-details-caption-1-letter-spacing);padding-bottom:var(--spacing-xsmall)}.order-order-cancel-reasons-form__button-container{display:grid;margin-top:var(--spacing-xbig);justify-content:end}.order-order-cancel__modal{margin:auto}.order-order-cancel__modal .dropin-modal__header{display:grid;grid-template-columns:1fr auto}.order-order-cancel__title{color:var(--color-neutral-900);font:var(--type-headline-2-strong-font);letter-spacing:var(--type-headline-2-strong-letter-spacing)}.order-order-cancel__text{color:var(--color-neutral-800);font:var(--type-details-caption-1-font);letter-spacing:var(--type-details-caption-1-letter-spacing);padding-bottom:var(--spacing-xsmall)}.order-order-cancel__modal .dropin-modal__header-close-button{align-self:center}.order-order-cancel__button-container{display:grid;margin-top:var(--spacing-xbig);justify-content:end}@media only screen and (min-width: 768px){.dropin-modal__body--medium.order-order-cancel__modal>.dropin-modal__header-title{margin:0 var(--spacing-xxbig) var(--spacing-medium)}}.order-order-loaders--card-loader{margin-bottom:var(--spacing-small)}.order-cost-summary-content .dropin-card__content{gap:0}.order-cost-summary-content__description{margin-bottom:var(--spacing-xsmall)}.order-cost-summary-content__description .order-cost-summary-content__description--header,.order-cost-summary-content__description .order-cost-summary-content__description--subheader{display:flex;justify-content:space-between;align-items:center}.order-cost-summary-content__description .order-cost-summary-content__description--header span{color:var(--color-neutral-800);font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.order-cost-summary-content__description--subheader{margin-top:var(--spacing-xxsmall)}.order-cost-summary-content__description--subheader span{font:var(--type-details-caption-2-font);letter-spacing:var(--type-details-caption-2-letter-spacing);color:var(--color-brand-700)}.order-cost-summary-content__description--subtotal .order-cost-summary-content__description--subheader,.order-cost-summary-content__description--shipping .order-cost-summary-content__description--subheader{display:flex;justify-content:flex-start;align-items:center;gap:0 var(--spacing-xxsmall)}.order-cost-summary-content__description--subtotal .order-cost-summary-content__description--subheader .dropin-price,.order-cost-summary-content__description--shipping .order-cost-summary-content__description--subheader .dropin-price{font:var(--type-details-overline-font);font-weight:700}.order-cost-summary-content__description--discount .order-cost-summary-content__description--header span:last-child{color:var(--color-alert-800)}.order-cost-summary-content__description--discount .order-cost-summary-content__description--subheader span:first-child{display:flex;justify-content:flex-start;align-items:flex-end;gap:0 var(--spacing-xsmall)}.order-cost-summary-content__description--discount .order-cost-summary-content__description--subheader span:first-child span{font:var(--type-details-caption-1-font);letter-spacing:var(--type-details-caption-1-letter-spacing);color:var(--color-neutral-700)}.order-cost-summary-content__description--discount .order-cost-summary-content__description--subheader .dropin-price{font:var(--type-details-caption-1-font);letter-spacing:var(--type-details-caption-1-letter-spacing);color:var(--color-alert-800)}.order-cost-summary-content__description--total{margin-top:var(--spacing-medium)}.order-cost-summary-content__description--total .order-cost-summary-content__description--header span{font:var(--type-body-1-emphasized-font);letter-spacing:var(--type-body-1-emphasized-letter-spacing)}.order-cost-summary-content__accordion .dropin-accordion-section .dropin-accordion-section__content-container{gap:var(--spacing-small);margin:var(--spacing-small) 0}.order-cost-summary-content__accordion-row{display:flex;justify-content:space-between;align-items:center}.order-cost-summary-content__accordion-row p{font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing)}.order-cost-summary-content__accordion-row p:first-child{color:var(--color-neutral-700)}.order-cost-summary-content__accordion .order-cost-summary-content__accordion-row.order-cost-summary-content__accordion-total p:first-child{font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.order-header{text-align:center;padding:var(--spacing-xxbig)}.order-header__icon{margin-bottom:var(--spacing-small)}.order-header__title{color:var(--color-neutral-800);font:var(--type-headline-1-font);letter-spacing:var(--type-headline-1-letter-spacing);justify-content:center;margin:0}.order-header__title:first-letter{text-transform:uppercase}.order-header__order{color:var(--color-neutral-700);font:var(--type-details-overline-font);letter-spacing:var(--type-details-overline-letter-spacing);margin:var(--spacing-xxsmall) 0 0 0}.order-header .success-icon{color:var(--color-positive-500)}.order-header-create-account{display:grid;gap:var(--spacing-small);margin-top:var(--spacing-large)}.order-header-create-account__message{font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);margin:0}.order-header-create-account__button{display:flex;margin:0 auto;text-align:center}.order-order-product-list-content__items{display:grid;gap:var(--spacing-medium);list-style:none;margin:0 0 var(--spacing-medium) 0;padding:0}.order-order-product-list-content .dropin-card__content{gap:0}.order-order-product-list-content__items .dropin-card__content{gap:var(--spacing-xsmall)}.order-order-product-list-content .dropin-cart-item__alert{margin-top:var(--spacing-xsmall)}.order-order-product-list-content .cart-summary-item__title--strikethrough{text-decoration:line-through;color:var(--color-neutral-500);font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing)}@media only screen and (min-width: 320px) and (max-width: 768px){.order-confirmation-cart-summary-item{margin-bottom:var(--spacing-medium)}}.order-order-search-form{gap:var(--spacing-small);border-color:transparent}.order-order-search-form .dropin-card__content{padding:var(--spacing-big) var(--spacing-xxbig) var(--spacing-xxbig) var(--spacing-xxbig)}.order-order-search-form p{color:var(--color-neutral-700);font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);margin:0}.order-order-search-form__title{color:var(--color-neutral-800);font:var(--type-headline-2-strong-font);letter-spacing:var(--type-headline-2-strong-letter-spacing);margin:0}.order-order-search-form__wrapper{display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:"email" "lastname" "number" "button";gap:var(--spacing-medium)}.order-order-search-form__wrapper__item--email{grid-area:email}.order-order-search-form__wrapper__item--lastname{grid-area:lastname}.order-order-search-form__wrapper__item--number{grid-area:number}.order-order-search-form__button-container{display:flex;justify-content:flex-end;grid-area:button}.order-order-search-form form button{align-self:flex-end;justify-self:flex-end;margin-top:var(--spacing-small)}@media (min-width: 768px){.order-order-search-form__wrapper{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"email lastname" "number number" "button button"}}.order-order-status-content .dropin-card__content{gap:0}.order-order-status-content__wrapper .order-order-status-content__wrapper-description p{padding:0;margin:0;box-sizing:border-box;font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.order-order-status-content__wrapper-description{margin-bottom:var(--spacing-medium)}.order-order-status-content__wrapper-description--actions-slot{margin-bottom:0}.order-return-order-message p{margin:0;padding:0}.order-return-order-message a{max-width:162px;padding:var(--spacing-xsmall)}.order-return-order-message .order-return-order-message__title{font:var(--type-headline-1-font);letter-spacing:var(--type-headline-1-letter-spacing);color:var(--color-neutral-800);margin-bottom:var(--spacing-small)}.order-return-order-message .order-return-order-message__subtitle{font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);margin-bottom:var(--spacing-xlarge)}.order-create-return .order-create-return_notification{margin-bottom:var(--spacing-medium)}.order-return-order-product-list{list-style:none;margin:0;padding:0}.order-return-order-product-list .order-return-order-product-list__item{display:grid;grid-template-columns:auto 1fr;align-items:start;margin-bottom:var(--spacing-medium);position:relative}.order-return-order-product-list__item--blur:before{content:"";position:absolute;width:100%;height:100%;background-color:var(--color-opacity-24);z-index:1}.order-return-order-product-list>.order-return-order-product-list__item:last-child{display:flex;justify-content:flex-end}.order-return-order-product-list>.order-return-order-product-list__item .dropin-cart-item__alert{margin-top:var(--spacing-xsmall)}.order-return-order-product-list>.order-return-order-product-list__item .cart-summary-item__title--strikethrough{text-decoration:line-through;color:var(--color-neutral-500);font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.order-create-return .dropin-cart-item__footer .dropin-incrementer.dropin-incrementer--medium{max-width:160px}.order-return-order-product-list .dropin-incrementer__button-container{margin:0}@media only screen and (min-width: 320px) and (max-width: 768px){.order-return-order-product-list>.order-return-order-product-list__item{margin-bottom:var(--spacing-medium)}}.order-return-reason-form .dropin-cart-item,.order-return-reason-form form .dropin-field{margin-bottom:var(--spacing-medium)}.order-return-reason-form .order-return-reason-form__actions{display:flex;gap:0 var(--spacing-medium);justify-content:flex-end;margin-bottom:0}.order-returns-list-content .order-returns__header--minified{margin-bottom:var(--spacing-small)}.order-returns-list-content .order-returns__header--full-size{margin-bottom:0}.order-returns-list-content__cards-list{margin-bottom:var(--spacing-small)}.order-returns-list-content__cards-list .dropin-card__content{gap:0}.order-returns-list-content__cards-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:0px 0px;grid-template-areas:"descriptions descriptions actions" "images images actions"}.order-returns-list-content__descriptions{grid-area:descriptions}.order-returns-list-content__descriptions p{margin:0 0 var(--spacing-small) 0;padding:0;box-sizing:border-box;font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing);color:var(--color-neutral-800)}.order-returns-list-content__descriptions p a{display:inline-block;font:var(--type-button-2-font);letter-spacing:var(--type-button-2-letter-spacing);color:var(--color-brand-800)}.order-returns-list-content__descriptions p a:hover{color:var(--color-brand-800)}.order-returns-list-content__descriptions .order-returns-list-content__return-status{font:var(--type-button-2-font);font-weight:500;color:var(--color-neutral-800)}.order-returns-list-content .order-returns-list-content__actions{margin:0;padding:0;border:none;background-color:transparent;cursor:pointer;text-decoration:none}.order-returns-list-content a.order-returns-list-content__actions{display:inline-block;width:100%}.order-returns-list-content .order-returns-list-content__actions:hover{text-decoration:none;color:var(--color-brand-500)}.order-returns-list-content__card .dropin-card__content{padding:var(--spacing-small) var(--spacing-medium)}.order-returns-list-content__card .order-returns-list-content__card-wrapper{display:flex;justify-content:space-between;align-items:center;color:var(--color-neutral-800);height:calc(88px - var(--spacing-small) * 2)}.order-returns-list-content__card-wrapper>p{font:var(--type-button-2-font);letter-spacing:var(--type-button-2-letter-spacing)}.order-returns-list-content__card-wrapper svg{color:var(--color-neutral-800)}.order-returns-list-content__images{margin-top:var(--spacing-small);grid-area:images}.order-returns-list-content__actions{grid-area:actions;align-self:center}.order-returns-list-content .order-returns-list-content__images{overflow:auto}.order-returns-list-content .order-returns-list-content__images .dropin-content-grid__content{grid-template-columns:repeat(6,max-content)!important}.order-returns-list-content .order-returns-list-content__images-3 .dropin-content-grid__content{grid-template-columns:repeat(3,max-content)!important}.order-returns-list-content .order-returns-list-content__images img{object-fit:contain;width:85px;height:114px}.order-shipping-status-card .dropin-card__content{gap:0}.order-shipping-status-card--count-steper{font:var(--type-headline-2-strong-font);letter-spacing:var(--type-headline-2-strong-letter-spacing)}.order-shipping-status-card__header{display:grid;grid-template-columns:1fr auto;justify-items:self-start;align-items:center;margin-bottom:var(--spacing-xsmall)}.order-shipping-status-card__header button{max-height:40px}.order-shipping-status-card__header--content p,.order-shipping-status-card--return-order p{padding:0;margin:0;box-sizing:border-box;font:var(--type-body-1-default-font);letter-spacing:var(--type-body-1-default-letter-spacing);margin-bottom:var(--spacing-xsmall)}.order-shipping-status-card--return-order p a{display:inline-block;font:var(--type-button-2-font);letter-spacing:var(--type-button-2-letter-spacing);color:var(--color-brand-800)}.order-shipping-status-card--return-order p a:hover{text-decoration:none;color:var(--color-brand-800)}.order-shipping-status-card .order-shipping-status-card__images .dropin-content-grid__content{grid-template-columns:repeat(6,max-content)!important}.order-shipping-status-card.order-shipping-status-card--return-order .dropin-content-grid.order-shipping-status-card__images{overflow:auto!important}.order-shipping-status-card .order-shipping-status-card__images img{object-fit:contain;width:85px;height:114px}`,{styleId:"order"});
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export interface ResponseAttributesFormItemsProps {
|
|
2
17
|
code: string;
|
|
3
18
|
sort_order: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export type AttributesListItems = {
|
|
2
17
|
code: string;
|
|
3
18
|
sort_order: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export interface getCustomerShortResponse {
|
|
2
17
|
data: {
|
|
3
18
|
customer: {
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export type QueryType = 'orderData';
|
|
2
17
|
export interface UserAddressesProps {
|
|
3
18
|
city?: string;
|
|
@@ -21,6 +36,8 @@ interface ThumbnailImageProps {
|
|
|
21
36
|
label?: string;
|
|
22
37
|
}
|
|
23
38
|
export interface ProductProps {
|
|
39
|
+
only_x_left_in_stock?: number;
|
|
40
|
+
stock_status?: string;
|
|
24
41
|
thumbnail?: ThumbnailImageProps;
|
|
25
42
|
image: ThumbnailImageProps;
|
|
26
43
|
canonical_url: string;
|
|
@@ -176,7 +193,9 @@ export interface ShipmentsProps {
|
|
|
176
193
|
id: string;
|
|
177
194
|
product_sku: string;
|
|
178
195
|
product_name: string;
|
|
179
|
-
|
|
196
|
+
quantity_shipped: number;
|
|
197
|
+
order_item: OrderItemProps;
|
|
198
|
+
}[];
|
|
180
199
|
}
|
|
181
200
|
export declare enum AvailableActionsProps {
|
|
182
201
|
CANCEL = "CANCEL",
|
|
@@ -213,6 +232,8 @@ export interface ReturnsItemsProps {
|
|
|
213
232
|
}[];
|
|
214
233
|
}
|
|
215
234
|
export interface OrderProps {
|
|
235
|
+
is_virtual?: boolean;
|
|
236
|
+
order_status_change_date?: string;
|
|
216
237
|
available_actions: AvailableActionsProps[];
|
|
217
238
|
shipping_method: string;
|
|
218
239
|
status: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export interface UserInputErrorProps {
|
|
2
17
|
code: string;
|
|
3
18
|
message: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export interface RequestReturnProps {
|
|
2
17
|
orderUid?: string;
|
|
3
18
|
contactEmail: string;
|
|
@@ -21,7 +21,7 @@ export interface CreateReturnProps {
|
|
|
21
21
|
}>;
|
|
22
22
|
};
|
|
23
23
|
className: string;
|
|
24
|
-
onSuccess?: (response: onSuccessTypes) => void;
|
|
24
|
+
onSuccess?: (response: onSuccessTypes | {}) => void;
|
|
25
25
|
onError?: (message: string) => void;
|
|
26
26
|
routeReturnSuccess?: () => string;
|
|
27
27
|
showConfigurableOptions?: (options: options | {}) => options;
|
|
@@ -63,7 +63,7 @@ export interface ReturnOrderMessageProps {
|
|
|
63
63
|
}
|
|
64
64
|
export interface UseCreateReturn {
|
|
65
65
|
orderData?: OrderDataModel;
|
|
66
|
-
onSuccess?: (response: onSuccessTypes) => void;
|
|
66
|
+
onSuccess?: (response: onSuccessTypes | {}) => void;
|
|
67
67
|
onError?: (message: string) => void;
|
|
68
68
|
handleSetInLineAlert: (value?: InLineAlertProps) => void;
|
|
69
69
|
}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export interface EmptyListProps {
|
|
2
17
|
isEmpty: boolean;
|
|
3
18
|
typeList: 'orders';
|
package/types/form.types.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export declare enum FieldEnumList {
|
|
2
17
|
BOOLEAN = "BOOLEAN",
|
|
3
18
|
DATE = "DATE",
|
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export * from './api/getAttributesForm.types';
|
|
2
17
|
export * from './api/getAttributesList.types';
|
|
3
18
|
export * from './api/getCustomer.types';
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2024 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: All information contained herein is, and remains
|
|
8
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
9
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
10
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
11
|
+
* property laws, including trade secret and copyright laws.
|
|
12
|
+
* Dissemination of this information or reproduction of this material
|
|
13
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
14
|
+
* from Adobe.
|
|
15
|
+
*******************************************************************/
|
|
1
16
|
export interface OrderEmailActionHandlerProps {
|
|
2
17
|
routeRedirect: (orderToken: string, orderNumber: string, orderData: any) => string;
|
|
3
18
|
}
|