@koine/next 1.0.43 → 1.0.44

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/config/index.d.ts CHANGED
@@ -89,7 +89,14 @@ declare type KoineNextConfig = {
89
89
  * }
90
90
  * ```
91
91
  *
92
- * NOTE:
92
+ * NOTE1:
93
+ * You cannot name your dynamic template file "index.tsx" when they have nested
94
+ * segments or the rewrites won't work. So while this is allowed:
95
+ * `/pages/cats/[category]/index.tsx` it is not when you also have e.g.:
96
+ * `/pages/cats/[category]/reviews.tsx`
97
+ * TODO: This might be fixable?
98
+ *
99
+ * NOTE2:
93
100
  * When `routes` is used be sure to pass before than the `i18n.defaultLocale`
94
101
  * configuration. That is used for localised routing. By default we set `i18n`
95
102
  * as such:
@@ -44,9 +44,7 @@ var Document = /** @class */ (function (_super) {
44
44
  return [4 /*yield*/, NextDocument.getInitialProps(ctx)];
45
45
  case 2:
46
46
  initialProps = _a.sent();
47
- return [2 /*return*/, __assign(__assign({}, initialProps), {
48
- // @ts-expect-error FIXME: have they changed type?
49
- styles: (_jsxs(React.Fragment, { children: [initialProps.styles, sheet.getStyleElement()] })) })];
47
+ return [2 /*return*/, __assign(__assign({}, initialProps), { styles: (_jsxs(React.Fragment, { children: [initialProps.styles, sheet.getStyleElement()] })) })];
50
48
  case 3:
51
49
  sheet.seal();
52
50
  return [7 /*endfinally*/];
@@ -47,9 +47,7 @@ var Document = /** @class */ (function (_super) {
47
47
  return [4 /*yield*/, document_1.default.getInitialProps(ctx)];
48
48
  case 2:
49
49
  initialProps = _a.sent();
50
- return [2 /*return*/, tslib_1.__assign(tslib_1.__assign({}, initialProps), {
51
- // @ts-expect-error FIXME: have they changed type?
52
- styles: ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [initialProps.styles, sheet.getStyleElement()] })) })];
50
+ return [2 /*return*/, tslib_1.__assign(tslib_1.__assign({}, initialProps), { styles: ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [initialProps.styles, sheet.getStyleElement()] })) })];
53
51
  case 3:
54
52
  sheet.seal();
55
53
  return [7 /*endfinally*/];
package/package.json CHANGED
@@ -17,15 +17,11 @@
17
17
  "dependencies": {},
18
18
  "peerDependencies": {
19
19
  "react": "^16.8 || ^17 || ^18",
20
- "next": "^12.1.6",
21
- "@koine/utils": "1.0.43",
20
+ "next": "^12.2.0",
21
+ "@koine/utils": "1.0.44",
22
22
  "framer-motion": "^6.3.16",
23
- "next-auth": "^4.6.1",
24
- "@mui/material": "^5.8.6",
25
- "@emotion/react": "^11.9.3",
23
+ "@koine/react": "1.0.44",
26
24
  "styled-components": "^5.3.5",
27
- "react-hook-form": "^7.33.0",
28
- "@koine/react": "1.0.43",
29
25
  "@mui/base": "^5.0.0-alpha.87",
30
26
  "react-icons": "^4.4.0",
31
27
  "date-fns": "^2.28.0",
@@ -33,15 +29,19 @@
33
29
  "@tiptap/react": "^2.0.0-beta.114",
34
30
  "@tiptap/starter-kit": "^2.0.0-beta.190",
35
31
  "@kuus/yup": "^1.0.0-beta.4",
32
+ "react-hook-form": "^7.33.0",
36
33
  "type-fest": "^2.14.0",
37
34
  "react-popper": "^2.3.0",
38
35
  "tslib": "^2.4.0",
36
+ "next-auth": "^4.7.0",
37
+ "@mui/material": "^5.8.6",
38
+ "@emotion/react": "^11.9.3",
39
39
  "@emotion/server": "^11.4.0",
40
40
  "@hookform/resolvers": "^2.9.3",
41
41
  "next-translate": "^1.4.0",
42
42
  "next-seo": "^5.4.0"
43
43
  },
44
- "version": "1.0.43",
44
+ "version": "1.0.44",
45
45
  "module": "./index.js",
46
46
  "types": "./index.d.ts"
47
47
  }