@dropins/storefront-order 1.0.6-beta2 → 1.1.0-beta1
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/initialize/initialize.d.ts +3 -3
- package/chunks/getCustomerOrdersReturn.js +5 -3
- package/containers/CreateReturn/CreateReturn.d.ts +1 -1
- package/containers/CustomerDetails/CustomerDetails.d.ts +1 -1
- package/containers/OrderCancelForm/OrderCancelForm.d.ts +1 -1
- package/containers/OrderCostSummary/OrderCostSummary.d.ts +1 -1
- package/containers/OrderProductList/OrderProductList.d.ts +1 -1
- package/containers/OrderReturns/OrderReturns.d.ts +1 -1
- package/containers/OrderSearch/OrderSearch.d.ts +1 -1
- package/containers/OrderStatus/OrderStatus.d.ts +1 -1
- package/containers/ReturnsList/ReturnsList.d.ts +1 -1
- package/containers/ShippingStatus/ShippingStatus.d.ts +1 -1
- package/package.json +1 -1
- package/render/render.d.ts +1 -1
- package/types/createReturn.types.d.ts +2 -2
- package/types/customerDetails.types.d.ts +2 -2
- package/types/orderCancel.types.d.ts +2 -2
- package/types/orderProductList.types.d.ts +2 -2
- package/types/orderStatus.types.d.ts +1 -1
- package/types/returnsList.types.d.ts +2 -2
- package/types/shippingStatus.types.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Initializer, Model } from '
|
|
2
|
-
import { Lang } from '
|
|
1
|
+
import { Initializer, Model } from '@dropins/tools/types/elsie/src/lib';
|
|
2
|
+
import { Lang } from '@dropins/tools/types/elsie/src/i18n';
|
|
3
3
|
import { CustomerOrdersReturnModel, OrderDataModel, RequestReturnModel } from '../../data/models';
|
|
4
4
|
|
|
5
5
|
export type ConfigProps = {
|
|
@@ -14,5 +14,5 @@ export type ConfigProps = {
|
|
|
14
14
|
orderData?: OrderDataModel | null;
|
|
15
15
|
};
|
|
16
16
|
export declare const initialize: Initializer<ConfigProps>;
|
|
17
|
-
export declare const config: import('
|
|
17
|
+
export declare const config: import('@dropins/tools/types/elsie/src/lib').Config<ConfigProps>;
|
|
18
18
|
//# sourceMappingURL=initialize.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{h as
|
|
3
|
+
import{h as E}from"./network-error.js";import{RETURNS_FRAGMENT as a,PRODUCT_DETAILS_FRAGMENT as T,PRICE_DETAILS_FRAGMENT as _,GIFT_CARD_DETAILS_FRAGMENT as o,ORDER_ITEM_DETAILS_FRAGMENT as c,GIFT_MESSAGE_FRAGMENT as G,GIFT_WRAPPING_FRAGMENT as n}from"../fragments.js";import{t as u}from"./initialize.js";import{f as A}from"./fetch-graphql.js";const S=`
|
|
4
4
|
query GET_CUSTOMER_ORDERS_RETURN($currentPage: Int, $pageSize: Int) {
|
|
5
5
|
customer {
|
|
6
6
|
returns(currentPage: $currentPage, pageSize: $pageSize) {
|
|
@@ -13,9 +13,11 @@ import{h as R}from"./network-error.js";import{RETURNS_FRAGMENT as E,PRODUCT_DETA
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
${
|
|
16
|
+
${a}
|
|
17
17
|
${T}
|
|
18
18
|
${_}
|
|
19
19
|
${o}
|
|
20
20
|
${c}
|
|
21
|
-
|
|
21
|
+
${G}
|
|
22
|
+
${n}
|
|
23
|
+
`,I=async(e=10,R=1)=>await A(S,{method:"GET",cache:"force-cache",variables:{pageSize:e,currentPage:R}}).then(r=>{var t;return u((t=r==null?void 0:r.data)==null?void 0:t.customer.returns)}).catch(E);export{I as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Container } from '
|
|
1
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
2
2
|
import { CreateReturnProps } from '../../types/createReturn.types';
|
|
3
3
|
|
|
4
4
|
export declare const CreateReturn: Container<CreateReturnProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrderCancelFormProps } from '../../types';
|
|
2
|
-
import { Container } from '
|
|
2
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
|
|
4
4
|
export declare const OrderCancelForm: Container<OrderCancelFormProps>;
|
|
5
5
|
//# sourceMappingURL=OrderCancelForm.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrderProductListProps } from '../../types';
|
|
2
|
-
import { Container } from '
|
|
2
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
|
|
4
4
|
export declare const OrderProductList: Container<OrderProductListProps>;
|
|
5
5
|
//# sourceMappingURL=OrderProductList.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrderReturnsProps } from '../../types';
|
|
2
|
-
import { Container } from '
|
|
2
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
|
|
4
4
|
export declare const OrderReturns: Container<OrderReturnsProps>;
|
|
5
5
|
//# sourceMappingURL=OrderReturns.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrderStatusProps } from '../../types';
|
|
2
|
-
import { Container } from '
|
|
2
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
|
|
4
4
|
export declare const OrderStatus: Container<OrderStatusProps>;
|
|
5
5
|
//# sourceMappingURL=OrderStatus.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReturnsListProps } from '../../types';
|
|
2
|
-
import { Container } from '
|
|
2
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
|
|
4
4
|
export declare const ReturnsList: Container<ReturnsListProps>;
|
|
5
5
|
//# sourceMappingURL=ReturnsList.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ShippingStatusProps } from '../../types';
|
|
2
|
-
import { Container } from '
|
|
2
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
|
|
4
4
|
export declare const ShippingStatus: Container<ShippingStatusProps>;
|
|
5
5
|
//# sourceMappingURL=ShippingStatus.d.ts.map
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-order", "version": "1.0
|
|
1
|
+
{"name": "@dropins/storefront-order", "version": "1.1.0-beta1", "@dropins/tools": "~1.2.0", "license": "SEE LICENSE IN LICENSE.md"}
|
package/render/render.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AttributesFormModel, OrderDataModel, OrderItemModel } from '../data/models';
|
|
2
2
|
import { InLineAlertProps, TaxTypes } from '.';
|
|
3
|
-
import { SlotProps } from '
|
|
4
|
-
import { ImageProps } from '
|
|
3
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
4
|
+
import { ImageProps } from '@dropins/tools/types/elsie/src/components';
|
|
5
5
|
import { RefObject } from 'preact';
|
|
6
6
|
import { MutableRefObject } from 'preact/compat';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SlotProps } from '
|
|
1
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
2
2
|
import { OrderDataModel, OrdersReturnPropsModel } from '../data/models';
|
|
3
|
-
import { IconNode, IconType } from '
|
|
3
|
+
import { IconNode, IconType } from '@dropins/tools/types/elsie/src/components';
|
|
4
4
|
|
|
5
5
|
export interface KeysSortOrderProps {
|
|
6
6
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonProps, PickerProps } from '
|
|
2
|
-
import { PickerOption } from '
|
|
1
|
+
import { ButtonProps, PickerProps } from '@dropins/tools/types/elsie/src/src/components';
|
|
2
|
+
import { PickerOption } from '@dropins/tools/types/elsie/src/components';
|
|
3
3
|
|
|
4
4
|
export interface OrderCancelProps {
|
|
5
5
|
orderRef: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SlotProps } from '
|
|
1
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
2
2
|
import { OrderDataModel, OrderItemModel } from '../data/models';
|
|
3
|
-
import { ImageProps } from '
|
|
3
|
+
import { ImageProps } from '@dropins/tools/types/elsie/src/components';
|
|
4
4
|
|
|
5
5
|
type options = Record<string, string | number | boolean>;
|
|
6
6
|
export type TaxTypes = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrderDataModel, OrdersReturnPropsModel } from '../data/models';
|
|
2
|
-
import { SlotProps } from '
|
|
2
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
import { UserInputErrorProps } from '.';
|
|
4
4
|
|
|
5
5
|
export declare enum StatusEnumProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SlotProps } from '
|
|
2
|
-
import { ImageProps } from '
|
|
1
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/src/lib';
|
|
2
|
+
import { ImageProps } from '@dropins/tools/types/elsie/src/components';
|
|
3
3
|
import { OrderDataModel, OrderItemModel, OrdersReturnItemsPropsModel, OrdersReturnPropsModel, PageInfoProps } from '../data/models';
|
|
4
4
|
|
|
5
5
|
export interface IconConfig {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'preact/compat';
|
|
2
|
-
import { SlotProps } from '
|
|
2
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
3
|
import { OrderDataModel, OrderItemModel, OrdersReturnItemsPropsModel, OrdersReturnPropsModel, ShipmentItemsModel } from '../data/models';
|
|
4
|
-
import { ImageProps } from '
|
|
4
|
+
import { ImageProps } from '@dropins/tools/types/elsie/src/components';
|
|
5
5
|
|
|
6
6
|
type routeOrderDetailsTypes = {
|
|
7
7
|
returnNumber?: string;
|