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

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,14 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.78.0-rc.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
8
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
9
+
10
+ ## 1.78.0-rc.1
11
+
3
12
  ## 1.78.0-rc.0
4
13
 
5
14
  ### Minor Changes
@@ -1,5 +1,88 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.78.0-rc.2
4
+
5
+ ### Minor Changes
6
+
7
+ - e8dcbe3c: ZERO-3112: Update button component
8
+ - fd4b74e9: ZERO-3126: add reset checkout state query
9
+ - 82174637: ZERO-2887: Add LoaderSpinner to Filters component
10
+ - 4d3deb4f: ZERO-2935: sentry 8 upgrade
11
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
12
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
13
+ - 2d305aaf: ZERO-2935: Update Sentry configuration: remove hideSourceMaps option and add it to withPzConfig
14
+ - 6a0a0807: ZERO-3112: Update button
15
+ - 14d6b00c: ZERO-3122: Refactor error handling in login and registration forms to support nested error messages
16
+ - 121044ba: ZERO-3120: Add sample regex for sitemap with url extension like .xml.gz
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [5dfeea04]
21
+ - Updated dependencies [2d9b2b2c]
22
+ - Updated dependencies [e791eabc]
23
+ - Updated dependencies [fd4b74e9]
24
+ - Updated dependencies [f49bb74f]
25
+ - Updated dependencies [e9541a13]
26
+ - Updated dependencies [4d3deb4f]
27
+ - Updated dependencies [72fd4d67]
28
+ - Updated dependencies [c53ef7b9]
29
+ - Updated dependencies [64699d3f]
30
+ - Updated dependencies [7727ae55]
31
+ - Updated dependencies [17f87524]
32
+ - Updated dependencies [65d3b862]
33
+ - Updated dependencies [bbe18b9f]
34
+ - Updated dependencies [4920742c]
35
+ - Updated dependencies [7e56d6b6]
36
+ - Updated dependencies [43c182ee]
37
+ - Updated dependencies [2d305aaf]
38
+ - Updated dependencies [eeb20bea]
39
+ - Updated dependencies [6a0a0807]
40
+ - Updated dependencies [f2c92d5c]
41
+ - Updated dependencies [7bd3d992]
42
+ - Updated dependencies [fdd255ee]
43
+ - Updated dependencies [49eeebfa]
44
+ - Updated dependencies [3f9b8d7e]
45
+ - @akinon/next@1.78.0-rc.2
46
+ - @akinon/pz-checkout-gift-pack@1.78.0-rc.2
47
+ - @akinon/pz-one-click-checkout@1.78.0-rc.2
48
+ - @akinon/pz-basket-gift-pack@1.78.0-rc.2
49
+ - @akinon/pz-pay-on-delivery@1.78.0-rc.2
50
+ - @akinon/pz-credit-payment@1.78.0-rc.2
51
+ - @akinon/pz-click-collect@1.78.0-rc.2
52
+ - @akinon/pz-masterpass@1.78.0-rc.2
53
+ - @akinon/pz-akifast@1.78.0-rc.2
54
+ - @akinon/pz-gpay@1.78.0-rc.2
55
+ - @akinon/pz-b2b@1.78.0-rc.2
56
+ - @akinon/pz-bkm@1.78.0-rc.2
57
+ - @akinon/pz-otp@1.78.0-rc.2
58
+ - @akinon/pz-tabby-extension@1.78.0-rc.2
59
+ - @akinon/pz-saved-card@1.78.0-rc.2
60
+
61
+ ## 1.78.0-rc.1
62
+
63
+ ### Minor Changes
64
+
65
+ - fd4b74e9: ZERO-3126: add reset checkout state query
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [fd4b74e9]
70
+ - @akinon/next@1.78.0-rc.1
71
+ - @akinon/pz-akifast@1.78.0-rc.1
72
+ - @akinon/pz-b2b@1.78.0-rc.1
73
+ - @akinon/pz-basket-gift-pack@1.78.0-rc.1
74
+ - @akinon/pz-bkm@1.78.0-rc.1
75
+ - @akinon/pz-checkout-gift-pack@1.78.0-rc.1
76
+ - @akinon/pz-click-collect@1.78.0-rc.1
77
+ - @akinon/pz-credit-payment@1.78.0-rc.1
78
+ - @akinon/pz-gpay@1.78.0-rc.1
79
+ - @akinon/pz-masterpass@1.78.0-rc.1
80
+ - @akinon/pz-one-click-checkout@1.78.0-rc.1
81
+ - @akinon/pz-otp@1.78.0-rc.1
82
+ - @akinon/pz-pay-on-delivery@1.78.0-rc.1
83
+ - @akinon/pz-saved-card@1.78.0-rc.1
84
+ - @akinon/pz-tabby-extension@1.78.0-rc.1
85
+
3
86
  ## 1.78.0-rc.0
4
87
 
5
88
  ### 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.2",
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.2",
26
+ "@akinon/pz-akifast": "1.78.0-rc.2",
27
+ "@akinon/pz-b2b": "1.78.0-rc.2",
28
+ "@akinon/pz-basket-gift-pack": "1.78.0-rc.2",
29
+ "@akinon/pz-bkm": "1.78.0-rc.2",
30
+ "@akinon/pz-checkout-gift-pack": "1.78.0-rc.2",
31
+ "@akinon/pz-click-collect": "1.78.0-rc.2",
32
+ "@akinon/pz-credit-payment": "1.78.0-rc.2",
33
+ "@akinon/pz-gpay": "1.78.0-rc.2",
34
+ "@akinon/pz-masterpass": "1.78.0-rc.2",
35
+ "@akinon/pz-one-click-checkout": "1.78.0-rc.2",
36
+ "@akinon/pz-otp": "1.78.0-rc.2",
37
+ "@akinon/pz-pay-on-delivery": "1.78.0-rc.2",
38
+ "@akinon/pz-saved-card": "1.78.0-rc.2",
39
+ "@akinon/pz-tabby-extension": "1.78.0-rc.2",
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.2",
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.2",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {