@akinon/projectzero 1.78.0-rc.0 → 1.78.0-rc.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.78.0-rc.1
4
+
3
5
  ## 1.78.0-rc.0
4
6
 
5
7
  ### Minor Changes
@@ -1,5 +1,30 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.78.0-rc.1
4
+
5
+ ### Minor Changes
6
+
7
+ - fd4b74e9: ZERO-3126: add reset checkout state query
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [fd4b74e9]
12
+ - @akinon/next@1.78.0-rc.1
13
+ - @akinon/pz-akifast@1.78.0-rc.1
14
+ - @akinon/pz-b2b@1.78.0-rc.1
15
+ - @akinon/pz-basket-gift-pack@1.78.0-rc.1
16
+ - @akinon/pz-bkm@1.78.0-rc.1
17
+ - @akinon/pz-checkout-gift-pack@1.78.0-rc.1
18
+ - @akinon/pz-click-collect@1.78.0-rc.1
19
+ - @akinon/pz-credit-payment@1.78.0-rc.1
20
+ - @akinon/pz-gpay@1.78.0-rc.1
21
+ - @akinon/pz-masterpass@1.78.0-rc.1
22
+ - @akinon/pz-one-click-checkout@1.78.0-rc.1
23
+ - @akinon/pz-otp@1.78.0-rc.1
24
+ - @akinon/pz-pay-on-delivery@1.78.0-rc.1
25
+ - @akinon/pz-saved-card@1.78.0-rc.1
26
+ - @akinon/pz-tabby-extension@1.78.0-rc.1
27
+
3
28
  ## 1.78.0-rc.0
4
29
 
5
30
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.78.0-rc.0",
3
+ "version": "1.78.0-rc.1",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,21 +22,21 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.78.0-rc.0",
26
- "@akinon/pz-akifast": "1.78.0-rc.0",
27
- "@akinon/pz-b2b": "1.78.0-rc.0",
28
- "@akinon/pz-basket-gift-pack": "1.78.0-rc.0",
29
- "@akinon/pz-bkm": "1.78.0-rc.0",
30
- "@akinon/pz-checkout-gift-pack": "1.78.0-rc.0",
31
- "@akinon/pz-click-collect": "1.78.0-rc.0",
32
- "@akinon/pz-credit-payment": "1.78.0-rc.0",
33
- "@akinon/pz-gpay": "1.78.0-rc.0",
34
- "@akinon/pz-masterpass": "1.78.0-rc.0",
35
- "@akinon/pz-one-click-checkout": "1.78.0-rc.0",
36
- "@akinon/pz-otp": "1.78.0-rc.0",
37
- "@akinon/pz-pay-on-delivery": "1.78.0-rc.0",
38
- "@akinon/pz-saved-card": "1.78.0-rc.0",
39
- "@akinon/pz-tabby-extension": "1.78.0-rc.0",
25
+ "@akinon/next": "1.78.0-rc.1",
26
+ "@akinon/pz-akifast": "1.78.0-rc.1",
27
+ "@akinon/pz-b2b": "1.78.0-rc.1",
28
+ "@akinon/pz-basket-gift-pack": "1.78.0-rc.1",
29
+ "@akinon/pz-bkm": "1.78.0-rc.1",
30
+ "@akinon/pz-checkout-gift-pack": "1.78.0-rc.1",
31
+ "@akinon/pz-click-collect": "1.78.0-rc.1",
32
+ "@akinon/pz-credit-payment": "1.78.0-rc.1",
33
+ "@akinon/pz-gpay": "1.78.0-rc.1",
34
+ "@akinon/pz-masterpass": "1.78.0-rc.1",
35
+ "@akinon/pz-one-click-checkout": "1.78.0-rc.1",
36
+ "@akinon/pz-otp": "1.78.0-rc.1",
37
+ "@akinon/pz-pay-on-delivery": "1.78.0-rc.1",
38
+ "@akinon/pz-saved-card": "1.78.0-rc.1",
39
+ "@akinon/pz-tabby-extension": "1.78.0-rc.1",
40
40
  "@hookform/resolvers": "2.9.0",
41
41
  "@next/third-parties": "14.1.0",
42
42
  "@react-google-maps/api": "2.17.1",
@@ -61,7 +61,7 @@
61
61
  "yup": "0.32.11"
62
62
  },
63
63
  "devDependencies": {
64
- "@akinon/eslint-plugin-projectzero": "1.78.0-rc.0",
64
+ "@akinon/eslint-plugin-projectzero": "1.78.0-rc.1",
65
65
  "@semantic-release/changelog": "6.0.2",
66
66
  "@semantic-release/exec": "6.0.3",
67
67
  "@semantic-release/git": "10.0.1",
@@ -11,7 +11,7 @@ import {
11
11
  } from '@akinon/next/redux/reducers/checkout';
12
12
  import { RootState } from '@theme/redux/store';
13
13
  import { ROUTES } from '@theme/routes';
14
- import { useFetchCheckoutQuery } from '@akinon/next/data/client/checkout';
14
+ import { useFetchCheckoutQuery, useResetCheckoutStateQuery } from '@akinon/next/data/client/checkout';
15
15
  import { Button, LoaderSpinner } from '@theme/components';
16
16
  import { pushAddPaymentInfo, pushAddShippingInfo } from '@theme/utils/gtm';
17
17
  import { CheckoutStep } from '@akinon/next/types';
@@ -25,6 +25,8 @@ const Checkout = () => {
25
25
  (state: RootState) => state.checkout
26
26
  );
27
27
 
28
+ const { data: indexData, isLoading: isResetStateLoading } = useResetCheckoutStateQuery(null);
29
+
28
30
  const {
29
31
  data: checkoutData,
30
32
  isFetching,
@@ -32,7 +34,8 @@ const Checkout = () => {
32
34
  isSuccess,
33
35
  refetch: refetchCheckout
34
36
  } = useFetchCheckoutQuery(null, {
35
- refetchOnMountOrArgChange: true
37
+ refetchOnMountOrArgChange: true,
38
+ skip: isResetStateLoading || !indexData
36
39
  });
37
40
  const initialStepChanged = useRef<boolean>(false);
38
41
  const router = useRouter();
@@ -94,10 +97,10 @@ const Checkout = () => {
94
97
  );
95
98
  }
96
99
 
97
- if (isFetching || isError) {
100
+ if (isResetStateLoading || isFetching || isError) {
98
101
  return (
99
102
  <div className="flex flex-col items-center justify-center h-80">
100
- {isFetching ? (
103
+ {isResetStateLoading || isFetching ? (
101
104
  <LoaderSpinner />
102
105
  ) : (
103
106
  <>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.78.0-rc.0",
3
+ "version": "1.78.0-rc.1",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {