@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 +8 -0
- package/app-template/CHANGELOG.md +36 -0
- package/app-template/package.json +18 -18
- package/app-template/src/views/account/orders/order-cancellation-item.tsx +19 -0
- package/app-template/src/views/category/category-header.tsx +11 -5
- package/app-template/src/views/header/search/index.tsx +13 -1
- package/commands/plugins.ts +4 -0
- package/dist/commands/plugins.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
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.
|
|
26
|
-
"@akinon/pz-akifast": "1.
|
|
27
|
-
"@akinon/pz-b2b": "1.
|
|
28
|
-
"@akinon/pz-basket-gift-pack": "1.
|
|
29
|
-
"@akinon/pz-bkm": "1.
|
|
30
|
-
"@akinon/pz-checkout-gift-pack": "1.
|
|
31
|
-
"@akinon/pz-click-collect": "1.
|
|
32
|
-
"@akinon/pz-credit-payment": "1.
|
|
33
|
-
"@akinon/pz-gpay": "1.
|
|
34
|
-
"@akinon/pz-masterpass": "1.
|
|
35
|
-
"@akinon/pz-one-click-checkout": "1.
|
|
36
|
-
"@akinon/pz-otp": "1.
|
|
37
|
-
"@akinon/pz-pay-on-delivery": "1.
|
|
38
|
-
"@akinon/pz-saved-card": "1.
|
|
39
|
-
"@akinon/pz-tabby-extension": "1.
|
|
40
|
-
"@akinon/pz-tamara-extension": "1.
|
|
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.
|
|
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=
|
|
95
|
-
'cursor-pointer',
|
|
96
|
-
Number(layoutSize) === value ? 'fill-black' : 'fill-gray-500'
|
|
97
|
-
)}
|
|
94
|
+
className="cursor-pointer"
|
|
98
95
|
>
|
|
99
|
-
<Icon
|
|
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/commands/plugins.ts
CHANGED
package/dist/commands/plugins.js
CHANGED
|
@@ -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({
|