@lookiero/checkout 8.8.0-beta.4 → 8.8.0-beta.6

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.
@@ -19,6 +19,6 @@ const root = ({ Messaging, I18n, getAuthToken, development, sentry, kameleoon: k
19
19
  * It's important to not call sentryLoggerHOC each time this function gets called.
20
20
  * That's why its called outside this method.
21
21
  */
22
- return ({ customerId }) => hoc({ customerId })(Root);
22
+ return ({ customerId, rootClient }) => hoc({ customerId, rootClient })(Root);
23
23
  };
24
24
  export { root };
@@ -36,16 +36,6 @@ const CheckoutMiddleware = ({ customerId, onNotAccessible, loader = React.create
36
36
  const checkoutPaymentRouteMatch = useMatch(`${basePath}/${Routes.CHECKOUT}/${Routes.CHECKOUT_PAYMENT}`);
37
37
  const checkoutPaymentRouteMatchRef = useRef(checkoutPaymentRouteMatch);
38
38
  checkoutPaymentRouteMatchRef.current = checkoutPaymentRouteMatch;
39
- useEffect(() => {
40
- const errorTimeout = setTimeout(() => {
41
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
42
- // @ts-ignore
43
- thisIsAnErrorTest();
44
- }, 3000);
45
- return () => {
46
- clearTimeout(errorTimeout);
47
- };
48
- }, []);
49
39
  const checkoutShown = useRef(false);
50
40
  checkoutShown.current = checkoutShown.current || (Boolean(checkoutRouteMatch) && !Boolean(checkoutPaymentRouteMatch));
51
41
  const [checkout] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
@@ -1 +1 @@
1
- export declare const VERSION = "8.8.0-beta.4";
1
+ export declare const VERSION = "8.8.0-beta.6";
@@ -1 +1 @@
1
- export const VERSION = "8.8.0-beta.4";
1
+ export const VERSION = "8.8.0-beta.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "8.8.0-beta.4",
3
+ "version": "8.8.0-beta.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
@@ -15,19 +15,19 @@
15
15
  "dependencies": {
16
16
  "@lookiero/messaging": "^8.1.1",
17
17
  "@lookiero/messaging-react": "^8.1.1",
18
- "@lookiero/sty-psp-ab-testing": "^0.2.4-beta.4",
18
+ "@lookiero/sty-psp-ab-testing": "^0.2.4-beta.5",
19
19
  "@lookiero/sty-psp-expo-config": "^0.1.0",
20
20
  "@lookiero/sty-psp-http": "^2.0.0",
21
21
  "@lookiero/sty-psp-i18n": "^0.2.1",
22
22
  "@lookiero/sty-psp-locale": "^0.4.0",
23
- "@lookiero/sty-psp-logging": "^0.3.0-beta.4",
24
- "@lookiero/sty-psp-notifications": "^0.5.13-beta.4",
23
+ "@lookiero/sty-psp-logging": "^0.3.0-beta.5",
24
+ "@lookiero/sty-psp-notifications": "^0.5.13-beta.5",
25
25
  "@lookiero/sty-psp-react-native": "^0.2.0",
26
26
  "@lookiero/sty-psp-segment": "^0.1.1",
27
27
  "@lookiero/sty-psp-storage": "^0.1.3",
28
28
  "@lookiero/sty-psp-tracking": "^0.1.9",
29
29
  "@lookiero/sty-psp-ui": "^0.5.8",
30
- "@lookiero/sty-psp-ui-settings": "^0.1.3-beta.4",
30
+ "@lookiero/sty-psp-ui-settings": "^0.1.3-beta.5",
31
31
  "@lookiero/sty-psp-units": "^0.1.1",
32
32
  "@lookiero/sty-psp-uuid": "^0.1.0",
33
33
  "@react-native-async-storage/async-storage": "^1.22.3",
@@ -86,7 +86,7 @@ const root: RootFunction = ({ Messaging, I18n, getAuthToken, development, sentry
86
86
  * It's important to not call sentryLoggerHOC each time this function gets called.
87
87
  * That's why its called outside this method.
88
88
  */
89
- return ({ customerId }) => hoc({ customerId })(Root);
89
+ return ({ customerId, rootClient }) => hoc({ customerId, rootClient })(Root);
90
90
  };
91
91
 
92
92
  export type { RootProps };
@@ -52,18 +52,6 @@ const CheckoutMiddleware: FC<CheckoutMiddlewareProps> = ({
52
52
  const checkoutPaymentRouteMatchRef = useRef(checkoutPaymentRouteMatch);
53
53
  checkoutPaymentRouteMatchRef.current = checkoutPaymentRouteMatch;
54
54
 
55
- useEffect(() => {
56
- const errorTimeout = setTimeout(() => {
57
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
58
- // @ts-ignore
59
- thisIsAnErrorTest();
60
- }, 3000);
61
-
62
- return () => {
63
- clearTimeout(errorTimeout);
64
- };
65
- }, []);
66
-
67
55
  const checkoutShown = useRef(false);
68
56
  checkoutShown.current = checkoutShown.current || (Boolean(checkoutRouteMatch) && !Boolean(checkoutPaymentRouteMatch));
69
57