@sitecore-jss/sitecore-jss-react 19.0.2 → 19.0.3
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.
|
@@ -51,8 +51,10 @@ const Link = (_a) => {
|
|
|
51
51
|
if (!link) {
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
|
+
const anchor = link.anchor ? `#${link.anchor}` : '';
|
|
55
|
+
const querystring = link.querystring ? `?${link.querystring}` : '';
|
|
54
56
|
const anchorAttrs = {
|
|
55
|
-
href: link.href
|
|
57
|
+
href: `${link.href}${querystring}${anchor}`,
|
|
56
58
|
className: link.class,
|
|
57
59
|
title: link.title,
|
|
58
60
|
target: link.target,
|
|
@@ -45,8 +45,10 @@ export const Link = (_a) => {
|
|
|
45
45
|
if (!link) {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
+
const anchor = link.anchor ? `#${link.anchor}` : '';
|
|
49
|
+
const querystring = link.querystring ? `?${link.querystring}` : '';
|
|
48
50
|
const anchorAttrs = {
|
|
49
|
-
href: link.href
|
|
51
|
+
href: `${link.href}${querystring}${anchor}`,
|
|
50
52
|
className: link.class,
|
|
51
53
|
title: link.title,
|
|
52
54
|
target: link.target,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-react",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.3",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
|
|
9
9
|
"clean": "del-cli dist types",
|
|
10
10
|
"lint": "eslint ./src/**/*.tsx ./src/**/*.ts",
|
|
11
|
-
"test": "mocha --require ts-node/register/transpile-only --require ./src/tests/shim.ts ./src/tests/jsdom-setup.ts ./src/tests/enzyme-setup.ts \"./src/**/*.test.ts\" \"./src/**/*.test.tsx\"",
|
|
11
|
+
"test": "mocha --require ts-node/register/transpile-only --require ./src/tests/shim.ts ./src/tests/jsdom-setup.ts ./src/tests/enzyme-setup.ts \"./src/**/*.test.ts\" \"./src/**/*.test.tsx\" --exit",
|
|
12
12
|
"prepublishOnly": "npm run build",
|
|
13
13
|
"coverage": "nyc npm test"
|
|
14
14
|
},
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"react-dom": "^17.0.2"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@sitecore-jss/sitecore-jss": "^19.0.
|
|
61
|
+
"@sitecore-jss/sitecore-jss": "^19.0.3",
|
|
62
62
|
"deep-equal": "^2.0.5",
|
|
63
63
|
"prop-types": "^15.7.2",
|
|
64
64
|
"style-attr": "^1.3.0"
|
|
65
65
|
},
|
|
66
66
|
"description": "",
|
|
67
67
|
"types": "types/index.d.ts",
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "d5bf1344350048673cca03425010e47a67052f9c"
|
|
69
69
|
}
|