@dropins/storefront-order 0.1.0-alpha10 → 0.1.0-alpha12

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 (80) hide show
  1. package/api/getCustomerOrdersReturn/getCustomerOrdersReturn.d.ts +4 -0
  2. package/api/getCustomerOrdersReturn/graphql/getCustomerOrdersReturn.graphql.d.ts +2 -0
  3. package/api/getCustomerOrdersReturn/index.d.ts +2 -0
  4. package/api/getOrderDetailsById/graphql/orderItemsFragment.graphql.d.ts +5 -1
  5. package/api/getOrderDetailsById/graphql/orderSummaryFragment.graphql.d.ts +1 -1
  6. package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +1 -1
  7. package/api/index.d.ts +1 -0
  8. package/api.js +70 -56
  9. package/chunks/OrderLoaders.js +1 -1
  10. package/chunks/convertCase.js +1 -0
  11. package/chunks/customerAddressFragment.graphql.js +55 -0
  12. package/chunks/fetch-graphql.js +1 -1
  13. package/chunks/getAttributesForm.js +3 -3
  14. package/chunks/getCustomer.js +34 -27
  15. package/chunks/getCustomerOrdersReturn.js +52 -0
  16. package/chunks/getStoreConfig.js +9 -2
  17. package/chunks/setTaxStatus.js +1 -0
  18. package/chunks/transform-order-details.js +77 -72
  19. package/components/EmptyList/EmptyList.d.ts +5 -0
  20. package/components/EmptyList/index.d.ts +3 -0
  21. package/components/OrderCancelReasonsForm/OrderCancelReasonsForm.d.ts +5 -0
  22. package/components/OrderCancelReasonsForm/index.d.ts +3 -0
  23. package/components/OrderCostSummaryContent/Blocks.d.ts +38 -0
  24. package/components/OrderCostSummaryContent/OrderCostSummaryContent.d.ts +5 -0
  25. package/components/OrderCostSummaryContent/index.d.ts +3 -0
  26. package/components/OrderLoaders/OrderLoaders.d.ts +2 -0
  27. package/components/OrderProductListContent/CartSummaryItem.d.ts +5 -0
  28. package/components/OrderProductListContent/OrderProductListContent.d.ts +5 -0
  29. package/components/OrderProductListContent/index.d.ts +4 -0
  30. package/components/ReturnsListContent/ReturnsListContent.d.ts +5 -0
  31. package/components/ReturnsListContent/index.d.ts +3 -0
  32. package/components/index.d.ts +5 -1
  33. package/configs/mock.config.d.ts +786 -0
  34. package/containers/CustomerDetails.js +1 -1
  35. package/containers/OrderCancel/OrderCancel.d.ts +5 -0
  36. package/containers/OrderCancel.d.ts +3 -0
  37. package/containers/OrderCancel.js +87 -0
  38. package/containers/OrderCostSummary/OrderCostSummary.d.ts +5 -0
  39. package/containers/OrderCostSummary/index.d.ts +3 -0
  40. package/containers/OrderCostSummary.d.ts +3 -0
  41. package/containers/OrderCostSummary.js +1 -0
  42. package/containers/OrderProductList/OrderProductList.d.ts +5 -0
  43. package/containers/OrderProductList/index.d.ts +3 -0
  44. package/containers/OrderProductList.d.ts +3 -0
  45. package/containers/OrderProductList.js +1 -0
  46. package/containers/OrderSearch.js +1 -1
  47. package/containers/OrderStatus.js +1 -80
  48. package/containers/ReturnsList/ReturnsList.d.ts +5 -0
  49. package/containers/ReturnsList/index.d.ts +3 -0
  50. package/containers/ReturnsList.d.ts +3 -0
  51. package/containers/ReturnsList.js +1 -0
  52. package/containers/ShippingStatus.js +1 -1
  53. package/containers/index.d.ts +4 -0
  54. package/data/models/customer-orders-return.d.ts +36 -0
  55. package/data/models/index.d.ts +2 -0
  56. package/data/models/order-details.d.ts +44 -8
  57. package/data/models/store-config.d.ts +7 -0
  58. package/data/transforms/index.d.ts +2 -0
  59. package/data/transforms/transform-customer-orders-return.d.ts +5 -0
  60. package/data/transforms/transform-order-details.d.ts +11 -1
  61. package/hooks/containers/useOrderCostSummary.d.ts +9 -0
  62. package/hooks/containers/useOrderProductList.d.ts +9 -0
  63. package/hooks/containers/useReturnsList.d.ts +14 -0
  64. package/hooks/index.d.ts +4 -0
  65. package/hooks/useIsMobile.d.ts +2 -0
  66. package/i18n/en_US.json.d.ts +67 -4
  67. package/lib/setTaxStatus.d.ts +4 -0
  68. package/package.json +1 -1
  69. package/render.js +2 -2
  70. package/types/api/getCustomerOrdersReturn.types.d.ts +46 -0
  71. package/types/api/getOrderDetails.types.d.ts +24 -5
  72. package/types/emptyList.types.d.ts +7 -0
  73. package/types/index.d.ts +5 -0
  74. package/types/orderCancel.types.d.ts +8 -4
  75. package/types/orderCostSummary.types.d.ts +28 -0
  76. package/types/orderProductList.types.d.ts +30 -0
  77. package/types/returnsList.types.d.ts +42 -0
  78. package/components/OrderCancel/OrderCancel.d.ts +0 -5
  79. /package/chunks/{CustomerDetailsContent.js → OrderCancelReasonsForm.js} +0 -0
  80. /package/{components → containers}/OrderCancel/index.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ import { GetCustomerOrdersReturnResponse } from '../../types';
2
+ import { CustomerOrdersReturnModel } from '../models/customer-orders-return';
3
+
4
+ export declare const transformCustomerOrdersReturn: (response: GetCustomerOrdersReturnResponse) => CustomerOrdersReturnModel | null;
5
+ //# sourceMappingURL=transform-customer-orders-return.d.ts.map
@@ -1,7 +1,17 @@
1
1
  import { QueryType, ResponseData, OrderProps, OrderItemProps } from '../../types';
2
- import { TransformedData } from '../models';
2
+ import { OrderItemModel, TransformedData } from '../models';
3
3
 
4
4
  export declare const transformConfigurableOptions: (item: OrderItemProps) => Record<string, string> | undefined;
5
+ export declare const transformBundleOptions: (data: any) => {
6
+ [key: string]: any;
7
+ } | null;
8
+ export declare const transformLinks: (links: {
9
+ title: string;
10
+ }[]) => {
11
+ count: number;
12
+ result: string;
13
+ } | null;
14
+ export declare const transformOrderItems: (items: OrderItemProps[]) => OrderItemModel[];
5
15
  export declare const transformOrderData: (orderData: OrderProps) => any;
6
16
  export declare const transformOrderDetails: <T extends "orderData">(queryType: QueryType, response: ResponseData<T>) => TransformedData<T>;
7
17
  //# sourceMappingURL=transform-order-details.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { OrderDataModel } from '../../data/models';
2
+ import { StoreConfigProps, UseOrderCostSummaryProps } from '../../types';
3
+
4
+ export declare const useOrderCostSummary: ({ orderData, }: UseOrderCostSummaryProps) => {
5
+ loading: boolean;
6
+ storeConfig: StoreConfigProps | null;
7
+ order: OrderDataModel | undefined;
8
+ };
9
+ //# sourceMappingURL=useOrderCostSummary.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { OrderDataModel } from '../../data/models';
2
+ import { TaxTypes, UseOrderProductListProps } from '../../types';
3
+
4
+ export declare const useOrderProductList: ({ orderData, }: UseOrderProductListProps) => {
5
+ loading: boolean;
6
+ taxConfig: TaxTypes;
7
+ order: OrderDataModel | undefined;
8
+ };
9
+ //# sourceMappingURL=useOrderProductList.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { OrdersReturnProps } from '../../data/models';
2
+
3
+ export declare const useReturnsList: () => {
4
+ pageInfo: {
5
+ totalPages: number;
6
+ currentPage: number;
7
+ pageSize: number;
8
+ };
9
+ selectedPage: number;
10
+ loading: boolean;
11
+ returnOrderList: [] | OrdersReturnProps[];
12
+ handleSetSelectPage: (value: number) => void;
13
+ };
14
+ //# sourceMappingURL=useReturnsList.d.ts.map
package/hooks/index.d.ts CHANGED
@@ -2,4 +2,8 @@ export * from './containers/useOrderSearch';
2
2
  export * from './containers/useOrderStatus';
3
3
  export * from './containers/useShippingStatus';
4
4
  export * from './containers/useCustomerDetails';
5
+ export * from './containers/useReturnsList';
6
+ export * from './useIsMobile';
7
+ export * from './containers/useOrderProductList';
8
+ export * from './containers/useOrderCostSummary';
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const useIsMobile: () => boolean;
2
+ //# sourceMappingURL=useIsMobile.d.ts.map
@@ -1,5 +1,68 @@
1
1
  declare const _default: {
2
2
  "Order": {
3
+ "OrderCostSummary": {
4
+ "headerText": "Order summary",
5
+ "subtotal": {
6
+ "title": "Subtotal"
7
+ },
8
+ "shipping": {
9
+ "title": "Shipping",
10
+ "freeShipping": "Free shipping"
11
+ },
12
+ "tax": {
13
+ "accordionTitle": "Taxes",
14
+ "accordionTotalTax": "Tax Total",
15
+ "totalExcludingTaxes":"Total excluding taxes",
16
+ "title": "Tax",
17
+ "incl": "Including taxes",
18
+ "excl": "Excluding taxes"
19
+ },
20
+ "discount": {
21
+ "title": "Discount",
22
+ "subtitle": "discounted"
23
+ },
24
+ "total": {
25
+ "title": "Total"
26
+ }
27
+ },
28
+ "Returns": {
29
+ "minifiedView": {
30
+ "returnsList": {
31
+ "viewAllOrdersButton": "View all returns",
32
+ "ariaLabelLink": "Redirect to full order information",
33
+ "emptyOrdersListMessage": "No returns",
34
+ "minifiedViewTitle": "Recent returns",
35
+ "orderNumber": "Order Number:",
36
+ "carrier": "Carrier:",
37
+ "itemsText": "items"
38
+ }
39
+ },
40
+ "fullSizeView": {
41
+ "returnsList": {
42
+ "viewAllOrdersButton": "View all orders",
43
+ "ariaLabelLink": "Redirect to full order information",
44
+ "emptyOrdersListMessage": "No returns",
45
+ "minifiedViewTitle": "Returns",
46
+ "orderNumber": "Order Number:",
47
+ "carrier": "Carrier:",
48
+ "itemsText": "items"
49
+ }
50
+ }
51
+ },
52
+ "OrderProductListContent": {
53
+ "cancelledTitle": "Cancelled",
54
+ "allOrdersTitle": "Your order",
55
+ "downloadableCount": "Files",
56
+ "stockStatus": {
57
+ "inStock": "In stock",
58
+ "outOfStock": "Out of stock"
59
+ },
60
+ "GiftCard": {
61
+ "sender": "Sender",
62
+ "recipient": "Recipient",
63
+ "message": "Note"
64
+ }
65
+ },
3
66
  "OrderSearchForm": {
4
67
  "title": "Enter your information to view order details",
5
68
  "description": "You can find your order number in the receipt you received via email.",
@@ -69,7 +132,8 @@ declare const _default: {
69
132
  },
70
133
  "guestOrderCancellationRequested": {
71
134
  "title": "cancellation requested",
72
- "message": "The cancellation has been requested. Check your email for further instructions."
135
+ "message": "The cancellation has been requested on {DATE}. Check your email for further instructions.",
136
+ "messageWithoutDate": "The cancellation has been requested. Check your email for further instructions."
73
137
  }
74
138
  },
75
139
  "CustomerDetails": {
@@ -98,7 +162,7 @@ declare const _default: {
98
162
  "OrderCancel": {
99
163
  "buttonText": "Cancel Order"
100
164
  },
101
- "OrderCancellationReasonsModal": {
165
+ "OrderCancellationReasonsForm": {
102
166
  "title": "Cancel order",
103
167
  "description": "Select a reason for canceling the order",
104
168
  "label": "Reason for cancel",
@@ -107,7 +171,6 @@ declare const _default: {
107
171
  "errorDescription": "There was an error processing your order cancellation."
108
172
  }
109
173
  }
110
- }
111
- ;
174
+ };
112
175
 
113
176
  export default _default;
@@ -0,0 +1,4 @@
1
+ import { TaxTypes } from '../types';
2
+
3
+ export declare const setTaxStatus: (displayPrice: number) => TaxTypes;
4
+ //# sourceMappingURL=setTaxStatus.d.ts.map
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/storefront-order", "version": "0.1.0-alpha10", "@dropins/elsie": "0.34.0"}
1
+ {"name": "@dropins/storefront-order", "version": "0.1.0-alpha12", "@dropins/elsie": "0.34.0"}
package/render.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(a,t){try{if(typeof document<"u"){const r=document.createElement("style"),n=t.styleId;for(const e in t.attributes)r.setAttribute(e,t.attributes[e]);r.setAttribute("data-dropin",n),r.appendChild(document.createTextNode(a));const o=document.querySelector('style[data-dropin="sdk"]');if(o)o.after(r);else{const e=document.querySelector('link[rel="stylesheet"], style');e?e.before(r):document.head.append(r)}}}catch(r){console.error("dropin-styles (injectCodeFunction)",r)}})('.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" "postcode" "number" "button";gap:var(--spacing-medium)}.order-order-search-form__wrapper__item--email{grid-area:email}.order-order-search-form__wrapper__item--postcode{grid-area:postcode}.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 postcode" "number number" "button button"}}.order-order-status-content{margin-bottom:var(--spacing-small)}.order-order-status-content.dropin-card--secondary{border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.order-order-status-content .dropin-card__content{gap:0}.order-order-status-content__wrapper p{padding:0;margin:0;box-sizing:border-box;font:var(--type-body-1-strong-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.order-order-status-content__wrapper-description{margin-bottom:var(--spacing-medium)}.order-shipping-status-card{margin-bottom:var(--spacing-small)}.order-shipping-status-card .dropin-card__content{gap:0}.order-shipping-status-card.dropin-card--secondary{border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.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{margin:0;padding:0;margin-bottom:var(--spacing-xsmall)}.order-shipping-status-card .order-shipping-status-card__images .dropin-content-grid__content{grid-template-columns:repeat(6,max-content)!important;overflow:auto!important}.order-shipping-status-card .order-shipping-status-card__images img{object-fit:contain}.order-order-loaders--card-loader{margin-bottom:var(--spacing-small);border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.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)}.order-order-actions__wrapper--empty{display:none}.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-customer-details-content .dropin-card__content{gap:0}.dropin-customer-details .dropin-card--secondary{border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.order-customer-details-content__container{display:grid;flex-direction:column;gap:var(--spacing-medium)}@media (min-width: 768px){.order-customer-details-content__container{display:grid;grid-template-columns:max-content max-content;grid-template-rows:auto auto auto;gap:var(--spacing-medium);grid-auto-flow:row}.order-customer-details-content__container-email{grid-area:1 / 1 / 2 / 2}.order-customer-details-content__container-shipping_address{grid-area:2 / 1 / 3 / 2}.order-customer-details-content__container-billing_address{grid-area:2 / 2 / 3 / 3}.order-customer-details-content__container-shipping_methods{grid-area:3 / 1 / 4 / 2}.order-customer-details-content__container-billing_methods{grid-area:3 / 2 / 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-billing_methods p{display:grid;gap:0;grid-template-columns:auto 1fr}.order-customer-details-content__container-billing_methods p.order-customer-details-content__container-billing_methods--icon{gap:0 var(--spacing-xsmall)}.order-customer-details-content__container-description p{margin:0;padding:0;display:inline-flex;overflow:hidden}.order-customer-details-content__container-description p:nth-child(1),.order-customer-details-content__container-description p:nth-child(2){text-align:left;cursor:default;margin-bottom:var(--spacing-xsmall)}.order-customer-details-content__container-description p:nth-child(2){position:relative}.order-customer-details-content__container-description p:nth-child(2) span{position:absolute}.order-customer-details-content__container-description p:nth-child(1),.order-customer-details-content__container-description p:nth-child(7){float:left;width:auto;margin-right:var(--spacing-xsmall)}.order-customer-details-content__container-description p:nth-child(5){position:relative;margin-right:var(--spacing-xsmall)}.order-customer-details-content__container-description p:nth-child(5) span{position:absolute}.order-customer-details-content__container-description p:nth-child(2),.order-customer-details-content__container-description p:nth-child(6),.order-customer-details-content__container-description p:nth-child(8){display:inline;width:50%}.order-customer-details-content__container-description p:nth-child(2):after,.order-customer-details-content__container-description p:nth-child(6):after,.order-customer-details-content__container-description p:nth-child(8):after{content:"\\a";white-space:pre;display:block;height:var(--spacing-xsmall)}.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(n+9){display:block;width:100%;margin-bottom:var(--spacing-xsmall)}',{styleId:"order"});
2
- import{jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{Render as a}from"@dropins/tools/lib.js";import{useState as n,useEffect as d}from"@dropins/tools/preact-hooks.js";import{UIProvider as c}from"@dropins/tools/components.js";import{events as l}from"@dropins/tools/event-bus.js";const u={OrderSearchForm:{title:"Enter your information to view order details",description:"You can find your order number in the receipt you received via email.",button:"View Order",email:"Email",postcode:"Zip Code",orderNumber:"Order Number"},Form:{notifications:{requiredFieldError:"This is a required field."}},ShippingStatusCard:{trackButton:"Track package",carrier:"Carrier:",prepositionOf:"of",shippingCardTitle:"Package details",shippingInfoTitle:"Shipping info",notYetShippedTitle:"Not yet shipped",notYetShippedImagesTitle:"Package contents"},OrderStatusContent:{noInfoTitle:"Check back later for more details.",actions:{cancel:"Cancel order",return:"Return or replace",reorder:"Reorder"},orderPending:{title:"Pending",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},orderProcessing:{title:"Processing",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},orderOnHold:{title:"On hold",message:"We’ve run into an issue while processing your order on {DATE}. Please check back later or contact us at support@adobe.com for more information.",messageWithoutDate:"We’ve run into an issue while processing your order. Please check back later or contact us at support@adobe.com for more information."},orderReceived:{title:"Order received",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},orderComplete:{title:"Complete",message:"Your order is complete. Need help with your order? Contact us at support@adobe.com"},orderCanceled:{title:"Canceled",message:"This order was cancelled by you. You should see a refund to your original payment method with 5-7 business days."},orderSuspectedFraud:{title:"Suspected fraud",message:"We’ve run into an issue while processing your order on {DATE}. Please check back later or contact us at support@adobe.com for more information.",messageWithoutDate:"We’ve run into an issue while processing your order. Please check back later or contact us at support@adobe.com for more information."},orderPaymentReview:{title:"Payment Review",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},guestOrderCancellationRequested:{title:"cancellation requested",message:"The cancellation has been requested. Check your email for further instructions."}},CustomerDetails:{headerText:"Customer information",freeShipping:"Free shipping",email:{title:"Contact details"},shippingAddress:{title:"Shipping address"},shippingMethods:{title:"Shipping method"},billingAddress:{title:"Billing address"},billingMethods:{title:"Payment method"}},Errors:{invalidOrder:"Invalid order. Please try again.",invalidSearch:"No order found with these order details."},OrderCancel:{buttonText:"Cancel Order"},OrderCancellationReasonsModal:{title:"Cancel order",description:"Select a reason for canceling the order",label:"Reason for cancel",button:"Submit Cancellation",errorHeading:"Error",errorDescription:"There was an error processing your order cancellation."}},p={Order:u},h={default:p},m=({children:o})=>{const[s,t]=n("en_US");return d(()=>{const e=l.on("locale",i=>{t(i)},{eager:!0});return()=>{e==null||e.off()}},[]),r(c,{lang:s,langDefinitions:h,children:o})},C=new a(r(m,{}));export{C as render};
1
+ (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)}})('.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" "postcode" "number" "button";gap:var(--spacing-medium)}.order-order-search-form__wrapper__item--email{grid-area:email}.order-order-search-form__wrapper__item--postcode{grid-area:postcode}.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 postcode" "number number" "button button"}}.order-order-status-content{margin-bottom:var(--spacing-small)}.order-order-status-content.dropin-card--secondary{border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.order-order-status-content .dropin-card__content{gap:0}.order-order-status-content__wrapper p{padding:0;margin:0;box-sizing:border-box;font:var(--type-body-1-strong-font);letter-spacing:var(--type-body-1-default-letter-spacing)}.order-order-status-content__wrapper-description{margin-bottom:var(--spacing-medium)}.order-shipping-status-card{margin-bottom:var(--spacing-small)}.order-shipping-status-card .dropin-card__content{gap:0}.order-shipping-status-card.dropin-card--secondary{border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.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{margin:0;padding:0;margin-bottom:var(--spacing-xsmall)}.order-shipping-status-card .order-shipping-status-card__images .dropin-content-grid__content{grid-template-columns:repeat(6,max-content)!important;overflow:auto!important}.order-shipping-status-card .order-shipping-status-card__images img{object-fit:contain}.order-order-loaders--card-loader{margin-bottom:var(--spacing-small);border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.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)}.order-order-actions__wrapper--empty{display:none}.order-customer-details-content .dropin-card__content{gap:0}.dropin-customer-details .dropin-card--secondary{border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.order-customer-details-content__container{display:grid;flex-direction:column;gap:var(--spacing-medium)}@media (min-width: 768px){.order-customer-details-content__container{display:grid;grid-template-columns:max-content max-content;grid-template-rows:auto auto auto;gap:var(--spacing-medium);grid-auto-flow:row}.order-customer-details-content__container-email{grid-area:1 / 1 / 2 / 2}.order-customer-details-content__container-shipping_address{grid-area:2 / 1 / 3 / 2}.order-customer-details-content__container-billing_address{grid-area:2 / 2 / 3 / 3}.order-customer-details-content__container-shipping_methods{grid-area:3 / 1 / 4 / 2}.order-customer-details-content__container-billing_methods{grid-area:3 / 2 / 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-billing_methods p{display:grid;gap:0;grid-template-columns:auto 1fr}.order-customer-details-content__container-billing_methods p.order-customer-details-content__container-billing_methods--icon{gap:0 var(--spacing-xsmall)}.order-customer-details-content__container-description p{margin:0;padding:0;display:inline-flex;overflow:hidden}.order-empty-list{margin-bottom:var(--spacing-small);border:var(--shape-border-width-1) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-1)}.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-returns-list-content .dropin-header-container,.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;padding:0;margin-bottom:var(--spacing-xsmall);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);border-bottom:1px solid currentColor}.order-returns-list-content__descriptions p a:hover{text-decoration:none;color:var(--color-brand-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 .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{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:65px;height:65px}.order-order-product-list-content__items{display:grid;gap:var(--spacing-medium);list-style:none;margin:0;padding: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-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)}.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-order-cancel-reasons-form__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-reasons-form__button-container{display:grid;margin-top:var(--spacing-xbig);justify-content:end}',{styleId:"order"});
2
+ import{jsx as r}from"@dropins/tools/preact-jsx-runtime.js";import{Render as a}from"@dropins/tools/lib.js";import{useState as n,useEffect as d}from"@dropins/tools/preact-hooks.js";import{UIProvider as l}from"@dropins/tools/components.js";import{events as c}from"@dropins/tools/event-bus.js";const u={OrderCostSummary:{headerText:"Order summary",subtotal:{title:"Subtotal"},shipping:{title:"Shipping",freeShipping:"Free shipping"},tax:{accordionTitle:"Taxes",accordionTotalTax:"Tax Total",totalExcludingTaxes:"Total excluding taxes",title:"Tax",incl:"Including taxes",excl:"Excluding taxes"},discount:{title:"Discount",subtitle:"discounted"},total:{title:"Total"}},Returns:{minifiedView:{returnsList:{viewAllOrdersButton:"View all returns",ariaLabelLink:"Redirect to full order information",emptyOrdersListMessage:"No returns",minifiedViewTitle:"Recent returns",orderNumber:"Order Number:",carrier:"Carrier:",itemsText:"items"}},fullSizeView:{returnsList:{viewAllOrdersButton:"View all orders",ariaLabelLink:"Redirect to full order information",emptyOrdersListMessage:"No returns",minifiedViewTitle:"Returns",orderNumber:"Order Number:",carrier:"Carrier:",itemsText:"items"}}},OrderProductListContent:{cancelledTitle:"Cancelled",allOrdersTitle:"Your order",downloadableCount:"Files",stockStatus:{inStock:"In stock",outOfStock:"Out of stock"},GiftCard:{sender:"Sender",recipient:"Recipient",message:"Note"}},OrderSearchForm:{title:"Enter your information to view order details",description:"You can find your order number in the receipt you received via email.",button:"View Order",email:"Email",postcode:"Zip Code",orderNumber:"Order Number"},Form:{notifications:{requiredFieldError:"This is a required field."}},ShippingStatusCard:{trackButton:"Track package",carrier:"Carrier:",prepositionOf:"of",shippingCardTitle:"Package details",shippingInfoTitle:"Shipping info",notYetShippedTitle:"Not yet shipped",notYetShippedImagesTitle:"Package contents"},OrderStatusContent:{noInfoTitle:"Check back later for more details.",actions:{cancel:"Cancel order",return:"Return or replace",reorder:"Reorder"},orderPending:{title:"Pending",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},orderProcessing:{title:"Processing",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},orderOnHold:{title:"On hold",message:"We’ve run into an issue while processing your order on {DATE}. Please check back later or contact us at support@adobe.com for more information.",messageWithoutDate:"We’ve run into an issue while processing your order. Please check back later or contact us at support@adobe.com for more information."},orderReceived:{title:"Order received",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},orderComplete:{title:"Complete",message:"Your order is complete. Need help with your order? Contact us at support@adobe.com"},orderCanceled:{title:"Canceled",message:"This order was cancelled by you. You should see a refund to your original payment method with 5-7 business days."},orderSuspectedFraud:{title:"Suspected fraud",message:"We’ve run into an issue while processing your order on {DATE}. Please check back later or contact us at support@adobe.com for more information.",messageWithoutDate:"We’ve run into an issue while processing your order. Please check back later or contact us at support@adobe.com for more information."},orderPaymentReview:{title:"Payment Review",message:"The order was successfully placed on {DATE} and your order is processing. Check back for more details when your order ships.",messageWithoutDate:"Your order is processing. Check back for more details when your order ships."},guestOrderCancellationRequested:{title:"cancellation requested",message:"The cancellation has been requested on {DATE}. Check your email for further instructions.",messageWithoutDate:"The cancellation has been requested. Check your email for further instructions."}},CustomerDetails:{headerText:"Customer information",freeShipping:"Free shipping",email:{title:"Contact details"},shippingAddress:{title:"Shipping address"},shippingMethods:{title:"Shipping method"},billingAddress:{title:"Billing address"},billingMethods:{title:"Payment method"}},Errors:{invalidOrder:"Invalid order. Please try again.",invalidSearch:"No order found with these order details."},OrderCancel:{buttonText:"Cancel Order"},OrderCancellationReasonsForm:{title:"Cancel order",description:"Select a reason for canceling the order",label:"Reason for cancel",button:"Submit Cancellation",errorHeading:"Error",errorDescription:"There was an error processing your order cancellation."}},m={Order:u},p={default:m},h=({children:o})=>{const[t,i]=n("en_US");return d(()=>{const e=c.on("locale",s=>{i(s)},{eager:!0});return()=>{e==null||e.off()}},[]),r(l,{lang:t,langDefinitions:p,children:o})},k=new a(r(h,{}));export{k as render};
@@ -0,0 +1,46 @@
1
+ import { OrderItemProps } from './getOrderDetails.types';
2
+
3
+ export interface GetCustomerOrdersReturnResponse {
4
+ data: {
5
+ customer: {
6
+ returns: {
7
+ page_info: {
8
+ page_size: number;
9
+ total_pages: number;
10
+ current_page: number;
11
+ };
12
+ items: {
13
+ number: number;
14
+ order: {
15
+ number: string;
16
+ token: string;
17
+ };
18
+ shipping: {
19
+ tracking: {
20
+ status: {
21
+ text: string;
22
+ type: string;
23
+ };
24
+ carrier: {
25
+ uid: string;
26
+ label: string;
27
+ };
28
+ tracking_number: string;
29
+ }[];
30
+ };
31
+ items: {
32
+ quantity: number;
33
+ status: string;
34
+ uid: string;
35
+ request_quantity: number;
36
+ order_item: OrderItemProps;
37
+ }[];
38
+ }[];
39
+ };
40
+ };
41
+ };
42
+ errors?: {
43
+ message: string;
44
+ }[];
45
+ }
46
+ //# sourceMappingURL=getCustomerOrdersReturn.types.d.ts.map
@@ -24,6 +24,7 @@ export interface ProductProps {
24
24
  thumbnail?: ThumbnailImageProps;
25
25
  image: ThumbnailImageProps;
26
26
  canonical_url: string;
27
+ id: string;
27
28
  uid: string;
28
29
  name: string;
29
30
  __typename: string;
@@ -58,6 +59,7 @@ export interface DiscountProps {
58
59
  label?: string;
59
60
  }
60
61
  export interface TotalProps {
62
+ total_giftcard?: MoneyProps;
61
63
  grand_total?: GrandTotalProps;
62
64
  subtotal?: SubtotalProps;
63
65
  taxes?: TaxDetailProps[];
@@ -78,11 +80,9 @@ interface InvoiceProps {
78
80
  }[];
79
81
  }
80
82
  export interface GiftMessageProps {
81
- gift_message: {
82
- form: string;
83
- message: string;
84
- to: string;
85
- };
83
+ form: string;
84
+ message: string;
85
+ to: string;
86
86
  }
87
87
  export interface GiftWrappingProps {
88
88
  gift_wrapping: {
@@ -100,6 +100,7 @@ export interface giftCardProps {
100
100
  sender_email: string;
101
101
  recipient_email: string;
102
102
  recipient_name: string;
103
+ message: string;
103
104
  }
104
105
  export interface OrderItemProps {
105
106
  __typename: string;
@@ -128,8 +129,26 @@ export interface OrderItemProps {
128
129
  label: string;
129
130
  value: string;
130
131
  }[];
132
+ bundle_options: any;
131
133
  status: string;
132
134
  gift_card?: giftCardProps;
135
+ downloadable_links: {
136
+ title: string;
137
+ }[];
138
+ prices: {
139
+ price_including_tax: MoneyProps;
140
+ original_price: MoneyProps;
141
+ original_price_including_tax: MoneyProps;
142
+ price: MoneyProps;
143
+ discounts: [
144
+ {
145
+ label: string;
146
+ amount: {
147
+ value: number;
148
+ };
149
+ }
150
+ ];
151
+ };
133
152
  }
134
153
  export interface PaymentMethodsProps {
135
154
  name: string;
@@ -0,0 +1,7 @@
1
+ export interface EmptyListProps {
2
+ isEmpty: boolean;
3
+ typeList: 'orders';
4
+ minifiedView: boolean;
5
+ message: string;
6
+ }
7
+ //# sourceMappingURL=emptyList.types.d.ts.map
package/types/index.d.ts CHANGED
@@ -3,10 +3,15 @@ export * from './api/getOrderDetails.types';
3
3
  export * from './api/getGuestOrder.types';
4
4
  export * from './api/getAttributesForm.types';
5
5
  export * from './api/getCustomer.types';
6
+ export * from './api/getCustomerOrdersReturn.types';
6
7
  export * from './orderSearch.types';
7
8
  export * from './form.types';
8
9
  export * from './orderStatus.types';
9
10
  export * from './shippingStatus.types';
10
11
  export * from './customerDetails.types';
11
12
  export * from './orderCancel.types';
13
+ export * from './returnsList.types';
14
+ export * from './emptyList.types';
15
+ export * from './orderProductList.types';
16
+ export * from './orderCostSummary.types';
12
17
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,14 @@
1
- import { ModalProps, ButtonProps, PickerProps } from '@dropins/tools/types/elsie/src/src/components';
1
+ import { ButtonProps, PickerProps } from '@dropins/tools/types/elsie/src/src/components';
2
+ import { PickerOption } from '@dropins/tools/types/elsie/src/components';
2
3
 
3
4
  export interface OrderCancelProps {
4
- cancelButtonProps?: ButtonProps;
5
- modalProps?: ModalProps;
5
+ orderId: string;
6
+ }
7
+ export interface OrderCancelReasonFormProps {
8
+ orderId: string;
6
9
  pickerProps?: PickerProps;
7
10
  submitButtonProps?: ButtonProps;
8
- orderId: string;
11
+ cancelOrder: (orderId: string, reason: string, onSuccess: Function, onError: Function) => Promise<void | null | undefined>;
12
+ cancelReasons: PickerOption[];
9
13
  }
10
14
  //# sourceMappingURL=orderCancel.types.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes } from 'preact/compat';
2
+ import { OrderDataModel, StoreConfigModel } from '../data/models';
3
+
4
+ type TaxTypes = {
5
+ taxIncluded: boolean;
6
+ taxExcluded: boolean;
7
+ };
8
+ export interface StoreConfigProps extends Omit<StoreConfigModel, 'orderCancellationEnabled' | 'orderCancellationReasons' | 'shoppingCartDisplayPrice' | 'shoppingOrdersDisplayShipping' | 'shoppingOrdersDisplaySubtotal'> {
9
+ shoppingCartDisplayPrice: TaxTypes;
10
+ shoppingOrdersDisplayShipping: TaxTypes;
11
+ shoppingOrdersDisplaySubtotal: TaxTypes;
12
+ }
13
+ export interface OrderCostSummaryProps extends HTMLAttributes<HTMLDivElement> {
14
+ orderData?: OrderDataModel;
15
+ withHeader?: boolean;
16
+ }
17
+ export interface OrderCostSummaryContentProps {
18
+ order?: OrderDataModel;
19
+ withHeader?: boolean;
20
+ loading?: boolean;
21
+ storeConfig: StoreConfigProps | null;
22
+ translations: Record<string, string>;
23
+ }
24
+ export interface UseOrderCostSummaryProps {
25
+ orderData?: OrderDataModel;
26
+ }
27
+ export {};
28
+ //# sourceMappingURL=orderCostSummary.types.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { OrderDataModel, OrderItemModel } from '../data/models';
2
+
3
+ type options = Record<string, string | number | boolean>;
4
+ export type TaxTypes = {
5
+ taxIncluded: boolean;
6
+ taxExcluded: boolean;
7
+ };
8
+ export interface OrderProductListProps {
9
+ orderData?: OrderDataModel;
10
+ className?: string;
11
+ withHeader?: boolean;
12
+ showConfigurableOptions?: (options: options | {}) => options;
13
+ }
14
+ export interface OrderProductListContentProps extends Omit<OrderProductListProps, 'className'> {
15
+ order?: OrderDataModel;
16
+ taxConfig: TaxTypes;
17
+ loading: boolean;
18
+ }
19
+ export interface CartSummaryItemProps {
20
+ taxConfig: TaxTypes;
21
+ loading: boolean;
22
+ translations: Record<string, string>;
23
+ showConfigurableOptions?: (options: options | {}) => options;
24
+ itemType: string;
25
+ product: OrderItemModel;
26
+ }
27
+ export interface UseOrderProductListProps extends Omit<OrderProductListProps, 'className' | 'withHeader' | 'showConfigurableOptions'> {
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=orderProductList.types.d.ts.map
@@ -0,0 +1,42 @@
1
+ import { SlotProps } from '@dropins/tools/types/elsie/src/src/lib';
2
+ import { OrderItemModel, OrdersReturnItemsProps, OrdersReturnProps, OrdersReturnTrackingProps, PageInfoProps } from '../data/models';
3
+
4
+ export interface IconConfig {
5
+ size: '12' | '16' | '24' | '32' | '64' | '80' | undefined;
6
+ stroke: '4' | '1' | '2' | '3' | undefined;
7
+ }
8
+ export interface ReturnsListProps {
9
+ slots?: {
10
+ ReturnItemsDetails?: SlotProps<{
11
+ items: OrdersReturnItemsProps[];
12
+ }>;
13
+ DetailsActionParams?: SlotProps<{
14
+ returnOrderItem: OrdersReturnProps;
15
+ }>;
16
+ };
17
+ withReturnsListButton?: boolean;
18
+ returnsInMinifiedView?: number;
19
+ className: string;
20
+ minifiedView?: boolean;
21
+ withHeader?: boolean;
22
+ routeReturnDetails?: ({ token, orderNumber, }: {
23
+ token: string;
24
+ orderNumber: string;
25
+ }) => string;
26
+ routeOrderDetails?: (number: string) => string;
27
+ routeTracking?: (track: OrdersReturnTrackingProps) => string;
28
+ routeReturnsList?: () => string;
29
+ routeProductDetails?: (orderItem?: OrderItemModel) => string;
30
+ withThumbnails?: boolean;
31
+ }
32
+ export interface ReturnsListContentProps extends Omit<ReturnsListProps, 'className'> {
33
+ returnOrderList: OrdersReturnProps[] | [];
34
+ translations: Record<string, string>;
35
+ isMobile: boolean;
36
+ pageInfo: PageInfoProps;
37
+ selectedPage: number;
38
+ handleSetSelectPage: (value: number) => void;
39
+ }
40
+ export interface UseReturnsListProps {
41
+ }
42
+ //# sourceMappingURL=returnsList.types.d.ts.map
@@ -1,5 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { OrderCancelProps } from '../../types';
3
-
4
- export declare const OrderCancel: FunctionComponent<OrderCancelProps>;
5
- //# sourceMappingURL=OrderCancel.d.ts.map