@dropins/storefront-checkout 0.1.0-alpha9 → 1.0.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.
- package/api/authenticateCustomer/authenticateCustomer.d.ts +18 -0
- package/api/authenticateCustomer/index.d.ts +18 -0
- package/api/errors/errors.d.ts +30 -0
- package/api/errors/index.d.ts +18 -0
- package/api/estimateShippingMethods/estimateShippingMethods.d.ts +13 -0
- package/api/estimateShippingMethods/fixtures.d.ts +8 -0
- package/api/estimateShippingMethods/graphql/estimateShippingMethods.graphql.d.ts +18 -0
- package/api/estimateShippingMethods/graphql/index.d.ts +18 -0
- package/api/estimateShippingMethods/index.d.ts +18 -0
- package/api/fetch-graphql/fetch-graphql.d.ts +25 -0
- package/api/fetch-graphql/index.d.ts +18 -0
- package/api/fragments.d.ts +19 -0
- package/api/getCart/fixtures.d.ts +12 -0
- package/api/getCart/getCart.d.ts +18 -0
- package/api/getCart/graphql/getCart.graphql.d.ts +19 -0
- package/api/getCart/graphql/index.d.ts +18 -0
- package/api/getCart/index.d.ts +18 -0
- package/api/getCustomer/fixtures.d.ts +5 -0
- package/api/getCustomer/getCustomer.d.ts +4 -0
- package/api/getCustomer/graphql/getCustomer.graphql.d.ts +18 -0
- package/api/getCustomer/graphql/index.d.ts +18 -0
- package/api/getCustomer/index.d.ts +18 -0
- package/api/getStoreConfig/getStoreConfig.d.ts +6 -0
- package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +18 -0
- package/api/getStoreConfig/index.d.ts +18 -0
- package/api/graphql/CartAddressFragment.graphql.d.ts +19 -0
- package/api/graphql/CheckoutDataFragment.graphql.d.ts +18 -0
- package/api/graphql/CustomerFragment.graphql.d.ts +18 -0
- package/api/index.d.ts +35 -0
- package/api/initialize/index.d.ts +18 -0
- package/api/initialize/initialize.d.ts +15 -0
- package/api/initialize/listeners.d.ts +20 -0
- package/api/initializeCheckout/index.d.ts +18 -0
- package/api/initializeCheckout/initializeCheckout.d.ts +4 -0
- package/api/isEmailAvailable/graphql/isEmailAvailable.graphql.d.ts +18 -0
- package/api/isEmailAvailable/index.d.ts +18 -0
- package/api/isEmailAvailable/isEmailAvailable.d.ts +4 -0
- package/api/resetCheckout/index.d.ts +2 -0
- package/api/resetCheckout/resetCheckout.d.ts +18 -0
- package/api/setBillingAddress/graphql/setBillingAddress.graphql.d.ts +18 -0
- package/api/setBillingAddress/index.d.ts +18 -0
- package/api/setBillingAddress/setBillingAddress.d.ts +4 -0
- package/api/setGuestEmailOnCart/graphql/setGuestEmailOnCart.graphql.d.ts +18 -0
- package/api/setGuestEmailOnCart/index.d.ts +18 -0
- package/api/setGuestEmailOnCart/setGuestEmailOnCart.d.ts +18 -0
- package/api/setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts +18 -0
- package/api/setPaymentMethod/index.d.ts +18 -0
- package/api/setPaymentMethod/setPaymentMethod.d.ts +4 -0
- package/api/setShippingAddress/graphql/setShippingAddress.graphql.d.ts +18 -0
- package/api/setShippingAddress/index.d.ts +18 -0
- package/api/setShippingAddress/setShippingAddress.d.ts +4 -0
- package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +18 -0
- package/api/setShippingMethods/index.d.ts +18 -0
- package/api/setShippingMethods/setShippingMethods.d.ts +18 -0
- package/api/synchronizeCheckout/index.d.ts +18 -0
- package/api/synchronizeCheckout/synchronizeCheckout.d.ts +4 -0
- package/api/utils/dispatchApiCall.d.ts +36 -0
- package/api/utils/enqueueRequest.d.ts +26 -0
- package/api/utils/filterControlledErrors.d.ts +18 -0
- package/api.d.ts +1 -0
- package/api.js +39 -2
- package/chunks/OrderError.js +3 -0
- package/chunks/ServerErrorSignal.js +3 -0
- package/chunks/classes.js +3 -0
- package/chunks/errors.js +3 -0
- package/chunks/setBillingAddress.js +13 -0
- package/chunks/setGuestEmailOnCart.js +19 -0
- package/chunks/setPaymentMethod.js +18 -0
- package/chunks/setShippingMethods.js +18 -0
- package/chunks/store-config.js +3 -0
- package/chunks/synchronizeCheckout.js +27 -0
- package/chunks/transform-store-config.js +12 -0
- package/chunks/withConditionalRendering.js +3 -0
- package/components/BillToShippingAddress/BillToShippingAddress.d.ts +9 -0
- package/components/BillToShippingAddress/BillToShippingAddressSkeleton.d.ts +4 -0
- package/components/BillToShippingAddress/index.d.ts +20 -0
- package/components/EstimateShipping/EstimateShipping.d.ts +12 -0
- package/components/EstimateShipping/EstimateShippingSkeleton.d.ts +4 -0
- package/components/EstimateShipping/index.d.ts +20 -0
- package/components/LoginForm/Email.d.ts +13 -0
- package/components/LoginForm/LoginForm.d.ts +20 -0
- package/components/LoginForm/LoginFormSkeleton.d.ts +4 -0
- package/components/LoginForm/SignIn.d.ts +8 -0
- package/components/LoginForm/SignOut.d.ts +8 -0
- package/components/LoginForm/index.d.ts +22 -0
- package/components/OutOfStock/OutOfStock.d.ts +11 -0
- package/components/OutOfStock/index.d.ts +19 -0
- package/components/PaymentMethods/PaymentMethods.d.ts +14 -0
- package/components/PaymentMethods/PaymentMethodsSkeleton.d.ts +4 -0
- package/components/PaymentMethods/index.d.ts +20 -0
- package/components/PlaceOrder/PlaceOrder.d.ts +9 -0
- package/components/PlaceOrder/PlaceOrderSkeleton.d.ts +4 -0
- package/components/PlaceOrder/index.d.ts +19 -0
- package/components/ServerError/ServerError.d.ts +10 -0
- package/components/ServerError/index.d.ts +19 -0
- package/components/ShippingMethods/ShippingMethods.d.ts +12 -0
- package/components/ShippingMethods/ShippingMethodsSkeleton.d.ts +4 -0
- package/components/ShippingMethods/index.d.ts +20 -0
- package/components/index.d.ts +25 -0
- package/containers/BillToShippingAddress/BillToShippingAddress.d.ts +24 -0
- package/containers/BillToShippingAddress/index.d.ts +19 -0
- package/containers/BillToShippingAddress.d.ts +3 -0
- package/containers/BillToShippingAddress.js +3 -1
- package/containers/ErrorBanner/ErrorBanner.d.ts +5 -0
- package/containers/ErrorBanner/index.d.ts +19 -0
- package/containers/ErrorBanner.d.ts +3 -0
- package/containers/ErrorBanner.js +3 -1
- package/containers/EstimateShipping/EstimateShipping.d.ts +4 -0
- package/containers/EstimateShipping/index.d.ts +19 -0
- package/containers/EstimateShipping.d.ts +3 -0
- package/containers/EstimateShipping.js +3 -0
- package/containers/LoginForm/LoginForm.d.ts +11 -0
- package/containers/LoginForm/index.d.ts +19 -0
- package/containers/LoginForm.d.ts +3 -0
- package/containers/LoginForm.js +3 -1
- package/containers/MergedCartBanner/MergedCartBanner.d.ts +7 -0
- package/containers/MergedCartBanner/index.d.ts +19 -0
- package/containers/MergedCartBanner.d.ts +3 -0
- package/containers/MergedCartBanner.js +3 -0
- package/containers/OutOfStock/OutOfStock.d.ts +13 -0
- package/containers/OutOfStock/index.d.ts +19 -0
- package/containers/OutOfStock.d.ts +3 -0
- package/containers/OutOfStock.js +3 -0
- package/containers/PaymentMethods/PaymentMethods.d.ts +27 -0
- package/containers/PaymentMethods/defaultHandlers.d.ts +4 -0
- package/containers/PaymentMethods/index.d.ts +19 -0
- package/containers/PaymentMethods.d.ts +3 -0
- package/containers/PaymentMethods.js +3 -2
- package/containers/PlaceOrder/PlaceOrder.d.ts +16 -0
- package/containers/PlaceOrder/index.d.ts +19 -0
- package/containers/PlaceOrder.d.ts +3 -0
- package/containers/PlaceOrder.js +3 -2
- package/containers/ServerError/ServerError.d.ts +8 -0
- package/containers/ServerError/index.d.ts +19 -0
- package/containers/ServerError.d.ts +3 -0
- package/containers/ServerError.js +3 -0
- package/containers/ShippingMethods/ShippingMethods.d.ts +17 -0
- package/containers/ShippingMethods/hooks/useShippingEstimateEventEmitter.d.ts +19 -0
- package/containers/ShippingMethods/index.d.ts +19 -0
- package/containers/ShippingMethods.d.ts +3 -0
- package/containers/ShippingMethods.js +3 -2
- package/containers/index.d.ts +27 -0
- package/data/models/address.d.ts +21 -0
- package/data/models/api.d.ts +33 -0
- package/data/models/cart.d.ts +19 -0
- package/data/models/country.d.ts +21 -0
- package/data/models/custom-attribute.d.ts +21 -0
- package/data/models/customer.d.ts +22 -0
- package/data/models/email-availability.d.ts +18 -0
- package/data/models/index.d.ts +30 -0
- package/data/models/payment-method.d.ts +21 -0
- package/data/models/price.d.ts +21 -0
- package/data/models/region.d.ts +22 -0
- package/data/models/shipping-estimate.d.ts +17 -0
- package/data/models/shipping-method.d.ts +19 -0
- package/data/models/store-config.d.ts +30 -0
- package/data/transforms/index.d.ts +24 -0
- package/data/transforms/transform-address.d.ts +95 -0
- package/data/transforms/transform-cart.d.ts +7 -0
- package/data/transforms/transform-customer.d.ts +7 -0
- package/data/transforms/transform-email-availability.d.ts +6 -0
- package/data/transforms/transform-payment-methods.d.ts +9 -0
- package/data/transforms/transform-shipping-estimate.d.ts +5 -0
- package/data/transforms/transform-shipping-methods.d.ts +14 -0
- package/data/transforms/transform-store-config.d.ts +6 -0
- package/fragments.d.ts +1 -0
- package/fragments.js +134 -0
- package/hocs/index.d.ts +18 -0
- package/hocs/withConditionalRendering.d.ts +13 -0
- package/hooks/index.d.ts +20 -0
- package/hooks/useBreakpoint/index.d.ts +18 -0
- package/hooks/useBreakpoint/useBreakpoint.d.ts +18 -0
- package/hooks/useLockScroll/index.d.ts +18 -0
- package/hooks/useLockScroll/useLockScroll.d.ts +21 -0
- package/hooks/useStableList/index.d.ts +2 -0
- package/hooks/useStableList/useStableList.d.ts +2 -0
- package/i18n/en_US.json.d.ts +79 -0
- package/lib/fetch-error.d.ts +23 -0
- package/lib/index.d.ts +21 -0
- package/lib/network-error.d.ts +22 -0
- package/lib/state.d.ts +12 -0
- package/lib/validation.d.ts +5 -0
- package/msw/browser.d.ts +18 -0
- package/msw/fixtures/fragments/available-shipping-methods.d.ts +23 -0
- package/msw/fixtures/fragments/billing-address.d.ts +60 -0
- package/msw/fixtures/fragments/cart.d.ts +149 -0
- package/msw/fixtures/fragments/index.d.ts +21 -0
- package/msw/fixtures/fragments/shipping-address.d.ts +62 -0
- package/msw/fixtures/index.d.ts +20 -0
- package/msw/fixtures/mutations/estimate-shipping-methods.d.ts +4 -0
- package/msw/fixtures/mutations/index.d.ts +23 -0
- package/msw/fixtures/mutations/set-billing-address.d.ts +5 -0
- package/msw/fixtures/mutations/set-guest-email.d.ts +4 -0
- package/msw/fixtures/mutations/set-payment-method.d.ts +4 -0
- package/msw/fixtures/mutations/set-shipping-address.d.ts +4 -0
- package/msw/fixtures/mutations/set-shipping-methods.d.ts +4 -0
- package/msw/fixtures/queries/get-cart.d.ts +4 -0
- package/msw/fixtures/queries/get-customer-cart-stock-status.d.ts +4 -0
- package/msw/fixtures/queries/get-customer.d.ts +5 -0
- package/msw/fixtures/queries/get-stock-status.d.ts +4 -0
- package/msw/fixtures/queries/get-store-config.d.ts +4 -0
- package/msw/fixtures/queries/index.d.ts +23 -0
- package/msw/fixtures/queries/is-email-available.d.ts +4 -0
- package/msw/handlers.d.ts +4 -0
- package/msw/server.d.ts +18 -0
- package/package.json +1 -1
- package/render/Provider.d.ts +8 -0
- package/render/index.d.ts +18 -0
- package/render/render.d.ts +6 -0
- package/render.d.ts +1 -0
- package/render.js +9 -2
- package/signals/CartSignal.d.ts +7 -0
- package/signals/CustomerSignal.d.ts +7 -0
- package/signals/EstimateShippingMethodsSignal.d.ts +7 -0
- package/signals/IsBillToShippingSignal.d.ts +18 -0
- package/signals/SelectedPaymentMethodSignal.d.ts +18 -0
- package/signals/SelectedShippingMethodSignal.d.ts +4 -0
- package/signals/ServerErrorSignal.d.ts +18 -0
- package/signals/index.d.ts +24 -0
- package/tests/constants.d.ts +19 -0
- package/tests/integration/utils/index.d.ts +19 -0
- package/tests/integration/utils/setup.d.ts +8 -0
- package/tests/integration/utils/user-actions.d.ts +18 -0
- package/tests/mocks/svg.d.ts +20 -0
- package/tests/utils/expectError.d.ts +25 -0
- package/tests/utils/index.d.ts +19 -0
- package/tests/utils/mockEvents.d.ts +21 -0
- package/utils/convertCase/convertCase.d.ts +4 -0
- package/utils/convertCase/index.d.ts +18 -0
- package/utils/getDisplayName/getDisplayName.d.ts +4 -0
- package/utils/getDisplayName/index.d.ts +18 -0
- package/utils/index.d.ts +21 -0
- package/utils/isEmpty/index.d.ts +18 -0
- package/utils/isEmpty/isEmpty.d.ts +18 -0
- package/utils/isNullish/index.d.ts +18 -0
- package/utils/isNullish/isNullish.d.ts +18 -0
- package/utils/isUnexpectedError/index.d.ts +18 -0
- package/utils/isUnexpectedError/isUnexpectedError.d.ts +18 -0
- package/utils/shippingMethods/index.d.ts +18 -0
- package/utils/shippingMethods/isEqual.d.ts +4 -0
- package/223.js +0 -2
- package/223.js.LICENSE.txt +0 -1
- package/270.js +0 -1
- package/323.js +0 -1
- package/358.js +0 -2
- package/358.js.LICENSE.txt +0 -1
- package/378.js +0 -2
- package/378.js.LICENSE.txt +0 -1
- package/41.js +0 -2
- package/41.js.LICENSE.txt +0 -1
- package/424.js +0 -2
- package/424.js.LICENSE.txt +0 -1
- package/448.js +0 -1
- package/449.js +0 -1
- package/466.js +0 -1
- package/483.js +0 -2
- package/483.js.LICENSE.txt +0 -1
- package/499.js +0 -1
- package/603.js +0 -2
- package/603.js.LICENSE.txt +0 -1
- package/636.js +0 -2
- package/636.js.LICENSE.txt +0 -1
- package/637.js +0 -2
- package/637.js.LICENSE.txt +0 -1
- package/757.js +0 -1
- package/774.js +0 -2
- package/774.js.LICENSE.txt +0 -1
- package/79.js +0 -2
- package/79.js.LICENSE.txt +0 -1
- package/822.js +0 -1
- package/840.js +0 -1
- package/94.js +0 -2
- package/94.js.LICENSE.txt +0 -1
- package/965.js +0 -2
- package/965.js.LICENSE.txt +0 -1
- package/967.js +0 -1
- package/api.js.LICENSE.txt +0 -3
- package/containers/BillingForm.js +0 -1
- package/containers/CartSummary.js +0 -1
- package/containers/Checkout.js +0 -2
- package/containers/Checkout.js.LICENSE.txt +0 -1
- package/containers/OrderSummary.js +0 -1
- package/containers/PaymentMethods.js.LICENSE.txt +0 -1
- package/containers/PlaceOrder.js.LICENSE.txt +0 -1
- package/containers/ShippingForm.js +0 -2
- package/containers/ShippingForm.js.LICENSE.txt +0 -1
- package/containers/ShippingMethods.js.LICENSE.txt +0 -1
- package/render.js.LICENSE.txt +0 -1
- package/runtime.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ShippingEstimatePartialAddress, ShippingEstimateShippingMethod, ShippingMethod } from '../models';
|
|
2
|
+
|
|
3
|
+
export declare const transformShippingEstimatePartialAddress: (data: Record<string, string>) => ShippingEstimatePartialAddress;
|
|
4
|
+
export declare const transformShippingEstimateShippingMethod: (data: ShippingMethod) => ShippingEstimateShippingMethod;
|
|
5
|
+
//# sourceMappingURL=transform-shipping-estimate.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GetCartQuery } from '../../__generated__/types';
|
|
2
|
+
import { ShippingMethod } from '../models/shipping-method';
|
|
3
|
+
|
|
4
|
+
type Cart = NonNullable<GetCartQuery['cart']>;
|
|
5
|
+
type ShippingAddresses = Cart['shipping_addresses'];
|
|
6
|
+
type ShippingAddress = NonNullable<NonNullable<ShippingAddresses>[number]>;
|
|
7
|
+
type AvailableShippingMethods = ShippingAddress['available_shipping_methods'];
|
|
8
|
+
type AvailableShippingMethod = NonNullable<AvailableShippingMethods>[number];
|
|
9
|
+
type SelectedShippingMethod = ShippingAddress['selected_shipping_method'];
|
|
10
|
+
export declare const transformSelectedShippingMethod: (data: SelectedShippingMethod) => ShippingMethod | undefined;
|
|
11
|
+
export declare const transformAvailableShippingMethod: (data: AvailableShippingMethod) => ShippingMethod | undefined;
|
|
12
|
+
export declare const transformShippingMethods: (data: AvailableShippingMethods) => ShippingMethod[] | undefined;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=transform-shipping-methods.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GetStoreConfigQuery } from '../../__generated__/types';
|
|
2
|
+
import { StoreConfig, TaxDisplay } from '../models';
|
|
3
|
+
|
|
4
|
+
export declare function transformTaxDisplay(data: number | null | undefined): TaxDisplay;
|
|
5
|
+
export declare function transformStoreConfig(data: GetStoreConfigQuery['storeConfig']): StoreConfig;
|
|
6
|
+
//# sourceMappingURL=transform-store-config.d.ts.map
|
package/fragments.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api/fragments'
|
package/fragments.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/*! Copyright 2024 Adobe
|
|
2
|
+
All Rights Reserved. */
|
|
3
|
+
const e=`
|
|
4
|
+
fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {
|
|
5
|
+
id
|
|
6
|
+
city
|
|
7
|
+
country {
|
|
8
|
+
code
|
|
9
|
+
label
|
|
10
|
+
}
|
|
11
|
+
firstname
|
|
12
|
+
lastname
|
|
13
|
+
company
|
|
14
|
+
postcode
|
|
15
|
+
vat_id
|
|
16
|
+
region {
|
|
17
|
+
region_id
|
|
18
|
+
code
|
|
19
|
+
label
|
|
20
|
+
}
|
|
21
|
+
street
|
|
22
|
+
telephone
|
|
23
|
+
custom_attributes {
|
|
24
|
+
... on AttributeValue {
|
|
25
|
+
code
|
|
26
|
+
value
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
prefix
|
|
30
|
+
suffix
|
|
31
|
+
middlename
|
|
32
|
+
fax
|
|
33
|
+
}
|
|
34
|
+
`,t=`
|
|
35
|
+
fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
|
|
36
|
+
id
|
|
37
|
+
firstname
|
|
38
|
+
lastname
|
|
39
|
+
company
|
|
40
|
+
street
|
|
41
|
+
city
|
|
42
|
+
postcode
|
|
43
|
+
vat_id
|
|
44
|
+
region {
|
|
45
|
+
region_id
|
|
46
|
+
code
|
|
47
|
+
label
|
|
48
|
+
}
|
|
49
|
+
country {
|
|
50
|
+
code
|
|
51
|
+
label
|
|
52
|
+
}
|
|
53
|
+
telephone
|
|
54
|
+
custom_attributes {
|
|
55
|
+
... on AttributeValue {
|
|
56
|
+
code
|
|
57
|
+
value
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
available_shipping_methods {
|
|
61
|
+
amount {
|
|
62
|
+
currency
|
|
63
|
+
value
|
|
64
|
+
}
|
|
65
|
+
available
|
|
66
|
+
carrier_code
|
|
67
|
+
carrier_title
|
|
68
|
+
error_message
|
|
69
|
+
method_code
|
|
70
|
+
method_title
|
|
71
|
+
price_excl_tax {
|
|
72
|
+
value
|
|
73
|
+
currency
|
|
74
|
+
}
|
|
75
|
+
price_incl_tax {
|
|
76
|
+
value
|
|
77
|
+
currency
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
selected_shipping_method {
|
|
81
|
+
amount {
|
|
82
|
+
value
|
|
83
|
+
currency
|
|
84
|
+
}
|
|
85
|
+
carrier_code
|
|
86
|
+
carrier_title
|
|
87
|
+
method_code
|
|
88
|
+
method_title
|
|
89
|
+
price_excl_tax {
|
|
90
|
+
value
|
|
91
|
+
currency
|
|
92
|
+
}
|
|
93
|
+
price_incl_tax {
|
|
94
|
+
value
|
|
95
|
+
currency
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
same_as_billing
|
|
99
|
+
prefix
|
|
100
|
+
suffix
|
|
101
|
+
middlename
|
|
102
|
+
fax
|
|
103
|
+
}
|
|
104
|
+
`,a=`
|
|
105
|
+
fragment CHECKOUT_DATA_FRAGMENT on Cart {
|
|
106
|
+
id
|
|
107
|
+
is_virtual
|
|
108
|
+
email
|
|
109
|
+
total_quantity
|
|
110
|
+
billing_address {
|
|
111
|
+
...BILLING_CART_ADDRESS_FRAGMENT
|
|
112
|
+
}
|
|
113
|
+
shipping_addresses {
|
|
114
|
+
...SHIPPING_CART_ADDRESS_FRAGMENT
|
|
115
|
+
}
|
|
116
|
+
available_payment_methods {
|
|
117
|
+
code
|
|
118
|
+
title
|
|
119
|
+
}
|
|
120
|
+
selected_payment_method {
|
|
121
|
+
code
|
|
122
|
+
title
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
${e}
|
|
127
|
+
${t}
|
|
128
|
+
`,i=`
|
|
129
|
+
fragment CUSTOMER_FRAGMENT on Customer {
|
|
130
|
+
firstname
|
|
131
|
+
lastname
|
|
132
|
+
email
|
|
133
|
+
}
|
|
134
|
+
`;export{a as CHECKOUT_DATA_FRAGMENT,i as CUSTOMER_FRAGMENT};
|
package/hocs/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export * from './withConditionalRendering';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
2
|
+
|
|
3
|
+
export interface ConditionalProps {
|
|
4
|
+
hideOnEmptyCart?: boolean;
|
|
5
|
+
hideOnVirtualCart?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const withConditionalRendering: <P extends object>(WrappedContainer: Container<P, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>) => {
|
|
10
|
+
({ hideOnEmptyCart, hideOnVirtualCart, ...props }: ConditionalProps & P): import("preact").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=withConditionalRendering.d.ts.map
|
package/hooks/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export * from './useBreakpoint';
|
|
18
|
+
export * from './useLockScroll';
|
|
19
|
+
export * from './useStableList';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export * from './useBreakpoint';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export declare const useBreakpoint: () => "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
18
|
+
//# sourceMappingURL=useBreakpoint.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export * from './useLockScroll';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export declare const useScrollLock: () => {
|
|
18
|
+
lockScroll: () => void;
|
|
19
|
+
unlockScroll: () => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useLockScroll.d.ts.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"Checkout": {
|
|
3
|
+
"title": "Checkout",
|
|
4
|
+
"LoginForm": {
|
|
5
|
+
"title": "Contact details",
|
|
6
|
+
"account": "Already have an account?",
|
|
7
|
+
"ariaLabel": "Email",
|
|
8
|
+
"invalidEmailError": "Please enter a valid email address.",
|
|
9
|
+
"missingEmailError": "Enter an email address.",
|
|
10
|
+
"emailExists": {
|
|
11
|
+
"alreadyHaveAccount": "It looks like you already have an account.",
|
|
12
|
+
"signInButton": "Sign in",
|
|
13
|
+
"forFasterCheckout": "for a faster checkout."
|
|
14
|
+
},
|
|
15
|
+
"floatingLabel": "Email *",
|
|
16
|
+
"placeholder": "Enter your email address",
|
|
17
|
+
"signIn": "Sign In",
|
|
18
|
+
"switch": "Do you want to switch account?",
|
|
19
|
+
"signOut": "Sign Out"
|
|
20
|
+
},
|
|
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"
|
|
27
|
+
},
|
|
28
|
+
"PaymentMethods": {
|
|
29
|
+
"title": "Payment",
|
|
30
|
+
"emptyState": "No payment methods available"
|
|
31
|
+
},
|
|
32
|
+
"OutOfStock": {
|
|
33
|
+
"title": "Your cart contains items that are out of stock",
|
|
34
|
+
"message": "The following items are out of stock:",
|
|
35
|
+
"actions": {
|
|
36
|
+
"reviewCart": "Review cart",
|
|
37
|
+
"removeOutOfStock": "Remove out of stock items"
|
|
38
|
+
},
|
|
39
|
+
"lowInventory": {
|
|
40
|
+
"one": "Last item!",
|
|
41
|
+
"many": "Only {{count}} left!"
|
|
42
|
+
},
|
|
43
|
+
"alert": "Out of stock!"
|
|
44
|
+
},
|
|
45
|
+
"PlaceOrder": {
|
|
46
|
+
"button": "Place Order"
|
|
47
|
+
},
|
|
48
|
+
"ServerError": {
|
|
49
|
+
"title": "We were unable to process your order",
|
|
50
|
+
"contactSupport": "If you continue to have issues, please contact support.",
|
|
51
|
+
"unexpected": "An unexpected error occurred while processing your order. Please try again later.",
|
|
52
|
+
"button": "Try again"
|
|
53
|
+
},
|
|
54
|
+
"EmptyCart": {
|
|
55
|
+
"title": "Your cart is empty",
|
|
56
|
+
"button": "Start shopping"
|
|
57
|
+
},
|
|
58
|
+
"ErrorBanner": {
|
|
59
|
+
"genericMessage": "Server error detected. Please check your connection and try again."
|
|
60
|
+
},
|
|
61
|
+
"MergedCartBanner": {
|
|
62
|
+
"items": {
|
|
63
|
+
"one": "1 item from a previous session was added to your cart. Please review your new subtotal.",
|
|
64
|
+
"many": "{{count}} items from a previous session were added to your cart. Please review your new subtotal."
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"EstimateShipping": {
|
|
68
|
+
"estimated": "Estimated Shipping",
|
|
69
|
+
"freeShipping": "Free",
|
|
70
|
+
"label": "Shipping",
|
|
71
|
+
"taxToBeDetermined": "TBD",
|
|
72
|
+
"withTaxes": "Including taxes",
|
|
73
|
+
"withoutTaxes": "Excluding taxes"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
;
|
|
78
|
+
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export declare const handleFetchErrors: (errors?: Array<{
|
|
18
|
+
message: string;
|
|
19
|
+
extensions: {
|
|
20
|
+
category: string;
|
|
21
|
+
};
|
|
22
|
+
}>) => void;
|
|
23
|
+
//# sourceMappingURL=fetch-error.d.ts.map
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export * from './fetch-error';
|
|
18
|
+
export * from './network-error';
|
|
19
|
+
export * from './state';
|
|
20
|
+
export * from './validation';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
/**
|
|
18
|
+
* A function which can be attached to fetchGraphQL to handle thrown errors in
|
|
19
|
+
* a generic way.
|
|
20
|
+
*/
|
|
21
|
+
export declare const handleNetworkError: (error: Error) => never;
|
|
22
|
+
//# sourceMappingURL=network-error.d.ts.map
|
package/lib/state.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoreConfig } from '../data/models';
|
|
2
|
+
|
|
3
|
+
type State = {
|
|
4
|
+
authenticated: boolean;
|
|
5
|
+
cartId: string | null;
|
|
6
|
+
initialized: boolean;
|
|
7
|
+
config: StoreConfig | null;
|
|
8
|
+
};
|
|
9
|
+
export declare const state: State;
|
|
10
|
+
export declare const getStoreConfigCache: () => StoreConfig | null;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=state.d.ts.map
|
package/msw/browser.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export declare const worker: import('msw/browser').SetupWorker;
|
|
18
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CurrencyEnum } from '../../../__generated__/types';
|
|
2
|
+
|
|
3
|
+
export declare const availableShippingMethodsFixture: {
|
|
4
|
+
amount: {
|
|
5
|
+
currency: CurrencyEnum;
|
|
6
|
+
value: number;
|
|
7
|
+
};
|
|
8
|
+
available: boolean;
|
|
9
|
+
carrier_code: string;
|
|
10
|
+
carrier_title: string;
|
|
11
|
+
error_message: string;
|
|
12
|
+
method_code: string;
|
|
13
|
+
method_title: string;
|
|
14
|
+
price_excl_tax: {
|
|
15
|
+
value: number;
|
|
16
|
+
currency: CurrencyEnum;
|
|
17
|
+
};
|
|
18
|
+
price_incl_tax: {
|
|
19
|
+
value: number;
|
|
20
|
+
currency: CurrencyEnum;
|
|
21
|
+
};
|
|
22
|
+
}[];
|
|
23
|
+
//# sourceMappingURL=available-shipping-methods.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
*******************************************************************/
|
|
17
|
+
export declare const billingAddressFixture: {
|
|
18
|
+
firstname: string;
|
|
19
|
+
lastname: string;
|
|
20
|
+
company: null;
|
|
21
|
+
street: string[];
|
|
22
|
+
city: string;
|
|
23
|
+
postcode: string;
|
|
24
|
+
vat_id: null;
|
|
25
|
+
country: {
|
|
26
|
+
code: string;
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
region: {
|
|
30
|
+
region_id: number;
|
|
31
|
+
code: string;
|
|
32
|
+
label: string;
|
|
33
|
+
};
|
|
34
|
+
telephone: string;
|
|
35
|
+
custom_attributes: {}[];
|
|
36
|
+
prefix: string;
|
|
37
|
+
suffix: string;
|
|
38
|
+
middlename: string;
|
|
39
|
+
fax: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const ukBillingAddressFixture: {
|
|
42
|
+
firstname: string;
|
|
43
|
+
lastname: string;
|
|
44
|
+
company: null;
|
|
45
|
+
street: string[];
|
|
46
|
+
city: string;
|
|
47
|
+
postcode: string;
|
|
48
|
+
vat_id: null;
|
|
49
|
+
country: {
|
|
50
|
+
code: string;
|
|
51
|
+
label: string;
|
|
52
|
+
};
|
|
53
|
+
telephone: string;
|
|
54
|
+
custom_attributes: {}[];
|
|
55
|
+
prefix: string;
|
|
56
|
+
suffix: string;
|
|
57
|
+
middlename: string;
|
|
58
|
+
fax: string;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=billing-address.d.ts.map
|