@akinon/projectzero 1.79.0-rc.3 → 1.79.0-rc.4

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,12 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.79.0-rc.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 7a1e1f73: ZERO-3138: Close the search input with the esc key
8
+ - c82875bc: ZERO-3140: Fix style layout size
9
+
3
10
  ## 1.79.0-rc.3
4
11
 
5
12
  ### Minor Changes
@@ -1,5 +1,31 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.79.0-rc.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 7a1e1f73: ZERO-3138: Close the search input with the esc key
8
+ - c82875bc: ZERO-3140: Fix style layout size
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [fdbf156f]
13
+ - @akinon/pz-masterpass@1.79.0-rc.4
14
+ - @akinon/next@1.79.0-rc.4
15
+ - @akinon/pz-akifast@1.79.0-rc.4
16
+ - @akinon/pz-b2b@1.79.0-rc.4
17
+ - @akinon/pz-basket-gift-pack@1.79.0-rc.4
18
+ - @akinon/pz-bkm@1.79.0-rc.4
19
+ - @akinon/pz-checkout-gift-pack@1.79.0-rc.4
20
+ - @akinon/pz-click-collect@1.79.0-rc.4
21
+ - @akinon/pz-credit-payment@1.79.0-rc.4
22
+ - @akinon/pz-gpay@1.79.0-rc.4
23
+ - @akinon/pz-one-click-checkout@1.79.0-rc.4
24
+ - @akinon/pz-otp@1.79.0-rc.4
25
+ - @akinon/pz-pay-on-delivery@1.79.0-rc.4
26
+ - @akinon/pz-saved-card@1.79.0-rc.4
27
+ - @akinon/pz-tabby-extension@1.79.0-rc.4
28
+
3
29
  ## 1.79.0-rc.3
4
30
 
5
31
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.79.0-rc.3",
3
+ "version": "1.79.0-rc.4",
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.79.0-rc.3",
26
- "@akinon/pz-akifast": "1.79.0-rc.3",
27
- "@akinon/pz-b2b": "1.79.0-rc.3",
28
- "@akinon/pz-basket-gift-pack": "1.79.0-rc.3",
29
- "@akinon/pz-bkm": "1.79.0-rc.3",
30
- "@akinon/pz-checkout-gift-pack": "1.79.0-rc.3",
31
- "@akinon/pz-click-collect": "1.79.0-rc.3",
32
- "@akinon/pz-credit-payment": "1.79.0-rc.3",
33
- "@akinon/pz-gpay": "1.79.0-rc.3",
34
- "@akinon/pz-masterpass": "1.79.0-rc.3",
35
- "@akinon/pz-one-click-checkout": "1.79.0-rc.3",
36
- "@akinon/pz-otp": "1.79.0-rc.3",
37
- "@akinon/pz-pay-on-delivery": "1.79.0-rc.3",
38
- "@akinon/pz-saved-card": "1.79.0-rc.3",
39
- "@akinon/pz-tabby-extension": "1.79.0-rc.3",
25
+ "@akinon/next": "1.79.0-rc.4",
26
+ "@akinon/pz-akifast": "1.79.0-rc.4",
27
+ "@akinon/pz-b2b": "1.79.0-rc.4",
28
+ "@akinon/pz-basket-gift-pack": "1.79.0-rc.4",
29
+ "@akinon/pz-bkm": "1.79.0-rc.4",
30
+ "@akinon/pz-checkout-gift-pack": "1.79.0-rc.4",
31
+ "@akinon/pz-click-collect": "1.79.0-rc.4",
32
+ "@akinon/pz-credit-payment": "1.79.0-rc.4",
33
+ "@akinon/pz-gpay": "1.79.0-rc.4",
34
+ "@akinon/pz-masterpass": "1.79.0-rc.4",
35
+ "@akinon/pz-one-click-checkout": "1.79.0-rc.4",
36
+ "@akinon/pz-otp": "1.79.0-rc.4",
37
+ "@akinon/pz-pay-on-delivery": "1.79.0-rc.4",
38
+ "@akinon/pz-saved-card": "1.79.0-rc.4",
39
+ "@akinon/pz-tabby-extension": "1.79.0-rc.4",
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.79.0-rc.3",
64
+ "@akinon/eslint-plugin-projectzero": "1.79.0-rc.4",
65
65
  "@semantic-release/changelog": "6.0.2",
66
66
  "@semantic-release/exec": "6.0.3",
67
67
  "@semantic-release/git": "10.0.1",
@@ -91,12 +91,18 @@ export const CategoryHeader = (props: Props) => {
91
91
  value: String(value)
92
92
  });
93
93
  }}
94
- className={clsx(
95
- 'cursor-pointer',
96
- Number(layoutSize) === value ? 'fill-black' : 'fill-gray-500'
97
- )}
94
+ className="cursor-pointer"
98
95
  >
99
- <Icon key={value} name={icon} size={16} />
96
+ <Icon
97
+ key={value}
98
+ name={icon}
99
+ size={16}
100
+ className={
101
+ Number(layoutSize) === value
102
+ ? 'text-black'
103
+ : 'text-gray-500'
104
+ }
105
+ />
100
106
  </a>
101
107
  ))}
102
108
  </div>
@@ -22,12 +22,24 @@ export default function Search() {
22
22
  if (isSearchOpen) {
23
23
  inputRef.current?.focus();
24
24
  document.body.style.overflow = 'hidden';
25
+
26
+ const handleEscKey = (e: KeyboardEvent) => {
27
+ if (e.key === 'Escape') {
28
+ dispatch(closeSearch());
29
+ }
30
+ };
31
+
32
+ document.addEventListener('keydown', handleEscKey);
33
+ return () => {
34
+ document.removeEventListener('keydown', handleEscKey);
35
+ document.body.style.overflow = 'auto';
36
+ };
25
37
  }
26
38
 
27
39
  return () => {
28
40
  document.body.style.overflow = 'auto';
29
41
  };
30
- }, [isSearchOpen]);
42
+ }, [isSearchOpen, dispatch]);
31
43
 
32
44
  return (
33
45
  <>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.79.0-rc.3",
3
+ "version": "1.79.0-rc.4",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {