@akinon/next 1.59.0-rc.3 → 1.59.0-rc.5
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 +59 -0
- package/components/input.tsx +10 -11
- package/middlewares/currency.ts +2 -1
- package/middlewares/oauth-login.ts +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @akinon/next
|
|
2
2
|
|
|
3
|
+
## 1.59.0-rc.5
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c416d18: ZERO-2915: Add delivery option null check for setAddress
|
|
8
|
+
- 572d2e84: ZERO-2667: Add iframe support for redirection payment methods
|
|
9
|
+
- 5dfeea0: ZERO-2801: Revert ZERO-2801
|
|
10
|
+
- 907813c: ZERO-2934: add payment-gateway/<gateway> redirect in middleware
|
|
11
|
+
- a4c8d6a9: ZERO-2663: Fix the image url for gif and svgs and return them without options
|
|
12
|
+
- fda5b927: ZERO-2725: fix invalid import
|
|
13
|
+
- 2d9b2b2c: ZERO-2816: Add segment to headers
|
|
14
|
+
- c53ea3e6: ZERO-2609: Reset additional form fields when selectedFormType is not company
|
|
15
|
+
- 6c25f666: ZERO-2551: Check CACHE_HOST variable
|
|
16
|
+
- c873740: ZERO-2903: add types
|
|
17
|
+
- bc2b4117: ZERO-2825: Add attribute-based shipping options to checkout page
|
|
18
|
+
- 3bf2dd94: ZERO-2551: Fix search page
|
|
19
|
+
- e9541a13: ZERO-2816: Add headers to url
|
|
20
|
+
- c53ef7b9: ZERO-2668: The Link component has been updated to improve the logic for handling href values. Previously, if the href was not a string or started with 'http', it would return the href as is. Now, if the href is not provided, it will default to '#' to prevent any potential errors. Additionally, if the href is a string and does not start with 'http', it will be formatted with the locale and pathname, based on the localeUrlStrategy and defaultLocaleValue. This ensures that the correct href is generated based on the localization settings.
|
|
21
|
+
- 2e6104d: ZERO-2888:Edit the numbering in the pagination and the visibility of the prev and next buttons
|
|
22
|
+
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
23
|
+
- 0d3a913e: ZERO-2725: Update decimal scale in Price component
|
|
24
|
+
- d899cc7: ZERO-2925: Login by checking the session id
|
|
25
|
+
- 7b05522: ZERO-2905: Fix resend and close button in otp package
|
|
26
|
+
- d6edb1d0: ZERO-2551: Fix searchparams handling for list and other routes
|
|
27
|
+
- d3474c64: ZERO-2655: Add data source shipping option
|
|
28
|
+
- 17f87524: ZERO-2816: Make the incoming currency lowercase
|
|
29
|
+
- 29ead87: ZERO-2905: Fix resend and close button in otp package
|
|
30
|
+
- c45b62c: ZERO-2818: Add upload and download support for b2b package
|
|
31
|
+
- 91265bba: ZERO-2551: Improve pretty url and caching performance
|
|
32
|
+
- bbe18b9f: ZERO-2575: Fix build error
|
|
33
|
+
- d4099960: ZERO-2781: Refactor buildClientRequestUrl function to support caching and options
|
|
34
|
+
- 4920742c: Disable getCachedTranslations
|
|
35
|
+
- 12a873e: ZERO-2846:Edit the siteKey regex in the response from GetCaptcha
|
|
36
|
+
- 7e56d6b: ZERO-2841: Update api tagTypes
|
|
37
|
+
- 94b69285: ZERO-2551: Add cache handler check in url-redirection middleware
|
|
38
|
+
- 98bb8dcd: ZERO-2706: Cache getTranlations method
|
|
39
|
+
- 50f3c60: ZERO-2936: Fix Input component styling for floating labels
|
|
40
|
+
- dcc8a150: ZERO-2694: added build step to RC branch pipeline
|
|
41
|
+
- 3be7462: ZERO-2934: fix reset basket on redirection payment complete
|
|
42
|
+
- 8f47cca: ZERO-2829: fix and add nested JSON support for useFormData in api/client route
|
|
43
|
+
- fdd0b41: ZERO-2706: Add optimized translation support
|
|
44
|
+
- f2c325c: ZERO-2838: Move file input component into @akinon/next
|
|
45
|
+
- 9e25a64b: ZERO-2835: Update category page layout with breadcrumb
|
|
46
|
+
- beb499e6: ZERO-2551: Add new tsconfig paths
|
|
47
|
+
- f2c92d5c: ZERO-2816: Update cookie name
|
|
48
|
+
- 7bd3d992: ZERO-2801: Refactor locale middleware to handle single locale configuration
|
|
49
|
+
- f046f8e0: ZERO-2575: update version for react-number-format
|
|
50
|
+
- 49eeebf: ZERO-2909: Add deleteCollectionItem query to wishlistApi
|
|
51
|
+
- 034b813: ZERO-2903: create saved card plugin
|
|
52
|
+
- 86d25315: ZERO-2693: resolve dependency collision warning for eslint-config-next
|
|
53
|
+
- 3f9b8d7e: ZERO-2761: Update plugins.js for akinon-next
|
|
54
|
+
|
|
55
|
+
## 1.59.0-rc.4
|
|
56
|
+
|
|
57
|
+
### Minor Changes
|
|
58
|
+
|
|
59
|
+
- d899cc7: ZERO-2925: Login by checking the session id
|
|
60
|
+
- 3be7462: ZERO-2934: fix reset basket on redirection payment complete
|
|
61
|
+
|
|
3
62
|
## 1.59.0-rc.3
|
|
4
63
|
|
|
5
64
|
## 1.59.0-rc.2
|
package/components/input.tsx
CHANGED
|
@@ -41,9 +41,8 @@ export const Input = forwardRef<
|
|
|
41
41
|
const hasFloatingLabel = label && labelStyle === 'floating';
|
|
42
42
|
const inputClass = twMerge(
|
|
43
43
|
clsx(
|
|
44
|
-
'text-xs border px-2.5 h-10 placeholder:text-gray-600',
|
|
44
|
+
'text-xs border px-2.5 h-10 placeholder:text-gray-600 peer',
|
|
45
45
|
'focus-visible:outline-none', // disable outline on focus
|
|
46
|
-
{ 'pt-3': hasFloatingLabel },
|
|
47
46
|
error
|
|
48
47
|
? 'border-error focus:border-error'
|
|
49
48
|
: 'border-gray-500 hover:border-black focus:border-black'
|
|
@@ -68,15 +67,15 @@ export const Input = forwardRef<
|
|
|
68
67
|
return (
|
|
69
68
|
<label
|
|
70
69
|
htmlFor={id}
|
|
71
|
-
className={
|
|
72
|
-
'text-xs text-gray-800',
|
|
73
|
-
{
|
|
74
|
-
'absolute left-2.5 pointer-events-none
|
|
75
|
-
hasFloatingLabel
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
className={twMerge(
|
|
71
|
+
'text-xs text-gray-800 transition-all',
|
|
72
|
+
clsx({
|
|
73
|
+
'absolute left-2.5 pointer-events-none transform flex items-center h-full !top-0 peer-placeholder-shown:-translate-y-2 peer-placeholder-shown:bg-white peer-placeholder-shown:inline-flex peer-placeholder-shown:h-auto':
|
|
74
|
+
hasFloatingLabel,
|
|
75
|
+
'mb-2': !hasFloatingLabel,
|
|
76
|
+
'-translate-y-2 bg-white inline-flex h-auto':
|
|
77
|
+
hasFloatingLabel && (focused || hasValue)
|
|
78
|
+
})
|
|
80
79
|
)}
|
|
81
80
|
>
|
|
82
81
|
{label} {required && <span className="text-secondary">*</span>}
|
package/middlewares/currency.ts
CHANGED
|
@@ -74,7 +74,8 @@ const withCurrency =
|
|
|
74
74
|
req.cookies.get('pz-currency')?.value !== activeCurrency &&
|
|
75
75
|
url.pathname.match(urlLocaleMatcherRegex) &&
|
|
76
76
|
!url.search.includes('mobile_app=true') &&
|
|
77
|
-
!url.search.includes('page=CreditCardThreeDSecurePage')
|
|
77
|
+
!url.search.includes('page=CreditCardThreeDSecurePage') &&
|
|
78
|
+
!url.search.includes('page=RedirectionPageCompletePage')
|
|
78
79
|
) {
|
|
79
80
|
logger.info('Currency changed. Resetting basket...', {
|
|
80
81
|
sessionid: req.cookies.get('osessionid')?.value ?? '',
|
|
@@ -58,7 +58,9 @@ const withOauthLogin =
|
|
|
58
58
|
return middleware(req, event);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
const currentSessionId = req.cookies.get('osessionid');
|
|
62
|
+
|
|
63
|
+
if (req.cookies.get('messages')?.value.includes('Successfully signed in') || currentSessionId) {
|
|
62
64
|
let redirectUrlWithLocale = `${url.origin}${getUrlPathWithLocale(
|
|
63
65
|
'/auth/oauth-login',
|
|
64
66
|
req.cookies.get('pz-locale')?.value
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/next",
|
|
3
3
|
"description": "Core package for Project Zero Next",
|
|
4
|
-
"version": "1.59.0-rc.
|
|
4
|
+
"version": "1.59.0-rc.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"set-cookie-parser": "2.6.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@akinon/eslint-plugin-projectzero": "1.59.0-rc.
|
|
33
|
+
"@akinon/eslint-plugin-projectzero": "1.59.0-rc.5",
|
|
34
34
|
"@types/react-redux": "7.1.30",
|
|
35
35
|
"@types/set-cookie-parser": "2.4.7",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|