@dropins/storefront-checkout 2.1.0-beta2 → 2.1.0-beta4

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 (142) hide show
  1. package/api/getStoreConfig/getStoreConfig.d.ts +1 -0
  2. package/api/graphql/CartAddressFragment.graphql.d.ts +1 -1
  3. package/api/graphql/NegotiableQuoteAddressFragment.graphql.d.ts +1 -1
  4. package/api/index.d.ts +0 -5
  5. package/api/initialize/initialize.d.ts +15 -1
  6. package/api/initialize/listeners.d.ts +3 -17
  7. package/api/initializeCheckout/initializeCheckout.d.ts +2 -2
  8. package/api/{setShippingAddress/graphql/setShippingAddressAndUseAsBilling.graphql.d.ts → setBillingAddress/graphql/index.d.ts} +3 -2
  9. package/api/{setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts → setBillingAddress/graphql/setBillingAddressOnCartMutation.graphql.d.ts} +2 -2
  10. package/api/{setNegotiableQuoteBillingAddress/index.d.ts → setBillingAddress/graphql/setBillingAddressOnQuoteMutation.graphql.d.ts} +2 -2
  11. package/api/setBillingAddress/setBillingAddress.d.ts +2 -2
  12. package/api/setPaymentMethod/graphql/index.d.ts +19 -0
  13. package/api/{setBillingAddress/graphql/setBillingAddress.graphql.d.ts → setPaymentMethod/graphql/setPaymentMethodOnCart.graphql.d.ts} +2 -2
  14. package/api/{setNegotiableQuotePaymentMethod/graphql/index.d.ts → setPaymentMethod/graphql/setPaymentMethodOnQuote.graphql.d.ts} +2 -2
  15. package/api/setPaymentMethod/setPaymentMethod.d.ts +2 -2
  16. package/api/setShippingAddress/graphql/index.d.ts +21 -0
  17. package/api/setShippingAddress/graphql/setShippingAddressOnCartAndUseAsBillingMutation.graphql.d.ts +18 -0
  18. package/api/setShippingAddress/graphql/{setShippingAddress.graphql.d.ts → setShippingAddressOnCartMutation.graphql.d.ts} +2 -2
  19. package/api/{setNegotiableQuoteBillingAddress/graphql/index.d.ts → setShippingAddress/graphql/setShippingAddressOnQuote.graphql.d.ts} +2 -2
  20. package/api/setShippingAddress/graphql/setShippingAddressOnQuoteAndUseAsBillingMutation.graphql.d.ts +18 -0
  21. package/api/setShippingAddress/setShippingAddress.d.ts +1 -1
  22. package/api/setShippingMethods/graphql/index.d.ts +19 -0
  23. package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +1 -1
  24. package/api/{setNegotiableQuotePaymentMethod/index.d.ts → setShippingMethods/graphql/setShippingMethodsOnQuote.graphql.d.ts} +2 -2
  25. package/api/setShippingMethods/index.d.ts +1 -0
  26. package/api/setShippingMethods/setShippingMethods.d.ts +3 -17
  27. package/api/synchronizeCheckout/synchronizeCheckout.d.ts +2 -2
  28. package/api.js +2 -137
  29. package/api.js.map +1 -1
  30. package/chunks/ConditionalWrapper.js +1 -1
  31. package/chunks/ConditionalWrapper.js.map +1 -1
  32. package/chunks/dom.js.map +1 -1
  33. package/chunks/events.js +4 -0
  34. package/chunks/events.js.map +1 -0
  35. package/chunks/events2.js +4 -0
  36. package/chunks/events2.js.map +1 -0
  37. package/chunks/fetch-graphql.js +2 -2
  38. package/chunks/fetch-graphql.js.map +1 -1
  39. package/chunks/guards.js +4 -0
  40. package/chunks/guards.js.map +1 -0
  41. package/chunks/setBillingAddress.js +25 -5
  42. package/chunks/setBillingAddress.js.map +1 -1
  43. package/chunks/setGuestEmailOnCart.js +4 -4
  44. package/chunks/setGuestEmailOnCart.js.map +1 -1
  45. package/chunks/setPaymentMethod.js +21 -6
  46. package/chunks/setPaymentMethod.js.map +1 -1
  47. package/chunks/setShippingAddress.js +109 -0
  48. package/chunks/setShippingAddress.js.map +1 -0
  49. package/chunks/setShippingMethods.js +18 -3
  50. package/chunks/setShippingMethods.js.map +1 -1
  51. package/chunks/synchronizeCheckout.js +13 -5
  52. package/chunks/synchronizeCheckout.js.map +1 -1
  53. package/chunks/transform-shipping-estimate.js +4 -0
  54. package/chunks/transform-shipping-estimate.js.map +1 -0
  55. package/chunks/transform-shipping-methods.js +4 -0
  56. package/chunks/transform-shipping-methods.js.map +1 -0
  57. package/chunks/values.js +1 -1
  58. package/chunks/values.js.map +1 -1
  59. package/components/AddressValidation/AddressValidation.d.ts +14 -0
  60. package/components/AddressValidation/index.d.ts +19 -0
  61. package/components/PaymentMethods/PaymentMethods.d.ts +1 -1
  62. package/components/ShippingMethods/ShippingMethods.d.ts +1 -1
  63. package/components/index.d.ts +1 -0
  64. package/containers/AddressValidation/AddressValidation.d.ts +12 -0
  65. package/{types/ComponentTypes.d.ts → containers/AddressValidation/index.d.ts} +3 -2
  66. package/containers/AddressValidation.d.ts +3 -0
  67. package/containers/AddressValidation.js +4 -0
  68. package/containers/AddressValidation.js.map +1 -0
  69. package/containers/BillToShippingAddress.js +1 -1
  70. package/containers/BillToShippingAddress.js.map +1 -1
  71. package/containers/EstimateShipping.js +1 -1
  72. package/containers/EstimateShipping.js.map +1 -1
  73. package/containers/LoginForm/LoginForm.d.ts +1 -1
  74. package/containers/LoginForm.js +1 -1
  75. package/containers/LoginForm.js.map +1 -1
  76. package/containers/OutOfStock.js +1 -1
  77. package/containers/PaymentMethods/PaymentMethods.d.ts +1 -2
  78. package/containers/PaymentMethods.js +1 -1
  79. package/containers/PaymentMethods.js.map +1 -1
  80. package/containers/PlaceOrder/PlaceOrder.d.ts +2 -1
  81. package/containers/PlaceOrder.js +1 -1
  82. package/containers/PlaceOrder.js.map +1 -1
  83. package/containers/ServerError.js +1 -1
  84. package/containers/ShippingMethods/ShippingMethods.d.ts +2 -2
  85. package/containers/ShippingMethods.js +1 -1
  86. package/containers/ShippingMethods.js.map +1 -1
  87. package/containers/TermsAndConditions.js +1 -1
  88. package/containers/TermsAndConditions.js.map +1 -1
  89. package/containers/index.d.ts +1 -0
  90. package/data/models/address.d.ts +9 -1
  91. package/data/models/api.d.ts +23 -10
  92. package/data/models/cart.d.ts +1 -8
  93. package/data/models/quote.d.ts +1 -0
  94. package/data/models/values.d.ts +1 -1
  95. package/data/transforms/index.d.ts +2 -0
  96. package/data/transforms/transform-api.d.ts +12 -0
  97. package/data/transforms/transform-cart-address.d.ts +32 -35
  98. package/data/transforms/transform-custom-attributes.d.ts +5 -0
  99. package/data/transforms/transform-quote-address.d.ts +27 -14
  100. package/fragments.js +79 -53
  101. package/fragments.js.map +1 -1
  102. package/i18n/en_US.json.d.ts +6 -0
  103. package/lib/enqueueRequest.d.ts +2 -3
  104. package/lib/errors/customErrors.d.ts +3 -0
  105. package/lib/events.d.ts +3 -2
  106. package/{api/setNegotiableQuoteShippingAddress/index.d.ts → lib/guards.d.ts} +2 -2
  107. package/lib/index.d.ts +1 -1
  108. package/lib/state.d.ts +5 -4
  109. package/lib/utils/api.d.ts +16 -0
  110. package/lib/utils/events.d.ts +10 -0
  111. package/lib/utils/forms.d.ts +5 -0
  112. package/lib/utils/fragments.d.ts +19 -0
  113. package/lib/utils/index.d.ts +24 -0
  114. package/lib/utils/meta.d.ts +19 -0
  115. package/lib/utils/transformers.d.ts +6 -0
  116. package/lib/utils.d.ts +1 -0
  117. package/lib/utils.js +4 -0
  118. package/lib/utils.js.map +1 -0
  119. package/package.json +1 -1
  120. package/render.js +3 -3
  121. package/render.js.map +1 -1
  122. package/tests/fixtures/fragments/cart.d.ts +42 -40
  123. package/tests/fixtures/fragments/shipping-address.d.ts +2 -1
  124. package/tests/fixtures/models/index.d.ts +1 -1
  125. package/tests/fixtures/models/quote.d.ts +9 -0
  126. package/types/api.d.ts +6 -0
  127. package/types/{TitleProps.d.ts → components.d.ts} +2 -1
  128. package/types/guards.d.ts +5 -0
  129. package/types/index.d.ts +22 -0
  130. package/types/storefront.d.ts +165 -0
  131. package/{api/setNegotiableQuoteBillingAddress/graphql/setNegotiableQuoteBillingAddress.graphql.d.ts → types/utils.d.ts} +3 -2
  132. package/api/setNegotiableQuoteBillingAddress/setNegotiableQuoteBillingAddress.d.ts +0 -6
  133. package/api/setNegotiableQuotePaymentMethod/graphql/setNegotiableQuotePaymentMethod.graphql.d.ts +0 -18
  134. package/api/setNegotiableQuotePaymentMethod/setNegotiableQuotePaymentMethod.d.ts +0 -6
  135. package/api/setNegotiableQuoteShippingAddress/graphql/index.d.ts +0 -18
  136. package/api/setNegotiableQuoteShippingAddress/graphql/setNegotiableQuoteShippingAddress.graphql.d.ts +0 -18
  137. package/api/setNegotiableQuoteShippingAddress/setNegotiableQuoteShippingAddress.d.ts +0 -6
  138. package/api/setNegotiableQuoteShippingMethods/graphql/index.d.ts +0 -18
  139. package/api/setNegotiableQuoteShippingMethods/graphql/setNegotiableQuoteShippingMethods.graphql.d.ts +0 -18
  140. package/api/setNegotiableQuoteShippingMethods/index.d.ts +0 -18
  141. package/api/setNegotiableQuoteShippingMethods/setNegotiableQuoteShippingMethods.d.ts +0 -18
  142. /package/lib/{dom.d.ts → utils/dom.d.ts} +0 -0
@@ -1,48 +1,27 @@
1
- import { CartAddress as CartAddressModel, CartAddressInput as CartAddressInputModel, CartShippingAddress as CartShippingAddressModel, CustomAttribute as CustomAttributeModel } from '../models';
2
- import { CartAddressInput, GetCartQuery } from '../../__generated__/types';
1
+ import { AddressInput as AddressInputModel, CartAddress as CartAddressModel, CartShippingAddress as CartShippingAddressModel } from '../models';
2
+ import { GetCartQuery } from '../../__generated__/types';
3
3
 
4
4
  type ShippingAddresses = NonNullable<GetCartQuery['cart']>['shipping_addresses'];
5
5
  type CartShippingAddress = ShippingAddresses[0];
6
- type NonNullableShippingAddress = NonNullable<CartShippingAddress>;
7
6
  type CartBillingAddress = NonNullable<GetCartQuery['cart']>['billing_address'];
8
- type NonNullableBillingAddress = NonNullable<CartBillingAddress>;
9
- type CustomAttributes = NonNullableShippingAddress['custom_attributes'] | NonNullableBillingAddress['custom_attributes'];
10
- export declare const transformCustomAttributes: (data: CustomAttributes) => CustomAttributeModel[];
11
7
  declare const transformCartBillingAddress: (data: CartBillingAddress) => CartAddressModel | undefined;
12
8
  declare const transformCartShippingAddress: (data: ({
13
9
  __typename?: "ShippingCartAddress" | undefined;
14
- id?: number | null | undefined;
10
+ city: string;
11
+ company?: string | null | undefined;
12
+ fax?: string | null | undefined;
15
13
  firstname: string;
14
+ id?: number | null | undefined;
16
15
  lastname: string;
17
- company?: string | null | undefined;
18
- street: (string | null)[];
19
- city: string;
16
+ middlename?: string | null | undefined;
20
17
  postcode?: string | null | undefined;
21
- vat_id?: string | null | undefined;
22
- telephone?: string | null | undefined;
23
- same_as_billing: boolean;
24
18
  prefix?: string | null | undefined;
19
+ same_as_billing: boolean;
20
+ street: (string | null)[];
25
21
  suffix?: string | null | undefined;
26
- middlename?: string | null | undefined;
27
- fax?: string | null | undefined;
28
- region?: {
29
- __typename?: "CartAddressRegion" | undefined;
30
- region_id?: number | null | undefined;
31
- code?: string | null | undefined;
32
- label?: string | null | undefined;
33
- } | null | undefined;
34
- country: {
35
- __typename?: "CartAddressCountry" | undefined;
36
- code: string;
37
- label: string;
38
- };
39
- custom_attributes: ({
40
- __typename?: "AttributeSelectedOptions" | undefined;
41
- } | {
42
- __typename?: "AttributeValue" | undefined;
43
- code: string;
44
- value: string;
45
- } | null)[];
22
+ telephone?: string | null | undefined;
23
+ uid: string;
24
+ vat_id?: string | null | undefined;
46
25
  available_shipping_methods?: ({
47
26
  __typename?: "AvailableShippingMethod" | undefined;
48
27
  carrier_code: string;
@@ -66,6 +45,24 @@ declare const transformCartShippingAddress: (data: ({
66
45
  currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
67
46
  };
68
47
  } | null)[] | null | undefined;
48
+ country: {
49
+ __typename?: "CartAddressCountry" | undefined;
50
+ code: string;
51
+ label: string;
52
+ };
53
+ custom_attributes: ({
54
+ __typename?: "AttributeSelectedOptions" | undefined;
55
+ } | {
56
+ __typename?: "AttributeValue" | undefined;
57
+ code: string;
58
+ value: string;
59
+ } | null)[];
60
+ region?: {
61
+ __typename?: "CartAddressRegion" | undefined;
62
+ region_id?: number | null | undefined;
63
+ code?: string | null | undefined;
64
+ label?: string | null | undefined;
65
+ } | null | undefined;
69
66
  selected_shipping_method?: {
70
67
  __typename?: "SelectedShippingMethod" | undefined;
71
68
  carrier_code: string;
@@ -89,6 +86,6 @@ declare const transformCartShippingAddress: (data: ({
89
86
  };
90
87
  } | null | undefined;
91
88
  } | null)[]) => CartShippingAddressModel[];
92
- declare const transformCartAddressInput: (address: CartAddressInputModel) => CartAddressInput;
93
- export { CartBillingAddress, CartShippingAddress, transformCartAddressInput, transformCartBillingAddress, transformCartShippingAddress, };
89
+ declare const transformAddressToCartAddressInput: <T extends CartAddressModel>(address?: T | null | undefined) => AddressInputModel | undefined;
90
+ export { CartBillingAddress, CartShippingAddress, transformAddressToCartAddressInput, transformCartBillingAddress, transformCartShippingAddress, };
94
91
  //# sourceMappingURL=transform-cart-address.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { CustomAttribute as CustomAttributeModel } from '../models/custom-attribute';
2
+ import { AttributeValue } from '../../__generated__/types';
3
+
4
+ export declare const transformCustomAttributes: (data: Array<AttributeValue | any | null> | null | undefined) => CustomAttributeModel[];
5
+ //# sourceMappingURL=transform-custom-attributes.d.ts.map
@@ -7,24 +7,19 @@ type QuoteBillingAddress = NonNullable<GetNegotiableQuoteQuery['negotiableQuote'
7
7
  declare const transformQuoteBillingAddress: (data: QuoteBillingAddress) => AddressModel | undefined;
8
8
  declare const transformQuoteShippingAddress: (data: ({
9
9
  __typename?: "NegotiableQuoteShippingAddress" | undefined;
10
+ city: string;
11
+ company?: string | null | undefined;
12
+ fax?: string | null | undefined;
10
13
  firstname: string;
11
14
  lastname: string;
12
- company?: string | null | undefined;
13
- street: (string | null)[];
14
- city: string;
15
+ middlename?: string | null | undefined;
15
16
  postcode?: string | null | undefined;
17
+ prefix?: string | null | undefined;
18
+ street: (string | null)[];
19
+ suffix?: string | null | undefined;
16
20
  telephone?: string | null | undefined;
17
- region?: {
18
- __typename?: "NegotiableQuoteAddressRegion" | undefined;
19
- region_id?: number | null | undefined;
20
- code?: string | null | undefined;
21
- label?: string | null | undefined;
22
- } | null | undefined;
23
- country: {
24
- __typename?: "NegotiableQuoteAddressCountry" | undefined;
25
- code: string;
26
- label: string;
27
- };
21
+ uid: string;
22
+ vat_id?: string | null | undefined;
28
23
  available_shipping_methods?: ({
29
24
  __typename?: "AvailableShippingMethod" | undefined;
30
25
  carrier_code: string;
@@ -48,6 +43,24 @@ declare const transformQuoteShippingAddress: (data: ({
48
43
  currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
49
44
  };
50
45
  } | null)[] | null | undefined;
46
+ country: {
47
+ __typename?: "NegotiableQuoteAddressCountry" | undefined;
48
+ code: string;
49
+ label: string;
50
+ };
51
+ custom_attributes?: ({
52
+ __typename?: "AttributeSelectedOptions" | undefined;
53
+ } | {
54
+ __typename?: "AttributeValue" | undefined;
55
+ code: string;
56
+ value: string;
57
+ } | null)[] | null | undefined;
58
+ region?: {
59
+ __typename?: "NegotiableQuoteAddressRegion" | undefined;
60
+ region_id?: number | null | undefined;
61
+ code?: string | null | undefined;
62
+ label?: string | null | undefined;
63
+ } | null | undefined;
51
64
  selected_shipping_method?: {
52
65
  __typename?: "SelectedShippingMethod" | undefined;
53
66
  carrier_code: string;
package/fragments.js CHANGED
@@ -20,7 +20,7 @@ const e=`
20
20
  currency
21
21
  }
22
22
  }
23
- `,_=`
23
+ `,t=`
24
24
  fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {
25
25
  amount {
26
26
  currency
@@ -41,77 +41,79 @@ const e=`
41
41
  }
42
42
  `,a=`
43
43
  fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {
44
- id
45
44
  city
46
- country {
47
- code
48
- label
49
- }
50
- firstname
51
- lastname
52
45
  company
53
- postcode
54
- vat_id
55
- region {
56
- region_id
46
+ country {
57
47
  code
58
48
  label
59
49
  }
60
- street
61
- telephone
62
50
  custom_attributes {
63
51
  ... on AttributeValue {
64
52
  code
65
53
  value
66
54
  }
67
55
  }
68
- prefix
69
- suffix
70
- middlename
71
56
  fax
72
- }
73
- `,A=`
74
- fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
75
- id
76
57
  firstname
58
+ id
77
59
  lastname
78
- company
79
- street
80
- city
60
+ middlename
81
61
  postcode
82
- vat_id
62
+ prefix
83
63
  region {
84
64
  region_id
85
65
  code
86
66
  label
87
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
88
81
  country {
89
82
  code
90
83
  label
91
84
  }
92
- telephone
93
85
  custom_attributes {
94
86
  ... on AttributeValue {
95
87
  code
96
88
  value
97
89
  }
98
90
  }
99
- available_shipping_methods {
100
- ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
91
+ fax
92
+ firstname
93
+ id
94
+ lastname
95
+ middlename
96
+ postcode
97
+ prefix
98
+ region {
99
+ region_id
100
+ code
101
+ label
101
102
  }
103
+ same_as_billing
102
104
  selected_shipping_method {
103
105
  ...SELECTED_SHIPPING_METHOD_FRAGMENT
104
106
  }
105
- same_as_billing
106
- prefix
107
+ street
107
108
  suffix
108
- middlename
109
- fax
109
+ telephone
110
+ uid
111
+ vat_id
110
112
  }
111
113
 
112
114
  ${e}
113
- ${_}
114
- `,t=`
115
+ ${t}
116
+ `,_=`
115
117
  fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {
116
118
  code
117
119
  title
@@ -142,8 +144,8 @@ const e=`
142
144
  }
143
145
 
144
146
  ${a}
145
- ${A}
146
- ${t}
147
+ ${i}
148
+ ${_}
147
149
  ${E}
148
150
  `,T=`
149
151
  fragment CUSTOMER_FRAGMENT on Customer {
@@ -151,53 +153,77 @@ const e=`
151
153
  lastname
152
154
  email
153
155
  }
154
- `,i=`
156
+ `,A=`
155
157
  fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {
156
158
  city
159
+ company
157
160
  country {
158
161
  code
159
162
  label
160
163
  }
164
+ custom_attributes {
165
+ ... on AttributeValue {
166
+ code
167
+ value
168
+ }
169
+ }
170
+ fax
161
171
  firstname
162
172
  lastname
163
- company
173
+ middlename
164
174
  postcode
175
+ prefix
165
176
  region {
166
177
  region_id
167
178
  code
168
179
  label
169
180
  }
170
181
  street
182
+ suffix
171
183
  telephone
184
+ uid
185
+ vat_id
172
186
  }
173
187
  `,n=`
174
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
175
205
  firstname
176
206
  lastname
177
- company
178
- street
179
- city
207
+ middlename
180
208
  postcode
209
+ prefix
181
210
  region {
182
211
  region_id
183
212
  code
184
213
  label
185
214
  }
186
- country {
187
- code
188
- label
189
- }
190
- telephone
191
- available_shipping_methods {
192
- ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
193
- }
194
215
  selected_shipping_method {
195
216
  ...SELECTED_SHIPPING_METHOD_FRAGMENT
196
217
  }
218
+ street
219
+ suffix
220
+ telephone
221
+ uid
222
+ vat_id
197
223
  }
198
224
 
199
225
  ${e}
200
- ${_}
226
+ ${t}
201
227
  `,l=`
202
228
  fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {
203
229
  available_payment_methods {
@@ -220,9 +246,9 @@ const e=`
220
246
  uid
221
247
  }
222
248
 
223
- ${i}
249
+ ${A}
224
250
  ${n}
225
- ${t}
251
+ ${_}
226
252
  ${E}
227
- `;export{t 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,i as NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,l as NEGOTIABLE_QUOTE_FRAGMENT,n as NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,E as SELECTED_PAYMENT_METHOD_FRAGMENT,_ as SELECTED_SHIPPING_METHOD_FRAGMENT,A as SHIPPING_CART_ADDRESS_FRAGMENT};
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};
228
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/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 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 ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n same_as_billing\n prefix\n suffix\n middlename\n fax\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 country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n region {\n region_id\n code\n label\n }\n street\n telephone\n }\n`;\n\nexport const NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {\n firstname\n lastname\n company\n street\n city\n postcode\n region {\n region_id\n code\n label\n }\n country {\n code\n label\n }\n telephone\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\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,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,IAuCxDH,CAAkC;AAAA,IAClCC,CAAiC;AAAA,EC9ExBG,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,EAqB1DC,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,IA0BpET,CAAkC;AAAA,IAClCC,CAAiC;AAAA,EC3CxBS,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;"}
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;"}
@@ -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"
@@ -1,14 +1,13 @@
1
1
  import { ReadonlySignal } from '@dropins/tools/types/elsie/src/lib/signals';
2
2
 
3
3
  export declare enum QueueName {
4
- CartUpdate = "cartUpdate",
5
- QuoteUpdates = "quoteUpdates",
4
+ Updates = "updates",
6
5
  Default = "default",
7
6
  ShippingEstimate = "shippingEstimate"
8
7
  }
9
8
  type Request<T> = () => Promise<T>;
10
9
  export declare function enqueueRequest<T>(requestFn: Request<T>, name?: QueueName): Promise<T>;
11
- export declare const hasPendingCartUpdates: ReadonlySignal<boolean>;
10
+ export declare const hasPendingUpdates: ReadonlySignal<boolean>;
12
11
  export declare const hasPendingShippingEstimate: ReadonlySignal<boolean>;
13
12
  export {};
14
13
  //# sourceMappingURL=enqueueRequest.d.ts.map
@@ -12,6 +12,9 @@ export declare class MissingArgument extends InvalidInput {
12
12
  export declare class MissingCart extends MissingArgument {
13
13
  constructor();
14
14
  }
15
+ export declare class MissingCartAndQuote extends InvalidInput {
16
+ constructor();
17
+ }
15
18
  export declare class Unauthenticated extends Error {
16
19
  constructor();
17
20
  }
package/lib/events.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { Cart as DataModel } from '../data/models';
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
@@ -14,5 +14,5 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export * from './setNegotiableQuoteShippingAddress';
18
- //# sourceMappingURL=index.d.ts.map
17
+ export declare const ensureHasCartOrQuoteId: () => void;
18
+ //# sourceMappingURL=guards.d.ts.map
package/lib/index.d.ts CHANGED
@@ -14,8 +14,8 @@
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
20
  export * from './errors/mapErrorToCode';
21
21
  export * from './events';
package/lib/state.d.ts CHANGED
@@ -2,12 +2,13 @@ import { StoreConfig } from '../data/models';
2
2
 
3
3
  type State = {
4
4
  authenticated: boolean;
5
- cartId: string | null;
6
- quoteId?: string | null;
7
- initialized: boolean;
5
+ cartId?: string | null;
8
6
  config: StoreConfig | null;
7
+ initialized: boolean;
8
+ quoteId?: string | null;
9
9
  };
10
10
  export declare const state: State;
11
- export declare const getStoreConfigCache: () => StoreConfig | null;
11
+ export declare function isQuoteCheckout(): boolean;
12
+ export declare function isCartCheckout(): boolean;
12
13
  export {};
13
14
  //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { RenderAPI } from '../../types';
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,5 @@
1
+ import { FormRef } from '../../types/storefront-account';
2
+ import { RefObject } from 'preact';
3
+
4
+ export declare function validateForm(formName: string, formRef: RefObject<FormRef>): boolean;
5
+ //# sourceMappingURL=forms.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