@dropins/storefront-checkout 2.0.1-beta1 → 2.1.0-alpha1
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/fragments.d.ts +4 -1
- package/api/getNegotiableQuote/getNegotiableQuote.d.ts +22 -0
- package/api/getNegotiableQuote/graphql/getNegotiableQuote.graphql.d.ts +18 -0
- package/{errors → api/getNegotiableQuote/graphql}/index.d.ts +2 -2
- package/{signals → api/getNegotiableQuote}/index.d.ts +2 -2
- package/api/getStoreConfig/getStoreConfig.d.ts +1 -0
- package/api/graphql/CartAddressFragment.graphql.d.ts +2 -2
- package/api/graphql/NegotiableQuoteAddressFragment.graphql.d.ts +19 -0
- package/api/graphql/NegotiableQuoteFragment.graphql.d.ts +18 -0
- package/api/graphql/{CartPaymentMethodFragment.graphql.d.ts → PaymentMethodFragment.graphql.d.ts} +1 -1
- package/api/graphql/ShippingMethodFragment.graphql.d.ts +19 -0
- package/api/index.d.ts +1 -2
- package/api/initialize/initialize.d.ts +3 -0
- package/api/initializeCheckout/initializeCheckout.d.ts +2 -2
- package/api/setBillingAddress/graphql/index.d.ts +19 -0
- package/api/{setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts → setBillingAddress/graphql/setBillingAddressOnCartMutation.graphql.d.ts} +2 -2
- package/api/setBillingAddress/graphql/setBillingAddressOnQuoteMutation.graphql.d.ts +18 -0
- package/api/setBillingAddress/setBillingAddress.d.ts +2 -2
- package/api/setPaymentMethod/graphql/index.d.ts +19 -0
- package/api/{setBillingAddress/graphql/setBillingAddress.graphql.d.ts → setPaymentMethod/graphql/setPaymentMethodOnCart.graphql.d.ts} +2 -2
- package/api/setPaymentMethod/graphql/setPaymentMethodOnQuote.graphql.d.ts +18 -0
- package/api/setPaymentMethod/setPaymentMethod.d.ts +2 -2
- package/api/setShippingAddress/graphql/index.d.ts +21 -0
- package/api/setShippingAddress/graphql/{setShippingAddressAndUseAsBilling.graphql.d.ts → setShippingAddressOnCartAndUseAsBillingMutation.graphql.d.ts} +2 -2
- package/api/setShippingAddress/graphql/{setShippingAddress.graphql.d.ts → setShippingAddressOnCartMutation.graphql.d.ts} +2 -2
- package/api/setShippingAddress/graphql/setShippingAddressOnQuote.graphql.d.ts +18 -0
- package/api/setShippingAddress/graphql/setShippingAddressOnQuoteAndUseAsBillingMutation.graphql.d.ts +18 -0
- package/api/setShippingAddress/setShippingAddress.d.ts +1 -1
- package/api/setShippingMethods/graphql/index.d.ts +19 -0
- package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +1 -1
- package/api/setShippingMethods/graphql/setShippingMethodsOnQuote.graphql.d.ts +18 -0
- package/api/setShippingMethods/index.d.ts +1 -0
- package/api/setShippingMethods/setShippingMethods.d.ts +3 -17
- package/api/synchronizeCheckout/synchronizeCheckout.d.ts +2 -2
- package/api.js +2 -66
- package/api.js.map +1 -1
- package/chunks/ConditionalWrapper.js +1 -1
- package/chunks/ConditionalWrapper.js.map +1 -1
- package/chunks/checkout.js.map +1 -1
- package/chunks/dom.js.map +1 -1
- package/chunks/events.js +4 -0
- package/chunks/events.js.map +1 -0
- package/chunks/events2.js +4 -0
- package/chunks/events2.js.map +1 -0
- package/chunks/fetch-graphql.js +14 -0
- package/chunks/fetch-graphql.js.map +1 -0
- package/chunks/guards.js +4 -0
- package/chunks/guards.js.map +1 -0
- package/chunks/setBillingAddress.js +25 -5
- package/chunks/setBillingAddress.js.map +1 -1
- package/chunks/setGuestEmailOnCart.js +3 -3
- package/chunks/setGuestEmailOnCart.js.map +1 -1
- package/chunks/setPaymentMethod.js +21 -6
- package/chunks/setPaymentMethod.js.map +1 -1
- package/chunks/setShippingAddress.js +109 -0
- package/chunks/setShippingAddress.js.map +1 -0
- package/chunks/setShippingMethods.js +19 -4
- package/chunks/setShippingMethods.js.map +1 -1
- package/chunks/synchronizeCheckout.js +11 -3
- package/chunks/synchronizeCheckout.js.map +1 -1
- package/chunks/transform-shipping-estimate.js +4 -0
- package/chunks/transform-shipping-estimate.js.map +1 -0
- package/chunks/transform-shipping-methods.js +4 -0
- package/chunks/transform-shipping-methods.js.map +1 -0
- package/chunks/values.js +1 -1
- package/chunks/values.js.map +1 -1
- package/components/AddressValidation/AddressValidation.d.ts +14 -0
- package/components/AddressValidation/index.d.ts +19 -0
- package/components/PaymentMethods/PaymentMethods.d.ts +1 -1
- package/components/ShippingMethods/ShippingMethods.d.ts +1 -1
- package/components/index.d.ts +1 -0
- package/containers/AddressValidation/AddressValidation.d.ts +12 -0
- package/containers/AddressValidation/index.d.ts +19 -0
- package/containers/AddressValidation.d.ts +3 -0
- package/containers/AddressValidation.js +4 -0
- package/containers/AddressValidation.js.map +1 -0
- package/containers/BillToShippingAddress.js +1 -1
- package/containers/BillToShippingAddress.js.map +1 -1
- package/containers/EstimateShipping.js +1 -1
- package/containers/EstimateShipping.js.map +1 -1
- package/containers/LoginForm/LoginForm.d.ts +1 -1
- package/containers/LoginForm.js +1 -1
- package/containers/LoginForm.js.map +1 -1
- package/containers/OutOfStock.js +1 -1
- package/containers/OutOfStock.js.map +1 -1
- package/containers/PaymentMethods/PaymentMethods.d.ts +1 -2
- package/containers/PaymentMethods.js +1 -1
- package/containers/PaymentMethods.js.map +1 -1
- package/containers/PlaceOrder.js +1 -1
- package/containers/PlaceOrder.js.map +1 -1
- package/containers/ServerError.js +1 -1
- package/containers/ServerError.js.map +1 -1
- package/containers/ShippingMethods/ShippingMethods.d.ts +1 -2
- package/containers/ShippingMethods.js +1 -1
- package/containers/ShippingMethods.js.map +1 -1
- package/containers/TermsAndConditions.js +1 -1
- package/containers/TermsAndConditions.js.map +1 -1
- package/containers/index.d.ts +1 -0
- package/data/models/address.d.ts +11 -6
- package/data/models/api.d.ts +23 -10
- package/data/models/cart.d.ts +7 -7
- package/data/models/checkout.d.ts +14 -0
- package/data/models/country.d.ts +1 -1
- package/data/models/index.d.ts +2 -1
- package/data/models/{price.d.ts → money.d.ts} +2 -2
- package/data/models/quote.d.ts +16 -0
- package/data/models/shipping-estimate.d.ts +4 -4
- package/data/models/shipping-method.d.ts +4 -4
- package/data/models/values.d.ts +1 -1
- package/data/transforms/index.d.ts +8 -1
- package/data/transforms/transform-api.d.ts +12 -0
- package/data/transforms/{transform-address.d.ts → transform-cart-address.d.ts} +39 -43
- package/data/transforms/transform-cart.d.ts +1 -1
- package/data/transforms/transform-country.d.ts +8 -0
- package/data/transforms/transform-custom-attributes.d.ts +5 -0
- package/data/transforms/transform-negotiable-quote.d.ts +7 -0
- package/data/transforms/transform-payment-methods.d.ts +1 -1
- package/data/transforms/transform-quote-address.d.ts +88 -0
- package/data/transforms/transform-region.d.ts +8 -0
- package/fragments.js +180 -71
- package/fragments.js.map +1 -1
- package/i18n/en_US.json.d.ts +6 -0
- package/lib/enqueueRequest.d.ts +2 -2
- package/lib/errors/classifiers.d.ts +36 -0
- package/lib/errors/customErrors.d.ts +42 -0
- package/lib/errors/index.d.ts +20 -0
- package/lib/errors/mapErrorToCode.d.ts +4 -0
- package/lib/events.d.ts +3 -2
- package/lib/guards.d.ts +18 -0
- package/lib/index.d.ts +2 -2
- package/lib/state.d.ts +5 -3
- package/lib/utils/api.d.ts +16 -0
- package/lib/utils/events.d.ts +10 -0
- package/lib/utils/forms.d.ts +5 -0
- package/lib/utils/fragments.d.ts +19 -0
- package/lib/utils/index.d.ts +24 -0
- package/lib/utils/meta.d.ts +19 -0
- package/lib/utils/transformers.d.ts +6 -0
- package/lib/utils.d.ts +1 -0
- package/lib/utils.js +4 -0
- package/lib/utils.js.map +1 -0
- package/package.json +1 -1
- package/render.js +3 -3
- package/render.js.map +1 -1
- package/tests/constants.d.ts +1 -0
- package/tests/fixtures/fragments/cart.d.ts +43 -42
- package/tests/fixtures/fragments/shipping-address.d.ts +2 -1
- package/tests/fixtures/models/index.d.ts +1 -1
- package/tests/fixtures/models/quote.d.ts +9 -0
- package/types/api.d.ts +6 -0
- package/types/{TitleProps.d.ts → components.d.ts} +2 -1
- package/types/guards.d.ts +5 -0
- package/types/index.d.ts +21 -0
- package/types/storefront.d.ts +165 -0
- package/chunks/ServerErrorSignal.js +0 -4
- package/chunks/ServerErrorSignal.js.map +0 -1
- package/chunks/errors.js +0 -14
- package/chunks/errors.js.map +0 -1
- package/errors/errors.d.ts +0 -30
- package/lib/network-error.d.ts +0 -22
- package/signals/ServerErrorSignal.d.ts +0 -18
- package/types/ComponentTypes.d.ts +0 -18
- /package/lib/{dom.d.ts → utils/dom.d.ts} +0 -0
package/fragments.js
CHANGED
|
@@ -1,117 +1,129 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
3
|
const e=`
|
|
4
|
+
fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {
|
|
5
|
+
amount {
|
|
6
|
+
currency
|
|
7
|
+
value
|
|
8
|
+
}
|
|
9
|
+
carrier_code
|
|
10
|
+
carrier_title
|
|
11
|
+
error_message
|
|
12
|
+
method_code
|
|
13
|
+
method_title
|
|
14
|
+
price_excl_tax {
|
|
15
|
+
value
|
|
16
|
+
currency
|
|
17
|
+
}
|
|
18
|
+
price_incl_tax {
|
|
19
|
+
value
|
|
20
|
+
currency
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`,t=`
|
|
24
|
+
fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {
|
|
25
|
+
amount {
|
|
26
|
+
currency
|
|
27
|
+
value
|
|
28
|
+
}
|
|
29
|
+
carrier_code
|
|
30
|
+
carrier_title
|
|
31
|
+
method_code
|
|
32
|
+
method_title
|
|
33
|
+
price_excl_tax {
|
|
34
|
+
value
|
|
35
|
+
currency
|
|
36
|
+
}
|
|
37
|
+
price_incl_tax {
|
|
38
|
+
value
|
|
39
|
+
currency
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`,a=`
|
|
4
43
|
fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {
|
|
5
|
-
id
|
|
6
44
|
city
|
|
7
|
-
country {
|
|
8
|
-
code
|
|
9
|
-
label
|
|
10
|
-
}
|
|
11
|
-
firstname
|
|
12
|
-
lastname
|
|
13
45
|
company
|
|
14
|
-
|
|
15
|
-
vat_id
|
|
16
|
-
region {
|
|
17
|
-
region_id
|
|
46
|
+
country {
|
|
18
47
|
code
|
|
19
48
|
label
|
|
20
49
|
}
|
|
21
|
-
street
|
|
22
|
-
telephone
|
|
23
50
|
custom_attributes {
|
|
24
51
|
... on AttributeValue {
|
|
25
52
|
code
|
|
26
53
|
value
|
|
27
54
|
}
|
|
28
55
|
}
|
|
29
|
-
prefix
|
|
30
|
-
suffix
|
|
31
|
-
middlename
|
|
32
56
|
fax
|
|
33
|
-
}
|
|
34
|
-
`,t=`
|
|
35
|
-
fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
|
|
36
|
-
id
|
|
37
57
|
firstname
|
|
58
|
+
id
|
|
38
59
|
lastname
|
|
39
|
-
|
|
40
|
-
street
|
|
41
|
-
city
|
|
60
|
+
middlename
|
|
42
61
|
postcode
|
|
43
|
-
|
|
62
|
+
prefix
|
|
44
63
|
region {
|
|
45
64
|
region_id
|
|
46
65
|
code
|
|
47
66
|
label
|
|
48
67
|
}
|
|
68
|
+
street
|
|
69
|
+
suffix
|
|
70
|
+
telephone
|
|
71
|
+
uid
|
|
72
|
+
vat_id
|
|
73
|
+
}
|
|
74
|
+
`,i=`
|
|
75
|
+
fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
|
|
76
|
+
available_shipping_methods {
|
|
77
|
+
...AVAILABLE_SHIPPING_METHOD_FRAGMENT
|
|
78
|
+
}
|
|
79
|
+
city
|
|
80
|
+
company
|
|
49
81
|
country {
|
|
50
82
|
code
|
|
51
83
|
label
|
|
52
84
|
}
|
|
53
|
-
telephone
|
|
54
85
|
custom_attributes {
|
|
55
86
|
... on AttributeValue {
|
|
56
87
|
code
|
|
57
88
|
value
|
|
58
89
|
}
|
|
59
90
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
price_excl_tax {
|
|
72
|
-
value
|
|
73
|
-
currency
|
|
74
|
-
}
|
|
75
|
-
price_incl_tax {
|
|
76
|
-
value
|
|
77
|
-
currency
|
|
78
|
-
}
|
|
91
|
+
fax
|
|
92
|
+
firstname
|
|
93
|
+
id
|
|
94
|
+
lastname
|
|
95
|
+
middlename
|
|
96
|
+
postcode
|
|
97
|
+
prefix
|
|
98
|
+
region {
|
|
99
|
+
region_id
|
|
100
|
+
code
|
|
101
|
+
label
|
|
79
102
|
}
|
|
103
|
+
same_as_billing
|
|
80
104
|
selected_shipping_method {
|
|
81
|
-
|
|
82
|
-
value
|
|
83
|
-
currency
|
|
84
|
-
}
|
|
85
|
-
carrier_code
|
|
86
|
-
carrier_title
|
|
87
|
-
method_code
|
|
88
|
-
method_title
|
|
89
|
-
price_excl_tax {
|
|
90
|
-
value
|
|
91
|
-
currency
|
|
92
|
-
}
|
|
93
|
-
price_incl_tax {
|
|
94
|
-
value
|
|
95
|
-
currency
|
|
96
|
-
}
|
|
105
|
+
...SELECTED_SHIPPING_METHOD_FRAGMENT
|
|
97
106
|
}
|
|
98
|
-
|
|
99
|
-
prefix
|
|
107
|
+
street
|
|
100
108
|
suffix
|
|
101
|
-
|
|
102
|
-
|
|
109
|
+
telephone
|
|
110
|
+
uid
|
|
111
|
+
vat_id
|
|
103
112
|
}
|
|
113
|
+
|
|
114
|
+
${e}
|
|
115
|
+
${t}
|
|
104
116
|
`,_=`
|
|
105
117
|
fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {
|
|
106
118
|
code
|
|
107
119
|
title
|
|
108
120
|
}
|
|
109
|
-
`,
|
|
121
|
+
`,E=`
|
|
110
122
|
fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {
|
|
111
123
|
code
|
|
112
124
|
title
|
|
113
125
|
}
|
|
114
|
-
`,
|
|
126
|
+
`,o=`
|
|
115
127
|
fragment CHECKOUT_DATA_FRAGMENT on Cart {
|
|
116
128
|
id
|
|
117
129
|
is_virtual
|
|
@@ -131,15 +143,112 @@ const e=`
|
|
|
131
143
|
}
|
|
132
144
|
}
|
|
133
145
|
|
|
134
|
-
${e}
|
|
135
|
-
${t}
|
|
136
|
-
${_}
|
|
137
146
|
${a}
|
|
138
|
-
|
|
147
|
+
${i}
|
|
148
|
+
${_}
|
|
149
|
+
${E}
|
|
150
|
+
`,T=`
|
|
139
151
|
fragment CUSTOMER_FRAGMENT on Customer {
|
|
140
152
|
firstname
|
|
141
153
|
lastname
|
|
142
154
|
email
|
|
143
155
|
}
|
|
144
|
-
|
|
156
|
+
`,A=`
|
|
157
|
+
fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {
|
|
158
|
+
city
|
|
159
|
+
company
|
|
160
|
+
country {
|
|
161
|
+
code
|
|
162
|
+
label
|
|
163
|
+
}
|
|
164
|
+
custom_attributes {
|
|
165
|
+
... on AttributeValue {
|
|
166
|
+
code
|
|
167
|
+
value
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
fax
|
|
171
|
+
firstname
|
|
172
|
+
lastname
|
|
173
|
+
middlename
|
|
174
|
+
postcode
|
|
175
|
+
prefix
|
|
176
|
+
region {
|
|
177
|
+
region_id
|
|
178
|
+
code
|
|
179
|
+
label
|
|
180
|
+
}
|
|
181
|
+
street
|
|
182
|
+
suffix
|
|
183
|
+
telephone
|
|
184
|
+
uid
|
|
185
|
+
vat_id
|
|
186
|
+
}
|
|
187
|
+
`,n=`
|
|
188
|
+
fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {
|
|
189
|
+
available_shipping_methods {
|
|
190
|
+
...AVAILABLE_SHIPPING_METHOD_FRAGMENT
|
|
191
|
+
}
|
|
192
|
+
city
|
|
193
|
+
company
|
|
194
|
+
country {
|
|
195
|
+
code
|
|
196
|
+
label
|
|
197
|
+
}
|
|
198
|
+
custom_attributes {
|
|
199
|
+
... on AttributeValue {
|
|
200
|
+
code
|
|
201
|
+
value
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
fax
|
|
205
|
+
firstname
|
|
206
|
+
lastname
|
|
207
|
+
middlename
|
|
208
|
+
postcode
|
|
209
|
+
prefix
|
|
210
|
+
region {
|
|
211
|
+
region_id
|
|
212
|
+
code
|
|
213
|
+
label
|
|
214
|
+
}
|
|
215
|
+
selected_shipping_method {
|
|
216
|
+
...SELECTED_SHIPPING_METHOD_FRAGMENT
|
|
217
|
+
}
|
|
218
|
+
street
|
|
219
|
+
suffix
|
|
220
|
+
telephone
|
|
221
|
+
uid
|
|
222
|
+
vat_id
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
${e}
|
|
226
|
+
${t}
|
|
227
|
+
`,l=`
|
|
228
|
+
fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {
|
|
229
|
+
available_payment_methods {
|
|
230
|
+
...AVAILABLE_PAYMENT_METHOD_FRAGMENT
|
|
231
|
+
}
|
|
232
|
+
billing_address {
|
|
233
|
+
...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT
|
|
234
|
+
}
|
|
235
|
+
email
|
|
236
|
+
is_virtual
|
|
237
|
+
name
|
|
238
|
+
selected_payment_method {
|
|
239
|
+
...SELECTED_PAYMENT_METHOD_FRAGMENT
|
|
240
|
+
}
|
|
241
|
+
shipping_addresses {
|
|
242
|
+
...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT
|
|
243
|
+
}
|
|
244
|
+
status
|
|
245
|
+
total_quantity
|
|
246
|
+
uid
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
${A}
|
|
250
|
+
${n}
|
|
251
|
+
${_}
|
|
252
|
+
${E}
|
|
253
|
+
`;export{_ as AVAILABLE_PAYMENT_METHOD_FRAGMENT,e as AVAILABLE_SHIPPING_METHOD_FRAGMENT,a as BILLING_CART_ADDRESS_FRAGMENT,o as CHECKOUT_DATA_FRAGMENT,T as CUSTOMER_FRAGMENT,A as NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,l as NEGOTIABLE_QUOTE_FRAGMENT,n as NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,E as SELECTED_PAYMENT_METHOD_FRAGMENT,t as SELECTED_SHIPPING_METHOD_FRAGMENT,i as SHIPPING_CART_ADDRESS_FRAGMENT};
|
|
145
254
|
//# sourceMappingURL=fragments.js.map
|
package/fragments.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartPaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n id\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n street\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n prefix\n suffix\n middlename\n fax\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n id\n firstname\n lastname\n company\n street\n city\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n country {\n code\n label\n }\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n available_shipping_methods {\n amount {\n currency\n value\n }\n available\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n selected_shipping_method {\n amount {\n value\n currency\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n same_as_billing\n prefix\n suffix\n middlename\n fax\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './CartPaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n"],"names":["BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT"],"mappings":"AAiBa,MAAAA,EAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiC9CC,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECjC/CC,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlDC,EAAiD;AAAA;AAAA;AAAA;AAAA;AAAA,ECEjDC,EAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAoBhDJ,CAA6B;AAAA,IAC7BC,CAA8B;AAAA,IAC9BC,CAAiC;AAAA,IACjCC,CAAgC;AAAA,EChCvBE,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/ShippingMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/PaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n`;\n\nexport const SELECTED_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n same_as_billing\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,\n NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,\n} from './NegotiableQuoteAddressFragment.graphql';\n\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n billing_address {\n ...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT\n }\n email\n is_virtual\n name\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n shipping_addresses {\n ...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT\n }\n status\n total_quantity\n uid\n }\n\n ${NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT}\n ${NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n"],"names":["AVAILABLE_SHIPPING_METHOD_FRAGMENT","SELECTED_SHIPPING_METHOD_FRAGMENT","BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT","NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_FRAGMENT"],"mappings":"AAiBa,MAAAA,EAAmD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBnDC,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECjBlDC,EAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkC9CC,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAwCxDH,CAAkC;AAAA,IAClCC,CAAiC;AAAA,EChFxBG,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlDC,EAAiD;AAAA;AAAA;AAAA;AAAA;AAAA,ECEjDC,EAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAoBhDJ,CAA6B;AAAA,IAC7BC,CAA8B;AAAA,IAC9BC,CAAiC;AAAA,IACjCC,CAAgC;AAAA,EChCvBE,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECKlCC,EAA0D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiC1DC,EAA2D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsCpET,CAAkC;AAAA,IAClCC,CAAiC;AAAA,ECnExBS,EAA0C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsBnDF,CAAyC;AAAA,IACzCC,CAA0C;AAAA,IAC1CL,CAAiC;AAAA,IACjCC,CAAgC;"}
|
package/i18n/en_US.json.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"Checkout": {
|
|
3
|
+
"AddressValidation": {
|
|
4
|
+
"title": "Verify your address",
|
|
5
|
+
"subtitle": "To ensure accurate delivery, we suggest the changes highlighted below. Please choose which address you would like to use. If neither option is correct, edit your address.",
|
|
6
|
+
"suggestedAddress": "Suggested Address",
|
|
7
|
+
"originalAddress": "Original Address"
|
|
8
|
+
},
|
|
3
9
|
"BillToShippingAddress": {
|
|
4
10
|
"cartSyncError": "We were unable to save your changes. Please try again later.",
|
|
5
11
|
"title": "Bill to shipping address"
|
package/lib/enqueueRequest.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReadonlySignal } from '@dropins/tools/types/elsie/src/lib/signals';
|
|
2
2
|
|
|
3
3
|
export declare enum QueueName {
|
|
4
|
-
|
|
4
|
+
Updates = "updates",
|
|
5
5
|
Default = "default",
|
|
6
6
|
ShippingEstimate = "shippingEstimate"
|
|
7
7
|
}
|
|
8
8
|
type Request<T> = () => Promise<T>;
|
|
9
9
|
export declare function enqueueRequest<T>(requestFn: Request<T>, name?: QueueName): Promise<T>;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const hasPendingUpdates: ReadonlySignal<boolean>;
|
|
11
11
|
export declare const hasPendingShippingEstimate: ReadonlySignal<boolean>;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=enqueueRequest.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export type ErrorCode = string;
|
|
18
|
+
export declare enum ErrorCodes {
|
|
19
|
+
INVALID_INPUT = "INVALID_INPUT",
|
|
20
|
+
SERVER_ERROR = "SERVER_ERROR",
|
|
21
|
+
UNAUTHENTICATED = "UNAUTHENTICATED",
|
|
22
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
23
|
+
}
|
|
24
|
+
export interface ErrorClassifier {
|
|
25
|
+
/**
|
|
26
|
+
* The specific code to return if this classifier matches.
|
|
27
|
+
*/
|
|
28
|
+
code: ErrorCode;
|
|
29
|
+
/**
|
|
30
|
+
* A function that returns `true` if it recognizes the error.
|
|
31
|
+
* It must safely handle `unknown` inputs.
|
|
32
|
+
*/
|
|
33
|
+
matches: (error: unknown) => boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const classifiers: ErrorClassifier[];
|
|
36
|
+
//# sourceMappingURL=classifiers.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FetchQueryError } from '../../api/fetch-graphql';
|
|
2
|
+
|
|
3
|
+
export declare class FetchError extends Error {
|
|
4
|
+
constructor(reasons: FetchQueryError);
|
|
5
|
+
}
|
|
6
|
+
export declare class InvalidInput extends Error {
|
|
7
|
+
constructor(message: string);
|
|
8
|
+
}
|
|
9
|
+
export declare class MissingArgument extends InvalidInput {
|
|
10
|
+
constructor(argumentName: string);
|
|
11
|
+
}
|
|
12
|
+
export declare class MissingCart extends MissingArgument {
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
15
|
+
export declare class MissingCartAndQuote extends InvalidInput {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
export declare class Unauthenticated extends Error {
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
21
|
+
export declare class MissingNegotiableQuoteId extends MissingArgument {
|
|
22
|
+
constructor();
|
|
23
|
+
}
|
|
24
|
+
export declare class MissingEmail extends MissingArgument {
|
|
25
|
+
constructor();
|
|
26
|
+
}
|
|
27
|
+
export declare class MissingPaymentMethod extends MissingArgument {
|
|
28
|
+
constructor();
|
|
29
|
+
}
|
|
30
|
+
export declare class MissingShippingAddress extends MissingArgument {
|
|
31
|
+
constructor();
|
|
32
|
+
}
|
|
33
|
+
export declare class MissingShippingMethod extends MissingArgument {
|
|
34
|
+
constructor();
|
|
35
|
+
}
|
|
36
|
+
export declare class MissingBillingAddress extends MissingArgument {
|
|
37
|
+
constructor();
|
|
38
|
+
}
|
|
39
|
+
export declare class MissingCountry extends MissingArgument {
|
|
40
|
+
constructor();
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=customErrors.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export * from './classifiers';
|
|
18
|
+
export * from './customErrors';
|
|
19
|
+
export * from './mapErrorToCode';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib/events.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Cart
|
|
1
|
+
import { Cart, NegotiableQuote } from '../data/models';
|
|
2
2
|
|
|
3
|
+
type DataModel = Cart | NegotiableQuote;
|
|
3
4
|
export declare function getInitialCheckoutData(): DataModel | null;
|
|
4
5
|
export declare function getLatestCheckoutUpdate(): DataModel | null;
|
|
5
6
|
export declare function getCheckoutData(): DataModel | null;
|
|
6
7
|
export declare function hasShippingAddress(): boolean;
|
|
7
|
-
export declare function isVirtualCart(): boolean;
|
|
8
8
|
export declare function getCartEmail(): string | null;
|
|
9
|
+
export {};
|
|
9
10
|
//# sourceMappingURL=events.d.ts.map
|
package/lib/guards.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export declare const ensureHasCartOrQuoteId: () => void;
|
|
18
|
+
//# sourceMappingURL=guards.d.ts.map
|
package/lib/index.d.ts
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* is strictly forbidden unless prior written permission is obtained
|
|
15
15
|
* from Adobe.
|
|
16
16
|
*******************************************************************/
|
|
17
|
+
export * from './utils';
|
|
17
18
|
export * from './dispatchApiCall';
|
|
18
|
-
export * from './dom';
|
|
19
19
|
export * from './enqueueRequest';
|
|
20
|
+
export * from './errors/mapErrorToCode';
|
|
20
21
|
export * from './events';
|
|
21
|
-
export * from './network-error';
|
|
22
22
|
export * from './preact';
|
|
23
23
|
export * from './state';
|
|
24
24
|
export * from './validation';
|
package/lib/state.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { StoreConfig } from '../data/models';
|
|
|
2
2
|
|
|
3
3
|
type State = {
|
|
4
4
|
authenticated: boolean;
|
|
5
|
-
cartId
|
|
6
|
-
initialized: boolean;
|
|
5
|
+
cartId?: string | null;
|
|
7
6
|
config: StoreConfig | null;
|
|
7
|
+
initialized: boolean;
|
|
8
|
+
quoteId?: string | null;
|
|
8
9
|
};
|
|
9
10
|
export declare const state: State;
|
|
10
|
-
export declare
|
|
11
|
+
export declare function isQuoteCheckout(): boolean;
|
|
12
|
+
export declare function isCartCheckout(): boolean;
|
|
11
13
|
export {};
|
|
12
14
|
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RenderAPI } from '../../types/storefront-sdk';
|
|
2
|
+
|
|
3
|
+
type AddressFormChange = {
|
|
4
|
+
data: Record<string, any>;
|
|
5
|
+
isDataValid: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function setAddressOnCart({ type, debounceMs, placeOrderBtn, }: {
|
|
8
|
+
type?: 'shipping' | 'billing';
|
|
9
|
+
debounceMs?: number;
|
|
10
|
+
placeOrderBtn?: RenderAPI;
|
|
11
|
+
}): ({ data, isDataValid }: AddressFormChange) => void;
|
|
12
|
+
export declare function estimateShippingCost({ debounceMs }: {
|
|
13
|
+
debounceMs?: number | undefined;
|
|
14
|
+
}): ({ data, isDataValid }: AddressFormChange) => void;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Cart } from '../../data/models/cart';
|
|
2
|
+
|
|
3
|
+
type CartData = Cart | null;
|
|
4
|
+
export declare function isVirtualCart(data?: CartData): boolean;
|
|
5
|
+
export declare function isEmptyCart(data: CartData): boolean;
|
|
6
|
+
export declare function getCartShippingMethod(data: CartData): import('../../data/models/shipping-method').ShippingMethod | null | undefined;
|
|
7
|
+
export declare function getCartAddress(data: CartData, type?: 'shipping' | 'billing'): Record<string, any> | null;
|
|
8
|
+
export declare function getCartPaymentMethod(data: CartData): import('../../data/models/payment-method').PaymentMethod | null | undefined;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export declare function createFragment(html: string): DocumentFragment;
|
|
18
|
+
export declare function createScopedSelector(fragment: DocumentFragment): (selector: string) => HTMLElement | null;
|
|
19
|
+
//# sourceMappingURL=fragments.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export * from './api';
|
|
18
|
+
export * from './events';
|
|
19
|
+
export * from './forms';
|
|
20
|
+
export * from './fragments';
|
|
21
|
+
export * from './meta';
|
|
22
|
+
export * from './transformers';
|
|
23
|
+
export * from './dom';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2025 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
11
|
+
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
+
* property laws, including trade secret and copyright laws.
|
|
13
|
+
* Dissemination of this information or reproduction of this material
|
|
14
|
+
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
+
* from Adobe.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export declare function createMetaTag(property: string, content: string, type: string): void;
|
|
18
|
+
export declare function setMetaTags(dropin: string): void;
|
|
19
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BillingAddressInput, ShippingAddressInput } from '../../data/models/api';
|
|
2
|
+
import { CartAddress } from '../../data/models/cart';
|
|
3
|
+
|
|
4
|
+
export declare const transformAddressFormValuesToAddressInput: (data: Record<string, any>) => ShippingAddressInput | BillingAddressInput;
|
|
5
|
+
export declare const transformCartAddressToFormValues: (address: CartAddress) => Record<string, any>;
|
|
6
|
+
//# sourceMappingURL=transformers.d.ts.map
|