@akinon/projectzero 1.62.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.63.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
8
+
3
9
  ## 1.62.0
4
10
 
5
11
  ## 1.61.0
@@ -1,5 +1,36 @@
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
+
3
34
  ## 1.62.0
4
35
 
5
36
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.62.0",
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.62.0",
26
- "@akinon/pz-akifast": "1.62.0",
27
- "@akinon/pz-b2b": "1.62.0",
28
- "@akinon/pz-basket-gift-pack": "1.62.0",
29
- "@akinon/pz-bkm": "1.62.0",
30
- "@akinon/pz-checkout-gift-pack": "1.62.0",
31
- "@akinon/pz-click-collect": "1.62.0",
32
- "@akinon/pz-credit-payment": "1.62.0",
33
- "@akinon/pz-gpay": "1.62.0",
34
- "@akinon/pz-masterpass": "1.62.0",
35
- "@akinon/pz-one-click-checkout": "1.62.0",
36
- "@akinon/pz-otp": "1.62.0",
37
- "@akinon/pz-pay-on-delivery": "1.62.0",
38
- "@akinon/pz-tabby-extension": "1.62.0",
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.62.0",
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
- "campaings": {
289
+ "campaigns": {
290
290
  "active": "Active Campaigns",
291
- "to_be_active": "Campaings to be Active",
292
- "expired": "Expired Campaings",
293
- "used": "Used Campaings"
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",
@@ -286,7 +286,7 @@
286
286
  "empty_coupon": "Herhangi bir kuponunuz yok"
287
287
  },
288
288
  "title": {
289
- "campaings": {
289
+ "campaigns": {
290
290
  "active": "Aktif Kampanyalar",
291
291
  "to_be_active": "Aktif Olacak Kampanyalar",
292
292
  "expired": "Süresi Dolmuş Kampanyalar",
@@ -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.campaings.active')}
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.campaings.to_be_active')}
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.campaings.expired')}
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.campaings.used')}
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.62.0",
3
+ "version": "1.63.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {