@dropins/storefront-order 0.1.0-alpha11 → 0.1.0-alpha13
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/confirmCancelOrder/confirmCancelOrder.d.ts +16 -0
- package/api/confirmCancelOrder/graphql/ConfirmCancelOrder.d.ts +16 -0
- package/api/confirmCancelOrder/index.d.ts +16 -0
- package/api/getCustomerOrdersReturn/getCustomerOrdersReturn.d.ts +4 -0
- package/api/getCustomerOrdersReturn/graphql/getCustomerOrdersReturn.graphql.d.ts +2 -0
- package/api/getCustomerOrdersReturn/index.d.ts +2 -0
- package/api/getGuestOrder/graphql/index.d.ts +2 -0
- package/api/getOrderDetailsById/graphql/orderItemsFragment.graphql.d.ts +5 -5
- package/api/getOrderDetailsById/graphql/orderSummaryFragment.graphql.d.ts +1 -1
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +1 -1
- package/api/index.d.ts +3 -0
- package/api/requestGuestOrderCancel/graphql/requestGuestOrderCancelMutation.d.ts +2 -0
- package/api/requestGuestOrderCancel/index.d.ts +2 -0
- package/api/requestGuestOrderCancel/requestGuestOrderCancel.d.ts +2 -0
- package/api.js +85 -41
- package/chunks/OrderLoaders.js +1 -1
- package/chunks/getCustomer.js +2 -74
- package/chunks/getCustomerOrdersReturn.js +52 -0
- package/chunks/getGuestOrder.graphql.js +150 -0
- package/chunks/getStoreConfig.js +6 -2
- package/chunks/requestGuestOrderCancel.js +97 -0
- package/chunks/setTaxStatus.js +1 -0
- package/chunks/transform-order-details.js +45 -116
- package/chunks/useGetStoreConfig.js +1 -0
- package/components/EmptyList/EmptyList.d.ts +5 -0
- package/components/EmptyList/index.d.ts +3 -0
- package/components/OrderCostSummaryContent/Blocks.d.ts +38 -0
- package/components/OrderCostSummaryContent/OrderCostSummaryContent.d.ts +5 -0
- package/components/OrderCostSummaryContent/index.d.ts +3 -0
- package/components/OrderLoaders/OrderLoaders.d.ts +1 -0
- package/components/ReturnsListContent/ReturnsListContent.d.ts +5 -0
- package/components/ReturnsListContent/index.d.ts +3 -0
- package/components/index.d.ts +3 -0
- package/configs/mock.config.d.ts +318 -0
- package/containers/CustomerDetails.js +1 -1
- package/containers/OrderCancel.js +1 -79
- package/containers/OrderCostSummary/OrderCostSummary.d.ts +5 -0
- package/containers/OrderCostSummary/index.d.ts +3 -0
- package/containers/OrderCostSummary.d.ts +3 -0
- package/containers/OrderCostSummary.js +1 -0
- package/containers/OrderProductList.js +1 -1
- package/containers/OrderSearch.js +1 -1
- package/containers/OrderStatus.js +20 -1
- package/containers/ReturnsList/ReturnsList.d.ts +5 -0
- package/containers/ReturnsList/index.d.ts +3 -0
- package/containers/ReturnsList.d.ts +3 -0
- package/containers/ReturnsList.js +1 -0
- package/containers/index.d.ts +2 -0
- package/data/models/customer-orders-return.d.ts +36 -0
- package/data/models/index.d.ts +2 -0
- package/data/models/order-details.d.ts +27 -16
- package/data/models/store-config.d.ts +6 -0
- package/data/transforms/index.d.ts +2 -0
- package/data/transforms/transform-customer-orders-return.d.ts +5 -0
- package/data/transforms/transform-order-details.d.ts +2 -1
- package/hooks/containers/useConfirmCancelOrder.d.ts +9 -0
- package/hooks/containers/useOrderCostSummary.d.ts +9 -0
- package/hooks/containers/useReturnsList.d.ts +14 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/useIsMobile.d.ts +2 -0
- package/i18n/en_US.json.d.ts +58 -9
- package/package.json +1 -1
- package/render.js +2 -2
- package/types/api/getCustomerOrdersReturn.types.d.ts +46 -0
- package/types/api/getOrderDetails.types.d.ts +1 -0
- package/types/emptyList.types.d.ts +7 -0
- package/types/index.d.ts +4 -0
- package/types/orderCancel.types.d.ts +5 -2
- package/types/orderCostSummary.types.d.ts +28 -0
- package/types/returnsList.types.d.ts +42 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import{P as _,a as l,G as E,O as c,B as m,t as d}from"./transform-order-details.js";import{O,A as D,G as R}from"./getGuestOrder.graphql.js";import{f as i,h as u}from"./fetch-graphql.js";const T=`
|
|
2
|
+
mutation CANCEL_ORDER_MUTATION($orderId: ID!, $reason: String!) {
|
|
3
|
+
cancelOrder(input: { order_id: $orderId, reason: $reason }) {
|
|
4
|
+
error
|
|
5
|
+
order {
|
|
6
|
+
email
|
|
7
|
+
available_actions
|
|
8
|
+
status
|
|
9
|
+
number
|
|
10
|
+
id
|
|
11
|
+
order_date
|
|
12
|
+
carrier
|
|
13
|
+
shipping_method
|
|
14
|
+
is_virtual
|
|
15
|
+
applied_coupons {
|
|
16
|
+
code
|
|
17
|
+
}
|
|
18
|
+
shipments {
|
|
19
|
+
id
|
|
20
|
+
number
|
|
21
|
+
tracking {
|
|
22
|
+
title
|
|
23
|
+
number
|
|
24
|
+
carrier
|
|
25
|
+
}
|
|
26
|
+
comments {
|
|
27
|
+
message
|
|
28
|
+
timestamp
|
|
29
|
+
}
|
|
30
|
+
items {
|
|
31
|
+
id
|
|
32
|
+
product_sku
|
|
33
|
+
product_name
|
|
34
|
+
order_item {
|
|
35
|
+
...OrderItemDetails
|
|
36
|
+
... on GiftCardOrderItem {
|
|
37
|
+
...GiftCardDetails
|
|
38
|
+
product {
|
|
39
|
+
...ProductDetails
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
payment_methods {
|
|
46
|
+
name
|
|
47
|
+
type
|
|
48
|
+
}
|
|
49
|
+
shipping_address {
|
|
50
|
+
...AddressesList
|
|
51
|
+
}
|
|
52
|
+
billing_address {
|
|
53
|
+
...AddressesList
|
|
54
|
+
}
|
|
55
|
+
items {
|
|
56
|
+
...OrderItemDetails
|
|
57
|
+
... on BundleOrderItem {
|
|
58
|
+
...BundleOrderItemDetails
|
|
59
|
+
}
|
|
60
|
+
... on GiftCardOrderItem {
|
|
61
|
+
...GiftCardDetails
|
|
62
|
+
product {
|
|
63
|
+
...ProductDetails
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
... on DownloadableOrderItem {
|
|
67
|
+
product_name
|
|
68
|
+
downloadable_links {
|
|
69
|
+
sort_order
|
|
70
|
+
title
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
total {
|
|
75
|
+
...OrderSummary
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
${_}
|
|
81
|
+
${l}
|
|
82
|
+
${E}
|
|
83
|
+
${c}
|
|
84
|
+
${m}
|
|
85
|
+
${O}
|
|
86
|
+
${D}
|
|
87
|
+
`,G=async(r,e,o,n)=>{if(!r)throw new Error("No order ID found");if(!e)throw new Error("No reason found");return i(T,{variables:{orderId:r,reason:e}}).then(({errors:t,data:a})=>{if(t)return u(t);if(a.cancelOrder.error!=null){n();return}const s=d(a.cancelOrder.order);o(s)})},A=`
|
|
88
|
+
mutation REQUEST_GUEST_ORDER_CANCEL_MUTATION($token: String!, $reason: String!) {
|
|
89
|
+
requestGuestOrderCancel(input: { token: $token, reason: $reason }) {
|
|
90
|
+
error
|
|
91
|
+
order {
|
|
92
|
+
...guestOrderData
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
${R}
|
|
97
|
+
`,C=async(r,e,o,n)=>{if(!r)throw new Error("No order token found");if(!e)throw new Error("No reason found");return i(A,{variables:{token:r,reason:e}}).then(({errors:t,data:a})=>{if(t)return u(t);if(a.requestGuestOrderCancel.error!=null)return n(),!1;const s=d(a.requestGuestOrderCancel.order);return o(s),!0})};export{G as c,C as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const s=t=>{let e=!1,a=!1;switch(t){case 1:a=!0;break;case 2:e=!0;break;case 3:e=!0,a=!0;break;default:e=!1,a=!1}return{taxIncluded:e,taxExcluded:a}};export{s};
|
|
@@ -1,92 +1,5 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
fragment
|
|
3
|
-
grand_total {
|
|
4
|
-
value
|
|
5
|
-
currency
|
|
6
|
-
}
|
|
7
|
-
subtotal {
|
|
8
|
-
currency
|
|
9
|
-
value
|
|
10
|
-
}
|
|
11
|
-
taxes {
|
|
12
|
-
amount {
|
|
13
|
-
currency
|
|
14
|
-
value
|
|
15
|
-
}
|
|
16
|
-
rate
|
|
17
|
-
title
|
|
18
|
-
}
|
|
19
|
-
total_tax {
|
|
20
|
-
currency
|
|
21
|
-
value
|
|
22
|
-
}
|
|
23
|
-
total_shipping {
|
|
24
|
-
currency
|
|
25
|
-
value
|
|
26
|
-
}
|
|
27
|
-
discounts {
|
|
28
|
-
amount {
|
|
29
|
-
currency
|
|
30
|
-
value
|
|
31
|
-
}
|
|
32
|
-
label
|
|
33
|
-
}
|
|
34
|
-
}`,H=`
|
|
35
|
-
fragment AddressesList on OrderAddress {
|
|
36
|
-
city
|
|
37
|
-
company
|
|
38
|
-
country_code
|
|
39
|
-
fax
|
|
40
|
-
firstname
|
|
41
|
-
lastname
|
|
42
|
-
middlename
|
|
43
|
-
postcode
|
|
44
|
-
prefix
|
|
45
|
-
region
|
|
46
|
-
region_id
|
|
47
|
-
street
|
|
48
|
-
suffix
|
|
49
|
-
telephone
|
|
50
|
-
vat_id
|
|
51
|
-
}`,k=`
|
|
52
|
-
prices {
|
|
53
|
-
price_including_tax {
|
|
54
|
-
value
|
|
55
|
-
currency
|
|
56
|
-
}
|
|
57
|
-
original_price {
|
|
58
|
-
value
|
|
59
|
-
currency
|
|
60
|
-
}
|
|
61
|
-
original_price_including_tax {
|
|
62
|
-
value
|
|
63
|
-
currency
|
|
64
|
-
}
|
|
65
|
-
price {
|
|
66
|
-
value
|
|
67
|
-
currency
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
`,P=`
|
|
71
|
-
__typename
|
|
72
|
-
status
|
|
73
|
-
product_name
|
|
74
|
-
id
|
|
75
|
-
quantity_ordered
|
|
76
|
-
quantity_shipped
|
|
77
|
-
quantity_canceled
|
|
78
|
-
quantity_invoiced
|
|
79
|
-
quantity_refunded
|
|
80
|
-
quantity_returned
|
|
81
|
-
product_sale_price {
|
|
82
|
-
value
|
|
83
|
-
currency
|
|
84
|
-
}
|
|
85
|
-
selected_options {
|
|
86
|
-
label
|
|
87
|
-
value
|
|
88
|
-
}
|
|
89
|
-
product {
|
|
1
|
+
import{a as F}from"./convertCase.js";const H=`
|
|
2
|
+
fragment ProductDetails on ProductInterface {
|
|
90
3
|
__typename
|
|
91
4
|
canonical_url
|
|
92
5
|
uid
|
|
@@ -108,32 +21,7 @@ fragment AddressesList on OrderAddress {
|
|
|
108
21
|
}
|
|
109
22
|
}
|
|
110
23
|
`,J=`
|
|
111
|
-
|
|
112
|
-
${k}
|
|
113
|
-
}
|
|
114
|
-
`,V=`
|
|
115
|
-
... on DownloadableOrderItem {
|
|
116
|
-
product_name
|
|
117
|
-
downloadable_links {
|
|
118
|
-
sort_order
|
|
119
|
-
title
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
`,X=`
|
|
123
|
-
... on BundleOrderItem {
|
|
124
|
-
${k}
|
|
125
|
-
bundle_options {
|
|
126
|
-
uid
|
|
127
|
-
label
|
|
128
|
-
values {
|
|
129
|
-
uid
|
|
130
|
-
product_name
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
`,Z=`
|
|
135
|
-
... on GiftCardOrderItem {
|
|
136
|
-
${P}
|
|
24
|
+
fragment PriceDetails on OrderItemInterface {
|
|
137
25
|
prices {
|
|
138
26
|
price_including_tax {
|
|
139
27
|
value
|
|
@@ -152,6 +40,10 @@ fragment AddressesList on OrderAddress {
|
|
|
152
40
|
currency
|
|
153
41
|
}
|
|
154
42
|
}
|
|
43
|
+
}
|
|
44
|
+
`,V=`
|
|
45
|
+
fragment GiftCardDetails on GiftCardOrderItem {
|
|
46
|
+
...PriceDetails
|
|
155
47
|
gift_message {
|
|
156
48
|
message
|
|
157
49
|
}
|
|
@@ -163,4 +55,41 @@ fragment AddressesList on OrderAddress {
|
|
|
163
55
|
message
|
|
164
56
|
}
|
|
165
57
|
}
|
|
166
|
-
`,
|
|
58
|
+
`,W=`
|
|
59
|
+
fragment OrderItemDetails on OrderItemInterface {
|
|
60
|
+
__typename
|
|
61
|
+
status
|
|
62
|
+
product_name
|
|
63
|
+
id
|
|
64
|
+
quantity_ordered
|
|
65
|
+
quantity_shipped
|
|
66
|
+
quantity_canceled
|
|
67
|
+
quantity_invoiced
|
|
68
|
+
quantity_refunded
|
|
69
|
+
quantity_returned
|
|
70
|
+
product_sale_price {
|
|
71
|
+
value
|
|
72
|
+
currency
|
|
73
|
+
}
|
|
74
|
+
selected_options {
|
|
75
|
+
label
|
|
76
|
+
value
|
|
77
|
+
}
|
|
78
|
+
product {
|
|
79
|
+
...ProductDetails
|
|
80
|
+
}
|
|
81
|
+
...PriceDetails
|
|
82
|
+
}
|
|
83
|
+
`,X=`
|
|
84
|
+
fragment BundleOrderItemDetails on BundleOrderItem {
|
|
85
|
+
...PriceDetails
|
|
86
|
+
bundle_options {
|
|
87
|
+
uid
|
|
88
|
+
label
|
|
89
|
+
values {
|
|
90
|
+
uid
|
|
91
|
+
product_name
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`,j=n=>n||0,k=n=>{var a,l,i;return{...n,canonicalUrl:(n==null?void 0:n.canonical_url)||"",id:(n==null?void 0:n.uid)||"",name:(n==null?void 0:n.name)||"",sku:(n==null?void 0:n.sku)||"",image:((a=n==null?void 0:n.image)==null?void 0:a.url)||"",productType:(n==null?void 0:n.__typename)||"",thumbnail:{label:((l=n==null?void 0:n.thumbnail)==null?void 0:l.label)||"",url:((i=n==null?void 0:n.thumbnail)==null?void 0:i.url)||""}}},w=n=>{if(!n||!("selected_options"in n))return;const a={};for(const l of n.selected_options)a[l.label]=l.value;return a},Q=n=>{const a=n==null?void 0:n.map(i=>({uid:i.uid,label:i.label,values:i.values.map(c=>c.product_name).join(", ")})),l={};return a==null||a.forEach(i=>{l[i.label]=i.values}),Object.keys(l).length>0?l:null},U=n=>(n==null?void 0:n.length)>0?{count:n.length,result:n.map(a=>a.title).join(", ")}:null,e=n=>n==null?void 0:n.filter(a=>a.__typename).map(a=>{var l,i,c,u,_,s,p,y,g,f,b,v,O,t,q,h,E,D,T,N,R,C,P,A,x,G,L,S,M,B;return{type:a==null?void 0:a.__typename,productName:a.product_name,quantityCanceled:(a==null?void 0:a.quantity_canceled)||0,quantityInvoiced:(a==null?void 0:a.quantity_invoiced)||0,quantityOrdered:(a==null?void 0:a.quantity_ordered)||0,quantityRefunded:(a==null?void 0:a.quantity_refunded)||0,quantityReturned:(a==null?void 0:a.quantity_returned)||0,quantityShipped:(a==null?void 0:a.quantity_shipped)||0,id:a==null?void 0:a.id,discounted:((u=(c=(i=(l=a==null?void 0:a.product)==null?void 0:l.price_range)==null?void 0:i.maximum_price)==null?void 0:c.regular_price)==null?void 0:u.value)*(a==null?void 0:a.quantity_ordered)!==((_=a==null?void 0:a.product_sale_price)==null?void 0:_.value)*(a==null?void 0:a.quantity_ordered),total:{value:((s=a==null?void 0:a.product_sale_price)==null?void 0:s.value)*(a==null?void 0:a.quantity_ordered)||0,currency:((p=a==null?void 0:a.product_sale_price)==null?void 0:p.currency)||""},totalInclTax:{value:((y=a==null?void 0:a.product_sale_price)==null?void 0:y.value)*(a==null?void 0:a.quantity_ordered)||0,currency:(g=a==null?void 0:a.product_sale_price)==null?void 0:g.currency},price:{value:((f=a==null?void 0:a.product_sale_price)==null?void 0:f.value)||0,currency:(b=a==null?void 0:a.product_sale_price)==null?void 0:b.currency},priceInclTax:{value:((v=a==null?void 0:a.product_sale_price)==null?void 0:v.value)||0,currency:(O=a==null?void 0:a.product_sale_price)==null?void 0:O.currency},totalQuantity:j(a==null?void 0:a.quantity_ordered),regularPrice:{value:(E=(h=(q=(t=a==null?void 0:a.product)==null?void 0:t.price_range)==null?void 0:q.maximum_price)==null?void 0:h.regular_price)==null?void 0:E.value,currency:(R=(N=(T=(D=a==null?void 0:a.product)==null?void 0:D.price_range)==null?void 0:T.maximum_price)==null?void 0:N.regular_price)==null?void 0:R.currency},product:k(a==null?void 0:a.product),thumbnail:{label:((P=(C=a==null?void 0:a.product)==null?void 0:C.thumbnail)==null?void 0:P.label)||"",url:((x=(A=a==null?void 0:a.product)==null?void 0:A.thumbnail)==null?void 0:x.url)||""},giftCard:(a==null?void 0:a.__typename)==="GiftCardOrderItem"?{senderName:((G=a.gift_card)==null?void 0:G.sender_name)||"",senderEmail:((L=a.gift_card)==null?void 0:L.sender_email)||"",recipientEmail:((S=a.gift_card)==null?void 0:S.recipient_email)||"",recipientName:((M=a.gift_card)==null?void 0:M.recipient_name)||"",message:((B=a.gift_card)==null?void 0:B.message)||""}:void 0,configurableOptions:w(a),bundleOptions:a.__typename==="BundleOrderItem"?Q(a.bundle_options):null,itemPrices:a.prices,downloadableLinks:a.__typename==="DownloadableOrderItem"?U(a==null?void 0:a.downloadable_links):null}}),K=n=>{var y,g,f,b,v;const a=e(n.items),{total:l,...i}=F({...n,items:a},"camelCase",{applied_coupons:"coupons",__typename:"__typename",firstname:"firstName",middlename:"middleName",lastname:"lastName",postcode:"postCode",payment_methods:"payments"}),c=(y=n==null?void 0:n.payment_methods)==null?void 0:y[0],u=(c==null?void 0:c.type)||"",_=(c==null?void 0:c.name)||"",s=(g=i==null?void 0:i.items)==null?void 0:g.reduce((O,t)=>O+(t==null?void 0:t.totalQuantity),0);return{...l,...i,totalQuantity:s,shipping:{amount:((f=i==null?void 0:i.total)==null?void 0:f.totalShipping.value)??0,currency:((v=(b=i.total)==null?void 0:b.totalShipping)==null?void 0:v.currency)||"",code:i.shippingMethod??""},payments:[{code:u,name:_}]}},Y=(n,a)=>{var l,i,c,u,_,s,p;if((u=(c=(i=(l=a==null?void 0:a.data)==null?void 0:l.customer)==null?void 0:i.orders)==null?void 0:c.items)!=null&&u.length&&n==="orderData"){const y=(p=(s=(_=a==null?void 0:a.data)==null?void 0:_.customer)==null?void 0:s.orders)==null?void 0:p.items[0];return K(y)}return null};export{X as B,V as G,W as O,H as P,J as a,Y as b,e as c,K as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as i,useEffect as s}from"@dropins/tools/preact-hooks.js";import{g as f}from"./getStoreConfig.js";const c=()=>{const[n,e]=i(null);return s(()=>{const o=sessionStorage.getItem("orderStoreConfig"),r=o?JSON.parse(o):null;r?e(r):f().then(t=>{t&&(sessionStorage.setItem("orderStoreConfig",JSON.stringify(t)),e(t))})},[]),n};export{c as u};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OrderDataModel } from '../../data/models';
|
|
2
|
+
import { TaxTypes } from '../../types';
|
|
3
|
+
|
|
4
|
+
type translationsTypes = Record<string, string>;
|
|
5
|
+
export declare const Subtotal: ({ translations, order, subTotalValue, shoppingOrdersDisplaySubtotal, }: {
|
|
6
|
+
translations: translationsTypes;
|
|
7
|
+
order?: OrderDataModel | undefined;
|
|
8
|
+
subTotalValue: number;
|
|
9
|
+
shoppingOrdersDisplaySubtotal: TaxTypes;
|
|
10
|
+
}) => import("preact").JSX.Element;
|
|
11
|
+
export declare const Shipping: ({ translations, shoppingOrdersDisplayShipping, order, totalShipping, }: {
|
|
12
|
+
totalShipping: number;
|
|
13
|
+
shoppingOrdersDisplayShipping: TaxTypes;
|
|
14
|
+
order: OrderDataModel;
|
|
15
|
+
translations: translationsTypes;
|
|
16
|
+
}) => import("preact").JSX.Element;
|
|
17
|
+
export declare const Discounts: ({ translations, order, totalGiftcardValue, totalGiftcardCurrency, }: {
|
|
18
|
+
totalGiftcardValue: number;
|
|
19
|
+
totalGiftcardCurrency: string;
|
|
20
|
+
order: OrderDataModel;
|
|
21
|
+
translations: translationsTypes;
|
|
22
|
+
}) => import("preact").JSX.Element | null;
|
|
23
|
+
export declare const Coupons: ({ order }: {
|
|
24
|
+
order: OrderDataModel;
|
|
25
|
+
}) => import("preact").JSX.Element;
|
|
26
|
+
export declare const AccordionTax: ({ translations, renderTaxAccordion, totalAccordionTaxValue, order, }: {
|
|
27
|
+
translations: translationsTypes;
|
|
28
|
+
order: OrderDataModel;
|
|
29
|
+
renderTaxAccordion: boolean;
|
|
30
|
+
totalAccordionTaxValue: number;
|
|
31
|
+
}) => import("preact").JSX.Element;
|
|
32
|
+
export declare const Total: ({ translations, shoppingOrdersDisplaySubtotal, order, }: {
|
|
33
|
+
translations: translationsTypes;
|
|
34
|
+
order?: OrderDataModel | undefined;
|
|
35
|
+
shoppingOrdersDisplaySubtotal: TaxTypes;
|
|
36
|
+
}) => import("preact").JSX.Element;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=Blocks.d.ts.map
|
|
@@ -5,4 +5,5 @@ export declare const CardLoader: ({ testId, withCard, }: {
|
|
|
5
5
|
}) => import("preact").JSX.Element;
|
|
6
6
|
export declare const DetailsSkeleton: (props: any) => import("preact").JSX.Element;
|
|
7
7
|
export declare const OrderProductListSkeleton: () => import("preact").JSX.Element;
|
|
8
|
+
export declare const OrderSummarySkeleton: () => import("preact").JSX.Element;
|
|
8
9
|
//# sourceMappingURL=OrderLoaders.d.ts.map
|
package/components/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export * from './ShippingStatusCard';
|
|
|
5
5
|
export * from './OrderLoaders';
|
|
6
6
|
export * from './OrderActions';
|
|
7
7
|
export * from './CustomerDetailsContent';
|
|
8
|
+
export * from './EmptyList';
|
|
9
|
+
export * from './ReturnsListContent';
|
|
8
10
|
export * from './OrderProductListContent';
|
|
11
|
+
export * from './OrderCostSummaryContent';
|
|
9
12
|
export * from './OrderCancelReasonsForm';
|
|
10
13
|
//# sourceMappingURL=index.d.ts.map
|