@digigov/nextjs 0.5.3 → 0.5.4

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 CHANGED
@@ -85,10 +85,12 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
85
85
  Component = _this$props.Component,
86
86
  pageProps = _this$props.pageProps,
87
87
  theme = _this$props.theme,
88
- t = _this$props.t,
88
+ _t = _this$props.t,
89
89
  i18n = _this$props.i18n;
90
90
  return /*#__PURE__*/_react["default"].createElement(_i18n.I18NProvider, {
91
- t: t,
91
+ t: function t(str) {
92
+ return typeof str === 'string' ? _t(str) : str;
93
+ },
92
94
  i18n: i18n
93
95
  }, /*#__PURE__*/_react["default"].createElement(_Link.LinkProvider, {
94
96
  component: _Link2["default"]
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/nextjs
2
2
 
3
- This log was last generated on Tue, 17 May 2022 11:04:22 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 08 Jun 2022 13:32:34 GMT and should not be manually modified.
4
+
5
+ ## 0.5.4
6
+ Wed, 08 Jun 2022 13:32:34 GMT
7
+
8
+ ### Patches
9
+
10
+ - Fix i18NProvider string interpolation support
4
11
 
5
12
  ## 0.5.3
6
13
  Tue, 17 May 2022 11:04:22 GMT
package/es/App.js CHANGED
@@ -56,10 +56,12 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
56
56
  Component = _this$props.Component,
57
57
  pageProps = _this$props.pageProps,
58
58
  theme = _this$props.theme,
59
- t = _this$props.t,
59
+ _t = _this$props.t,
60
60
  i18n = _this$props.i18n;
61
61
  return /*#__PURE__*/React.createElement(I18NProvider, {
62
- t: t,
62
+ t: function t(str) {
63
+ return typeof str === 'string' ? _t(str) : str;
64
+ },
63
65
  i18n: i18n
64
66
  }, /*#__PURE__*/React.createElement(LinkProvider, {
65
67
  component: NextLink
package/esm/App.js CHANGED
@@ -56,10 +56,12 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
56
56
  Component = _this$props.Component,
57
57
  pageProps = _this$props.pageProps,
58
58
  theme = _this$props.theme,
59
- t = _this$props.t,
59
+ _t = _this$props.t,
60
60
  i18n = _this$props.i18n;
61
61
  return /*#__PURE__*/React.createElement(I18NProvider, {
62
- t: t,
62
+ t: function t(str) {
63
+ return typeof str === 'string' ? _t(str) : str;
64
+ },
63
65
  i18n: i18n
64
66
  }, /*#__PURE__*/React.createElement(LinkProvider, {
65
67
  component: NextLink
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.5.3
1
+ /** @license Digigov v0.5.4
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -14,7 +14,11 @@ declare const _default: {
14
14
  afm: string;
15
15
  file_size: string;
16
16
  mobile_phone: string;
17
+ phone_number: string;
18
+ landline: string;
17
19
  uuid4: string;
20
+ iban: string;
21
+ postalCode: string;
18
22
  date: {
19
23
  invalid: string;
20
24
  earlier_than: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/nextjs",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
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.20.1",
13
+ "@digigov/ui": "0.21.0",
14
14
  "@material-ui/core": "4.11.3",
15
15
  "@material-ui/icons": "4.11.2",
16
16
  "clsx": "1.1.1",