@akinon/projectzero 1.81.0 → 1.82.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.82.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7a1e1f7: ZERO-3138: Close the search input with the esc key
8
+ - c82875b: ZERO-3140: Fix style layout size
9
+ - 6c1dba7: ZERO-3174: update hash structure
10
+
3
11
  ## 1.81.0
4
12
 
5
13
  ## 1.80.0
@@ -1,5 +1,41 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.82.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7a1e1f7: ZERO-3138: Close the search input with the esc key
8
+ - b02d5ea: ZERO-3135: Add cancellation request images display in order cancellation item
9
+ - c82875b: ZERO-3140: Fix style layout size
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [2e0b7ff]
14
+ - Updated dependencies [778aabf]
15
+ - Updated dependencies [c0fef07]
16
+ - Updated dependencies [2d2ab44]
17
+ - Updated dependencies [9db58ad]
18
+ - Updated dependencies [0200d56]
19
+ - Updated dependencies [7d1b5af]
20
+ - Updated dependencies [6c1dba7]
21
+ - Updated dependencies [aa05ed7]
22
+ - @akinon/next@1.82.0
23
+ - @akinon/pz-tabby-extension@1.82.0
24
+ - @akinon/pz-tamara-extension@1.82.0
25
+ - @akinon/pz-akifast@1.82.0
26
+ - @akinon/pz-b2b@1.82.0
27
+ - @akinon/pz-basket-gift-pack@1.82.0
28
+ - @akinon/pz-bkm@1.82.0
29
+ - @akinon/pz-checkout-gift-pack@1.82.0
30
+ - @akinon/pz-click-collect@1.82.0
31
+ - @akinon/pz-credit-payment@1.82.0
32
+ - @akinon/pz-gpay@1.82.0
33
+ - @akinon/pz-masterpass@1.82.0
34
+ - @akinon/pz-one-click-checkout@1.82.0
35
+ - @akinon/pz-otp@1.82.0
36
+ - @akinon/pz-pay-on-delivery@1.82.0
37
+ - @akinon/pz-saved-card@1.82.0
38
+
3
39
  ## 1.81.0
4
40
 
5
41
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.81.0",
3
+ "version": "1.82.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,22 +22,22 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.81.0",
26
- "@akinon/pz-akifast": "1.81.0",
27
- "@akinon/pz-b2b": "1.81.0",
28
- "@akinon/pz-basket-gift-pack": "1.81.0",
29
- "@akinon/pz-bkm": "1.81.0",
30
- "@akinon/pz-checkout-gift-pack": "1.81.0",
31
- "@akinon/pz-click-collect": "1.81.0",
32
- "@akinon/pz-credit-payment": "1.81.0",
33
- "@akinon/pz-gpay": "1.81.0",
34
- "@akinon/pz-masterpass": "1.81.0",
35
- "@akinon/pz-one-click-checkout": "1.81.0",
36
- "@akinon/pz-otp": "1.81.0",
37
- "@akinon/pz-pay-on-delivery": "1.81.0",
38
- "@akinon/pz-saved-card": "1.81.0",
39
- "@akinon/pz-tabby-extension": "1.81.0",
40
- "@akinon/pz-tamara-extension": "1.81.0",
25
+ "@akinon/next": "1.82.0",
26
+ "@akinon/pz-akifast": "1.82.0",
27
+ "@akinon/pz-b2b": "1.82.0",
28
+ "@akinon/pz-basket-gift-pack": "1.82.0",
29
+ "@akinon/pz-bkm": "1.82.0",
30
+ "@akinon/pz-checkout-gift-pack": "1.82.0",
31
+ "@akinon/pz-click-collect": "1.82.0",
32
+ "@akinon/pz-credit-payment": "1.82.0",
33
+ "@akinon/pz-gpay": "1.82.0",
34
+ "@akinon/pz-masterpass": "1.82.0",
35
+ "@akinon/pz-one-click-checkout": "1.82.0",
36
+ "@akinon/pz-otp": "1.82.0",
37
+ "@akinon/pz-pay-on-delivery": "1.82.0",
38
+ "@akinon/pz-saved-card": "1.82.0",
39
+ "@akinon/pz-tabby-extension": "1.82.0",
40
+ "@akinon/pz-tamara-extension": "1.82.0",
41
41
  "@hookform/resolvers": "2.9.0",
42
42
  "@next/third-parties": "14.1.0",
43
43
  "@react-google-maps/api": "2.17.1",
@@ -62,7 +62,7 @@
62
62
  "yup": "0.32.11"
63
63
  },
64
64
  "devDependencies": {
65
- "@akinon/eslint-plugin-projectzero": "1.81.0",
65
+ "@akinon/eslint-plugin-projectzero": "1.82.0",
66
66
  "@semantic-release/changelog": "6.0.2",
67
67
  "@semantic-release/exec": "6.0.3",
68
68
  "@semantic-release/git": "10.0.1",
@@ -94,6 +94,25 @@ export const OrderCancellationItem = ({
94
94
  {selectOption}
95
95
  </div>
96
96
  <div>{fileInput}</div>
97
+ {item.active_cancellation_request?.cancellation_request_image_set && (
98
+ <div className="flex flex-wrap gap-2">
99
+ {item.active_cancellation_request?.cancellation_request_image_set?.map(
100
+ (item) => {
101
+ return (
102
+ <div className="relative w-16 h-16" key={item.id}>
103
+ <Image
104
+ src={item.image}
105
+ alt={item.description}
106
+ aspectRatio={1}
107
+ sizes="64px"
108
+ fill
109
+ />
110
+ </div>
111
+ );
112
+ }
113
+ )}
114
+ </div>
115
+ )}
97
116
  </div>
98
117
  </div>
99
118
  );
@@ -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
  <>
@@ -113,6 +113,10 @@ export default async () => {
113
113
  {
114
114
  name: 'Tabby Payment Extension',
115
115
  value: 'pz-tabby-extension'
116
+ },
117
+ {
118
+ name: 'Tamara Payment Extension',
119
+ value: 'pz-tamara-extension'
116
120
  }
117
121
  ];
118
122
 
@@ -127,6 +127,10 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
127
127
  {
128
128
  name: 'Tabby Payment Extension',
129
129
  value: 'pz-tabby-extension'
130
+ },
131
+ {
132
+ name: 'Tamara Payment Extension',
133
+ value: 'pz-tamara-extension'
130
134
  }
131
135
  ];
132
136
  const prompt = new Prompt({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.81.0",
3
+ "version": "1.82.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {