@akinon/projectzero 1.61.0 → 1.63.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 +53 -0
- package/app-template/package.json +17 -16
- package/app-template/public/locales/en/account.json +4 -4
- package/app-template/public/locales/tr/account.json +1 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/coupons/page.tsx +4 -4
- package/app-template/src/components/price.tsx +6 -1
- package/app-template/src/plugins.js +1 -0
- package/dist/commands/plugins.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.63.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0d3a913: ZERO-2725: Update decimal scale in Price component
|
|
8
|
+
- 9b6bf91: ZERO-2660: Change campaings to campaigns
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [a4c8d6a]
|
|
13
|
+
- Updated dependencies [fda5b92]
|
|
14
|
+
- Updated dependencies [0d3a913]
|
|
15
|
+
- Updated dependencies [c45b62c]
|
|
16
|
+
- Updated dependencies [d409996]
|
|
17
|
+
- Updated dependencies [dcc8a15]
|
|
18
|
+
- @akinon/next@1.63.0
|
|
19
|
+
- @akinon/pz-b2b@1.63.0
|
|
20
|
+
- @akinon/pz-akifast@1.63.0
|
|
21
|
+
- @akinon/pz-basket-gift-pack@1.63.0
|
|
22
|
+
- @akinon/pz-bkm@1.63.0
|
|
23
|
+
- @akinon/pz-checkout-gift-pack@1.63.0
|
|
24
|
+
- @akinon/pz-click-collect@1.63.0
|
|
25
|
+
- @akinon/pz-credit-payment@1.63.0
|
|
26
|
+
- @akinon/pz-gpay@1.63.0
|
|
27
|
+
- @akinon/pz-masterpass@1.63.0
|
|
28
|
+
- @akinon/pz-one-click-checkout@1.63.0
|
|
29
|
+
- @akinon/pz-otp@1.63.0
|
|
30
|
+
- @akinon/pz-pay-on-delivery@1.63.0
|
|
31
|
+
- @akinon/pz-saved-card@1.63.0
|
|
32
|
+
- @akinon/pz-tabby-extension@1.63.0
|
|
33
|
+
|
|
34
|
+
## 1.62.0
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [c416d18]
|
|
39
|
+
- Updated dependencies [033b084]
|
|
40
|
+
- Updated dependencies [fcea495]
|
|
41
|
+
- @akinon/next@1.62.0
|
|
42
|
+
- @akinon/pz-akifast@1.62.0
|
|
43
|
+
- @akinon/pz-b2b@1.62.0
|
|
44
|
+
- @akinon/pz-basket-gift-pack@1.62.0
|
|
45
|
+
- @akinon/pz-bkm@1.62.0
|
|
46
|
+
- @akinon/pz-checkout-gift-pack@1.62.0
|
|
47
|
+
- @akinon/pz-click-collect@1.62.0
|
|
48
|
+
- @akinon/pz-credit-payment@1.62.0
|
|
49
|
+
- @akinon/pz-gpay@1.62.0
|
|
50
|
+
- @akinon/pz-masterpass@1.62.0
|
|
51
|
+
- @akinon/pz-one-click-checkout@1.62.0
|
|
52
|
+
- @akinon/pz-otp@1.62.0
|
|
53
|
+
- @akinon/pz-pay-on-delivery@1.62.0
|
|
54
|
+
- @akinon/pz-tabby-extension@1.62.0
|
|
55
|
+
|
|
3
56
|
## 1.61.0
|
|
4
57
|
|
|
5
58
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,20 +22,21 @@
|
|
|
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-
|
|
25
|
+
"@akinon/next": "1.63.0",
|
|
26
|
+
"@akinon/pz-akifast": "1.63.0",
|
|
27
|
+
"@akinon/pz-b2b": "1.63.0",
|
|
28
|
+
"@akinon/pz-basket-gift-pack": "1.63.0",
|
|
29
|
+
"@akinon/pz-bkm": "1.63.0",
|
|
30
|
+
"@akinon/pz-checkout-gift-pack": "1.63.0",
|
|
31
|
+
"@akinon/pz-click-collect": "1.63.0",
|
|
32
|
+
"@akinon/pz-credit-payment": "1.63.0",
|
|
33
|
+
"@akinon/pz-gpay": "1.63.0",
|
|
34
|
+
"@akinon/pz-masterpass": "1.63.0",
|
|
35
|
+
"@akinon/pz-one-click-checkout": "1.63.0",
|
|
36
|
+
"@akinon/pz-otp": "1.63.0",
|
|
37
|
+
"@akinon/pz-pay-on-delivery": "1.63.0",
|
|
38
|
+
"@akinon/pz-saved-card": "1.63.0",
|
|
39
|
+
"@akinon/pz-tabby-extension": "1.63.0",
|
|
39
40
|
"@hookform/resolvers": "2.9.0",
|
|
40
41
|
"@next/third-parties": "14.1.0",
|
|
41
42
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"yup": "0.32.11"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
|
-
"@akinon/eslint-plugin-projectzero": "1.
|
|
64
|
+
"@akinon/eslint-plugin-projectzero": "1.63.0",
|
|
64
65
|
"@semantic-release/changelog": "6.0.2",
|
|
65
66
|
"@semantic-release/exec": "6.0.3",
|
|
66
67
|
"@semantic-release/git": "10.0.1",
|
|
@@ -286,11 +286,11 @@
|
|
|
286
286
|
"empty_coupon": "You don't have any coupons"
|
|
287
287
|
},
|
|
288
288
|
"title": {
|
|
289
|
-
"
|
|
289
|
+
"campaigns": {
|
|
290
290
|
"active": "Active Campaigns",
|
|
291
|
-
"to_be_active": "
|
|
292
|
-
"expired": "Expired
|
|
293
|
-
"used": "Used
|
|
291
|
+
"to_be_active": "Campaigns to be Active",
|
|
292
|
+
"expired": "Expired Campaigns",
|
|
293
|
+
"used": "Used Campaigns"
|
|
294
294
|
},
|
|
295
295
|
"coupons": {
|
|
296
296
|
"active": "Active Coupons",
|
|
@@ -51,7 +51,7 @@ export default function Page() {
|
|
|
51
51
|
{basketOffersLoading && <LoaderSpinner className="mb-8" />}
|
|
52
52
|
{basketOffersSuccess && (
|
|
53
53
|
<CouponItem
|
|
54
|
-
mainTitle={t('account.my_vouchers.title.
|
|
54
|
+
mainTitle={t('account.my_vouchers.title.campaigns.active')}
|
|
55
55
|
subTitles={[
|
|
56
56
|
t('account.my_vouchers.card.campaign_name'),
|
|
57
57
|
t('account.my_vouchers.card.starting_date'),
|
|
@@ -68,7 +68,7 @@ export default function Page() {
|
|
|
68
68
|
{futureBasketOffersLoading && <LoaderSpinner className="mb-8" />}
|
|
69
69
|
{futureBasketOffersSuccess && (
|
|
70
70
|
<CouponItem
|
|
71
|
-
mainTitle={t('account.my_vouchers.title.
|
|
71
|
+
mainTitle={t('account.my_vouchers.title.campaigns.to_be_active')}
|
|
72
72
|
subTitles={[
|
|
73
73
|
t('account.my_vouchers.card.campaign_name'),
|
|
74
74
|
t('account.my_vouchers.card.starting_date'),
|
|
@@ -85,7 +85,7 @@ export default function Page() {
|
|
|
85
85
|
{expiredBasketOffersLoading && <LoaderSpinner className="mb-8" />}
|
|
86
86
|
{expiredBasketOffersSuccess && (
|
|
87
87
|
<CouponItem
|
|
88
|
-
mainTitle={t('account.my_vouchers.title.
|
|
88
|
+
mainTitle={t('account.my_vouchers.title.campaigns.expired')}
|
|
89
89
|
subTitles={[
|
|
90
90
|
t('account.my_vouchers.card.campaign_name'),
|
|
91
91
|
t('account.my_vouchers.card.starting_date'),
|
|
@@ -102,7 +102,7 @@ export default function Page() {
|
|
|
102
102
|
{discountItemsLoading && <LoaderSpinner className="mb-8" />}
|
|
103
103
|
{discountItemsSuccess && (
|
|
104
104
|
<CouponItem
|
|
105
|
-
mainTitle={t('account.my_vouchers.title.
|
|
105
|
+
mainTitle={t('account.my_vouchers.title.campaigns.used')}
|
|
106
106
|
subTitles={[
|
|
107
107
|
t('account.my_vouchers.card.campaign_name'),
|
|
108
108
|
t('account.my_vouchers.card.starting_date'),
|
|
@@ -3,6 +3,7 @@ import NumberFormat, { NumberFormatProps } from 'react-number-format';
|
|
|
3
3
|
import { getCurrency } from '@akinon/next/utils';
|
|
4
4
|
import { PriceProps } from '@theme/types';
|
|
5
5
|
import { useLocalization } from '@akinon/next/hooks';
|
|
6
|
+
import Settings from '@theme/settings';
|
|
6
7
|
|
|
7
8
|
export const Price = (props: NumberFormatProps & PriceProps) => {
|
|
8
9
|
const {
|
|
@@ -37,6 +38,10 @@ export const Price = (props: NumberFormatProps & PriceProps) => {
|
|
|
37
38
|
[currencyCode_, useCurrencySymbol, useCurrencyAfterPrice, useCurrencySpace]
|
|
38
39
|
);
|
|
39
40
|
|
|
41
|
+
const currentCurrencyDecimalScale = Settings.localization.currencies.find(
|
|
42
|
+
(currency) => currency.code === currencyCode_
|
|
43
|
+
).decimalScale;
|
|
44
|
+
|
|
40
45
|
return (
|
|
41
46
|
<NumberFormat
|
|
42
47
|
value={useNegative ? `-${useNegativeSpace}${_value}` : _value}
|
|
@@ -45,7 +50,7 @@ export const Price = (props: NumberFormatProps & PriceProps) => {
|
|
|
45
50
|
}}
|
|
46
51
|
displayType={displayType}
|
|
47
52
|
thousandSeparator={thousandSeparator}
|
|
48
|
-
decimalScale={decimalScale}
|
|
53
|
+
decimalScale={currentCurrencyDecimalScale ?? decimalScale}
|
|
49
54
|
decimalSeparator={decimalSeparator}
|
|
50
55
|
fixedDecimalScale={fixedDecimalScale}
|
|
51
56
|
{...rest}
|
package/dist/commands/plugins.js
CHANGED
|
@@ -123,6 +123,10 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
123
123
|
{
|
|
124
124
|
name: 'Multi Basket',
|
|
125
125
|
value: 'pz-multi-basket'
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'Tabby Payment Extension',
|
|
129
|
+
value: 'pz-tabby-extension'
|
|
126
130
|
}
|
|
127
131
|
];
|
|
128
132
|
const prompt = new Prompt({
|