@dropins/storefront-checkout 1.3.0 → 1.4.0-beta2

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 (174) hide show
  1. package/__generated__/types.d.ts +12644 -0
  2. package/api/estimateShippingMethods/graphql/index.d.ts +15 -15
  3. package/api/estimateShippingMethods/index.d.ts +15 -15
  4. package/api/fetch-graphql/fetch-graphql.d.ts +19 -19
  5. package/api/fetch-graphql/index.d.ts +15 -15
  6. package/api/getCart/fixtures.d.ts +3 -2
  7. package/api/getCart/getCart.d.ts +16 -16
  8. package/api/getCart/graphql/index.d.ts +15 -15
  9. package/api/getCart/index.d.ts +15 -15
  10. package/api/getCheckoutAgreements/graphql/getCheckoutAgreements.graphql.d.ts +1 -1
  11. package/api/getCheckoutAgreements/index.d.ts +1 -1
  12. package/api/getCustomer/getCustomer.d.ts +1 -1
  13. package/api/getCustomer/graphql/index.d.ts +15 -15
  14. package/api/getCustomer/index.d.ts +15 -15
  15. package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +1 -1
  16. package/api/getStoreConfig/index.d.ts +15 -15
  17. package/api/index.d.ts +2 -1
  18. package/api/initialize/index.d.ts +15 -15
  19. package/api/initialize/initialize.d.ts +3 -3
  20. package/api/initializeCheckout/index.d.ts +15 -15
  21. package/api/initializeCheckout/initializeCheckout.d.ts +1 -1
  22. package/api/isEmailAvailable/graphql/isEmailAvailable.graphql.d.ts +15 -15
  23. package/api/isEmailAvailable/index.d.ts +15 -15
  24. package/api/setBillingAddress/index.d.ts +15 -15
  25. package/api/setBillingAddress/setBillingAddress.d.ts +1 -1
  26. package/api/setGuestEmailOnCart/index.d.ts +15 -15
  27. package/api/setGuestEmailOnCart/setGuestEmailOnCart.d.ts +1 -1
  28. package/api/setPaymentMethod/index.d.ts +15 -15
  29. package/api/setPaymentMethod/setPaymentMethod.d.ts +1 -1
  30. package/api/setShippingAddress/index.d.ts +15 -15
  31. package/api/setShippingAddress/setShippingAddress.d.ts +1 -1
  32. package/api/setShippingMethods/index.d.ts +15 -15
  33. package/api/setShippingMethods/setShippingMethods.d.ts +1 -1
  34. package/api/subscribeEmailToNewsletter/graphql/subscribeEmailToNewsletter.graphql.d.ts +18 -0
  35. package/{hocs → api/subscribeEmailToNewsletter}/index.d.ts +1 -1
  36. package/api/subscribeEmailToNewsletter/subscribeEmailToNewsletter.d.ts +4 -0
  37. package/api/synchronizeCheckout/synchronizeCheckout.d.ts +1 -1
  38. package/api.js +12 -6
  39. package/chunks/ConditionalWrapper.js +3 -0
  40. package/chunks/IsBillToShippingSignal.js +14 -0
  41. package/chunks/SelectedPaymentMethodSignal.js +3 -0
  42. package/chunks/SelectedShippingMethodSignal.js +3 -0
  43. package/chunks/ServerErrorSignal.js +3 -0
  44. package/chunks/TermsAndConditions.js +2 -2
  45. package/chunks/setBillingAddress.js +3 -3
  46. package/chunks/setGuestEmailOnCart.js +12 -4
  47. package/chunks/setPaymentMethod.js +3 -3
  48. package/chunks/setShippingMethods.js +3 -3
  49. package/chunks/subscription-email-statuses.js +3 -0
  50. package/chunks/synchronizeCheckout.js +5 -13
  51. package/components/BillToShippingAddress/BillToShippingAddress.d.ts +1 -2
  52. package/components/BillToShippingAddress/index.d.ts +15 -15
  53. package/components/ConditionalWrapper/ConditionalWrapper.d.ts +8 -0
  54. package/components/ConditionalWrapper/index.d.ts +19 -0
  55. package/components/EstimateShipping/EstimateShipping.d.ts +2 -2
  56. package/components/EstimateShipping/index.d.ts +15 -15
  57. package/components/LoginForm/LoginForm.d.ts +9 -12
  58. package/components/LoginForm/SignOut.d.ts +1 -1
  59. package/components/LoginForm/index.d.ts +15 -15
  60. package/components/Newsletter/Newsletter.d.ts +7 -0
  61. package/components/Newsletter/NewsletterSkeleton.d.ts +4 -0
  62. package/components/Newsletter/index.d.ts +20 -0
  63. package/components/OutOfStock/index.d.ts +15 -15
  64. package/components/PaymentMethods/PaymentMethods.d.ts +7 -5
  65. package/components/PlaceOrder/PlaceOrder.d.ts +1 -1
  66. package/components/PlaceOrder/index.d.ts +15 -15
  67. package/components/ServerError/index.d.ts +15 -15
  68. package/components/ShippingMethods/ShippingMethods.d.ts +8 -5
  69. package/components/ShippingMethods/index.d.ts +15 -15
  70. package/components/TermsAndConditions/TermsAndConditions.d.ts +1 -2
  71. package/components/index.d.ts +2 -0
  72. package/containers/BillToShippingAddress/BillToShippingAddress.d.ts +3 -20
  73. package/containers/BillToShippingAddress.js +1 -1
  74. package/containers/EstimateShipping/index.d.ts +15 -15
  75. package/containers/EstimateShipping.js +1 -1
  76. package/containers/LoginForm/LoginForm.d.ts +10 -5
  77. package/containers/LoginForm.js +1 -1
  78. package/containers/MergedCartBanner/MergedCartBanner.d.ts +3 -5
  79. package/containers/MergedCartBanner.js +1 -1
  80. package/containers/Newsletter/Newsletter.d.ts +9 -0
  81. package/{utils/isUnexpectedError/isUnexpectedError.d.ts → containers/Newsletter/index.d.ts} +3 -2
  82. package/containers/Newsletter.d.ts +3 -0
  83. package/containers/Newsletter.js +3 -0
  84. package/containers/OutOfStock/OutOfStock.d.ts +1 -1
  85. package/containers/OutOfStock/index.d.ts +15 -15
  86. package/containers/OutOfStock.js +1 -1
  87. package/containers/PaymentMethods/PaymentMethods.d.ts +7 -7
  88. package/containers/PaymentMethods.js +1 -1
  89. package/containers/PlaceOrder/PlaceOrder.d.ts +4 -5
  90. package/containers/PlaceOrder/index.d.ts +15 -15
  91. package/containers/PlaceOrder.js +1 -1
  92. package/containers/ServerError/ServerError.d.ts +1 -1
  93. package/containers/ServerError.js +1 -1
  94. package/containers/ShippingMethods/ShippingMethods.d.ts +6 -7
  95. package/containers/ShippingMethods/index.d.ts +15 -15
  96. package/containers/ShippingMethods/utils/emitShippingEstimateEvent.d.ts +1 -1
  97. package/containers/ShippingMethods.js +1 -1
  98. package/containers/TermsAndConditions/TermsAndConditions.d.ts +1 -1
  99. package/containers/TermsAndConditions.js +1 -1
  100. package/containers/index.d.ts +1 -0
  101. package/data/models/country.d.ts +15 -15
  102. package/data/models/custom-attribute.d.ts +15 -15
  103. package/data/models/email-availability.d.ts +15 -15
  104. package/data/models/index.d.ts +1 -0
  105. package/data/models/payment-method.d.ts +15 -15
  106. package/data/models/price.d.ts +15 -15
  107. package/data/models/store-config.d.ts +2 -3
  108. package/{utils/index.d.ts → data/models/subscription-email-statuses.d.ts} +8 -6
  109. package/data/transforms/transform-cart.d.ts +2 -2
  110. package/data/transforms/transform-checkout-agreements.d.ts +1 -1
  111. package/data/transforms/transform-customer.d.ts +1 -1
  112. package/data/transforms/transform-shipping-methods.d.ts +2 -1
  113. package/{api/errors → errors}/errors.d.ts +1 -1
  114. package/{utils/convertCase → errors}/index.d.ts +1 -1
  115. package/i18n/en_US.json.d.ts +31 -28
  116. package/lib/dispatchApiCall.d.ts +16 -0
  117. package/lib/dom.d.ts +18 -0
  118. package/lib/enqueueRequest.d.ts +13 -0
  119. package/{api/utils → lib}/filterControlledErrors.d.ts +1 -1
  120. package/lib/index.d.ts +3 -1
  121. package/lib/network-error.d.ts +15 -15
  122. package/lib/preact.d.ts +4 -0
  123. package/msw/browser.d.ts +15 -15
  124. package/msw/fixtures/fragments/cart.d.ts +15 -15
  125. package/msw/fixtures/index.d.ts +15 -15
  126. package/msw/fixtures/mutations/index.d.ts +15 -15
  127. package/msw/fixtures/queries/index.d.ts +15 -15
  128. package/msw/server.d.ts +15 -15
  129. package/package.json +1 -1
  130. package/render/index.d.ts +15 -15
  131. package/render/render.d.ts +1 -1
  132. package/render.js +7 -6
  133. package/signals/IsSubscribedToNewsletterSignal.d.ts +18 -0
  134. package/signals/ShippingEstimateSignal.d.ts +8 -0
  135. package/signals/index.d.ts +2 -4
  136. package/tests/constants.d.ts +15 -15
  137. package/tests/integration/utils/index.d.ts +15 -15
  138. package/tests/integration/utils/user-actions.d.ts +15 -15
  139. package/tests/mocks/svg.d.ts +15 -15
  140. package/tests/utils/expectError.d.ts +15 -15
  141. package/tests/utils/index.d.ts +15 -15
  142. package/tests/utils/mockEvents.d.ts +15 -15
  143. package/{hooks/index.d.ts → types/ComponentTypes.d.ts} +2 -3
  144. package/types/TitleProps.d.ts +9 -0
  145. package/api/errors/index.d.ts +0 -18
  146. package/api/utils/dispatchApiCall.d.ts +0 -36
  147. package/api/utils/enqueueRequest.d.ts +0 -26
  148. package/chunks/errors.js +0 -3
  149. package/chunks/state.js +0 -3
  150. package/chunks/store-config.js +0 -3
  151. package/chunks/transform-store-config.js +0 -13
  152. package/chunks/withConditionalRendering.js +0 -3
  153. package/hocs/withConditionalRendering.d.ts +0 -13
  154. package/hooks/useBreakpoint/index.d.ts +0 -18
  155. package/hooks/useBreakpoint/useBreakpoint.d.ts +0 -18
  156. package/hooks/useStableList/index.d.ts +0 -2
  157. package/hooks/useStableList/useStableList.d.ts +0 -2
  158. package/lib/fetch-error.d.ts +0 -23
  159. package/signals/CartSignal.d.ts +0 -7
  160. package/signals/CustomerSignal.d.ts +0 -7
  161. package/signals/EmailSignal.d.ts +0 -26
  162. package/signals/EstimateShippingMethodsSignal.d.ts +0 -7
  163. package/utils/convertCase/convertCase.d.ts +0 -4
  164. package/utils/getDisplayName/getDisplayName.d.ts +0 -4
  165. package/utils/getDisplayName/index.d.ts +0 -18
  166. package/utils/isEmpty/index.d.ts +0 -18
  167. package/utils/isEmpty/isEmpty.d.ts +0 -18
  168. package/utils/isNullish/index.d.ts +0 -18
  169. package/utils/isNullish/isNullish.d.ts +0 -18
  170. package/utils/isUnexpectedError/index.d.ts +0 -18
  171. package/utils/scrollToElement/index.d.ts +0 -2
  172. package/utils/scrollToElement/scrollToElement.d.ts +0 -2
  173. package/utils/shippingMethods/index.d.ts +0 -18
  174. package/utils/shippingMethods/isEqual.d.ts +0 -4
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export type Country = {
18
18
  value: string;
19
19
  label: string;
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export type CustomAttribute = {
18
18
  code: string;
19
19
  value: string;
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export type EmailAvailability = boolean;
18
18
  //# sourceMappingURL=email-availability.d.ts.map
@@ -28,4 +28,5 @@ export * from './region';
28
28
  export * from './shipping-estimate';
29
29
  export * from './shipping-method';
30
30
  export * from './store-config';
31
+ export * from './subscription-email-statuses';
31
32
  //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export type PaymentMethod = {
18
18
  code: string;
19
19
  title: string;
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export type Price = {
18
18
  value: number;
19
19
  currency: string;
@@ -21,9 +21,8 @@ export declare enum TaxDisplay {
21
21
  }
22
22
  export interface StoreConfig {
23
23
  defaultCountry: string;
24
- isCheckoutAgreementsEnabled: boolean;
25
- isGuestCheckoutEnabled: boolean;
26
- isOnePageCheckoutEnabled: boolean;
24
+ agreementsEnabled: boolean;
25
+ newsletterEnabled: boolean;
27
26
  shoppingCartDisplaySetting: {
28
27
  shipping: TaxDisplay;
29
28
  };
@@ -14,9 +14,11 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export * from './convertCase';
18
- export * from './getDisplayName';
19
- export * from './isEmpty';
20
- export * from './isUnexpectedError';
21
- export * from './scrollToElement';
22
- //# sourceMappingURL=index.d.ts.map
17
+ export declare enum SubscriptionEmailStatusesEnum {
18
+ NotActive = 0,
19
+ Subscribed = 0,
20
+ Unconfirmed = 0,
21
+ Unsubscribed = 0,
22
+ Error = "ERROR"
23
+ }
24
+ //# sourceMappingURL=subscription-email-statuses.d.ts.map
@@ -1,7 +1,7 @@
1
- import { GetCartQuery } from '../../__generated__/types';
2
1
  import { Cart as CartModel } from '../models';
2
+ import { GetCartQuery } from '../../__generated__/types';
3
3
 
4
- type Cart = NonNullable<GetCartQuery['cart']>;
4
+ type Cart = GetCartQuery['cart'];
5
5
  declare const transformCart: (data: Cart) => CartModel | undefined;
6
6
  export { Cart, transformCart };
7
7
  //# sourceMappingURL=transform-cart.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Get_Checkout_AgreementsQuery } from '../../__generated__/types';
2
1
  import { CheckoutAgreement as CheckoutAgreementModel } from '../models';
2
+ import { Get_Checkout_AgreementsQuery } from '../../__generated__/types';
3
3
 
4
4
  type CheckoutAgreements = Get_Checkout_AgreementsQuery['checkoutAgreements'];
5
5
  export declare const transformCheckoutAgreements: (data: CheckoutAgreements) => CheckoutAgreementModel[];
@@ -2,6 +2,6 @@ import { Customer as CustomerModel } from '../models';
2
2
  import { GetCustomerQuery } from '../../__generated__/types';
3
3
 
4
4
  type Customer = GetCustomerQuery['customer'];
5
- declare const transformCustomer: (data: Customer) => CustomerModel | undefined;
5
+ declare const transformCustomer: (data: Customer) => CustomerModel | null;
6
6
  export { Customer, transformCustomer };
7
7
  //# sourceMappingURL=transform-customer.d.ts.map
@@ -1,5 +1,5 @@
1
- import { GetCartQuery } from '../../__generated__/types';
2
1
  import { ShippingMethod } from '../models/shipping-method';
2
+ import { GetCartQuery } from '../../__generated__/types';
3
3
 
4
4
  type Cart = NonNullable<GetCartQuery['cart']>;
5
5
  type ShippingAddresses = Cart['shipping_addresses'];
@@ -7,6 +7,7 @@ type ShippingAddress = NonNullable<NonNullable<ShippingAddresses>[number]>;
7
7
  type AvailableShippingMethods = ShippingAddress['available_shipping_methods'];
8
8
  type AvailableShippingMethod = NonNullable<AvailableShippingMethods>[number];
9
9
  type SelectedShippingMethod = ShippingAddress['selected_shipping_method'];
10
+ export declare const isNullish: (value: any) => boolean;
10
11
  export declare const transformSelectedShippingMethod: (data: SelectedShippingMethod) => ShippingMethod | undefined;
11
12
  export declare const transformAvailableShippingMethod: (data: AvailableShippingMethod) => ShippingMethod | undefined;
12
13
  export declare const transformShippingMethods: (data: AvailableShippingMethods) => ShippingMethod[] | undefined;
@@ -1,4 +1,4 @@
1
- import { FetchQueryError } from '../fetch-graphql';
1
+ import { FetchQueryError } from '../api/fetch-graphql';
2
2
 
3
3
  export declare class FetchError extends Error {
4
4
  constructor(reasons: FetchQueryError);
@@ -14,5 +14,5 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export * from './convertCase';
17
+ export * from './errors';
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,20 @@
1
1
  declare const _default: {
2
2
  "Checkout": {
3
- "title": "Checkout",
3
+ "BillToShippingAddress": {
4
+ "title": "Bill to shipping address"
5
+ },
6
+ "EmptyCart": {
7
+ "title": "Your cart is empty",
8
+ "button": "Start shopping"
9
+ },
10
+ "EstimateShipping": {
11
+ "estimated": "Estimated Shipping",
12
+ "freeShipping": "Free",
13
+ "label": "Shipping",
14
+ "taxToBeDetermined": "TBD",
15
+ "withTaxes": "Including taxes",
16
+ "withoutTaxes": "Excluding taxes"
17
+ },
4
18
  "LoginForm": {
5
19
  "title": "Contact details",
6
20
  "account": "Already have an account?",
@@ -18,16 +32,14 @@ declare const _default: {
18
32
  "switch": "Do you want to switch account?",
19
33
  "signOut": "Sign Out"
20
34
  },
21
- "ShippingMethods": {
22
- "title": "Shipping options",
23
- "emptyState": "This order can't be shipped to the address provided. Please review the address details you entered and make sure they're correct."
24
- },
25
- "BillToShippingAddress": {
26
- "title": "Bill to shipping address"
35
+ "MergedCartBanner": {
36
+ "items": {
37
+ "one": "1 item from a previous session was added to your cart. Please review your new subtotal.",
38
+ "many": "{{count}} items from a previous session were added to your cart. Please review your new subtotal."
39
+ }
27
40
  },
28
- "PaymentMethods": {
29
- "title": "Payment",
30
- "emptyState": "No payment methods available"
41
+ "Newsletter": {
42
+ "title": "Sign up to the latest news and events"
31
43
  },
32
44
  "OutOfStock": {
33
45
  "title": "Your cart contains items that are out of stock",
@@ -42,6 +54,10 @@ declare const _default: {
42
54
  },
43
55
  "alert": "Out of stock!"
44
56
  },
57
+ "PaymentMethods": {
58
+ "title": "Payment",
59
+ "emptyState": "No payment methods available"
60
+ },
45
61
  "PlaceOrder": {
46
62
  "button": "Place Order"
47
63
  },
@@ -51,28 +67,15 @@ declare const _default: {
51
67
  "unexpected": "An unexpected error occurred while processing your order. Please try again later.",
52
68
  "button": "Try again"
53
69
  },
54
- "EmptyCart": {
55
- "title": "Your cart is empty",
56
- "button": "Start shopping"
57
- },
58
- "MergedCartBanner": {
59
- "items": {
60
- "one": "1 item from a previous session was added to your cart. Please review your new subtotal.",
61
- "many": "{{count}} items from a previous session were added to your cart. Please review your new subtotal."
62
- }
63
- },
64
- "EstimateShipping": {
65
- "estimated": "Estimated Shipping",
66
- "freeShipping": "Free",
67
- "label": "Shipping",
68
- "taxToBeDetermined": "TBD",
69
- "withTaxes": "Including taxes",
70
- "withoutTaxes": "Excluding taxes"
70
+ "ShippingMethods": {
71
+ "title": "Shipping options",
72
+ "emptyState": "This order can't be shipped to the address provided. Please review the address details you entered and make sure they're correct."
71
73
  },
72
74
  "TermsAndConditions": {
73
75
  "label": "I have read, understand, and accept our <a href='https://www.adobe.com/legal/terms.html' target='_blank'>Terms of Use, Terms of Sales, Privacy Policy, and Return Policy</a>.",
74
76
  "error": "Please accept the Terms and Conditions to continue."
75
- }
77
+ },
78
+ "title": "Checkout"
76
79
  }
77
80
  }
78
81
  ;
@@ -0,0 +1,16 @@
1
+ import { FetchOptions } from '../api';
2
+ import { QueueName } from './enqueueRequest';
3
+
4
+ type DispatchApiCallParams<T> = {
5
+ defaultValueOnFail?: T;
6
+ options?: FetchOptions;
7
+ path: string;
8
+ query: string;
9
+ queueName?: QueueName;
10
+ transformer?: (data: any) => T;
11
+ type: 'query' | 'mutation';
12
+ };
13
+ export declare function getValueAtPath(obj: any, path: string): any;
14
+ declare function dispatchApiCall<T>(params: DispatchApiCallParams<T>): Promise<T>;
15
+ export { dispatchApiCall };
16
+ //# sourceMappingURL=dispatchApiCall.d.ts.map
package/lib/dom.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 function scrollToElement(element: HTMLElement): void;
18
+ //# sourceMappingURL=dom.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { ReadonlySignal } from '../../@adobe-commerce/elsie/src/lib/signals';
2
+
3
+ export declare enum QueueName {
4
+ CartUpdate = "cartUpdate",
5
+ Default = "default",
6
+ ShippingEstimate = "shippingEstimate"
7
+ }
8
+ type Request<T> = () => Promise<T>;
9
+ export declare function enqueueRequest<T>(requestFn: Request<T>, name?: QueueName): Promise<T>;
10
+ export declare const hasPendingCartUpdates: ReadonlySignal<boolean>;
11
+ export declare const hasPendingShippingEstimate: ReadonlySignal<boolean>;
12
+ export {};
13
+ //# sourceMappingURL=enqueueRequest.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FetchQueryError } from '../fetch-graphql';
1
+ import { FetchQueryError } from '../api/fetch-graphql';
2
2
 
3
3
  type ErrorPath = (string | number)[];
4
4
  export type ErrorWithPath = FetchQueryError[number] & {
package/lib/index.d.ts CHANGED
@@ -14,8 +14,10 @@
14
14
  * is strictly forbidden unless prior written permission is obtained
15
15
  * from Adobe.
16
16
  *******************************************************************/
17
- export * from './fetch-error';
17
+ export * from './dispatchApiCall';
18
+ export * from './dom';
18
19
  export * from './network-error';
20
+ export * from './preact';
19
21
  export * from './state';
20
22
  export * from './validation';
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  /**
18
18
  * A function which can be attached to fetchGraphQL to handle thrown errors in
19
19
  * a generic way.
@@ -0,0 +1,4 @@
1
+ import { Container } from '../../@adobe-commerce/elsie/src/lib/types';
2
+
3
+ export declare function getDisplayName(WrappedComponent: Container<any>): string;
4
+ //# sourceMappingURL=preact.d.ts.map
package/msw/browser.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export declare const worker: import('msw/browser').SetupWorker;
18
18
  //# sourceMappingURL=browser.d.ts.map
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export declare const cartFixture: {
18
18
  __typename?: "Cart" | undefined;
19
19
  id: string;
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export * from './fragments';
18
18
  export * from './queries';
19
19
  export * from './mutations';
@@ -1,19 +1,19 @@
1
1
  /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2024 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
- *******************************************************************/
2
+ * ADOBE CONFIDENTIAL
3
+ * __________________
4
+ *
5
+ * Copyright 2024 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
17
  export * from './estimate-shipping-methods';
18
18
  export * from './set-billing-address';
19
19
  export * from './set-guest-email';