@akinon/projectzero 1.53.0 → 1.54.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 +7 -0
- package/README.md +3 -2
- package/app-template/CHANGELOG.md +29 -0
- package/app-template/docs/basic-setup.md +1 -1
- package/app-template/docs/plugins.md +7 -7
- package/app-template/package.json +16 -16
- package/app-template/src/views/account/favorite-item.tsx +1 -1
- package/app-template/src/views/checkout/steps/payment/options/credit-card/index.tsx +33 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.54.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 03c4c3e: ZERO-2731: Update Project Zero CLI command
|
|
8
|
+
- 06650ca: ZERO-2620: Remove unnecessary pointer-events-none class
|
|
9
|
+
- d2f0f15: ZERO-2723: Update sentry version and dependencies
|
|
10
|
+
- e9a46ac: ZERO-2738: add CVC input to registered cards in Masterpass
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [69ca080]
|
|
15
|
+
- Updated dependencies [46b7aad]
|
|
16
|
+
- Updated dependencies [c47be30]
|
|
17
|
+
- Updated dependencies [e9a46ac]
|
|
18
|
+
- @akinon/pz-checkout-gift-pack@1.54.0
|
|
19
|
+
- @akinon/next@1.54.0
|
|
20
|
+
- @akinon/pz-masterpass@1.54.0
|
|
21
|
+
- @akinon/pz-akifast@1.54.0
|
|
22
|
+
- @akinon/pz-b2b@1.54.0
|
|
23
|
+
- @akinon/pz-basket-gift-pack@1.54.0
|
|
24
|
+
- @akinon/pz-bkm@1.54.0
|
|
25
|
+
- @akinon/pz-click-collect@1.54.0
|
|
26
|
+
- @akinon/pz-credit-payment@1.54.0
|
|
27
|
+
- @akinon/pz-gpay@1.54.0
|
|
28
|
+
- @akinon/pz-one-click-checkout@1.54.0
|
|
29
|
+
- @akinon/pz-otp@1.54.0
|
|
30
|
+
- @akinon/pz-pay-on-delivery@1.54.0
|
|
31
|
+
|
|
3
32
|
## 1.53.0
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -24,7 +24,7 @@ The setup process for a Headless Akinon Commerce Cloud Storefront will be guided
|
|
|
24
24
|
2. Next, the storefront needs to be installed by using the `projectzero` CLI.
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npx @akinon/projectzero --create
|
|
27
|
+
npx @akinon/projectzero@latest --create
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
3. Provide the following information:
|
|
@@ -7,9 +7,9 @@ custom_edit_url: null
|
|
|
7
7
|
|
|
8
8
|
To access and manage plugins for your Project Zero CLI, run the following command:
|
|
9
9
|
|
|
10
|
-
```
|
|
11
|
-
npx projectzero --plugins
|
|
12
|
-
```
|
|
10
|
+
```bash
|
|
11
|
+
npx @akinon/projectzero@latest --plugins
|
|
12
|
+
```
|
|
13
13
|
|
|
14
14
|
The plugins selected from this list will be added to the project and ready for use. The plugins can be removed from the project by unchecking it from the same list.
|
|
15
15
|
|
|
@@ -27,9 +27,9 @@ The plugins selected from this list will be added to the project and ready for u
|
|
|
27
27
|
|
|
28
28
|
1. To install plugins, run the following command in the console:
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
```bash
|
|
31
|
+
npx @akinon/projectzero@latest --plugins
|
|
32
|
+
```
|
|
33
33
|
|
|
34
34
|
2. Select the plugins desire to install from the list provided.
|
|
35
35
|
|
|
@@ -73,4 +73,4 @@ Used to enable any payment option with a redirection type on the payment page.
|
|
|
73
73
|
|
|
74
74
|
This plugin enables the "Click & Collect" in-store pickup option.
|
|
75
75
|
|
|
76
|
-
[Click here for details](https://bitbucket.org/akinonteam/pz-click-collect/src/main/)
|
|
76
|
+
[Click here for details](https://bitbucket.org/akinonteam/pz-click-collect/src/main/)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,23 +22,23 @@
|
|
|
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.
|
|
25
|
+
"@akinon/next": "1.54.0",
|
|
26
|
+
"@akinon/pz-akifast": "1.54.0",
|
|
27
|
+
"@akinon/pz-b2b": "1.54.0",
|
|
28
|
+
"@akinon/pz-basket-gift-pack": "1.54.0",
|
|
29
|
+
"@akinon/pz-bkm": "1.54.0",
|
|
30
|
+
"@akinon/pz-checkout-gift-pack": "1.54.0",
|
|
31
|
+
"@akinon/pz-click-collect": "1.54.0",
|
|
32
|
+
"@akinon/pz-credit-payment": "1.54.0",
|
|
33
|
+
"@akinon/pz-gpay": "1.54.0",
|
|
34
|
+
"@akinon/pz-masterpass": "1.54.0",
|
|
35
|
+
"@akinon/pz-one-click-checkout": "1.54.0",
|
|
36
|
+
"@akinon/pz-otp": "1.54.0",
|
|
37
|
+
"@akinon/pz-pay-on-delivery": "1.54.0",
|
|
38
38
|
"@hookform/resolvers": "2.9.0",
|
|
39
39
|
"@next/third-parties": "14.1.0",
|
|
40
40
|
"@react-google-maps/api": "2.17.1",
|
|
41
|
-
"@sentry/nextjs": "7.
|
|
41
|
+
"@sentry/nextjs": "7.116.0",
|
|
42
42
|
"dayjs": "1.11.5",
|
|
43
43
|
"eslint-config-next": "14.2.2",
|
|
44
44
|
"lossless-json": "2.0.5",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"yup": "0.32.11"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@akinon/eslint-plugin-projectzero": "1.
|
|
62
|
+
"@akinon/eslint-plugin-projectzero": "1.54.0",
|
|
63
63
|
"@semantic-release/changelog": "6.0.2",
|
|
64
64
|
"@semantic-release/exec": "6.0.3",
|
|
65
65
|
"@semantic-release/git": "10.0.1",
|
|
@@ -93,7 +93,7 @@ export const FavoriteItem = (props: Props) => {
|
|
|
93
93
|
className={clsx(
|
|
94
94
|
'absolute top-4 right-4 cursor-pointer',
|
|
95
95
|
isRemoveFavoriteLoading
|
|
96
|
-
? '
|
|
96
|
+
? 'hover:cursor-wait'
|
|
97
97
|
: 'hover:cursor-pointer'
|
|
98
98
|
)}
|
|
99
99
|
data-testid="favorites-remove"
|
|
@@ -23,13 +23,29 @@ import { PaymentOption } from '@akinon/next/types';
|
|
|
23
23
|
const creditCardFormSchema = (
|
|
24
24
|
t,
|
|
25
25
|
payment_option: PaymentOption,
|
|
26
|
-
isMasterpassDirectPurchase?: boolean
|
|
26
|
+
isMasterpassDirectPurchase?: boolean,
|
|
27
|
+
isMasterpassCvcRequired?: boolean
|
|
27
28
|
) => {
|
|
28
29
|
if (
|
|
29
30
|
payment_option?.payment_type === 'masterpass' &&
|
|
30
31
|
isMasterpassDirectPurchase === false
|
|
31
32
|
) {
|
|
32
33
|
return yup.object().shape({
|
|
34
|
+
card_cvv: yup
|
|
35
|
+
.string()
|
|
36
|
+
.transform((value: string) => value.replace(/_/g, '').replace(/ /g, ''))
|
|
37
|
+
.when('*', (_, schema) => {
|
|
38
|
+
if (isMasterpassCvcRequired) {
|
|
39
|
+
return schema
|
|
40
|
+
.length(
|
|
41
|
+
3,
|
|
42
|
+
t('checkout.payment.credit_card.form.error.cvv_length')
|
|
43
|
+
)
|
|
44
|
+
.required(t('checkout.payment.credit_card.form.error.required'));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return schema;
|
|
48
|
+
}),
|
|
33
49
|
agreement: yup
|
|
34
50
|
.boolean()
|
|
35
51
|
.oneOf([true], t('checkout.payment.credit_card.form.error.required'))
|
|
@@ -87,10 +103,16 @@ const CheckoutCreditCard = () => {
|
|
|
87
103
|
control,
|
|
88
104
|
formState: { errors },
|
|
89
105
|
setError,
|
|
90
|
-
getValues
|
|
106
|
+
getValues,
|
|
107
|
+
clearErrors
|
|
91
108
|
} = useForm<CreditCardForm>({
|
|
92
109
|
resolver: yupResolver(
|
|
93
|
-
creditCardFormSchema(
|
|
110
|
+
creditCardFormSchema(
|
|
111
|
+
t,
|
|
112
|
+
payment_option,
|
|
113
|
+
masterpass?.isDirectPurchase,
|
|
114
|
+
masterpass?.cvcRequired
|
|
115
|
+
)
|
|
94
116
|
)
|
|
95
117
|
});
|
|
96
118
|
const [months, setMonths] = useState([]);
|
|
@@ -317,7 +339,14 @@ const CheckoutCreditCard = () => {
|
|
|
317
339
|
<PluginModule
|
|
318
340
|
component={Component.MasterpassCardList}
|
|
319
341
|
props={{
|
|
320
|
-
className: 'p-10'
|
|
342
|
+
className: 'p-10',
|
|
343
|
+
form: {
|
|
344
|
+
control,
|
|
345
|
+
register,
|
|
346
|
+
errors,
|
|
347
|
+
setFormValue,
|
|
348
|
+
clearErrors
|
|
349
|
+
}
|
|
321
350
|
}}
|
|
322
351
|
/>
|
|
323
352
|
|