@digigov/nextjs 0.4.2 → 0.4.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 +15 -1
- package/Link.js +1 -1
- package/es/Link.js +1 -1
- package/esm/Link.js +1 -1
- package/esm/index.js +1 -1
- package/libs/ui/src/locales/el.d.ts +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
# Change Log - @digigov/nextjs
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 30 Mar 2022 13:17:56 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.4.5
|
|
6
|
+
Wed, 30 Mar 2022 13:17:56 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- incorrect regex pattern was causing build failure
|
|
11
|
+
|
|
12
|
+
## 0.4.4
|
|
13
|
+
Wed, 30 Mar 2022 12:28:30 GMT
|
|
14
|
+
|
|
15
|
+
### Patches
|
|
16
|
+
|
|
17
|
+
- allow file links to be used with internal Nextjs router
|
|
4
18
|
|
|
5
19
|
## 0.4.2
|
|
6
20
|
Thu, 24 Feb 2022 14:51:06 GMT
|
package/Link.js
CHANGED
|
@@ -23,7 +23,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
23
23
|
var href = props.href,
|
|
24
24
|
other = (0, _objectWithoutProperties2["default"])(props, _excluded); //check if url has a domain
|
|
25
25
|
|
|
26
|
-
var isExternalLink = /^(?:[a-z]+:)
|
|
26
|
+
var isExternalLink = /^(?:[a-z]+:)?\/\/|.pdf|.docx?|.xlsx?/i.test(href || '');
|
|
27
27
|
|
|
28
28
|
if (isExternalLink) {
|
|
29
29
|
return /*#__PURE__*/_react["default"].createElement(_Link["default"], (0, _extends2["default"])({
|
package/es/Link.js
CHANGED
|
@@ -10,7 +10,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
10
10
|
other = _objectWithoutProperties(props, _excluded); //check if url has a domain
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var isExternalLink = /^(?:[a-z]+:)
|
|
13
|
+
var isExternalLink = /^(?:[a-z]+:)?\/\/|.pdf|.docx?|.xlsx?/i.test(href || '');
|
|
14
14
|
|
|
15
15
|
if (isExternalLink) {
|
|
16
16
|
return /*#__PURE__*/React.createElement(CoreLink, _extends({
|
package/esm/Link.js
CHANGED
|
@@ -10,7 +10,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
10
10
|
other = _objectWithoutProperties(props, _excluded); //check if url has a domain
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var isExternalLink = /^(?:[a-z]+:)
|
|
13
|
+
var isExternalLink = /^(?:[a-z]+:)?\/\/|.pdf|.docx?|.xlsx?/i.test(href || '');
|
|
14
14
|
|
|
15
15
|
if (isExternalLink) {
|
|
16
16
|
return /*#__PURE__*/React.createElement(CoreLink, _extends({
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/nextjs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "next specific utilities for @digigov apps",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"main": "dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@digigov/ui": "0.
|
|
13
|
+
"@digigov/ui": "0.15.1",
|
|
14
14
|
"@material-ui/core": "4.11.3",
|
|
15
15
|
"@material-ui/icons": "4.11.2",
|
|
16
16
|
"clsx": "1.1.1",
|