@lookiero/checkout 8.19.0 → 8.21.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/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +212 -254
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +1 -1
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +636 -762
- package/src/infrastructure/ui/views/summary/Summary.tsx +1 -1
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +1169 -1211
- package/tsconfig.json +8 -1
- package/webpack.config.js +8 -1
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
|