@koine/next 2.0.0-beta.21 → 2.0.0-beta.23

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.
@@ -1,7 +1,5 @@
1
- import type { HTMLMotionProps } from "framer-motion";
2
1
  import type { AppProps as NextAppProps } from "next/app";
3
2
  import React from "react";
4
- import type { MotionProviderFeatures } from "@koine/react/m";
5
3
  import type { NextProgressProps } from "../NextProgress.js";
6
4
  import type { SeoDefaultsProps } from "../SeoDefaults.js";
7
5
  export type AppMainBaseProps = NextAppProps & {
@@ -11,7 +9,3 @@ export type AppMainBaseProps = NextAppProps & {
11
9
  pre?: React.ReactNode;
12
10
  post?: React.ReactNode;
13
11
  };
14
- export type AppMainFramerProps = {
15
- motion: MotionProviderFeatures;
16
- transition?: Omit<HTMLMotionProps<"div">, "key">;
17
- };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Next Pages router utility type
3
+ */
4
+ declare type PageDataStaticPaths<
5
+ P extends import("querystring").ParsedUrlQuery,
6
+ > = import("next").GetStaticPaths<P | never>;
7
+
8
+ /**
9
+ * Next Pages router utility type
10
+ */
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ declare type PageDataStatic<P extends { [key: string]: any }> =
13
+ import("next").GetStaticProps<P, import("querystring").ParsedUrlQuery>;
14
+
15
+ /**
16
+ * Next Pages router utility type
17
+ */
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ declare type PageDataServer<P extends { [key: string]: any }> =
20
+ import("next").GetServerSideProps<P, import("querystring").ParsedUrlQuery>;
21
+
22
+ /**
23
+ * Workaround to re-create the type `RouteProperties` that is not exported by
24
+ * `next.js`
25
+ */
26
+ declare type NextRouteProperties = Parameters<
27
+ import("next/router").Router["getRouteInfo"]
28
+ >[0]["routeProps"];
29
+
30
+ /**
31
+ * Extend NodeJS `process.env` with variables used by @koine
32
+ */
33
+ declare namespace NodeJS {
34
+ interface ProcessEnv {
35
+ AUTH_ROUTE_LOGIN: string;
36
+ AUTH_ROUTE_PROFILE: string;
37
+ AUTH_ROUTE_REGISTER: string;
38
+ AUTH_ROUTES_SECURED: string;
39
+ }
40
+ }
@@ -1,3 +1,3 @@
1
- import format from "date-fns/format";
1
+ import { format } from "date-fns/format";
2
2
  export declare const useDateFormat: () => typeof format;
3
3
  export default useDateFormat;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { __assign, __read, __spreadArray } from "tslib";
3
- import format from "date-fns/format";
3
+ import { format } from "date-fns/format";
4
4
  import { useRouter } from "next/router";
5
5
  import { useEffect, useState } from "react";
6
6
  import { useDateLocale } from "@koine/react";
package/config.d.ts CHANGED
@@ -86,7 +86,7 @@ export declare function withKoine({ nx, svg, sc, page, routes, permanent, debug,
86
86
  relay?: {
87
87
  src: string;
88
88
  artifactDirectory?: string | undefined;
89
- language?: "typescript" | "flow" | "javascript" | undefined;
89
+ language?: "typescript" | "javascript" | "flow" | undefined;
90
90
  eagerEsModules?: boolean | undefined;
91
91
  } | undefined;
92
92
  removeConsole?: boolean | {
@@ -104,6 +104,11 @@ export declare function withKoine({ nx, svg, sc, page, routes, permanent, debug,
104
104
  preventFullImport?: boolean | undefined;
105
105
  skipDefaultConversion?: boolean | undefined;
106
106
  }> | undefined;
107
+ logging?: {
108
+ fetches?: {
109
+ fullUrl?: boolean | undefined;
110
+ } | undefined;
111
+ } | undefined;
107
112
  experimental?: import("next/dist/server/config-shared.js").ExperimentalConfig | undefined;
108
113
  };
109
114
  export default withKoine;
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@koine/next",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/browser": "2.0.0-beta.21",
6
- "@koine/react": "2.0.0-beta.21",
7
- "@koine/utils": "2.0.0-beta.21"
5
+ "@koine/browser": "2.0.0-beta.23",
6
+ "@koine/react": "2.0.0-beta.23",
7
+ "@koine/utils": "2.0.0-beta.23"
8
8
  },
9
9
  "peerDependenciesMeta": {
10
10
  "@hookform/resolvers": {
@@ -13,33 +13,9 @@
13
13
  "@kuus/yup": {
14
14
  "optional": true
15
15
  },
16
- "@mui/base": {
17
- "optional": true
18
- },
19
- "@mui/material": {
20
- "optional": true
21
- },
22
- "@emotion/react": {
23
- "optional": true
24
- },
25
- "@emotion/server": {
26
- "optional": true
27
- },
28
- "@emotion/styled": {
29
- "optional": true
30
- },
31
- "@tiptap/react": {
32
- "optional": true
33
- },
34
- "@tiptap/starter-kit": {
35
- "optional": true
36
- },
37
16
  "date-fns": {
38
17
  "optional": true
39
18
  },
40
- "framer-motion": {
41
- "optional": true
42
- },
43
19
  "next-auth": {
44
20
  "optional": true
45
21
  },
@@ -52,28 +28,15 @@
52
28
  "react-hook-form": {
53
29
  "optional": true
54
30
  },
55
- "react-icons": {
56
- "optional": true
57
- },
58
- "react-is": {
59
- "optional": true
60
- },
61
- "react-popper": {
62
- "optional": true
63
- },
64
31
  "react-swipeable": {
65
32
  "optional": true
66
33
  },
67
- "styled-components": {
68
- "optional": true
69
- },
70
34
  "tailwindcss": {
71
35
  "optional": true
72
36
  }
73
37
  },
74
- "types": "./index.d.ts",
75
- "type": "module",
76
38
  "module": "./index.js",
39
+ "type": "module",
77
40
  "exports": {
78
41
  ".": {
79
42
  "import": "./index.js"
@@ -218,5 +181,5 @@
218
181
  }
219
182
  },
220
183
  "peerDependencies": {},
221
- "version": "2.0.0-beta.21"
184
+ "version": "2.0.0-beta.23"
222
185
  }