@sitecore-jss/sitecore-jss-nextjs 21.7.0-canary.50 → 21.7.0-canary.52
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.
|
@@ -56,10 +56,10 @@ const RichText = (props) => {
|
|
|
56
56
|
}
|
|
57
57
|
}, [hasText]);
|
|
58
58
|
const routeHandler = (ev) => {
|
|
59
|
-
if (!ev.
|
|
59
|
+
if (!ev.currentTarget)
|
|
60
60
|
return;
|
|
61
61
|
ev.preventDefault();
|
|
62
|
-
const pathname = ev.
|
|
62
|
+
const pathname = ev.currentTarget.href;
|
|
63
63
|
router.push(pathname, pathname, { locale: false });
|
|
64
64
|
};
|
|
65
65
|
const initializeLinks = () => {
|
|
@@ -27,10 +27,10 @@ export const RichText = (props) => {
|
|
|
27
27
|
}
|
|
28
28
|
}, [hasText]);
|
|
29
29
|
const routeHandler = (ev) => {
|
|
30
|
-
if (!ev.
|
|
30
|
+
if (!ev.currentTarget)
|
|
31
31
|
return;
|
|
32
32
|
ev.preventDefault();
|
|
33
|
-
const pathname = ev.
|
|
33
|
+
const pathname = ev.currentTarget.href;
|
|
34
34
|
router.push(pathname, pathname, { locale: false });
|
|
35
35
|
};
|
|
36
36
|
const initializeLinks = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-nextjs",
|
|
3
|
-
"version": "21.7.0-canary.
|
|
3
|
+
"version": "21.7.0-canary.52",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"react-dom": "^18.2.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@sitecore-jss/sitecore-jss": "^21.7.0-canary.
|
|
76
|
-
"@sitecore-jss/sitecore-jss-dev-tools": "^21.7.0-canary.
|
|
77
|
-
"@sitecore-jss/sitecore-jss-react": "^21.7.0-canary.
|
|
75
|
+
"@sitecore-jss/sitecore-jss": "^21.7.0-canary.52",
|
|
76
|
+
"@sitecore-jss/sitecore-jss-dev-tools": "^21.7.0-canary.52",
|
|
77
|
+
"@sitecore-jss/sitecore-jss-react": "^21.7.0-canary.52",
|
|
78
78
|
"@vercel/kv": "^0.2.1",
|
|
79
79
|
"node-html-parser": "^6.1.4",
|
|
80
80
|
"prop-types": "^15.8.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"description": "",
|
|
85
85
|
"types": "types/index.d.ts",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "226f2f2ba1ba38a5348409a9be02f2a7e8579fc4",
|
|
87
87
|
"files": [
|
|
88
88
|
"dist",
|
|
89
89
|
"types",
|