@digigov/nextjs 0.6.20 → 0.6.21

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
@@ -23,17 +23,17 @@ var _react = _interopRequireDefault(require("react"));
23
23
 
24
24
  var _app = _interopRequireDefault(require("next/app"));
25
25
 
26
- var _head = _interopRequireDefault(require("next/head"));
26
+ var _dynamic = _interopRequireDefault(require("next/dynamic"));
27
27
 
28
- var _Link = require("@digigov/ui/core/Link");
28
+ var _head = _interopRequireDefault(require("next/head"));
29
29
 
30
- var _Link2 = _interopRequireDefault(require("@digigov/nextjs/Link"));
30
+ var _reactI18next = require("react-i18next");
31
31
 
32
- var _dynamic = _interopRequireDefault(require("next/dynamic"));
32
+ var _Link = _interopRequireDefault(require("@digigov/nextjs/Link"));
33
33
 
34
34
  var _i18n = require("@digigov/ui/app/i18n");
35
35
 
36
- var _reactI18next = require("react-i18next");
36
+ var _Link2 = require("@digigov/ui/core/Link");
37
37
 
38
38
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
39
39
 
@@ -101,8 +101,8 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
101
101
  return typeof str === 'string' ? _t(str) : str;
102
102
  },
103
103
  i18n: i18n
104
- }, /*#__PURE__*/_react["default"].createElement(_Link.LinkProvider, {
105
- component: _Link2["default"]
104
+ }, /*#__PURE__*/_react["default"].createElement(_Link2.LinkProvider, {
105
+ component: _Link["default"]
106
106
  }, _ref, /*#__PURE__*/_react["default"].createElement(DigiGOVApp, null, /*#__PURE__*/_react["default"].createElement(Component, pageProps))));
107
107
  }
108
108
  }]);
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/nextjs
2
2
 
3
- This log was last generated on Wed, 22 Feb 2023 15:41:06 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 21 Jun 2023 11:28:11 GMT and should not be manually modified.
4
+
5
+ ## 0.6.21
6
+ Wed, 21 Jun 2023 11:28:11 GMT
7
+
8
+ ### Patches
9
+
10
+ - Sort import declarations
4
11
 
5
12
  ## 0.6.12
6
13
  Wed, 22 Feb 2023 15:41:06 GMT
package/es/App.js CHANGED
@@ -10,12 +10,12 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
10
10
 
11
11
  import React from 'react';
12
12
  import App from 'next/app';
13
+ import dynamic from 'next/dynamic';
13
14
  import Head from 'next/head';
14
- import { LinkProvider } from '@digigov/ui/core/Link';
15
+ import { withTranslation } from 'react-i18next';
15
16
  import NextLink from '@digigov/nextjs/Link';
16
- import dynamic from 'next/dynamic';
17
17
  import { I18NProvider } from '@digigov/ui/app/i18n';
18
- import { withTranslation } from 'react-i18next';
18
+ import { LinkProvider } from '@digigov/ui/core/Link';
19
19
  var DigiGOVApp = dynamic(function () {
20
20
  return import('@digigov/ui/app/App');
21
21
  }, {
package/esm/App.js CHANGED
@@ -10,12 +10,12 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
10
10
 
11
11
  import React from 'react';
12
12
  import App from 'next/app';
13
+ import dynamic from 'next/dynamic';
13
14
  import Head from 'next/head';
14
- import { LinkProvider } from '@digigov/ui/core/Link';
15
+ import { withTranslation } from 'react-i18next';
15
16
  import NextLink from '@digigov/nextjs/Link';
16
- import dynamic from 'next/dynamic';
17
17
  import { I18NProvider } from '@digigov/ui/app/i18n';
18
- import { withTranslation } from 'react-i18next';
18
+ import { LinkProvider } from '@digigov/ui/core/Link';
19
19
  var DigiGOVApp = dynamic(function () {
20
20
  return import('@digigov/ui/app/App');
21
21
  }, {
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.6.20
1
+ /** @license Digigov v0.6.21
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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { AppProps } from '@digigov/ui/app/App';
3
- import { WithTranslation } from 'react-i18next';
4
2
  import { i18n } from 'i18next';
3
+ import { WithTranslation } from 'react-i18next';
4
+ import type { AppProps } from '@digigov/ui/app/App';
5
5
  export interface DigiGOVNextAppProps extends AppProps, WithTranslation {
6
6
  children?: React.ReactNode;
7
7
  t: (string: any) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/nextjs",
3
- "version": "0.6.20",
3
+ "version": "0.6.21",
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.35.2",
13
+ "@digigov/ui": "0.35.3",
14
14
  "@material-ui/core": "4.11.3",
15
15
  "@material-ui/icons": "4.11.2",
16
16
  "clsx": "1.1.1",
package/src/App.tsx CHANGED
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
+ import { i18n } from 'i18next';
2
3
  import App from 'next/app';
4
+ import dynamic from 'next/dynamic';
3
5
  import Head from 'next/head';
4
- import { LinkProvider } from '@digigov/ui/core/Link';
6
+ import { withTranslation, WithTranslation } from 'react-i18next';
5
7
  import NextLink from '@digigov/nextjs/Link';
6
- import dynamic from 'next/dynamic';
7
8
  import type { AppProps } from '@digigov/ui/app/App';
8
9
  import { I18NProvider } from '@digigov/ui/app/i18n';
9
- import { withTranslation, WithTranslation } from 'react-i18next';
10
- import { i18n } from 'i18next';
10
+ import { LinkProvider } from '@digigov/ui/core/Link';
11
11
 
12
12
  const DigiGOVApp = dynamic(() => import('@digigov/ui/app/App'), {
13
13
  ssr: false,
package/src/Link.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { LinkProps } from '@digigov/ui/core/Link';
3
2
  import Link from 'next/link';
4
3
  import LinkBase from '@digigov/react-core/LinkBase';
4
+ import { LinkProps } from '@digigov/ui/core/Link';
5
5
 
6
6
  const NextLink: React.ForwardRefRenderFunction<HTMLAnchorElement, LinkProps> = (
7
7
  props,