@lookiero/checkout 8.20.0 → 8.22.0
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/.detoxrc.js +55 -0
- package/app.json +15 -3
- package/babel.config.js +20 -0
- package/dist/fake-dependencies/@lookiero/payments-front/index.d.ts +21 -0
- package/dist/fake-dependencies/@lookiero/payments-front/index.js +20 -0
- package/dist/src/Expo.d.ts +1 -1
- package/dist/src/Expo.js +1 -0
- package/dist/src/ExpoRoot.js +13 -31
- package/dist/src/infrastructure/delivery/bootstrap.mock.d.ts +3 -0
- package/dist/src/infrastructure/delivery/bootstrap.mock.js +91 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/bookedProductsVariants.mock.d.ts +3 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/bookedProductsVariants.mock.js +27 -0
- package/dist/src/infrastructure/projection/checkout/checkout.mock.d.ts +19 -0
- package/dist/src/infrastructure/projection/checkout/checkout.mock.js +21 -0
- package/dist/src/infrastructure/projection/checkoutBooking/checkoutBooking.mock.d.ts +3 -0
- package/dist/src/infrastructure/projection/checkoutBooking/checkoutBooking.mock.js +6 -0
- package/dist/src/infrastructure/projection/checkoutFeedback/checkoutFeedback.mock.d.ts +3 -0
- package/dist/src/infrastructure/projection/checkoutFeedback/checkoutFeedback.mock.js +5 -0
- package/dist/src/infrastructure/projection/checkoutItem/checkoutItem.mock.d.ts +15 -0
- package/dist/src/infrastructure/projection/checkoutItem/checkoutItem.mock.js +43 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/checkoutQuestions.mock.d.ts +3 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/checkoutQuestions.mock.js +103 -0
- package/dist/src/infrastructure/projection/feedback/feedback.mock.d.ts +3 -0
- package/dist/src/infrastructure/projection/feedback/feedback.mock.js +6 -0
- package/dist/src/infrastructure/projection/payment/paymentFlowPayload.mock.d.ts +6 -0
- package/dist/src/infrastructure/projection/payment/paymentFlowPayload.mock.js +183 -0
- package/dist/src/infrastructure/projection/pricing/pricing.mock.d.ts +9 -0
- package/dist/src/infrastructure/projection/pricing/pricing.mock.js +42 -0
- package/dist/src/infrastructure/projection/returnQuestion/returnQuestions.mock.d.ts +3 -0
- package/dist/src/infrastructure/projection/returnQuestion/returnQuestions.mock.js +354 -0
- package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.js +11 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +1 -1
- package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js +2 -2
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +2 -1
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +1 -1
- package/dist/src/infrastructure/ui/views/summary/Summary.js +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/e2e/checkout.test.ts +160 -0
- package/e2e/jest.config.js +13 -0
- package/e2e/tsconfig.json +4 -0
- package/eas-hooks/eas-build-on-success.sh +45 -0
- package/eas-hooks/eas-build-pre-install.sh +39 -0
- package/eas.json +23 -0
- package/fake-dependencies/@lookiero/payments-front/index.tsx +40 -0
- package/fake-dependencies/@lookiero/user-tracking-front/index.js +3 -0
- package/metro.config.js +22 -0
- package/package.json +13 -2
- package/src/Expo.tsx +1 -0
- package/src/ExpoRoot.tsx +14 -31
- package/src/infrastructure/projection/bookedProductsVariants/bookedProductsVariants.mock.ts +2 -2
- package/src/infrastructure/ui/hooks/useSubmitCheckout.ts +20 -2
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +1 -1
- package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx +1 -2
- package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +3 -2
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +1 -1
- package/src/infrastructure/ui/views/summary/Summary.tsx +1 -1
- package/tsconfig.json +8 -1
- package/webpack.config.js +8 -1
|
@@ -104,7 +104,7 @@ const ItemWithoutCustomerDecission: FC<ItemWithoutCustomerDecissionProps> = ({
|
|
|
104
104
|
<>
|
|
105
105
|
<SizeWithoutStockModal visible={sizeWithoutStockModalVisible} onDismiss={handleOnHideSizeWithoutStockModal} />
|
|
106
106
|
|
|
107
|
-
<ScrollView showsVerticalScrollIndicator={false}>
|
|
107
|
+
<ScrollView showsVerticalScrollIndicator={false} testID={checkoutItem.id}>
|
|
108
108
|
<Body style={{ row: style.container }}>
|
|
109
109
|
<ProductVariant
|
|
110
110
|
checkoutId={checkoutId}
|
|
@@ -117,7 +117,7 @@ const Summary: FC<SummaryProps> = ({ layout: Layout, children }) => {
|
|
|
117
117
|
scrollView: style.scrollView,
|
|
118
118
|
}}
|
|
119
119
|
>
|
|
120
|
-
<ScrollView showsVerticalScrollIndicator={false}>
|
|
120
|
+
<ScrollView showsVerticalScrollIndicator={false} testID="summary-view">
|
|
121
121
|
{fiveItemsDiscount !== 0 && <FiveItemsDiscountBanner fiveItemsDiscount={fiveItemsDiscount} />}
|
|
122
122
|
|
|
123
123
|
<AuroraLayout
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "@lookiero/sty-psp-typescript/tsconfig.expo.json",
|
|
3
|
-
"include": [
|
|
3
|
+
"include": [
|
|
4
|
+
"@types",
|
|
5
|
+
"index.ts",
|
|
6
|
+
"src/**/*.ts",
|
|
7
|
+
"src/**/*.tsx",
|
|
8
|
+
"fake-dependencies/**/*.ts",
|
|
9
|
+
"fake-dependencies/**/*.tsx"
|
|
10
|
+
],
|
|
4
11
|
"compilerOptions": {
|
|
5
12
|
"outDir": "./dist"
|
|
6
13
|
}
|
package/webpack.config.js
CHANGED
|
@@ -55,13 +55,20 @@ module.exports = async function (env, argv) {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
// Add in missing process.env.EXPO_PUBLIC_<...> variables to the DefinePlugin
|
|
59
|
+
const expoPublicEnvVars = Object.fromEntries(
|
|
60
|
+
Object.entries(process.env)
|
|
61
|
+
.filter(([key]) => key.startsWith("EXPO_PUBLIC_"))
|
|
62
|
+
.map(([key, value]) => [key, JSON.stringify(value)]),
|
|
63
|
+
);
|
|
64
|
+
|
|
58
65
|
/**
|
|
59
66
|
* This is required in order to resolve an Aurora introduced issue.
|
|
60
67
|
* Without this config, expo won't start.
|
|
61
68
|
*/
|
|
62
69
|
config.plugins = [
|
|
63
70
|
...(config.plugins || []),
|
|
64
|
-
new webpack.DefinePlugin({ process: { env:
|
|
71
|
+
new webpack.DefinePlugin({ process: { env: expoPublicEnvVars } }),
|
|
65
72
|
// new BundleAnalyzerPlugin({ path: 'web-report' })
|
|
66
73
|
/**
|
|
67
74
|
* https://github.com/webpack/changelog-v5/issues/10#issuecomment-615877593
|