@digigov/nextjs 0.6.1 → 0.6.2
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/App.js +1 -9
- package/CHANGELOG.md +8 -1
- package/es/App.js +1 -8
- package/esm/App.js +1 -8
- package/esm/index.js +1 -1
- package/libs/nextjs/src/App.d.ts +0 -2
- package/libs/ui/src/app/App.d.ts +0 -7
- package/libs/ui/src/app/i18n.d.ts +2 -2
- package/libs/ui/src/locales/el.d.ts +7 -0
- package/package.json +2 -2
- package/libs/ui/src/themes/govgr.d.ts +0 -3
package/App.js
CHANGED
|
@@ -29,8 +29,6 @@ var _Link = require("@digigov/ui/core/Link");
|
|
|
29
29
|
|
|
30
30
|
var _Link2 = _interopRequireDefault(require("@digigov/nextjs/Link"));
|
|
31
31
|
|
|
32
|
-
var _govgr = _interopRequireDefault(require("@digigov/ui/themes/govgr"));
|
|
33
|
-
|
|
34
32
|
var _dynamic = _interopRequireDefault(require("next/dynamic"));
|
|
35
33
|
|
|
36
34
|
var _i18n = require("@digigov/ui/app/i18n");
|
|
@@ -84,7 +82,6 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
84
82
|
var _this$props = this.props,
|
|
85
83
|
Component = _this$props.Component,
|
|
86
84
|
pageProps = _this$props.pageProps,
|
|
87
|
-
theme = _this$props.theme,
|
|
88
85
|
_t = _this$props.t,
|
|
89
86
|
i18n = _this$props.i18n;
|
|
90
87
|
return /*#__PURE__*/_react["default"].createElement(_i18n.I18NProvider, {
|
|
@@ -94,17 +91,12 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
94
91
|
i18n: i18n
|
|
95
92
|
}, /*#__PURE__*/_react["default"].createElement(_Link.LinkProvider, {
|
|
96
93
|
component: _Link2["default"]
|
|
97
|
-
}, _ref, /*#__PURE__*/_react["default"].createElement(DigiGOVApp,
|
|
98
|
-
theme: theme
|
|
99
|
-
}, /*#__PURE__*/_react["default"].createElement(Component, pageProps))));
|
|
94
|
+
}, _ref, /*#__PURE__*/_react["default"].createElement(DigiGOVApp, null, /*#__PURE__*/_react["default"].createElement(Component, pageProps))));
|
|
100
95
|
}
|
|
101
96
|
}]);
|
|
102
97
|
return DigiGOVNextApp;
|
|
103
98
|
}(_app["default"]);
|
|
104
99
|
|
|
105
100
|
var DigiGOVNextAppWithTranslation = (0, _reactI18next.withTranslation)()(DigiGOVNextApp);
|
|
106
|
-
DigiGOVNextAppWithTranslation.defaultProps = {
|
|
107
|
-
theme: _govgr["default"]
|
|
108
|
-
};
|
|
109
101
|
var _default = DigiGOVNextAppWithTranslation;
|
|
110
102
|
exports["default"] = _default;
|
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 Tue, 06 Sep 2022 08:27:15 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.6.2
|
|
6
|
+
Tue, 06 Sep 2022 08:27:15 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- remove theme material-ui from App.tsx
|
|
4
11
|
|
|
5
12
|
## 0.6.1
|
|
6
13
|
Wed, 31 Aug 2022 16:10:12 GMT
|
package/es/App.js
CHANGED
|
@@ -13,7 +13,6 @@ import App from 'next/app';
|
|
|
13
13
|
import Head from 'next/head';
|
|
14
14
|
import { LinkProvider } from '@digigov/ui/core/Link';
|
|
15
15
|
import NextLink from '@digigov/nextjs/Link';
|
|
16
|
-
import GovGRTheme from '@digigov/ui/themes/govgr';
|
|
17
16
|
import dynamic from 'next/dynamic';
|
|
18
17
|
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
19
18
|
import { withTranslation } from 'react-i18next';
|
|
@@ -55,7 +54,6 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
55
54
|
var _this$props = this.props,
|
|
56
55
|
Component = _this$props.Component,
|
|
57
56
|
pageProps = _this$props.pageProps,
|
|
58
|
-
theme = _this$props.theme,
|
|
59
57
|
_t = _this$props.t,
|
|
60
58
|
i18n = _this$props.i18n;
|
|
61
59
|
return /*#__PURE__*/React.createElement(I18NProvider, {
|
|
@@ -65,9 +63,7 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
65
63
|
i18n: i18n
|
|
66
64
|
}, /*#__PURE__*/React.createElement(LinkProvider, {
|
|
67
65
|
component: NextLink
|
|
68
|
-
}, _ref, /*#__PURE__*/React.createElement(DigiGOVApp,
|
|
69
|
-
theme: theme
|
|
70
|
-
}, /*#__PURE__*/React.createElement(Component, pageProps))));
|
|
66
|
+
}, _ref, /*#__PURE__*/React.createElement(DigiGOVApp, null, /*#__PURE__*/React.createElement(Component, pageProps))));
|
|
71
67
|
}
|
|
72
68
|
}]);
|
|
73
69
|
|
|
@@ -75,7 +71,4 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
75
71
|
}(App);
|
|
76
72
|
|
|
77
73
|
var DigiGOVNextAppWithTranslation = withTranslation()(DigiGOVNextApp);
|
|
78
|
-
DigiGOVNextAppWithTranslation.defaultProps = {
|
|
79
|
-
theme: GovGRTheme
|
|
80
|
-
};
|
|
81
74
|
export default DigiGOVNextAppWithTranslation;
|
package/esm/App.js
CHANGED
|
@@ -13,7 +13,6 @@ import App from 'next/app';
|
|
|
13
13
|
import Head from 'next/head';
|
|
14
14
|
import { LinkProvider } from '@digigov/ui/core/Link';
|
|
15
15
|
import NextLink from '@digigov/nextjs/Link';
|
|
16
|
-
import GovGRTheme from '@digigov/ui/themes/govgr';
|
|
17
16
|
import dynamic from 'next/dynamic';
|
|
18
17
|
import { I18NProvider } from '@digigov/ui/app/i18n';
|
|
19
18
|
import { withTranslation } from 'react-i18next';
|
|
@@ -55,7 +54,6 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
55
54
|
var _this$props = this.props,
|
|
56
55
|
Component = _this$props.Component,
|
|
57
56
|
pageProps = _this$props.pageProps,
|
|
58
|
-
theme = _this$props.theme,
|
|
59
57
|
_t = _this$props.t,
|
|
60
58
|
i18n = _this$props.i18n;
|
|
61
59
|
return /*#__PURE__*/React.createElement(I18NProvider, {
|
|
@@ -65,9 +63,7 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
65
63
|
i18n: i18n
|
|
66
64
|
}, /*#__PURE__*/React.createElement(LinkProvider, {
|
|
67
65
|
component: NextLink
|
|
68
|
-
}, _ref, /*#__PURE__*/React.createElement(DigiGOVApp,
|
|
69
|
-
theme: theme
|
|
70
|
-
}, /*#__PURE__*/React.createElement(Component, pageProps))));
|
|
66
|
+
}, _ref, /*#__PURE__*/React.createElement(DigiGOVApp, null, /*#__PURE__*/React.createElement(Component, pageProps))));
|
|
71
67
|
}
|
|
72
68
|
}]);
|
|
73
69
|
|
|
@@ -75,7 +71,4 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
75
71
|
}(App);
|
|
76
72
|
|
|
77
73
|
var DigiGOVNextAppWithTranslation = withTranslation()(DigiGOVNextApp);
|
|
78
|
-
DigiGOVNextAppWithTranslation.defaultProps = {
|
|
79
|
-
theme: GovGRTheme
|
|
80
|
-
};
|
|
81
74
|
export default DigiGOVNextAppWithTranslation;
|
package/esm/index.js
CHANGED
package/libs/nextjs/src/App.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Theme } from '@material-ui/core/styles';
|
|
3
2
|
import type { AppProps } from '@digigov/ui/app/App';
|
|
4
3
|
import { WithTranslation } from 'react-i18next';
|
|
5
4
|
import { i18n } from 'i18next';
|
|
6
5
|
export interface DigiGOVNextAppProps extends AppProps, WithTranslation {
|
|
7
6
|
children?: React.ReactNode;
|
|
8
|
-
theme: Theme;
|
|
9
7
|
t: (string: any) => string;
|
|
10
8
|
i18n: i18n;
|
|
11
9
|
}
|
package/libs/ui/src/app/App.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BaseCSSProperties } from '@material-ui/core/styles/withStyles';
|
|
3
|
-
import { Theme } from '@material-ui/core/styles';
|
|
4
|
-
export declare const useAppStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root">;
|
|
5
2
|
export interface AppProps {
|
|
6
|
-
theme: Theme;
|
|
7
3
|
children?: React.ReactNode;
|
|
8
|
-
classes?: {
|
|
9
|
-
root: BaseCSSProperties;
|
|
10
|
-
};
|
|
11
4
|
}
|
|
12
5
|
declare const App: React.FC<AppProps>;
|
|
13
6
|
export declare const StaticApp: React.FC<AppProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface I18NContextProps {
|
|
3
3
|
Trans?: any;
|
|
4
|
-
t: (str: string) => string;
|
|
4
|
+
t: (str: string, context?: any) => string;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
i18n?: any;
|
|
7
7
|
}
|
|
8
|
-
export declare const defaultTranslate: (key: any) =>
|
|
8
|
+
export declare const defaultTranslate: (key: string, context?: Record<string, any> | undefined) => string;
|
|
9
9
|
export declare const I18NContext: React.Context<I18NContextProps>;
|
|
10
10
|
export declare const I18NProvider: React.FC<I18NContextProps>;
|
|
11
11
|
export declare const useTranslation: () => I18NContextProps;
|
|
@@ -19,6 +19,12 @@ declare const _default: {
|
|
|
19
19
|
uuid4: string;
|
|
20
20
|
iban: string;
|
|
21
21
|
postalCode: string;
|
|
22
|
+
'needs-more': string;
|
|
23
|
+
array: {
|
|
24
|
+
min: string;
|
|
25
|
+
max: string;
|
|
26
|
+
length: string;
|
|
27
|
+
};
|
|
22
28
|
date: {
|
|
23
29
|
invalid: string;
|
|
24
30
|
earlier_than: string;
|
|
@@ -69,6 +75,7 @@ declare const _default: {
|
|
|
69
75
|
choose_file: string;
|
|
70
76
|
change_file: string;
|
|
71
77
|
no_file: string;
|
|
78
|
+
reset_file: string;
|
|
72
79
|
};
|
|
73
80
|
'copy-to-clipboard': {
|
|
74
81
|
message: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/nextjs",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "next specific utilities for @digigov apps",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"main": "dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@digigov/ui": "0.
|
|
13
|
+
"@digigov/ui": "0.26.1",
|
|
14
14
|
"@material-ui/core": "4.11.3",
|
|
15
15
|
"@material-ui/icons": "4.11.2",
|
|
16
16
|
"clsx": "1.1.1",
|