@digigov/nextjs 0.6.3-alpha → 0.6.4-alpha

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.
@@ -4,12 +4,12 @@
4
4
  "libs/nextjs/.eslintrc.js": "e5307e25c30e3c2254b5aea5c1e5b324e186b4b9",
5
5
  "libs/nextjs/.gitignore": "d7062a709b975e2778d606b10308acfeec5a86c8",
6
6
  "libs/nextjs/.prettierrc.js": "916426859972c08befeab8aca5b55e95ba714b96",
7
- "libs/nextjs/CHANGELOG.json": "262c983e5cbaa82efb661b51f4b4b7bb4d71a408",
8
- "libs/nextjs/CHANGELOG.md": "e4929731cb68100183d9814f4d49dcee3bcaff3a",
7
+ "libs/nextjs/CHANGELOG.json": "21b95162d1d344f13ba3100d9f7a9bdccef697ed",
8
+ "libs/nextjs/CHANGELOG.md": "45cf7241106be863e9b9da18e1154e5313a622b6",
9
9
  "libs/nextjs/README.md": "094541c2cbe065b191dab54a4035071636e7846d",
10
- "libs/nextjs/package.json": "8051185e45becc8b491d8c50a28a1da8523abf96",
11
- "libs/nextjs/src/App.tsx": "896e2bf88513c7e91b7a5a016a56996370310309",
12
- "libs/nextjs/src/Document.tsx": "54b208f64c10c252c154ed9cb0c394d747d3f939",
10
+ "libs/nextjs/package.json": "044eb6d2c385cfc9c272f548810913cffa826851",
11
+ "libs/nextjs/src/App.tsx": "ce4c34e6d5223836cc4198fec810a97f20ede1aa",
12
+ "libs/nextjs/src/Document.tsx": "f154c21d701d4c995c3c6a31a2d14096339b3a3b",
13
13
  "libs/nextjs/src/Image.tsx": "2c98e9239b77e159501c9e1962b6e219ee6c6641",
14
14
  "libs/nextjs/src/Link.tsx": "7d1a9f3275041237f259b509730d29636ed989e7",
15
15
  "libs/nextjs/src/hooks.ts": "e5fb5b30d9b5538ca8779dbb4851ad7f30a78ca3",
@@ -16,15 +16,15 @@
16
16
  "@jridgewell/source-map@0.3.2": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==",
17
17
  "@jridgewell/sourcemap-codec@1.4.14": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",
18
18
  "@jridgewell/trace-mapping@0.3.14": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==",
19
- "@material-ui/core@4.11.3_a2ab6b49394062f15ac97a72a811ac40": "sha512-Adt40rGW6Uds+cAyk3pVgcErpzU/qxc7KBR94jFHBYretU4AtWZltYcNsbeMn9tXL86jjVL1kuGcIHsgLgFGRw==",
20
- "@material-ui/icons@4.11.2_a38c727cd2a4c798454b36405fd69be4": "sha512-fQNsKX2TxBmqIGJCSi3tGTO/gZ+eJgWmMJkgDiOfyNaunNaxcklJQFaFogYcFl0qFuaEz1qaXYXboa/bUXVSOQ==",
21
- "@material-ui/styles@4.11.5_a2ab6b49394062f15ac97a72a811ac40": "sha512-o/41ot5JJiUsIETME9wVLAJrmIWL3j0R0Bj2kCOLbSfqEkKf0fmaPt+5vtblUh5eXr2S+J/8J3DaCb10+CzPGA==",
22
- "@material-ui/system@4.12.2_a2ab6b49394062f15ac97a72a811ac40": "sha512-6CSKu2MtmiJgcCGf6nBQpM8fLkuB9F55EKfbdTC80NND5wpTmKzwdhLYLH3zL4cLlK0gVaaltW7/wMuyTnN0Lw==",
19
+ "@material-ui/core@4.11.3_9f48369ed4321469d5d721870f4dbdbc": "sha512-Adt40rGW6Uds+cAyk3pVgcErpzU/qxc7KBR94jFHBYretU4AtWZltYcNsbeMn9tXL86jjVL1kuGcIHsgLgFGRw==",
20
+ "@material-ui/icons@4.11.2_0d762b53e6ef0e32f5c62d92bee63937": "sha512-fQNsKX2TxBmqIGJCSi3tGTO/gZ+eJgWmMJkgDiOfyNaunNaxcklJQFaFogYcFl0qFuaEz1qaXYXboa/bUXVSOQ==",
21
+ "@material-ui/styles@4.11.5_9f48369ed4321469d5d721870f4dbdbc": "sha512-o/41ot5JJiUsIETME9wVLAJrmIWL3j0R0Bj2kCOLbSfqEkKf0fmaPt+5vtblUh5eXr2S+J/8J3DaCb10+CzPGA==",
22
+ "@material-ui/system@4.12.2_9f48369ed4321469d5d721870f4dbdbc": "sha512-6CSKu2MtmiJgcCGf6nBQpM8fLkuB9F55EKfbdTC80NND5wpTmKzwdhLYLH3zL4cLlK0gVaaltW7/wMuyTnN0Lw==",
23
23
  "@material-ui/types@5.1.0_@types+react@16.9.56": "sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==",
24
- "@material-ui/utils@4.11.3_react-dom@18.2.0+react@18.2.0": "sha512-ZuQPV4rBK/V1j2dIkSSEcH5uT6AaHuKWFfotADHsC0wVL1NLd2WkFCm4ZZbX33iO4ydl6V0GPngKm8HZQ2oujg==",
24
+ "@material-ui/utils@4.11.3_react-dom@16.14.0+react@16.14.0": "sha512-ZuQPV4rBK/V1j2dIkSSEcH5uT6AaHuKWFfotADHsC0wVL1NLd2WkFCm4ZZbX33iO4ydl6V0GPngKm8HZQ2oujg==",
25
25
  "@next/env@10.0.9": "sha512-MERX3DY5u0Ed29eAsXeFBCZlFAGBtmjf7+Nht0hfgB25MPKKkIbC/0MRPcX/PQcAgLHsAHO6ay1u9xKzR4Vzjw==",
26
26
  "@next/polyfill-module@10.0.9": "sha512-kPOP6ku/e8zdrK8hwxOrjUrPLcdDEj12huLHVz+DZU+20q6VlhMOtR8aKHW1460L4LoLE/DAa7YyIuxtArhDRg==",
27
- "@next/react-dev-overlay@10.0.9_react-dom@18.2.0+react@18.2.0": "sha512-JsSh2Y004MEuPYqBD9eTl4PVZIjSzSy2GcD7MrW/gQcExYNpeMIJAbh8/OcyO1t+OnQeIHF5s/xTMsDHBGNcew==",
27
+ "@next/react-dev-overlay@10.0.9_react-dom@16.14.0+react@16.14.0": "sha512-JsSh2Y004MEuPYqBD9eTl4PVZIjSzSy2GcD7MrW/gQcExYNpeMIJAbh8/OcyO1t+OnQeIHF5s/xTMsDHBGNcew==",
28
28
  "@next/react-refresh-utils@10.0.9_3c6434244d9d748b8d47927294db92b7": "sha512-LSoKnM+fI9MHHew+mBg1w2e4/gjwPQsI+mDTzmfwdBwje+j9U2Int6XOZftMqBPXSlL04vjC9SRBkp0+3h8cNA==",
29
29
  "@opentelemetry/api@0.14.0": "sha512-L7RMuZr5LzMmZiQSQDy9O1jo0q+DaLy6XpYJfIGfYSfoJA5qzYwUP3sP1uMIQ549DvxAgM3ng85EaPTM/hUHwQ==",
30
30
  "@opentelemetry/context-base@0.14.0": "sha512-sDOAZcYwynHFTbLo6n8kIbLiVF3a3BLkrmehJUyEbT9F+Smbi47kLGS2gG2g0fjBLR/Lr1InPD7kXL7FaTqEkw==",
@@ -213,7 +213,7 @@
213
213
  "nanoid@3.3.4": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==",
214
214
  "native-url@0.3.4": "sha512-6iM8R99ze45ivyH8vybJ7X0yekIcPf5GgLV5K0ENCbmRcaRIDoj37BC8iLEmaaBfqqb8enuZ5p0uhY+lVAbAcA==",
215
215
  "neo-async@2.6.2": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
216
- "next@10.0.9_e574891204d50200e02b62834c633248": "sha512-HyoVjYydcM6LaFAUOHSxVQCcKOsIimVO/IKXCuWUu1rr6DDgXbWNg/8ckH084qD46MOYlLzjViiZ3KCmNQL4Cw==",
216
+ "next@10.0.9_d1850117ef0f0d0d966203ed2c22e5a0": "sha512-HyoVjYydcM6LaFAUOHSxVQCcKOsIimVO/IKXCuWUu1rr6DDgXbWNg/8ckH084qD46MOYlLzjViiZ3KCmNQL4Cw==",
217
217
  "node-fetch@2.6.1": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==",
218
218
  "node-html-parser@1.4.9": "sha512-UVcirFD1Bn0O+TSmloHeHqZZCxHjvtIeGdVdGMhyZ8/PWlEiZaZ5iJzR189yKZr8p0FXN58BUeC7RHRkf/KYGw==",
219
219
  "node-libs-browser@2.2.1": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==",
@@ -255,13 +255,13 @@
255
255
  "randombytes@2.1.0": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
256
256
  "randomfill@1.0.4": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==",
257
257
  "raw-body@2.4.1": "sha512-9WmIKF6mkvA0SLmA2Knm9+qj89e+j1zqgyn8aXGd7+nAduPoqgI9lO57SAZNn/Byzo5P7JhXTyg9PzaJbH73bA==",
258
- "react-dom@18.2.0_react@18.2.0": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
259
- "react-i18next@11.3.3_i18next@19.1.0+react@18.2.0": "sha512-sGnPwJ0Kf8qTRLTnTRk030KiU6WYEZ49rP9ILPvCnsmgEKyucQfTxab+klSYnCSKYija+CWL+yo+c9va9BmJeg==",
258
+ "react-dom@16.14.0_react@16.14.0": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==",
259
+ "react-i18next@11.3.3_i18next@19.1.0+react@16.14.0": "sha512-sGnPwJ0Kf8qTRLTnTRk030KiU6WYEZ49rP9ILPvCnsmgEKyucQfTxab+klSYnCSKYija+CWL+yo+c9va9BmJeg==",
260
260
  "react-is@16.13.1": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
261
261
  "react-is@17.0.2": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
262
262
  "react-refresh@0.8.3": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==",
263
- "react-transition-group@4.4.5_react-dom@18.2.0+react@18.2.0": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
264
- "react@18.2.0": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
263
+ "react-transition-group@4.4.5_react-dom@16.14.0+react@16.14.0": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
264
+ "react@16.14.0": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==",
265
265
  "readable-stream@2.3.7": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
266
266
  "readable-stream@3.6.0": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
267
267
  "readdirp@3.5.0": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==",
@@ -270,7 +270,7 @@
270
270
  "safe-buffer@5.1.2": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
271
271
  "safe-buffer@5.2.1": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
272
272
  "safer-buffer@2.1.2": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
273
- "scheduler@0.23.0": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
273
+ "scheduler@0.19.1": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==",
274
274
  "schema-utils@3.1.1": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==",
275
275
  "semver@6.3.0": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
276
276
  "serialize-javascript@6.0.0": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
@@ -292,7 +292,7 @@
292
292
  "string_decoder@1.1.1": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
293
293
  "string_decoder@1.3.0": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
294
294
  "strip-ansi@6.0.0": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
295
- "styled-jsx@3.3.2_react@18.2.0": "sha512-daAkGd5mqhbBhLd6jYAjYBa9LpxYCzsgo/f6qzPdFxVB8yoGbhxvzQgkC0pfmCVvW3JuAEBn0UzFLBfkHVZG1g==",
295
+ "styled-jsx@3.3.2_react@16.14.0": "sha512-daAkGd5mqhbBhLd6jYAjYBa9LpxYCzsgo/f6qzPdFxVB8yoGbhxvzQgkC0pfmCVvW3JuAEBn0UzFLBfkHVZG1g==",
296
296
  "stylis-rule-sheet@0.0.10_stylis@3.5.4": "sha512-nTbZoaqoBnmK+ptANthb10ZRZOGC+EmTLLUxeYIuHNkEKcmKgXX1XWKkUBT2Ac4es3NybooPe0SmvKdhKJZAuw==",
297
297
  "stylis@3.5.4": "sha512-8/3pSmthWM7lsPBKv7NXkzn2Uc9W7NotcwGNpJaa3k7WMM1XDCA4MgT5k/8BIexd5ydZdboXtU90XH9Ec4Bv/Q==",
298
298
  "supports-color@5.5.0": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
@@ -317,7 +317,7 @@
317
317
  "update-browserslist-db@1.0.5_browserslist@4.21.3": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==",
318
318
  "uri-js@4.4.1": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
319
319
  "url@0.11.0": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==",
320
- "use-subscription@1.5.1_react@18.2.0": "sha512-Xv2a1P/yReAjAbhylMfFplFKj9GssgTwN7RlcTxBujFQcloStWNDQdc4g4NRWH9xS4i/FDk04vQBptAXoF3VcA==",
320
+ "use-subscription@1.5.1_react@16.14.0": "sha512-Xv2a1P/yReAjAbhylMfFplFKj9GssgTwN7RlcTxBujFQcloStWNDQdc4g4NRWH9xS4i/FDk04vQBptAXoF3VcA==",
321
321
  "util-deprecate@1.0.2": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
322
322
  "util@0.10.3": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==",
323
323
  "util@0.11.1": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==",
package/CHANGELOG.json CHANGED
@@ -1,6 +1,23 @@
1
1
  {
2
2
  "name": "@digigov/nextjs",
3
3
  "entries": [
4
+ {
5
+ "version": "0.6.3",
6
+ "tag": "@digigov/nextjs_v0.6.3",
7
+ "date": "Tue, 27 Sep 2022 10:00:49 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "increase the range of accepted react version specified in peerDependencies"
12
+ }
13
+ ],
14
+ "dependency": [
15
+ {
16
+ "comment": "Updating dependency \"@digigov/ui\" from `0.26.4` to `0.26.5`"
17
+ }
18
+ ]
19
+ }
20
+ },
4
21
  {
5
22
  "version": "0.6.2",
6
23
  "tag": "@digigov/nextjs_v0.6.2",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/nextjs
2
2
 
3
- This log was last generated on Tue, 06 Sep 2022 08:27:15 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 27 Sep 2022 10:00:49 GMT and should not be manually modified.
4
+
5
+ ## 0.6.3
6
+ Tue, 27 Sep 2022 10:00:49 GMT
7
+
8
+ ### Patches
9
+
10
+ - increase the range of accepted react version specified in peerDependencies
4
11
 
5
12
  ## 0.6.2
6
13
  Tue, 06 Sep 2022 08:27:15 GMT
package/dist/App.js CHANGED
@@ -75,6 +75,18 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
75
75
  if (jssStyles && jssStyles.parentElement) {
76
76
  jssStyles.parentElement.removeChild(jssStyles);
77
77
  }
78
+
79
+ this.updateHtmlLang();
80
+ }
81
+ }, {
82
+ key: "componentDidUpdate",
83
+ value: function componentDidUpdate() {
84
+ this.updateHtmlLang();
85
+ }
86
+ }, {
87
+ key: "updateHtmlLang",
88
+ value: function updateHtmlLang() {
89
+ document.documentElement.lang = this.props.i18n.language;
78
90
  }
79
91
  }, {
80
92
  key: "render",
package/dist/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/nextjs
2
2
 
3
- This log was last generated on Tue, 06 Sep 2022 08:27:15 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 27 Sep 2022 10:00:49 GMT and should not be manually modified.
4
+
5
+ ## 0.6.3
6
+ Tue, 27 Sep 2022 10:00:49 GMT
7
+
8
+ ### Patches
9
+
10
+ - increase the range of accepted react version specified in peerDependencies
4
11
 
5
12
  ## 0.6.2
6
13
  Tue, 06 Sep 2022 08:27:15 GMT
package/dist/Document.js CHANGED
@@ -10,8 +10,6 @@ Object.defineProperty(exports, "__esModule", {
10
10
  exports.Fonts = Fonts;
11
11
  exports["default"] = void 0;
12
12
 
13
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
14
-
15
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
16
14
 
17
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
@@ -30,8 +28,6 @@ var _react = _interopRequireDefault(require("react"));
30
28
 
31
29
  var _document = _interopRequireWildcard(require("next/document"));
32
30
 
33
- var _styles = require("@material-ui/core/styles");
34
-
35
31
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
36
32
 
37
33
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -88,57 +84,19 @@ exports["default"] = DigiGOVDocument;
88
84
 
89
85
  DigiGOVDocument.getInitialProps = /*#__PURE__*/function () {
90
86
  var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(ctx) {
91
- var sheets, originalRenderPage, initialProps;
87
+ var initialProps;
92
88
  return _regeneratorRuntime().wrap(function _callee$(_context) {
93
89
  while (1) {
94
90
  switch (_context.prev = _context.next) {
95
91
  case 0:
96
- // Resolution order
97
- //
98
- // On the server:
99
- // 1. app.getInitialProps
100
- // 2. page.getInitialProps
101
- // 3. document.getInitialProps
102
- // 4. app.render
103
- // 5. page.render
104
- // 6. document.render
105
- //
106
- // On the server with error:
107
- // 1. document.getInitialProps
108
- // 2. app.render
109
- // 3. page.render
110
- // 4. document.render
111
- //
112
- // On the client
113
- // 1. app.getInitialProps
114
- // 2. page.getInitialProps
115
- // 3. app.render
116
- // 4. page.render
117
- // Render app and page and get the context of the page with collected side effects.
118
- sheets = new _styles.ServerStyleSheets();
119
- originalRenderPage = ctx.renderPage;
120
-
121
- ctx.renderPage = function () {
122
- return originalRenderPage({
123
- enhanceApp: function enhanceApp(App) {
124
- return function (props) {
125
- return sheets.collect( /*#__PURE__*/_react["default"].createElement(App, props));
126
- };
127
- }
128
- });
129
- };
130
-
131
- _context.next = 5;
92
+ _context.next = 2;
132
93
  return _document["default"].getInitialProps(ctx);
133
94
 
134
- case 5:
95
+ case 2:
135
96
  initialProps = _context.sent;
136
- return _context.abrupt("return", (0, _extends2["default"])({}, initialProps, {
137
- // Styles fragment is rendered after the app and page rendering finish.
138
- styles: [].concat((0, _toConsumableArray2["default"])(_react["default"].Children.toArray(initialProps.styles)), [sheets.getStyleElement()])
139
- }));
97
+ return _context.abrupt("return", (0, _extends2["default"])({}, initialProps));
140
98
 
141
- case 7:
99
+ case 4:
142
100
  case "end":
143
101
  return _context.stop();
144
102
  }
package/dist/es/App.js CHANGED
@@ -47,6 +47,18 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
47
47
  if (jssStyles && jssStyles.parentElement) {
48
48
  jssStyles.parentElement.removeChild(jssStyles);
49
49
  }
50
+
51
+ this.updateHtmlLang();
52
+ }
53
+ }, {
54
+ key: "componentDidUpdate",
55
+ value: function componentDidUpdate() {
56
+ this.updateHtmlLang();
57
+ }
58
+ }, {
59
+ key: "updateHtmlLang",
60
+ value: function updateHtmlLang() {
61
+ document.documentElement.lang = this.props.i18n.language;
50
62
  }
51
63
  }, {
52
64
  key: "render",
@@ -1,5 +1,4 @@
1
1
  import _typeof from "@babel/runtime/helpers/typeof";
2
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
2
  import _extends from "@babel/runtime/helpers/extends";
4
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -17,7 +16,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
17
16
  /* eslint-disable @typescript-eslint/explicit-function-return-type */
18
17
  import React from 'react';
19
18
  import Document, { Html, Head, Main, NextScript } from 'next/document';
20
- import { ServerStyleSheets } from '@material-ui/core/styles';
21
19
 
22
20
  var _ref = /*#__PURE__*/React.createElement("link", {
23
21
  rel: "stylesheet",
@@ -67,57 +65,19 @@ export { DigiGOVDocument as default };
67
65
 
68
66
  DigiGOVDocument.getInitialProps = /*#__PURE__*/function () {
69
67
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(ctx) {
70
- var sheets, originalRenderPage, initialProps;
68
+ var initialProps;
71
69
  return _regeneratorRuntime().wrap(function _callee$(_context) {
72
70
  while (1) {
73
71
  switch (_context.prev = _context.next) {
74
72
  case 0:
75
- // Resolution order
76
- //
77
- // On the server:
78
- // 1. app.getInitialProps
79
- // 2. page.getInitialProps
80
- // 3. document.getInitialProps
81
- // 4. app.render
82
- // 5. page.render
83
- // 6. document.render
84
- //
85
- // On the server with error:
86
- // 1. document.getInitialProps
87
- // 2. app.render
88
- // 3. page.render
89
- // 4. document.render
90
- //
91
- // On the client
92
- // 1. app.getInitialProps
93
- // 2. page.getInitialProps
94
- // 3. app.render
95
- // 4. page.render
96
- // Render app and page and get the context of the page with collected side effects.
97
- sheets = new ServerStyleSheets();
98
- originalRenderPage = ctx.renderPage;
99
-
100
- ctx.renderPage = function () {
101
- return originalRenderPage({
102
- enhanceApp: function enhanceApp(App) {
103
- return function (props) {
104
- return sheets.collect( /*#__PURE__*/React.createElement(App, props));
105
- };
106
- }
107
- });
108
- };
109
-
110
- _context.next = 5;
73
+ _context.next = 2;
111
74
  return Document.getInitialProps(ctx);
112
75
 
113
- case 5:
76
+ case 2:
114
77
  initialProps = _context.sent;
115
- return _context.abrupt("return", _extends({}, initialProps, {
116
- // Styles fragment is rendered after the app and page rendering finish.
117
- styles: [].concat(_toConsumableArray(React.Children.toArray(initialProps.styles)), [sheets.getStyleElement()])
118
- }));
78
+ return _context.abrupt("return", _extends({}, initialProps));
119
79
 
120
- case 7:
80
+ case 4:
121
81
  case "end":
122
82
  return _context.stop();
123
83
  }
package/dist/esm/App.js CHANGED
@@ -47,6 +47,18 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
47
47
  if (jssStyles && jssStyles.parentElement) {
48
48
  jssStyles.parentElement.removeChild(jssStyles);
49
49
  }
50
+
51
+ this.updateHtmlLang();
52
+ }
53
+ }, {
54
+ key: "componentDidUpdate",
55
+ value: function componentDidUpdate() {
56
+ this.updateHtmlLang();
57
+ }
58
+ }, {
59
+ key: "updateHtmlLang",
60
+ value: function updateHtmlLang() {
61
+ document.documentElement.lang = this.props.i18n.language;
50
62
  }
51
63
  }, {
52
64
  key: "render",
@@ -1,5 +1,4 @@
1
1
  import _typeof from "@babel/runtime/helpers/typeof";
2
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
2
  import _extends from "@babel/runtime/helpers/extends";
4
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -17,7 +16,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
17
16
  /* eslint-disable @typescript-eslint/explicit-function-return-type */
18
17
  import React from 'react';
19
18
  import Document, { Html, Head, Main, NextScript } from 'next/document';
20
- import { ServerStyleSheets } from '@material-ui/core/styles';
21
19
 
22
20
  var _ref = /*#__PURE__*/React.createElement("link", {
23
21
  rel: "stylesheet",
@@ -67,57 +65,19 @@ export { DigiGOVDocument as default };
67
65
 
68
66
  DigiGOVDocument.getInitialProps = /*#__PURE__*/function () {
69
67
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(ctx) {
70
- var sheets, originalRenderPage, initialProps;
68
+ var initialProps;
71
69
  return _regeneratorRuntime().wrap(function _callee$(_context) {
72
70
  while (1) {
73
71
  switch (_context.prev = _context.next) {
74
72
  case 0:
75
- // Resolution order
76
- //
77
- // On the server:
78
- // 1. app.getInitialProps
79
- // 2. page.getInitialProps
80
- // 3. document.getInitialProps
81
- // 4. app.render
82
- // 5. page.render
83
- // 6. document.render
84
- //
85
- // On the server with error:
86
- // 1. document.getInitialProps
87
- // 2. app.render
88
- // 3. page.render
89
- // 4. document.render
90
- //
91
- // On the client
92
- // 1. app.getInitialProps
93
- // 2. page.getInitialProps
94
- // 3. app.render
95
- // 4. page.render
96
- // Render app and page and get the context of the page with collected side effects.
97
- sheets = new ServerStyleSheets();
98
- originalRenderPage = ctx.renderPage;
99
-
100
- ctx.renderPage = function () {
101
- return originalRenderPage({
102
- enhanceApp: function enhanceApp(App) {
103
- return function (props) {
104
- return sheets.collect( /*#__PURE__*/React.createElement(App, props));
105
- };
106
- }
107
- });
108
- };
109
-
110
- _context.next = 5;
73
+ _context.next = 2;
111
74
  return Document.getInitialProps(ctx);
112
75
 
113
- case 5:
76
+ case 2:
114
77
  initialProps = _context.sent;
115
- return _context.abrupt("return", _extends({}, initialProps, {
116
- // Styles fragment is rendered after the app and page rendering finish.
117
- styles: [].concat(_toConsumableArray(React.Children.toArray(initialProps.styles)), [sheets.getStyleElement()])
118
- }));
78
+ return _context.abrupt("return", _extends({}, initialProps));
119
79
 
120
- case 7:
80
+ case 4:
121
81
  case "end":
122
82
  return _context.stop();
123
83
  }
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.6.2
1
+ /** @license Digigov v0.6.4-alpha
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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/nextjs",
3
- "version": "0.6.2",
3
+ "version": "0.6.4-alpha",
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,13 +10,13 @@
10
10
  "main": "dist/index.js"
11
11
  },
12
12
  "peerDependencies": {
13
- "@digigov/ui": "0.26.4",
13
+ "@digigov/ui": "0.26.6-alpha",
14
14
  "@material-ui/core": "4.11.3",
15
15
  "@material-ui/icons": "4.11.2",
16
16
  "clsx": "1.1.1",
17
17
  "i18next": "19.1.0",
18
- "react": ">= 16.14.0 <= 18.2.0",
19
- "react-dom": ">= 16.14.0 <= 18.2.0",
18
+ "react": "^16.8.0 || ^17.0.0",
19
+ "react-dom": "^16.8.0 || ^17.0.0",
20
20
  "next": "10.0.9",
21
21
  "react-i18next": "11.3.3"
22
22
  },
package/nextjs.build.log CHANGED
@@ -3,15 +3,15 @@ Invoking: digigov build --subpackages
3
3
  Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/rimraf dist
4
4
  Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/tsc --emitDeclarationOnly --outDir dist
5
5
  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
6
- Successfully compiled 7 files with Babel (2276ms).
6
+ Successfully compiled 7 files with Babel (1634ms).
7
7
  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
8
- Successfully compiled 7 files with Babel (1864ms).
8
+ Successfully compiled 7 files with Babel (1260ms).
9
9
  Created package.json in /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/dist/package.json
10
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
11
  Copied /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/README.md to /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/dist/README.md
12
+ Copied /Users/dimitristsironis/grnet/digigov-sdk/LICENSE to /Users/dimitristsironis/grnet/digigov-sdk/libs/nextjs/dist/LICENSE
13
13
  Skipped license for ./index.js
14
- Skipped license for ./umd/digigov-ui.production.min.js
15
14
  Skipped license for ./umd/digigov-ui.development.js
15
+ Skipped license for ./umd/digigov-ui.production.min.js
16
16
  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
17
- Successfully compiled 7 files with Babel (1560ms).
17
+ Successfully compiled 7 files with Babel (1217ms).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/nextjs",
3
- "version": "0.6.3-alpha",
3
+ "version": "0.6.4-alpha",
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,13 +10,13 @@
10
10
  "main": "dist/index.js"
11
11
  },
12
12
  "peerDependencies": {
13
- "@digigov/ui": "0.26.5-alpha",
13
+ "@digigov/ui": "0.26.6-alpha",
14
14
  "@material-ui/core": "4.11.3",
15
15
  "@material-ui/icons": "4.11.2",
16
16
  "clsx": "1.1.1",
17
17
  "i18next": "19.1.0",
18
- "react": ">= 16.14.0 <= 18.2.0",
19
- "react-dom": ">= 16.14.0 <= 18.2.0",
18
+ "react": "^16.8.0 || ^17.0.0",
19
+ "react-dom": "^16.8.0 || ^17.0.0",
20
20
  "next": "10.0.9",
21
21
  "react-i18next": "11.3.3"
22
22
  },
package/src/App.tsx CHANGED
@@ -24,6 +24,15 @@ class DigiGOVNextApp extends App<DigiGOVNextAppProps> {
24
24
  if (jssStyles && jssStyles.parentElement) {
25
25
  jssStyles.parentElement.removeChild(jssStyles);
26
26
  }
27
+ this.updateHtmlLang();
28
+ }
29
+
30
+ componentDidUpdate(): void {
31
+ this.updateHtmlLang();
32
+ }
33
+
34
+ updateHtmlLang(): void {
35
+ document.documentElement.lang = this.props.i18n.language;
27
36
  }
28
37
 
29
38
  render(): React.ReactElement {
package/src/Document.tsx CHANGED
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/explicit-function-return-type */
2
2
  import React from 'react';
3
3
  import Document, { Html, Head, Main, NextScript } from 'next/document';
4
- import { ServerStyleSheets } from '@material-ui/core/styles';
5
4
 
6
5
  export function Fonts() {
7
6
  return (
@@ -65,22 +64,10 @@ DigiGOVDocument.getInitialProps = async (ctx) => {
65
64
  // 4. page.render
66
65
 
67
66
  // Render app and page and get the context of the page with collected side effects.
68
- const sheets = new ServerStyleSheets();
69
- const originalRenderPage = ctx.renderPage;
70
-
71
- ctx.renderPage = () =>
72
- originalRenderPage({
73
- enhanceApp: (App) => (props) => sheets.collect(<App {...props} />),
74
- });
75
-
76
67
  const initialProps = await Document.getInitialProps(ctx);
77
68
 
78
69
  return {
79
70
  ...initialProps,
80
71
  // Styles fragment is rendered after the app and page rendering finish.
81
- styles: [
82
- ...React.Children.toArray(initialProps.styles),
83
- sheets.getStyleElement(),
84
- ],
85
72
  };
86
73
  };