@akinon/projectzero 1.108.0-rc.5 → 1.108.0-rc.7

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,9 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.108.0-rc.7
4
+
5
+ ## 1.108.0-rc.6
6
+
3
7
  ## 1.108.0-rc.5
4
8
 
5
9
  ## 1.108.0-rc.4
@@ -1,5 +1,65 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.108.0-rc.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d2c0e759]
8
+ - @akinon/next@1.108.0-rc.7
9
+ - @akinon/pz-virtual-try-on@1.108.0-rc.7
10
+ - @akinon/pz-akifast@1.108.0-rc.7
11
+ - @akinon/pz-apple-pay@1.108.0-rc.7
12
+ - @akinon/pz-b2b@1.108.0-rc.7
13
+ - @akinon/pz-basket-gift-pack@1.108.0-rc.7
14
+ - @akinon/pz-bkm@1.108.0-rc.7
15
+ - @akinon/pz-checkout-gift-pack@1.108.0-rc.7
16
+ - @akinon/pz-click-collect@1.108.0-rc.7
17
+ - @akinon/pz-credit-payment@1.108.0-rc.7
18
+ - @akinon/pz-cybersource-uc@1.108.0-rc.7
19
+ - @akinon/pz-flow-payment@1.108.0-rc.7
20
+ - @akinon/pz-gpay@1.108.0-rc.7
21
+ - @akinon/pz-hepsipay@1.108.0-rc.7
22
+ - @akinon/pz-masterpass@1.108.0-rc.7
23
+ - @akinon/pz-multi-basket@1.108.0-rc.7
24
+ - @akinon/pz-one-click-checkout@1.108.0-rc.7
25
+ - @akinon/pz-otp@1.108.0-rc.7
26
+ - @akinon/pz-pay-on-delivery@1.108.0-rc.7
27
+ - @akinon/pz-saved-card@1.108.0-rc.7
28
+ - @akinon/pz-tabby-extension@1.108.0-rc.7
29
+ - @akinon/pz-tamara-extension@1.108.0-rc.7
30
+
31
+ ## 1.108.0-rc.6
32
+
33
+ ### Minor Changes
34
+
35
+ - 4449f3a3: ZERO-3681: Add order details localization and improve order handling in AccountOrderDetail
36
+ - b87517ff: ZERO-3680: Enhance select component styling to ensure focus state is consistent
37
+
38
+ ### Patch Changes
39
+
40
+ - @akinon/next@1.108.0-rc.6
41
+ - @akinon/pz-akifast@1.108.0-rc.6
42
+ - @akinon/pz-apple-pay@1.108.0-rc.6
43
+ - @akinon/pz-b2b@1.108.0-rc.6
44
+ - @akinon/pz-basket-gift-pack@1.108.0-rc.6
45
+ - @akinon/pz-bkm@1.108.0-rc.6
46
+ - @akinon/pz-checkout-gift-pack@1.108.0-rc.6
47
+ - @akinon/pz-click-collect@1.108.0-rc.6
48
+ - @akinon/pz-credit-payment@1.108.0-rc.6
49
+ - @akinon/pz-cybersource-uc@1.108.0-rc.6
50
+ - @akinon/pz-flow-payment@1.108.0-rc.6
51
+ - @akinon/pz-gpay@1.108.0-rc.6
52
+ - @akinon/pz-hepsipay@1.108.0-rc.6
53
+ - @akinon/pz-masterpass@1.108.0-rc.6
54
+ - @akinon/pz-multi-basket@1.108.0-rc.6
55
+ - @akinon/pz-one-click-checkout@1.108.0-rc.6
56
+ - @akinon/pz-otp@1.108.0-rc.6
57
+ - @akinon/pz-pay-on-delivery@1.108.0-rc.6
58
+ - @akinon/pz-saved-card@1.108.0-rc.6
59
+ - @akinon/pz-tabby-extension@1.108.0-rc.6
60
+ - @akinon/pz-tamara-extension@1.108.0-rc.6
61
+ - @akinon/pz-virtual-try-on@1.108.0-rc.6
62
+
3
63
  ## 1.108.0-rc.5
4
64
 
5
65
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.108.0-rc.5",
3
+ "version": "1.108.0-rc.7",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,28 +24,28 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "1.108.0-rc.5",
28
- "@akinon/pz-akifast": "1.108.0-rc.5",
29
- "@akinon/pz-apple-pay": "1.108.0-rc.5",
30
- "@akinon/pz-b2b": "1.108.0-rc.5",
31
- "@akinon/pz-basket-gift-pack": "1.108.0-rc.5",
32
- "@akinon/pz-bkm": "1.108.0-rc.5",
33
- "@akinon/pz-checkout-gift-pack": "1.108.0-rc.5",
34
- "@akinon/pz-click-collect": "1.108.0-rc.5",
35
- "@akinon/pz-credit-payment": "1.108.0-rc.5",
36
- "@akinon/pz-cybersource-uc": "1.108.0-rc.5",
37
- "@akinon/pz-flow-payment": "1.108.0-rc.5",
38
- "@akinon/pz-gpay": "1.108.0-rc.5",
39
- "@akinon/pz-hepsipay": "1.108.0-rc.5",
40
- "@akinon/pz-masterpass": "1.108.0-rc.5",
41
- "@akinon/pz-multi-basket": "1.108.0-rc.5",
42
- "@akinon/pz-one-click-checkout": "1.108.0-rc.5",
43
- "@akinon/pz-otp": "1.108.0-rc.5",
44
- "@akinon/pz-pay-on-delivery": "1.108.0-rc.5",
45
- "@akinon/pz-saved-card": "1.108.0-rc.5",
46
- "@akinon/pz-tabby-extension": "1.108.0-rc.5",
47
- "@akinon/pz-tamara-extension": "1.108.0-rc.5",
48
- "@akinon/pz-virtual-try-on": "1.108.0-rc.5",
27
+ "@akinon/next": "1.108.0-rc.7",
28
+ "@akinon/pz-akifast": "1.108.0-rc.7",
29
+ "@akinon/pz-apple-pay": "1.108.0-rc.7",
30
+ "@akinon/pz-b2b": "1.108.0-rc.7",
31
+ "@akinon/pz-basket-gift-pack": "1.108.0-rc.7",
32
+ "@akinon/pz-bkm": "1.108.0-rc.7",
33
+ "@akinon/pz-checkout-gift-pack": "1.108.0-rc.7",
34
+ "@akinon/pz-click-collect": "1.108.0-rc.7",
35
+ "@akinon/pz-credit-payment": "1.108.0-rc.7",
36
+ "@akinon/pz-cybersource-uc": "1.108.0-rc.7",
37
+ "@akinon/pz-flow-payment": "1.108.0-rc.7",
38
+ "@akinon/pz-gpay": "1.108.0-rc.7",
39
+ "@akinon/pz-hepsipay": "1.108.0-rc.7",
40
+ "@akinon/pz-masterpass": "1.108.0-rc.7",
41
+ "@akinon/pz-multi-basket": "1.108.0-rc.7",
42
+ "@akinon/pz-one-click-checkout": "1.108.0-rc.7",
43
+ "@akinon/pz-otp": "1.108.0-rc.7",
44
+ "@akinon/pz-pay-on-delivery": "1.108.0-rc.7",
45
+ "@akinon/pz-saved-card": "1.108.0-rc.7",
46
+ "@akinon/pz-tabby-extension": "1.108.0-rc.7",
47
+ "@akinon/pz-tamara-extension": "1.108.0-rc.7",
48
+ "@akinon/pz-virtual-try-on": "1.108.0-rc.7",
49
49
  "@hookform/resolvers": "2.9.0",
50
50
  "@next/third-parties": "14.1.0",
51
51
  "@react-google-maps/api": "2.17.1",
@@ -68,7 +68,7 @@
68
68
  "yup": "0.32.11"
69
69
  },
70
70
  "devDependencies": {
71
- "@akinon/eslint-plugin-projectzero": "1.108.0-rc.5",
71
+ "@akinon/eslint-plugin-projectzero": "1.108.0-rc.7",
72
72
  "@semantic-release/changelog": "6.0.2",
73
73
  "@semantic-release/exec": "6.0.3",
74
74
  "@semantic-release/git": "10.0.1",
@@ -242,7 +242,9 @@
242
242
  "total": "Total",
243
243
  "items": "items",
244
244
  "packages": "Packages",
245
- "package_no": "Package no"
245
+ "package_no": "Package no",
246
+ "back_to_orders": "Back to Orders",
247
+ "no_orders_found": "No orders found"
246
248
  },
247
249
  "return": {
248
250
  "title": "Return Items",
@@ -242,7 +242,9 @@
242
242
  "total": "Toplam",
243
243
  "items": "adet",
244
244
  "packages": "paket",
245
- "package_no": "Paket no"
245
+ "package_no": "Paket no",
246
+ "back_to_orders": "Siparişlere geri dön",
247
+ "no_orders_found": "Sipariş bulunamadı"
246
248
  },
247
249
  "return": {
248
250
  "title": "İade Ürünleri",
@@ -61,7 +61,26 @@ const AccountOrderDetail = ({ params: { id } }) => {
61
61
  }, [order, isSuccess, localeValue]);
62
62
 
63
63
  if (isLoading && isFetching) {
64
- return <LoaderSpinner />;
64
+ return (
65
+ <div className="flex flex-col items-center justify-center h-96">
66
+ <LoaderSpinner />
67
+ </div>
68
+ );
69
+ }
70
+
71
+ if (!order) {
72
+ return (
73
+ <div className="flex flex-col items-center justify-center h-96">
74
+ <p className="mt-5 text-start text-lg mb-4">
75
+ {t('account.my_orders.detail.no_orders_found')}
76
+ </p>
77
+ <Link href={`/account/orders/`}>
78
+ <Button className="px-4" appearance="filled">
79
+ {t('account.my_orders.detail.back_to_orders')}
80
+ </Button>
81
+ </Link>
82
+ </div>
83
+ );
65
84
  }
66
85
 
67
86
  return (
@@ -41,12 +41,14 @@ export const Modal = (props: ModalProps) => {
41
41
  'fixed top-0 left-0 w-screen h-screen bg-primary bg-opacity-60 z-50',
42
42
  overlayClassName
43
43
  )}
44
+ onClick={(e) => e.stopPropagation()}
44
45
  />
45
46
  <section
46
47
  className={twMerge(
47
48
  'fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 bg-white',
48
49
  className
49
50
  )}
51
+ onClick={(e) => e.stopPropagation()}
50
52
  >
51
53
  {(showCloseButton || title) && (
52
54
  <div
@@ -48,7 +48,7 @@ const Select = forwardRef<HTMLSelectElement, SelectProps>((props, ref) => {
48
48
  clsx(
49
49
  'cursor-pointer truncate h-10 w-40 px-2.5 shrink-0 outline-none',
50
50
  !borderless &&
51
- 'border border-gray-200 transition-all duration-150 hover:border-primary',
51
+ 'border border-gray-200 transition-all duration-150 hover:border-primary focus:border-primary',
52
52
  'appearance-none bg-transparent'
53
53
  ),
54
54
  className
@@ -21,7 +21,7 @@ export const OrderDetailHeader = ({ title, order, children }: Props) => {
21
21
  <div>
22
22
  <span>{t('account.my_orders.detail.order_number')}</span>:{' '}
23
23
  <span data-testid="account-orders-return-order-id">
24
- {order.number}
24
+ {order?.number}
25
25
  </span>
26
26
  </div>
27
27
 
@@ -85,7 +85,7 @@ const AddressBox = ({
85
85
  };
86
86
 
87
87
  const onSubmit = (data) => {
88
- editAddress({ ...data, invalidateTag: 'Addresses' })
88
+ editAddress({ ...data, invalidateTag: 'Checkout' })
89
89
  .unwrap()
90
90
  .then((editAddressResponse) => {
91
91
  handleAddressClick(addressType, editAddressResponse);
@@ -96,7 +96,7 @@ const AddressBox = ({
96
96
  };
97
97
 
98
98
  const handleRemoveAddress = async (addressPk: number) => {
99
- await removeAddress({ id: addressPk, invalidateTag: 'Addresses' });
99
+ await removeAddress({ id: addressPk, invalidateTag: 'Checkout' });
100
100
  setRemoveAddressModalOpen(false);
101
101
  dispatch(resetCheckoutState());
102
102
 
@@ -168,7 +168,10 @@ const AddressBox = ({
168
168
  <Button
169
169
  appearance="ghost"
170
170
  className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
171
- onClick={() => setIsEditAddressModalOpen(true)}
171
+ onClick={(e) => {
172
+ e.stopPropagation();
173
+ setIsEditAddressModalOpen(true);
174
+ }}
172
175
  data-testid="checkout-address-edit"
173
176
  >
174
177
  {t('checkout.address.box.edit')}
@@ -180,21 +183,26 @@ const AddressBox = ({
180
183
  setOpen={setIsEditAddressModalOpen}
181
184
  className="w-full sm:w-[28rem] max-h-[90vh] overflow-y-auto"
182
185
  >
183
- <AddressForm
184
- data={{
185
- ...address,
186
- country: address.country?.pk,
187
- city: address.city?.pk,
188
- township: address.township?.pk,
189
- district: address.district?.pk
190
- }}
191
- onSubmit={onSubmit}
192
- />
186
+ <div onClick={(e) => e.stopPropagation()}>
187
+ <AddressForm
188
+ data={{
189
+ ...address,
190
+ country: address.country?.pk,
191
+ city: address.city?.pk,
192
+ township: address.township?.pk,
193
+ district: address.district?.pk
194
+ }}
195
+ onSubmit={onSubmit}
196
+ />
197
+ </div>
193
198
  </Modal>
194
199
  <Button
195
200
  appearance="ghost"
196
201
  className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
197
- onClick={() => setRemoveAddressModalOpen(true)}
202
+ onClick={(e) => {
203
+ e.stopPropagation();
204
+ setRemoveAddressModalOpen(true);
205
+ }}
198
206
  data-testid="checkout-address-remove"
199
207
  >
200
208
  {t('checkout.address.box.remove')}
@@ -207,14 +215,18 @@ const AddressBox = ({
207
215
  setOpen={setRemoveAddressModalOpen}
208
216
  showCloseButton={false}
209
217
  >
210
- <div className="text-center px-6 py-10">
218
+ <div
219
+ className="text-center px-6 py-10"
220
+ onClick={(e) => e.stopPropagation()}
221
+ >
211
222
  <p className="mb-4">
212
223
  {t('account.address_book.modal.delete_description')}
213
224
  </p>
214
225
  <div className="space-x-3 flex justify-center">
215
226
  <Button
216
227
  appearance="outlined"
217
- onClick={() => {
228
+ onClick={(e) => {
229
+ e.stopPropagation();
218
230
  setRemoveAddressModalOpen(false);
219
231
  }}
220
232
  data-testid="remove-address-modal-cancel"
@@ -224,7 +236,8 @@ const AddressBox = ({
224
236
  <Button
225
237
  appearance="filled"
226
238
  disabled={removeAddressLoading}
227
- onClick={() => {
239
+ onClick={(e) => {
240
+ e.stopPropagation();
228
241
  handleRemoveAddress(address.pk);
229
242
  }}
230
243
  className={
@@ -77,7 +77,7 @@ const Addresses = () => {
77
77
  }, [billing_and_shipping_same]);
78
78
 
79
79
  const onSubmit = (data) => {
80
- addAddress({ ...data, invalidateTag: 'Addresses' })
80
+ addAddress({ ...data, invalidateTag: 'Checkout' })
81
81
  .unwrap()
82
82
  .then((addAddressResponse) => {
83
83
  if (addressList.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.108.0-rc.5",
3
+ "version": "1.108.0-rc.7",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {