@digigov/nextjs 0.6.5 → 0.6.6
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/.eslintrc.js +3 -0
- package/.prettierrc.js +3 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/package-deps_build.json +21 -0
- package/.rush/temp/shrinkwrap-deps.json +334 -0
- package/CHANGELOG.json +990 -0
- package/CHANGELOG.md +8 -1
- package/{App.js → dist/App.js} +0 -0
- package/dist/CHANGELOG.md +275 -0
- package/{Document.js → dist/Document.js} +0 -0
- package/{Image.js → dist/Image.js} +0 -0
- package/{LICENSE → dist/LICENSE} +0 -0
- package/{Link.js → dist/Link.js} +3 -3
- package/dist/README.md +52 -0
- package/{es → dist/es}/App.js +0 -0
- package/{es → dist/es}/Document.js +0 -0
- package/{es → dist/es}/Image.js +0 -0
- package/{esm → dist/es}/Link.js +3 -3
- package/{es → dist/es}/hooks.js +0 -0
- package/{es → dist/es}/i18n.js +0 -0
- package/{es → dist/es}/index.js +0 -0
- package/{esm → dist/esm}/App.js +0 -0
- package/{esm → dist/esm}/Document.js +0 -0
- package/{esm → dist/esm}/Image.js +0 -0
- package/{es → dist/esm}/Link.js +3 -3
- package/{esm → dist/esm}/hooks.js +0 -0
- package/{esm → dist/esm}/i18n.js +0 -0
- package/{esm → dist/esm}/index.js +1 -1
- package/{hooks.js → dist/hooks.js} +0 -0
- package/{i18n.js → dist/i18n.js} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/{libs → dist/libs}/nextjs/src/App.d.ts +0 -0
- package/{libs → dist/libs}/nextjs/src/Document.d.ts +0 -0
- package/{libs → dist/libs}/nextjs/src/Image.d.ts +0 -0
- package/{libs → dist/libs}/nextjs/src/Link.d.ts +0 -0
- package/{libs → dist/libs}/nextjs/src/hooks.d.ts +0 -0
- package/{libs → dist/libs}/nextjs/src/i18n.d.ts +0 -0
- package/{libs → dist/libs}/nextjs/src/index.d.ts +0 -0
- package/{libs → dist/libs}/ui/src/app/App.d.ts +0 -0
- package/{libs → dist/libs}/ui/src/app/i18n.d.ts +0 -0
- package/{libs → dist/libs}/ui/src/core/Link/index.d.ts +3 -3
- package/{libs → dist/libs}/ui/src/locales/el.d.ts +0 -0
- package/{libs-ui → dist/libs-ui}/react-core/src/Base/index.d.ts +0 -0
- package/dist/libs-ui/react-core/src/LinkBase/index.d.ts +14 -0
- package/dist/package.json +26 -0
- package/nextjs.build.log +16 -0
- package/package.json +37 -24
- package/src/App.tsx +61 -0
- package/src/Document.tsx +73 -0
- package/src/Image.tsx +10 -0
- package/src/Link.tsx +33 -0
- package/src/hooks.ts +6 -0
- package/src/i18n.tsx +18 -0
- package/src/index.ts +0 -0
- package/tsconfig.json +14 -0
- package/libs-ui/react-core/src/Link/index.d.ts +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @digigov/nextjs
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 18 Nov 2022 08:33:43 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.6.6
|
|
6
|
+
Fri, 18 Nov 2022 08:33:43 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Update imports of renamed react components
|
|
4
11
|
|
|
5
12
|
## 0.6.5
|
|
6
13
|
Wed, 16 Nov 2022 14:27:34 GMT
|
package/{App.js → dist/App.js}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# Change Log - @digigov/nextjs
|
|
2
|
+
|
|
3
|
+
This log was last generated on Fri, 18 Nov 2022 08:33:43 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.6.6
|
|
6
|
+
Fri, 18 Nov 2022 08:33:43 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Update imports of renamed react components
|
|
11
|
+
|
|
12
|
+
## 0.6.5
|
|
13
|
+
Wed, 16 Nov 2022 14:27:34 GMT
|
|
14
|
+
|
|
15
|
+
_Version update only_
|
|
16
|
+
|
|
17
|
+
## 0.6.4
|
|
18
|
+
Tue, 27 Sep 2022 14:49:37 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- add default lang to html tag in DOM
|
|
23
|
+
- specify the peerDependencies range in a better way
|
|
24
|
+
|
|
25
|
+
## 0.6.3
|
|
26
|
+
Tue, 27 Sep 2022 10:00:49 GMT
|
|
27
|
+
|
|
28
|
+
### Patches
|
|
29
|
+
|
|
30
|
+
- increase the range of accepted react version specified in peerDependencies
|
|
31
|
+
|
|
32
|
+
## 0.6.2
|
|
33
|
+
Tue, 06 Sep 2022 08:27:15 GMT
|
|
34
|
+
|
|
35
|
+
### Patches
|
|
36
|
+
|
|
37
|
+
- remove theme material-ui from App.tsx
|
|
38
|
+
|
|
39
|
+
## 0.6.1
|
|
40
|
+
Wed, 31 Aug 2022 16:10:12 GMT
|
|
41
|
+
|
|
42
|
+
_Version update only_
|
|
43
|
+
|
|
44
|
+
## 0.6.0
|
|
45
|
+
Tue, 16 Aug 2022 14:59:01 GMT
|
|
46
|
+
|
|
47
|
+
### Minor changes
|
|
48
|
+
|
|
49
|
+
- add new Image wrapper with built-in basePath support
|
|
50
|
+
|
|
51
|
+
## 0.5.4
|
|
52
|
+
Wed, 08 Jun 2022 13:32:34 GMT
|
|
53
|
+
|
|
54
|
+
### Patches
|
|
55
|
+
|
|
56
|
+
- Fix i18NProvider string interpolation support
|
|
57
|
+
|
|
58
|
+
## 0.5.3
|
|
59
|
+
Tue, 17 May 2022 11:04:22 GMT
|
|
60
|
+
|
|
61
|
+
_Version update only_
|
|
62
|
+
|
|
63
|
+
## 0.5.2
|
|
64
|
+
Mon, 16 May 2022 14:42:45 GMT
|
|
65
|
+
|
|
66
|
+
### Patches
|
|
67
|
+
|
|
68
|
+
- Change MIT License to BSD-2-Clause
|
|
69
|
+
|
|
70
|
+
## 0.5.1
|
|
71
|
+
Tue, 19 Apr 2022 12:17:34 GMT
|
|
72
|
+
|
|
73
|
+
### Patches
|
|
74
|
+
|
|
75
|
+
- Fix a bug where using target=_blank would not open the link at all. Now it opens in a new window using our CoreLink.
|
|
76
|
+
|
|
77
|
+
## 0.5.0
|
|
78
|
+
Mon, 18 Apr 2022 13:00:33 GMT
|
|
79
|
+
|
|
80
|
+
### Minor changes
|
|
81
|
+
|
|
82
|
+
- Upgrade @types/node version
|
|
83
|
+
|
|
84
|
+
## 0.4.6
|
|
85
|
+
Thu, 14 Apr 2022 12:32:51 GMT
|
|
86
|
+
|
|
87
|
+
_Version update only_
|
|
88
|
+
|
|
89
|
+
## 0.4.5
|
|
90
|
+
Wed, 30 Mar 2022 13:17:56 GMT
|
|
91
|
+
|
|
92
|
+
### Patches
|
|
93
|
+
|
|
94
|
+
- incorrect regex pattern was causing build failure
|
|
95
|
+
|
|
96
|
+
## 0.4.4
|
|
97
|
+
Wed, 30 Mar 2022 12:28:30 GMT
|
|
98
|
+
|
|
99
|
+
### Patches
|
|
100
|
+
|
|
101
|
+
- allow file links to be used with internal Nextjs router
|
|
102
|
+
|
|
103
|
+
## 0.4.2
|
|
104
|
+
Thu, 24 Feb 2022 14:51:06 GMT
|
|
105
|
+
|
|
106
|
+
_Version update only_
|
|
107
|
+
|
|
108
|
+
## 0.4.1
|
|
109
|
+
Wed, 16 Feb 2022 12:49:28 GMT
|
|
110
|
+
|
|
111
|
+
_Version update only_
|
|
112
|
+
|
|
113
|
+
## 0.4.0
|
|
114
|
+
Mon, 14 Feb 2022 09:56:29 GMT
|
|
115
|
+
|
|
116
|
+
### Minor changes
|
|
117
|
+
|
|
118
|
+
- Replace <a> with Link from @digigov/react-core
|
|
119
|
+
|
|
120
|
+
## 0.3.6
|
|
121
|
+
Thu, 10 Feb 2022 13:45:56 GMT
|
|
122
|
+
|
|
123
|
+
_Version update only_
|
|
124
|
+
|
|
125
|
+
## 0.3.5
|
|
126
|
+
Tue, 08 Feb 2022 15:21:11 GMT
|
|
127
|
+
|
|
128
|
+
_Version update only_
|
|
129
|
+
|
|
130
|
+
## 0.3.4
|
|
131
|
+
Thu, 03 Feb 2022 15:47:05 GMT
|
|
132
|
+
|
|
133
|
+
_Version update only_
|
|
134
|
+
|
|
135
|
+
## 0.3.3
|
|
136
|
+
Wed, 02 Feb 2022 15:44:29 GMT
|
|
137
|
+
|
|
138
|
+
### Patches
|
|
139
|
+
|
|
140
|
+
- fix package.json inconsistencies by running cli-lab verify-and-update-local-package-versions
|
|
141
|
+
|
|
142
|
+
## 0.3.2
|
|
143
|
+
Thu, 30 Dec 2021 12:54:03 GMT
|
|
144
|
+
|
|
145
|
+
_Version update only_
|
|
146
|
+
|
|
147
|
+
## 0.3.1
|
|
148
|
+
Tue, 02 Nov 2021 13:03:39 GMT
|
|
149
|
+
|
|
150
|
+
_Version update only_
|
|
151
|
+
|
|
152
|
+
## 0.3.0
|
|
153
|
+
Tue, 12 Oct 2021 09:13:08 GMT
|
|
154
|
+
|
|
155
|
+
### Minor changes
|
|
156
|
+
|
|
157
|
+
- Warn if browser is IE
|
|
158
|
+
|
|
159
|
+
## 0.2.27
|
|
160
|
+
Wed, 22 Sep 2021 10:15:42 GMT
|
|
161
|
+
|
|
162
|
+
### Patches
|
|
163
|
+
|
|
164
|
+
- Add missing props to the Link component
|
|
165
|
+
|
|
166
|
+
## 0.2.26
|
|
167
|
+
Thu, 12 Aug 2021 08:56:35 GMT
|
|
168
|
+
|
|
169
|
+
_Version update only_
|
|
170
|
+
|
|
171
|
+
## 0.2.25
|
|
172
|
+
Thu, 12 Aug 2021 06:18:14 GMT
|
|
173
|
+
|
|
174
|
+
_Version update only_
|
|
175
|
+
|
|
176
|
+
## 0.2.24
|
|
177
|
+
Tue, 03 Aug 2021 12:09:02 GMT
|
|
178
|
+
|
|
179
|
+
_Version update only_
|
|
180
|
+
|
|
181
|
+
## 0.2.23
|
|
182
|
+
Tue, 03 Aug 2021 10:22:51 GMT
|
|
183
|
+
|
|
184
|
+
_Version update only_
|
|
185
|
+
|
|
186
|
+
## 0.2.22
|
|
187
|
+
Fri, 30 Jul 2021 13:01:30 GMT
|
|
188
|
+
|
|
189
|
+
_Version update only_
|
|
190
|
+
|
|
191
|
+
## 0.2.21
|
|
192
|
+
Fri, 30 Jul 2021 11:35:29 GMT
|
|
193
|
+
|
|
194
|
+
_Version update only_
|
|
195
|
+
|
|
196
|
+
## 0.2.20
|
|
197
|
+
Fri, 30 Jul 2021 10:46:37 GMT
|
|
198
|
+
|
|
199
|
+
_Version update only_
|
|
200
|
+
|
|
201
|
+
## 0.2.19
|
|
202
|
+
Fri, 30 Jul 2021 08:49:46 GMT
|
|
203
|
+
|
|
204
|
+
_Version update only_
|
|
205
|
+
|
|
206
|
+
## 0.2.18
|
|
207
|
+
Fri, 30 Jul 2021 07:46:24 GMT
|
|
208
|
+
|
|
209
|
+
_Version update only_
|
|
210
|
+
|
|
211
|
+
## 0.2.17
|
|
212
|
+
Tue, 27 Jul 2021 10:14:43 GMT
|
|
213
|
+
|
|
214
|
+
_Version update only_
|
|
215
|
+
|
|
216
|
+
## 0.2.16
|
|
217
|
+
Thu, 15 Jul 2021 11:16:22 GMT
|
|
218
|
+
|
|
219
|
+
_Version update only_
|
|
220
|
+
|
|
221
|
+
## 0.2.15
|
|
222
|
+
Fri, 09 Jul 2021 08:59:32 GMT
|
|
223
|
+
|
|
224
|
+
_Version update only_
|
|
225
|
+
|
|
226
|
+
## 0.2.14
|
|
227
|
+
Thu, 08 Jul 2021 15:08:50 GMT
|
|
228
|
+
|
|
229
|
+
_Version update only_
|
|
230
|
+
|
|
231
|
+
## 0.2.13
|
|
232
|
+
Wed, 30 Jun 2021 12:09:21 GMT
|
|
233
|
+
|
|
234
|
+
_Version update only_
|
|
235
|
+
|
|
236
|
+
## 0.2.12
|
|
237
|
+
Wed, 23 Jun 2021 13:04:19 GMT
|
|
238
|
+
|
|
239
|
+
_Version update only_
|
|
240
|
+
|
|
241
|
+
## 0.2.11
|
|
242
|
+
Wed, 02 Jun 2021 12:04:27 GMT
|
|
243
|
+
|
|
244
|
+
_Version update only_
|
|
245
|
+
|
|
246
|
+
## 0.2.10
|
|
247
|
+
Wed, 02 Jun 2021 08:33:44 GMT
|
|
248
|
+
|
|
249
|
+
_Version update only_
|
|
250
|
+
|
|
251
|
+
## 0.2.9
|
|
252
|
+
Wed, 05 May 2021 14:11:41 GMT
|
|
253
|
+
|
|
254
|
+
_Version update only_
|
|
255
|
+
|
|
256
|
+
## 0.2.8
|
|
257
|
+
Thu, 22 Apr 2021 15:04:42 GMT
|
|
258
|
+
|
|
259
|
+
_Version update only_
|
|
260
|
+
|
|
261
|
+
## 0.2.7
|
|
262
|
+
Thu, 22 Apr 2021 14:39:18 GMT
|
|
263
|
+
|
|
264
|
+
_Version update only_
|
|
265
|
+
|
|
266
|
+
## 0.2.6
|
|
267
|
+
Thu, 22 Apr 2021 14:06:40 GMT
|
|
268
|
+
|
|
269
|
+
_Version update only_
|
|
270
|
+
|
|
271
|
+
## 0.2.5
|
|
272
|
+
Thu, 22 Apr 2021 12:56:25 GMT
|
|
273
|
+
|
|
274
|
+
_Initial release_
|
|
275
|
+
|
|
File without changes
|
|
File without changes
|
package/{LICENSE → dist/LICENSE}
RENAMED
|
File without changes
|
package/{Link.js → dist/Link.js}
RENAMED
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _link = _interopRequireDefault(require("next/link"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _LinkBase = _interopRequireDefault(require("@digigov/react-core/LinkBase"));
|
|
19
19
|
|
|
20
20
|
var _excluded = ["href"];
|
|
21
21
|
|
|
@@ -27,7 +27,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
27
27
|
other.target === '_blank';
|
|
28
28
|
|
|
29
29
|
if (isExternalLink) {
|
|
30
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_LinkBase["default"], (0, _extends2["default"])({
|
|
31
31
|
ref: ref,
|
|
32
32
|
href: href || '#'
|
|
33
33
|
}, other), props.children);
|
|
@@ -35,7 +35,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
35
35
|
|
|
36
36
|
return /*#__PURE__*/_react["default"].createElement(_link["default"], (0, _extends2["default"])({
|
|
37
37
|
href: href || '#'
|
|
38
|
-
}, other), /*#__PURE__*/_react["default"].createElement(
|
|
38
|
+
}, other), /*#__PURE__*/_react["default"].createElement(_LinkBase["default"], (0, _extends2["default"])({
|
|
39
39
|
ref: ref
|
|
40
40
|
}, other), props.children));
|
|
41
41
|
};
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# @digigov/nextjs
|
|
2
|
+
|
|
3
|
+
Next.js utilities for @digigov projects.
|
|
4
|
+
|
|
5
|
+
Included,
|
|
6
|
+
|
|
7
|
+
* common `_app` and `_document` components with support for,
|
|
8
|
+
- SSR style handling.
|
|
9
|
+
- `@digigov/ui/app/App` component.
|
|
10
|
+
- use `@digigov/ui/core/Link/LinkProvider` to set `next/Link` as the default
|
|
11
|
+
Link component across app.
|
|
12
|
+
|
|
13
|
+
* react-i18next initializer
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
$ yarn add @digigov/nextjs
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Create `_app` and `_document` components,
|
|
23
|
+
|
|
24
|
+
**pages/_app.js**
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
import initI18n from '@digigov/nextjs/i18n';
|
|
28
|
+
import el from '../locales/el';
|
|
29
|
+
initI18n({
|
|
30
|
+
el: {
|
|
31
|
+
translation: el
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
import App from '@digigov/nextjs/App';
|
|
36
|
+
export default App;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**pages/_document.js**
|
|
40
|
+
```js
|
|
41
|
+
import Document from '@digigov/nextjs/Document';
|
|
42
|
+
export default Document;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Drawbacks
|
|
47
|
+
|
|
48
|
+
`next.js` spawns two transpilation processes for SSR and client code using
|
|
49
|
+
different configuration options. `_app`, `_doc` are provided as raw `.tsx`
|
|
50
|
+
modules to prevent transpilation conflicts. You need to modify `next.js`
|
|
51
|
+
webpack configuration to include `@digigov/nextjs` components as though they
|
|
52
|
+
where located in locally in your project.
|
package/{es → dist/es}/App.js
RENAMED
|
File without changes
|
|
File without changes
|
package/{es → dist/es}/Image.js
RENAMED
|
File without changes
|
package/{esm → dist/es}/Link.js
RENAMED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["href"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
|
-
import
|
|
6
|
+
import LinkBase from '@digigov/react-core/LinkBase';
|
|
7
7
|
|
|
8
8
|
var NextLink = function NextLink(props, ref) {
|
|
9
9
|
var href = props.href,
|
|
@@ -14,7 +14,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
14
14
|
other.target === '_blank';
|
|
15
15
|
|
|
16
16
|
if (isExternalLink) {
|
|
17
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
18
18
|
ref: ref,
|
|
19
19
|
href: href || '#'
|
|
20
20
|
}, other), props.children);
|
|
@@ -22,7 +22,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
22
22
|
|
|
23
23
|
return /*#__PURE__*/React.createElement(Link, _extends({
|
|
24
24
|
href: href || '#'
|
|
25
|
-
}, other), /*#__PURE__*/React.createElement(
|
|
25
|
+
}, other), /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
26
26
|
ref: ref
|
|
27
27
|
}, other), props.children));
|
|
28
28
|
};
|
package/{es → dist/es}/hooks.js
RENAMED
|
File without changes
|
package/{es → dist/es}/i18n.js
RENAMED
|
File without changes
|
package/{es → dist/es}/index.js
RENAMED
|
File without changes
|
package/{esm → dist/esm}/App.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{es → dist/esm}/Link.js
RENAMED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["href"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
|
-
import
|
|
6
|
+
import LinkBase from '@digigov/react-core/LinkBase';
|
|
7
7
|
|
|
8
8
|
var NextLink = function NextLink(props, ref) {
|
|
9
9
|
var href = props.href,
|
|
@@ -14,7 +14,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
14
14
|
other.target === '_blank';
|
|
15
15
|
|
|
16
16
|
if (isExternalLink) {
|
|
17
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
18
18
|
ref: ref,
|
|
19
19
|
href: href || '#'
|
|
20
20
|
}, other), props.children);
|
|
@@ -22,7 +22,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
22
22
|
|
|
23
23
|
return /*#__PURE__*/React.createElement(Link, _extends({
|
|
24
24
|
href: href || '#'
|
|
25
|
-
}, other), /*#__PURE__*/React.createElement(
|
|
25
|
+
}, other), /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
26
26
|
ref: ref
|
|
27
27
|
}, other), props.children));
|
|
28
28
|
};
|
|
File without changes
|
package/{esm → dist/esm}/i18n.js
RENAMED
|
File without changes
|
|
File without changes
|
package/{i18n.js → dist/i18n.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import LinkBase, { LinkBaseProps } from '@digigov/react-core/LinkBase';
|
|
3
3
|
export interface LinkComponentContextProps {
|
|
4
4
|
component: React.ElementType<LinkProps>;
|
|
5
5
|
}
|
|
6
6
|
export declare const CommonLink: React.FC<LinkProps>;
|
|
7
7
|
export declare const LinkProvider: React.FC<LinkComponentContextProps>;
|
|
8
|
-
export interface LinkProps extends
|
|
8
|
+
export interface LinkProps extends LinkBaseProps {
|
|
9
9
|
ref?: React.Ref<HTMLAnchorElement>;
|
|
10
10
|
}
|
|
11
11
|
declare const Link: React.ExoticComponent<LinkProps>;
|
|
12
12
|
export default Link;
|
|
13
|
-
export { Link };
|
|
13
|
+
export { Link, LinkBase };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
export interface LinkBaseProps extends BaseProps<'a'> {
|
|
4
|
+
/**
|
|
5
|
+
* underline is optional. The default value is 'true'.
|
|
6
|
+
* Make it 'false' only if the context tells the user that the text is a link, even without the underline.
|
|
7
|
+
*/
|
|
8
|
+
underline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This component defines a hyperlink, which is used to link from one page to another.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LinkBase: React.ForwardRefExoticComponent<Pick<LinkBaseProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "media" | "target" | "type" | "role" | "tabIndex" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "underline"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
|
+
export default LinkBase;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@digigov/nextjs",
|
|
3
|
+
"version": "0.6.6",
|
|
4
|
+
"description": "next specific utilities for @digigov apps",
|
|
5
|
+
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
|
+
"license": "BSD-2-Clause",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"module": "./esm/index.js",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"main": "dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"@digigov/ui": "0.28.2",
|
|
14
|
+
"@material-ui/core": "4.11.3",
|
|
15
|
+
"@material-ui/icons": "4.11.2",
|
|
16
|
+
"clsx": "1.1.1",
|
|
17
|
+
"i18next": "19.1.0",
|
|
18
|
+
"react": "^16.8.0 || ^17.0.0",
|
|
19
|
+
"react-dom": "^16.8.0 || ^17.0.0",
|
|
20
|
+
"next": "10.0.9",
|
|
21
|
+
"react-i18next": "11.3.3"
|
|
22
|
+
},
|
|
23
|
+
"gitHead": "7237a2d58c6b30979837579e51251543aff0c240",
|
|
24
|
+
"private": false,
|
|
25
|
+
"typings": "./index.d.ts"
|
|
26
|
+
}
|
package/nextjs.build.log
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Invoking: digigov build --subpackages
|
|
2
|
+
Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/rimraf dist
|
|
3
|
+
Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/tsc --emitDeclarationOnly --outDir dist
|
|
4
|
+
Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/babel --config-file /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/babel.config.js src --extensions .tsx,.ts,.js,.jsx --copy-files --out-dir dist/esm
|
|
5
|
+
Successfully compiled 7 files with Babel (2112ms).
|
|
6
|
+
Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/babel --config-file /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/babel.config.js src --extensions .tsx,.ts,.js,.jsx --copy-files --out-dir dist/es
|
|
7
|
+
Successfully compiled 7 files with Babel (1829ms).
|
|
8
|
+
Created package.json in /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/dist/package.json
|
|
9
|
+
Copied /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/README.md to /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/dist/README.md
|
|
10
|
+
Copied /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/CHANGELOG.md to /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/dist/CHANGELOG.md
|
|
11
|
+
Copied /Users/dimitristsironis/grnet/digigov-sdk/LICENSE to /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/dist/LICENSE
|
|
12
|
+
Skipped license for ./index.js
|
|
13
|
+
Skipped license for ./umd/digigov-ui.development.js
|
|
14
|
+
Skipped license for ./umd/digigov-ui.production.min.js
|
|
15
|
+
Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/babel --config-file /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/babel.config.js src --extensions .tsx,.ts,.js,.jsx --copy-files --out-dir dist
|
|
16
|
+
Successfully compiled 7 files with Babel (1557ms).
|
package/package.json
CHANGED
|
@@ -1,26 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
"name": "@digigov/nextjs",
|
|
3
|
+
"version": "0.6.6",
|
|
4
|
+
"description": "next specific utilities for @digigov apps",
|
|
5
|
+
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
|
+
"license": "BSD-2-Clause",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "src/index.ts",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"main": "dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"lint": "digigov lint",
|
|
14
|
+
"test": "digigov test",
|
|
15
|
+
"build": "digigov build --subpackages"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"@digigov/ui": "0.28.2",
|
|
19
|
+
"@material-ui/core": "4.11.3",
|
|
20
|
+
"@material-ui/icons": "4.11.2",
|
|
21
|
+
"clsx": "1.1.1",
|
|
22
|
+
"i18next": "19.1.0",
|
|
23
|
+
"react": "^16.8.0 || ^17.0.0",
|
|
24
|
+
"react-dom": "^16.8.0 || ^17.0.0",
|
|
25
|
+
"next": "10.0.9",
|
|
26
|
+
"react-i18next": "11.3.3"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@digigov/cli": "0.6.3",
|
|
30
|
+
"@digigov/cli-lint": "0.5.32",
|
|
31
|
+
"@digigov/cli-build": "0.8.3",
|
|
32
|
+
"@digigov/cli-test": "0.7.2",
|
|
33
|
+
"@types/node": "16.6.2",
|
|
34
|
+
"@types/react": "16.9.56",
|
|
35
|
+
"@types/react-dom": "16.9.9",
|
|
36
|
+
"typescript": "4.2.3"
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "7237a2d58c6b30979837579e51251543aff0c240"
|
|
26
39
|
}
|