@koine/next 2.0.0-alpha.1 → 2.0.0-alpha.2
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/{AnalyticsGoogle.d.ts → 12/AnalyticsGoogle.d.ts} +1 -1
- package/{AnalyticsGoogle.js → 12/AnalyticsGoogle.js} +1 -1
- package/{legacy → 12}/AnalyticsGoogle.mjs +1 -2
- package/{legacy → 12}/DisableErrorOverlay.d.ts +1 -1
- package/{Favicon.d.ts → 12/Favicon.d.ts} +1 -1
- package/{legacy → 12}/Link.js +1 -1
- package/{legacy → 12}/Link.mjs +1 -1
- package/{NextProgress.d.ts → 12/NextProgress.d.ts} +1 -1
- package/{legacy → 12}/Seo.d.ts +1 -1
- package/{SeoDefaults.d.ts → 12/SeoDefaults.d.ts} +1 -1
- package/{T.d.ts → 12/T.d.ts} +1 -0
- package/{legacy → 12}/ThemeProvider.d.ts +1 -1
- package/{ThemeProvider.js → 12/ThemeProvider.js} +2 -14
- package/{ThemeProvider.mjs → 12/ThemeProvider.mjs} +3 -15
- package/12/app/AppHead.d.ts +3 -0
- package/{legacy → 12}/app/css/AppMain.d.ts +1 -1
- package/{legacy → 12}/app/css/AppTheme.d.ts +1 -1
- package/{app → 12/app}/css/AppTheme.js +1 -2
- package/{app → 12/app}/css/AppTheme.mjs +1 -2
- package/{legacy/app/sc → 12/app/css}/auth/index.d.ts +1 -1
- package/{app → 12/app}/css/auth/index.js +1 -1
- package/{app → 12/app}/css/auth/index.mjs +1 -1
- package/{app → 12/app}/css/index.d.ts +1 -1
- package/{legacy → 12}/app/sc/AppMain.d.ts +1 -1
- package/{legacy → 12}/app/sc/AppMain.js +1 -1
- package/{app → 12/app}/sc/AppMain.mjs +1 -1
- package/{legacy → 12}/app/sc/AppTheme.d.ts +1 -1
- package/{app → 12/app}/sc/AppTheme.js +1 -2
- package/{app → 12/app}/sc/AppTheme.mjs +1 -2
- package/{legacy/app/css → 12/app/sc}/auth/index.d.ts +1 -1
- package/{app/em → 12/app/sc}/auth/index.js +1 -1
- package/{legacy/app/css → 12/app/sc}/auth/index.mjs +1 -1
- package/{legacy → 12}/app/sc/index.d.ts +1 -1
- package/{document → 12/document}/Document.d.ts +1 -2
- package/{legacy → 12}/document/Document.js +1 -1
- package/{legacy → 12}/document/Document.mjs +2 -2
- package/{legacy → 12}/document/css/index.d.ts +1 -2
- package/{document → 12/document}/css/index.js +1 -1
- package/{legacy → 12}/document/css/index.mjs +2 -2
- package/{legacy → 12}/document/sc/index.d.ts +1 -2
- package/{legacy → 12}/document/sc/index.js +1 -1
- package/{legacy → 12}/document/sc/index.mjs +1 -1
- package/{legacy → 12}/types-i18n.d.ts +1 -1
- package/{legacy → 12}/useForm.d.ts +1 -1
- package/12/useT.d.ts +4 -0
- package/{useT.js → 12/useT.js} +20 -16
- package/{legacy → 12}/useT.mjs +7 -5
- package/package.json +13 -24
- package/AnalyticsGoogle.mjs +0 -35
- package/DisableErrorOverlay.d.ts +0 -7
- package/Head.d.ts +0 -3
- package/Head.js +0 -7
- package/Head.mjs +0 -3
- package/Link.js +0 -15
- package/Link.mjs +0 -12
- package/Seo.d.ts +0 -41
- package/ThemeProvider.d.ts +0 -35
- package/app/AppHead.d.ts +0 -3
- package/app/css/AppMain.d.ts +0 -9
- package/app/css/AppTheme.d.ts +0 -11
- package/app/css/auth/index.d.ts +0 -11
- package/app/em/AppMain.d.ts +0 -11
- package/app/em/AppMain.js +0 -29
- package/app/em/AppMain.mjs +0 -25
- package/app/em/AppTheme.d.ts +0 -16
- package/app/em/AppTheme.js +0 -23
- package/app/em/AppTheme.mjs +0 -19
- package/app/em/auth/index.d.ts +0 -11
- package/app/em/auth/index.mjs +0 -13
- package/app/em/index.d.ts +0 -9
- package/app/em/index.js +0 -16
- package/app/em/index.mjs +0 -12
- package/app/sc/AppMain.d.ts +0 -11
- package/app/sc/AppMain.js +0 -29
- package/app/sc/AppTheme.d.ts +0 -14
- package/app/sc/auth/index.d.ts +0 -11
- package/app/sc/auth/index.js +0 -17
- package/app/sc/auth/index.mjs +0 -13
- package/app/sc/index.d.ts +0 -56
- package/auth/helpers.d.ts +0 -17
- package/auth/helpers.js +0 -28
- package/auth/helpers.mjs +0 -22
- package/auth/index.d.ts +0 -4
- package/auth/index.js +0 -7
- package/auth/index.mjs +0 -4
- package/auth/useLogin.d.ts +0 -8
- package/auth/useLogin.js +0 -54
- package/auth/useLogin.mjs +0 -50
- package/auth/useLoginUrl.d.ts +0 -2
- package/auth/useLoginUrl.js +0 -17
- package/auth/useLoginUrl.mjs +0 -13
- package/auth/useLogout.d.ts +0 -7
- package/auth/useLogout.js +0 -59
- package/auth/useLogout.mjs +0 -54
- package/createEmotionCache.d.ts +0 -6
- package/createEmotionCache.js +0 -14
- package/createEmotionCache.mjs +0 -9
- package/document/Document.js +0 -31
- package/document/Document.mjs +0 -28
- package/document/css/index.d.ts +0 -18
- package/document/css/index.mjs +0 -45
- package/document/em/index.d.ts +0 -16
- package/document/em/index.js +0 -63
- package/document/em/index.mjs +0 -60
- package/document/em/package.json +0 -6
- package/document/package.json +0 -6
- package/document/sc/index.d.ts +0 -20
- package/document/sc/index.js +0 -67
- package/document/sc/index.mjs +0 -64
- package/document/sc/package.json +0 -6
- package/legacy/AnalyticsGoogle.d.ts +0 -6
- package/legacy/AnalyticsGoogle.js +0 -39
- package/legacy/DisableErrorOverlay.js +0 -18
- package/legacy/DisableErrorOverlay.mjs +0 -13
- package/legacy/DynamicNamespaces.d.ts +0 -13
- package/legacy/DynamicNamespaces.js +0 -13
- package/legacy/DynamicNamespaces.mjs +0 -9
- package/legacy/Favicon.d.ts +0 -4
- package/legacy/Favicon.js +0 -10
- package/legacy/Favicon.mjs +0 -6
- package/legacy/Link.d.ts +0 -10
- package/legacy/NextProgress.d.ts +0 -25
- package/legacy/NextProgress.js +0 -46
- package/legacy/NextProgress.mjs +0 -42
- package/legacy/Seo.js +0 -34
- package/legacy/Seo.mjs +0 -29
- package/legacy/SeoDefaults.d.ts +0 -11
- package/legacy/SeoDefaults.js +0 -17
- package/legacy/SeoDefaults.mjs +0 -12
- package/legacy/T.d.ts +0 -15
- package/legacy/T.js +0 -17
- package/legacy/T.mjs +0 -13
- package/legacy/ThemeContext.d.ts +0 -17
- package/legacy/ThemeContext.js +0 -10
- package/legacy/ThemeContext.mjs +0 -7
- package/legacy/ThemeProvider.js +0 -251
- package/legacy/ThemeProvider.mjs +0 -247
- package/legacy/TransText.d.ts +0 -3
- package/legacy/TransText.js +0 -8
- package/legacy/TransText.mjs +0 -4
- package/legacy/app/AppHead.d.ts +0 -3
- package/legacy/app/AppHead.js +0 -11
- package/legacy/app/AppHead.mjs +0 -6
- package/legacy/app/AppMain.d.ts +0 -35
- package/legacy/app/AppMain.js +0 -2
- package/legacy/app/AppMain.mjs +0 -1
- package/legacy/app/css/AppMain.js +0 -18
- package/legacy/app/css/AppMain.mjs +0 -14
- package/legacy/app/css/AppTheme.js +0 -19
- package/legacy/app/css/AppTheme.mjs +0 -15
- package/legacy/app/css/auth/index.js +0 -17
- package/legacy/app/css/auth/package.json +0 -6
- package/legacy/app/css/index.d.ts +0 -54
- package/legacy/app/css/index.js +0 -61
- package/legacy/app/css/index.mjs +0 -57
- package/legacy/app/css/package.json +0 -6
- package/legacy/app/index.d.ts +0 -2
- package/legacy/app/index.js +0 -5
- package/legacy/app/index.mjs +0 -2
- package/legacy/app/package.json +0 -6
- package/legacy/app/sc/AppMain.mjs +0 -25
- package/legacy/app/sc/AppTheme.js +0 -16
- package/legacy/app/sc/AppTheme.mjs +0 -12
- package/legacy/app/sc/auth/index.js +0 -17
- package/legacy/app/sc/auth/index.mjs +0 -13
- package/legacy/app/sc/auth/package.json +0 -6
- package/legacy/app/sc/index.js +0 -63
- package/legacy/app/sc/index.mjs +0 -59
- package/legacy/app/sc/package.json +0 -6
- package/legacy/document/Document.d.ts +0 -16
- package/legacy/document/css/index.js +0 -45
- package/legacy/document/css/package.json +0 -6
- package/legacy/document/index.d.ts +0 -2
- package/legacy/document/index.js +0 -7
- package/legacy/document/index.mjs +0 -2
- package/legacy/document/package.json +0 -6
- package/legacy/document/sc/package.json +0 -6
- package/legacy/getT.d.ts +0 -9
- package/legacy/getT.js +0 -14
- package/legacy/getT.mjs +0 -10
- package/legacy/package.json +0 -6
- package/legacy/useT.d.ts +0 -17
- package/legacy/useT.js +0 -40
- package/revalidate.d.ts +0 -5
- package/revalidate.js +0 -8
- package/revalidate.mjs +0 -5
- package/seoBuildTags.d.ts +0 -23
- package/seoBuildTags.js +0 -121
- package/seoBuildTags.mjs +0 -117
- package/to.d.ts +0 -24
- package/to.js +0 -29
- package/to.mjs +0 -25
- package/translationAsOptions.d.ts +0 -3
- package/translationAsOptions.js +0 -13
- package/translationAsOptions.mjs +0 -9
- package/types-i18n.d.ts +0 -118
- package/types-i18n.js +0 -14
- package/types-i18n.mjs +0 -13
- package/types-seo.d.ts +0 -7
- package/types-seo.js +0 -2
- package/types-seo.mjs +0 -1
- package/useBackUrl.d.ts +0 -2
- package/useBackUrl.js +0 -33
- package/useBackUrl.mjs +0 -28
- package/useDateFormat.d.ts +0 -7
- package/useDateFormat.js +0 -43
- package/useDateFormat.mjs +0 -39
- package/useForm.d.ts +0 -27
- package/useForm.js +0 -39
- package/useForm.mjs +0 -35
- package/useLocale.d.ts +0 -2
- package/useLocale.js +0 -11
- package/useLocale.mjs +0 -6
- package/useT.d.ts +0 -17
- package/useT.mjs +0 -19
- package/useTheme.d.ts +0 -7
- package/useTheme.js +0 -12
- package/useTheme.mjs +0 -8
- package/useTo.d.ts +0 -3
- package/useTo.js +0 -19
- package/useTo.mjs +0 -15
- /package/{DisableErrorOverlay.js → 12/DisableErrorOverlay.js} +0 -0
- /package/{DisableErrorOverlay.mjs → 12/DisableErrorOverlay.mjs} +0 -0
- /package/{DynamicNamespaces.d.ts → 12/DynamicNamespaces.d.ts} +0 -0
- /package/{DynamicNamespaces.js → 12/DynamicNamespaces.js} +0 -0
- /package/{DynamicNamespaces.mjs → 12/DynamicNamespaces.mjs} +0 -0
- /package/{Favicon.js → 12/Favicon.js} +0 -0
- /package/{Favicon.mjs → 12/Favicon.mjs} +0 -0
- /package/{Link.d.ts → 12/Link.d.ts} +0 -0
- /package/{NextProgress.js → 12/NextProgress.js} +0 -0
- /package/{NextProgress.mjs → 12/NextProgress.mjs} +0 -0
- /package/{Seo.js → 12/Seo.js} +0 -0
- /package/{Seo.mjs → 12/Seo.mjs} +0 -0
- /package/{SeoDefaults.js → 12/SeoDefaults.js} +0 -0
- /package/{SeoDefaults.mjs → 12/SeoDefaults.mjs} +0 -0
- /package/{T.js → 12/T.js} +0 -0
- /package/{T.mjs → 12/T.mjs} +0 -0
- /package/{ThemeContext.d.ts → 12/ThemeContext.d.ts} +0 -0
- /package/{ThemeContext.js → 12/ThemeContext.js} +0 -0
- /package/{ThemeContext.mjs → 12/ThemeContext.mjs} +0 -0
- /package/{TransText.d.ts → 12/TransText.d.ts} +0 -0
- /package/{TransText.js → 12/TransText.js} +0 -0
- /package/{TransText.mjs → 12/TransText.mjs} +0 -0
- /package/{app → 12/app}/AppHead.js +0 -0
- /package/{app → 12/app}/AppHead.mjs +0 -0
- /package/{app → 12/app}/AppMain.d.ts +0 -0
- /package/{app → 12/app}/AppMain.js +0 -0
- /package/{app → 12/app}/AppMain.mjs +0 -0
- /package/{app → 12/app}/css/AppMain.js +0 -0
- /package/{app → 12/app}/css/AppMain.mjs +0 -0
- /package/{app → 12/app}/css/auth/package.json +0 -0
- /package/{app → 12/app}/css/index.js +0 -0
- /package/{app → 12/app}/css/index.mjs +0 -0
- /package/{app → 12/app}/css/package.json +0 -0
- /package/{app → 12/app}/index.d.ts +0 -0
- /package/{app → 12/app}/index.js +0 -0
- /package/{app → 12/app}/index.mjs +0 -0
- /package/{app/em/auth → 12/app}/package.json +0 -0
- /package/{app/em → 12/app/sc/auth}/package.json +0 -0
- /package/{app → 12/app}/sc/index.js +0 -0
- /package/{app → 12/app}/sc/index.mjs +0 -0
- /package/{app → 12/app/sc}/package.json +0 -0
- /package/{app/sc/auth → 12/document/css}/package.json +0 -0
- /package/{document → 12/document}/index.d.ts +0 -0
- /package/{document → 12/document}/index.js +0 -0
- /package/{document → 12/document}/index.mjs +0 -0
- /package/{app/sc → 12/document}/package.json +0 -0
- /package/{auth → 12/document/sc}/package.json +0 -0
- /package/{getT.d.ts → 12/getT.d.ts} +0 -0
- /package/{getT.js → 12/getT.js} +0 -0
- /package/{getT.mjs → 12/getT.mjs} +0 -0
- /package/{legacy → 12}/index.d.ts +0 -0
- /package/{legacy → 12}/index.js +0 -0
- /package/{legacy → 12}/index.mjs +0 -0
- /package/{document/css → 12}/package.json +0 -0
- /package/{legacy → 12}/seoBuildTags.d.ts +0 -0
- /package/{legacy → 12}/seoBuildTags.js +0 -0
- /package/{legacy → 12}/seoBuildTags.mjs +0 -0
- /package/{legacy → 12}/to.d.ts +0 -0
- /package/{legacy → 12}/to.js +0 -0
- /package/{legacy → 12}/to.mjs +0 -0
- /package/{legacy → 12}/translationAsOptions.d.ts +0 -0
- /package/{legacy → 12}/translationAsOptions.js +0 -0
- /package/{legacy → 12}/translationAsOptions.mjs +0 -0
- /package/{legacy → 12}/types-i18n.js +0 -0
- /package/{legacy → 12}/types-i18n.mjs +0 -0
- /package/{legacy → 12}/types-seo.d.ts +0 -0
- /package/{legacy → 12}/types-seo.js +0 -0
- /package/{legacy → 12}/types-seo.mjs +0 -0
- /package/{legacy → 12}/useBackUrl.d.ts +0 -0
- /package/{legacy → 12}/useBackUrl.js +0 -0
- /package/{legacy → 12}/useBackUrl.mjs +0 -0
- /package/{legacy → 12}/useDateFormat.d.ts +0 -0
- /package/{legacy → 12}/useDateFormat.js +0 -0
- /package/{legacy → 12}/useDateFormat.mjs +0 -0
- /package/{legacy → 12}/useForm.js +0 -0
- /package/{legacy → 12}/useForm.mjs +0 -0
- /package/{legacy → 12}/useLocale.d.ts +0 -0
- /package/{legacy → 12}/useLocale.js +0 -0
- /package/{legacy → 12}/useLocale.mjs +0 -0
- /package/{legacy → 12}/useTheme.d.ts +0 -0
- /package/{legacy → 12}/useTheme.js +0 -0
- /package/{legacy → 12}/useTheme.mjs +0 -0
- /package/{legacy → 12}/useTo.d.ts +0 -0
- /package/{legacy → 12}/useTo.js +0 -0
- /package/{legacy → 12}/useTo.mjs +0 -0
package/package.json
CHANGED
|
@@ -67,38 +67,27 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@hookform/resolvers": "^
|
|
70
|
+
"@hookform/resolvers": "^3.1.0",
|
|
71
71
|
"@kuus/yup": "1.0.0-beta.7",
|
|
72
|
-
"@mui/base": "5.0.0-alpha.118",
|
|
73
|
-
"@mui/utils": "5.11.9",
|
|
74
|
-
"@tiptap/react": "2.0.0-beta.218",
|
|
75
|
-
"@tiptap/starter-kit": "2.0.0-beta.218",
|
|
76
72
|
"clsx": "1.2.1",
|
|
77
|
-
"date-fns": "^2.
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"next": "^
|
|
81
|
-
"next-
|
|
82
|
-
"next-
|
|
83
|
-
"next-translate": "^2.0.2",
|
|
73
|
+
"date-fns": "^2.30.0",
|
|
74
|
+
"framer-motion": "^10.12.16",
|
|
75
|
+
"next": "^13.4.4",
|
|
76
|
+
"next-auth": "^4.22.1",
|
|
77
|
+
"next-seo": "^6.0.0",
|
|
78
|
+
"next-translate": "^2.0.6",
|
|
84
79
|
"react": "^18.2.0",
|
|
85
|
-
"react-
|
|
86
|
-
"
|
|
87
|
-
"react-icons": "^4.7.1",
|
|
88
|
-
"react-is": "^18.2.0",
|
|
89
|
-
"react-swipeable": "^7.0.0",
|
|
90
|
-
"styled-components": "^5.3.6",
|
|
80
|
+
"react-hook-form": "^7.44.3",
|
|
81
|
+
"styled-components": "^5.3.11",
|
|
91
82
|
"ts-debounce": "^4.0.0",
|
|
92
|
-
"
|
|
93
|
-
"type-fest": "^3.6.0"
|
|
83
|
+
"type-fest": "^3.11.1"
|
|
94
84
|
},
|
|
95
85
|
"peerDependencies": {
|
|
96
|
-
"@koine/
|
|
97
|
-
"
|
|
98
|
-
"@koine/utils": "2.0.0-alpha.1"
|
|
86
|
+
"@koine/utils": "2.0.0-alpha.1",
|
|
87
|
+
"tslib": "2.5.3"
|
|
99
88
|
},
|
|
100
89
|
"main": "./index.js",
|
|
101
90
|
"types": "./index.d.ts",
|
|
102
|
-
"version": "2.0.0-alpha.
|
|
91
|
+
"version": "2.0.0-alpha.2",
|
|
103
92
|
"module": "./index.mjs"
|
|
104
93
|
}
|
package/AnalyticsGoogle.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { __assign } from "tslib";
|
|
3
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { useState, useEffect } from "react";
|
|
5
|
-
import { useRouter } from "next/router";
|
|
6
|
-
import Script from "next/script";
|
|
7
|
-
import gtagPageview from "@koine/browser/gtagPageview";
|
|
8
|
-
export var AnalyticsGoogle = function (_a) {
|
|
9
|
-
var id = _a.id;
|
|
10
|
-
var uid = id || process.env["NEXT_PUBLIC_GTM_ID"];
|
|
11
|
-
var _b = useRouter(), events = _b.events, asPath = _b.asPath, query = _b.query;
|
|
12
|
-
var _c = useState(false), ready = _c[0], setReady = _c[1];
|
|
13
|
-
var _d = useState(false), routed = _d[0], setRouted = _d[1];
|
|
14
|
-
// const [url, setUrl] = useState("");
|
|
15
|
-
useEffect(function () {
|
|
16
|
-
var handleRouteChange = function () {
|
|
17
|
-
setRouted(true);
|
|
18
|
-
};
|
|
19
|
-
events.on("routeChangeComplete", handleRouteChange);
|
|
20
|
-
return function () {
|
|
21
|
-
events.off("routeChangeComplete", handleRouteChange);
|
|
22
|
-
};
|
|
23
|
-
}, [events]);
|
|
24
|
-
useEffect(function () {
|
|
25
|
-
if (routed && ready && asPath) {
|
|
26
|
-
// const search = query;
|
|
27
|
-
gtagPageview(asPath);
|
|
28
|
-
}
|
|
29
|
-
}, [asPath, query, routed, ready]);
|
|
30
|
-
if (!uid) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
return (_jsxs(_Fragment, { children: [_jsx(Script, { id: "google-tagmanager", src: "https://www.googletagmanager.com/gtag/js?id=".concat(id), strategy: "afterInteractive", onLoad: function () { return setReady(true); } }), _jsx(Script, __assign({ id: "google-analytics", strategy: "afterInteractive" }, { children: "\n window.dataLayer = window.dataLayer || [];\n function gtag(){window.dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '".concat(id, "', { 'send_page_view': false });\n ") }))] }));
|
|
34
|
-
};
|
|
35
|
-
export default AnalyticsGoogle;
|
package/DisableErrorOverlay.d.ts
DELETED
package/Head.d.ts
DELETED
package/Head.js
DELETED
package/Head.mjs
DELETED
package/Link.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Link = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
var react_1 = require("react");
|
|
7
|
-
var link_1 = tslib_1.__importDefault(require("next/link"));
|
|
8
|
-
/**
|
|
9
|
-
* @see https://next.js.org/docs/api-reference/next/link
|
|
10
|
-
*/
|
|
11
|
-
exports.Link = (0, react_1.forwardRef)(function Link(_a, ref) {
|
|
12
|
-
var href = _a.href, prefetch = _a.prefetch, replace = _a.replace, scroll = _a.scroll, shallow = _a.shallow, locale = _a.locale, _b = _a.Link, Link = _b === void 0 ? "span" : _b, props = tslib_1.__rest(_a, ["href", "prefetch", "replace", "scroll", "shallow", "locale", "Link"]);
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(link_1.default, tslib_1.__assign({ href: href, replace: replace, scroll: scroll, shallow: shallow, locale: locale, passHref: true }, { children: (0, jsx_runtime_1.jsx)(Link, tslib_1.__assign({ ref: ref }, props)) })));
|
|
14
|
-
});
|
|
15
|
-
exports.default = exports.Link;
|
package/Link.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __assign, __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import NextLink from "next/link";
|
|
5
|
-
/**
|
|
6
|
-
* @see https://next.js.org/docs/api-reference/next/link
|
|
7
|
-
*/
|
|
8
|
-
export var Link = forwardRef(function Link(_a, ref) {
|
|
9
|
-
var href = _a.href, prefetch = _a.prefetch, replace = _a.replace, scroll = _a.scroll, shallow = _a.shallow, locale = _a.locale, _b = _a.Link, Link = _b === void 0 ? "span" : _b, props = __rest(_a, ["href", "prefetch", "replace", "scroll", "shallow", "locale", "Link"]);
|
|
10
|
-
return (_jsx(NextLink, __assign({ href: href, replace: replace, scroll: scroll, shallow: shallow, locale: locale, passHref: true }, { children: _jsx(Link, __assign({ ref: ref }, props)) })));
|
|
11
|
-
});
|
|
12
|
-
export default Link;
|
package/Seo.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { NextSeoProps } from "next-seo/lib/types";
|
|
2
|
-
import type { SeoData } from "./types-seo";
|
|
3
|
-
import { type MetaTag, type LinkTag } from "./seoBuildTags";
|
|
4
|
-
type SeoPropsOpenGraph = NextSeoProps["openGraph"] & {
|
|
5
|
-
image?: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* @see https://github.com/garmeeh/next-seo/blob/master/src/types.ts#L395
|
|
9
|
-
*/
|
|
10
|
-
export type SeoProps = Omit<NextSeoProps, "additionalMetaTags" | "additionalLinkTags" | "mobileAlternate" | "robotsProps"> & {
|
|
11
|
-
metaTags?: ReadonlyArray<MetaTag>;
|
|
12
|
-
linkTags?: ReadonlyArray<LinkTag>;
|
|
13
|
-
seo?: SeoData;
|
|
14
|
-
hidden?: SeoData["hidden"];
|
|
15
|
-
keywords?: SeoData["keywords"];
|
|
16
|
-
openGraph?: SeoPropsOpenGraph;
|
|
17
|
-
og?: SeoPropsOpenGraph;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Adapted from [garmeeh/next-seo](https://github.com/garmeeh/next-seo)
|
|
21
|
-
*
|
|
22
|
-
* See also:
|
|
23
|
-
* - https://github.com/catnose99/next-head-seo
|
|
24
|
-
* - https://nextjs.org/docs/api-reference/next/head
|
|
25
|
-
*
|
|
26
|
-
* NB: on the homepage you usually want to customize the `titleTemplate` to avoid
|
|
27
|
-
* doubled app name. Assuming your default seo configuration is something like:
|
|
28
|
-
*
|
|
29
|
-
* ```js
|
|
30
|
-
* {
|
|
31
|
-
* titleTemplate: "%s | MyApp"
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* On the homepage you migh want to override it, e.g.:
|
|
36
|
-
* ```js
|
|
37
|
-
* <Seo title="MyApp | Some description" titleTemplate="%s" />
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare const Seo: (props: SeoProps) => JSX.Element;
|
|
41
|
-
export default Seo;
|
package/ThemeProvider.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type ValueObject = {
|
|
3
|
-
[themeName: string]: string;
|
|
4
|
-
};
|
|
5
|
-
export type ThemeProviderProps = React.PropsWithChildren<{
|
|
6
|
-
/** List of all available theme names */
|
|
7
|
-
themes?: string[];
|
|
8
|
-
/** Forced theme name for the current page */
|
|
9
|
-
forcedTheme?: string;
|
|
10
|
-
/** Whether to switch between dark and light themes based on prefers-color-scheme */
|
|
11
|
-
enableSystem?: boolean;
|
|
12
|
-
/** Disable all CSS transitions when switching themes */
|
|
13
|
-
disableTransitionOnChange?: boolean;
|
|
14
|
-
/** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
|
|
15
|
-
enableColorScheme?: boolean;
|
|
16
|
-
/** Default theme name (for v0.0.12 and lower the default was light). If `enableSystem` is false, the default theme is light */
|
|
17
|
-
defaultTheme?: string;
|
|
18
|
-
/** HTML attribute modified based on the active theme. Accepts `class` and `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.) */
|
|
19
|
-
attribute?: string | "class";
|
|
20
|
-
/** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */
|
|
21
|
-
value?: ValueObject;
|
|
22
|
-
/** Nonce string to pass to the inline script for CSP headers */
|
|
23
|
-
nonce?: string;
|
|
24
|
-
}>;
|
|
25
|
-
/**
|
|
26
|
-
* @borrows [next-themes](https://github.com/pacocoursey/next-themes)
|
|
27
|
-
*
|
|
28
|
-
* Differences:
|
|
29
|
-
*
|
|
30
|
-
* - enableColorScheme: `false` by default (instead of `true`), this plays more
|
|
31
|
-
* nicely with tailwind `dark` class mode as dark theme is supposed to be only
|
|
32
|
-
* controlled by tailwind modifiers
|
|
33
|
-
*/
|
|
34
|
-
export declare const ThemeProvider: ({ forcedTheme, disableTransitionOnChange, enableSystem, enableColorScheme, themes, defaultTheme, attribute, value, children, nonce, }: ThemeProviderProps) => JSX.Element;
|
|
35
|
-
export default ThemeProvider;
|
package/app/AppHead.d.ts
DELETED
package/app/css/AppMain.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AppMainBaseProps } from "../AppMain";
|
|
2
|
-
export type AppMainProps = Omit<AppMainBaseProps, "ProgressOverlay">;
|
|
3
|
-
/**
|
|
4
|
-
* App main
|
|
5
|
-
*
|
|
6
|
-
* It does not imply any specific styling or animation solution
|
|
7
|
-
*/
|
|
8
|
-
export declare const AppMain: ({ Component, pageProps, Layout, seo, pre, post, }: AppMainProps) => JSX.Element;
|
|
9
|
-
export default AppMain;
|
package/app/css/AppTheme.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { type ThemeProviderProps } from "../../ThemeProvider";
|
|
4
|
-
export type AppThemeProps = React.PropsWithChildren<NextAppProps & {
|
|
5
|
-
theme: ThemeProviderProps["defaultTheme"];
|
|
6
|
-
}>;
|
|
7
|
-
/**
|
|
8
|
-
* App theme with vanilla class based theme (good for `tailwindcss`)
|
|
9
|
-
*/
|
|
10
|
-
export declare const AppTheme: ({ theme, children }: AppThemeProps) => JSX.Element;
|
|
11
|
-
export default AppTheme;
|
package/app/css/auth/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AppProps } from "next/app";
|
|
2
|
-
import { AppThemeProps } from "../AppTheme";
|
|
3
|
-
import { AppMainProps } from "../AppMain";
|
|
4
|
-
export type NextAppProps = AppProps<{
|
|
5
|
-
session: any;
|
|
6
|
-
}> & AppThemeProps & AppMainProps;
|
|
7
|
-
/**
|
|
8
|
-
* App with authentication provided by `next-auth`
|
|
9
|
-
*/
|
|
10
|
-
export declare const NextApp: (props: NextAppProps) => JSX.Element;
|
|
11
|
-
export default NextApp;
|
package/app/em/AppMain.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AppMainBaseProps, AppMainFramerProps } from "../AppMain";
|
|
2
|
-
export type AppMainProps = AppMainBaseProps & AppMainFramerProps;
|
|
3
|
-
/**
|
|
4
|
-
* App main
|
|
5
|
-
*
|
|
6
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
7
|
-
*
|
|
8
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
9
|
-
*/
|
|
10
|
-
export declare const AppMain: ({ Component, pageProps, Layout, ProgressOverlay, seo, motion, transition, pre, post, }: AppMainProps) => JSX.Element;
|
|
11
|
-
export default AppMain;
|
package/app/em/AppMain.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppMain = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = require("react");
|
|
6
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
var router_1 = require("next/router");
|
|
8
|
-
var framer_motion_1 = require("framer-motion");
|
|
9
|
-
var MotionProvider_1 = tslib_1.__importDefault(require("@koine/react/m/MotionProvider"));
|
|
10
|
-
var SeoDefaults_1 = require("../../SeoDefaults");
|
|
11
|
-
var NextProgress_1 = require("../../NextProgress");
|
|
12
|
-
/**
|
|
13
|
-
* App main
|
|
14
|
-
*
|
|
15
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
16
|
-
*
|
|
17
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
18
|
-
*/
|
|
19
|
-
var AppMain = function (_a) {
|
|
20
|
-
var Component = _a.Component, pageProps = _a.pageProps, Layout = _a.Layout, ProgressOverlay = _a.ProgressOverlay, seo = _a.seo, motion = _a.motion, _b = _a.transition, transition = _b === void 0 ? {
|
|
21
|
-
initial: { opacity: 0 },
|
|
22
|
-
animate: { opacity: 1 },
|
|
23
|
-
exit: { opacity: 0 },
|
|
24
|
-
} : _b, pre = _a.pre, post = _a.post;
|
|
25
|
-
var pathname = (0, router_1.useRouter)().pathname;
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SeoDefaults_1.SeoDefaults, tslib_1.__assign({}, seo)), pre, (0, jsx_runtime_1.jsxs)(MotionProvider_1.default, tslib_1.__assign({ features: motion }, { children: [ProgressOverlay && (0, jsx_runtime_1.jsx)(NextProgress_1.NextProgress, { Overlay: ProgressOverlay }), (0, jsx_runtime_1.jsx)(Layout, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, tslib_1.__assign({ exitBeforeEnter: true, initial: false }, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.m.div, tslib_1.__assign({}, transition, { children: (0, react_1.createElement)(Component, tslib_1.__assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
|
|
27
|
-
};
|
|
28
|
-
exports.AppMain = AppMain;
|
|
29
|
-
exports.default = exports.AppMain;
|
package/app/em/AppMain.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
|
-
import { createElement as _createElement } from "react";
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
|
-
import { useRouter } from "next/router";
|
|
5
|
-
import { AnimatePresence, m } from "framer-motion";
|
|
6
|
-
import MotionProvider from "@koine/react/m/MotionProvider";
|
|
7
|
-
import { SeoDefaults } from "../../SeoDefaults";
|
|
8
|
-
import { NextProgress } from "../../NextProgress";
|
|
9
|
-
/**
|
|
10
|
-
* App main
|
|
11
|
-
*
|
|
12
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
13
|
-
*
|
|
14
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
15
|
-
*/
|
|
16
|
-
export var AppMain = function (_a) {
|
|
17
|
-
var Component = _a.Component, pageProps = _a.pageProps, Layout = _a.Layout, ProgressOverlay = _a.ProgressOverlay, seo = _a.seo, motion = _a.motion, _b = _a.transition, transition = _b === void 0 ? {
|
|
18
|
-
initial: { opacity: 0 },
|
|
19
|
-
animate: { opacity: 1 },
|
|
20
|
-
exit: { opacity: 0 },
|
|
21
|
-
} : _b, pre = _a.pre, post = _a.post;
|
|
22
|
-
var pathname = useRouter().pathname;
|
|
23
|
-
return (_jsxs(_Fragment, { children: [_jsx(SeoDefaults, __assign({}, seo)), pre, _jsxs(MotionProvider, __assign({ features: motion }, { children: [ProgressOverlay && _jsx(NextProgress, { Overlay: ProgressOverlay }), _jsx(Layout, { children: _jsx(AnimatePresence, __assign({ exitBeforeEnter: true, initial: false }, { children: _jsx(m.div, __assign({}, transition, { children: _createElement(Component, __assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
|
|
24
|
-
};
|
|
25
|
-
export default AppMain;
|
package/app/em/AppTheme.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { Theme } from "@mui/material/styles";
|
|
4
|
-
import { EmotionCache } from "@emotion/react";
|
|
5
|
-
export type AppThemeProps = React.PropsWithChildren<NextAppProps & {
|
|
6
|
-
emotionCache?: EmotionCache;
|
|
7
|
-
/**
|
|
8
|
-
* A theme object
|
|
9
|
-
*/
|
|
10
|
-
theme: Theme;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* App theme with `emotion` (good for `@mui`)s
|
|
14
|
-
*/
|
|
15
|
-
export declare const AppTheme: ({ emotionCache, theme, children, }: AppThemeProps) => JSX.Element;
|
|
16
|
-
export default AppTheme;
|
package/app/em/AppTheme.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppTheme = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
var styles_1 = require("@mui/material/styles");
|
|
7
|
-
var react_1 = require("@emotion/react");
|
|
8
|
-
var CssBaseline_1 = tslib_1.__importDefault(require("@mui/material/CssBaseline"));
|
|
9
|
-
var react_2 = require("@emotion/react");
|
|
10
|
-
var sc_1 = require("@koine/react/sc");
|
|
11
|
-
var createEmotionCache_1 = require("../../createEmotionCache");
|
|
12
|
-
// client-side cache, shared for the whole session of the user in the browser.
|
|
13
|
-
var clientSideEmotionCache = (0, createEmotionCache_1.createEmotionCache)();
|
|
14
|
-
/**
|
|
15
|
-
* App theme with `emotion` (good for `@mui`)s
|
|
16
|
-
*/
|
|
17
|
-
var AppTheme = function (_a) {
|
|
18
|
-
var _b = _a.emotionCache, emotionCache = _b === void 0 ? clientSideEmotionCache : _b, theme = _a.theme, children = _a.children;
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(react_1.CacheProvider, tslib_1.__assign({ value: emotionCache }, { children: (0, jsx_runtime_1.jsxs)(styles_1.ThemeProvider, tslib_1.__assign({ theme: theme }, { children: [(0, jsx_runtime_1.jsx)(CssBaseline_1.default, {}), (0, jsx_runtime_1.jsx)(react_2.Global, { styles: (0, react_2.css)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), sc_1.stylesGlobal) }), children] })) })));
|
|
20
|
-
};
|
|
21
|
-
exports.AppTheme = AppTheme;
|
|
22
|
-
exports.default = exports.AppTheme;
|
|
23
|
-
var templateObject_1;
|
package/app/em/AppTheme.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __assign, __makeTemplateObject } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { ThemeProvider } from "@mui/material/styles";
|
|
4
|
-
import { CacheProvider } from "@emotion/react";
|
|
5
|
-
import CssBaseline from "@mui/material/CssBaseline";
|
|
6
|
-
import { Global, css } from "@emotion/react";
|
|
7
|
-
import { stylesGlobal } from "@koine/react/sc";
|
|
8
|
-
import { createEmotionCache } from "../../createEmotionCache";
|
|
9
|
-
// client-side cache, shared for the whole session of the user in the browser.
|
|
10
|
-
var clientSideEmotionCache = createEmotionCache();
|
|
11
|
-
/**
|
|
12
|
-
* App theme with `emotion` (good for `@mui`)s
|
|
13
|
-
*/
|
|
14
|
-
export var AppTheme = function (_a) {
|
|
15
|
-
var _b = _a.emotionCache, emotionCache = _b === void 0 ? clientSideEmotionCache : _b, theme = _a.theme, children = _a.children;
|
|
16
|
-
return (_jsx(CacheProvider, __assign({ value: emotionCache }, { children: _jsxs(ThemeProvider, __assign({ theme: theme }, { children: [_jsx(CssBaseline, {}), _jsx(Global, { styles: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), stylesGlobal) }), children] })) })));
|
|
17
|
-
};
|
|
18
|
-
export default AppTheme;
|
|
19
|
-
var templateObject_1;
|
package/app/em/auth/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AppProps } from "next/app";
|
|
2
|
-
import { AppThemeProps } from "../AppTheme";
|
|
3
|
-
import { AppMainProps } from "../AppMain";
|
|
4
|
-
export type NextAppProps = AppProps<{
|
|
5
|
-
session: any;
|
|
6
|
-
}> & AppThemeProps & AppMainProps;
|
|
7
|
-
/**
|
|
8
|
-
* App with authentication provided by `next-auth`
|
|
9
|
-
*/
|
|
10
|
-
export declare const NextApp: (props: NextAppProps) => JSX.Element;
|
|
11
|
-
export default NextApp;
|
package/app/em/auth/index.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { SessionProvider } from "next-auth/react";
|
|
4
|
-
import { AppHead } from "../../AppHead";
|
|
5
|
-
import { AppTheme } from "../AppTheme";
|
|
6
|
-
import { AppMain } from "../AppMain";
|
|
7
|
-
/**
|
|
8
|
-
* App with authentication provided by `next-auth`
|
|
9
|
-
*/
|
|
10
|
-
export var NextApp = function (props) {
|
|
11
|
-
return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(SessionProvider, __assign({ session: props.pageProps.session }, { children: _jsx(AppTheme, __assign({}, props, { children: _jsx(AppMain, __assign({}, props)) })) }))] }));
|
|
12
|
-
};
|
|
13
|
-
export default NextApp;
|
package/app/em/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AppProps } from "next/app";
|
|
2
|
-
import { AppThemeProps } from "./AppTheme";
|
|
3
|
-
import { AppMainProps } from "./AppMain";
|
|
4
|
-
export type NextAppProps = AppProps & AppThemeProps & AppMainProps;
|
|
5
|
-
/**
|
|
6
|
-
* App
|
|
7
|
-
*/
|
|
8
|
-
export declare const NextApp: (props: NextAppProps) => JSX.Element;
|
|
9
|
-
export default NextApp;
|
package/app/em/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NextApp = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
var AppHead_1 = require("../AppHead");
|
|
7
|
-
var AppTheme_1 = require("./AppTheme");
|
|
8
|
-
var AppMain_1 = require("./AppMain");
|
|
9
|
-
/**
|
|
10
|
-
* App
|
|
11
|
-
*/
|
|
12
|
-
var NextApp = function (props) {
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(AppHead_1.AppHead, {}), (0, jsx_runtime_1.jsx)(AppTheme_1.AppTheme, tslib_1.__assign({}, props, { children: (0, jsx_runtime_1.jsx)(AppMain_1.AppMain, tslib_1.__assign({}, props)) }))] }));
|
|
14
|
-
};
|
|
15
|
-
exports.NextApp = NextApp;
|
|
16
|
-
exports.default = exports.NextApp;
|
package/app/em/index.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { AppHead } from "../AppHead";
|
|
4
|
-
import { AppTheme } from "./AppTheme";
|
|
5
|
-
import { AppMain } from "./AppMain";
|
|
6
|
-
/**
|
|
7
|
-
* App
|
|
8
|
-
*/
|
|
9
|
-
export var NextApp = function (props) {
|
|
10
|
-
return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(AppTheme, __assign({}, props, { children: _jsx(AppMain, __assign({}, props)) }))] }));
|
|
11
|
-
};
|
|
12
|
-
export default NextApp;
|
package/app/sc/AppMain.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AppMainBaseProps, AppMainFramerProps } from "../AppMain";
|
|
2
|
-
export type AppMainProps = AppMainBaseProps & AppMainFramerProps;
|
|
3
|
-
/**
|
|
4
|
-
* App main
|
|
5
|
-
*
|
|
6
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
7
|
-
*
|
|
8
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
9
|
-
*/
|
|
10
|
-
export declare const AppMain: ({ Component, pageProps, Layout, ProgressOverlay, seo, motion, transition, pre, post, }: AppMainProps) => JSX.Element;
|
|
11
|
-
export default AppMain;
|
package/app/sc/AppMain.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppMain = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = require("react");
|
|
6
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
var router_1 = require("next/router");
|
|
8
|
-
var framer_motion_1 = require("framer-motion");
|
|
9
|
-
var m_1 = require("@koine/react/m");
|
|
10
|
-
var SeoDefaults_1 = require("../../SeoDefaults");
|
|
11
|
-
var NextProgress_1 = require("../../NextProgress");
|
|
12
|
-
/**
|
|
13
|
-
* App main
|
|
14
|
-
*
|
|
15
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
16
|
-
*
|
|
17
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
18
|
-
*/
|
|
19
|
-
var AppMain = function (_a) {
|
|
20
|
-
var Component = _a.Component, pageProps = _a.pageProps, Layout = _a.Layout, ProgressOverlay = _a.ProgressOverlay, seo = _a.seo, motion = _a.motion, _b = _a.transition, transition = _b === void 0 ? {
|
|
21
|
-
initial: { opacity: 0 },
|
|
22
|
-
animate: { opacity: 1 },
|
|
23
|
-
exit: { opacity: 0 },
|
|
24
|
-
} : _b, pre = _a.pre, post = _a.post;
|
|
25
|
-
var pathname = (0, router_1.useRouter)().pathname;
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SeoDefaults_1.SeoDefaults, tslib_1.__assign({}, seo)), pre, (0, jsx_runtime_1.jsxs)(m_1.MotionProvider, tslib_1.__assign({ features: motion }, { children: [ProgressOverlay && (0, jsx_runtime_1.jsx)(NextProgress_1.NextProgress, { Overlay: ProgressOverlay }), (0, jsx_runtime_1.jsx)(Layout, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, tslib_1.__assign({ exitBeforeEnter: true, initial: false }, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.m.div, tslib_1.__assign({}, transition, { children: (0, react_1.createElement)(Component, tslib_1.__assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
|
|
27
|
-
};
|
|
28
|
-
exports.AppMain = AppMain;
|
|
29
|
-
exports.default = exports.AppMain;
|
package/app/sc/AppTheme.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { Theme } from "@koine/react/sc";
|
|
4
|
-
export type AppThemeProps = React.PropsWithChildren<NextAppProps & {
|
|
5
|
-
/**
|
|
6
|
-
* A theme object
|
|
7
|
-
*/
|
|
8
|
-
theme: Theme;
|
|
9
|
-
}>;
|
|
10
|
-
/**
|
|
11
|
-
* App theme with `styled-components`
|
|
12
|
-
*/
|
|
13
|
-
export declare const AppTheme: ({ theme, children }: AppThemeProps) => JSX.Element;
|
|
14
|
-
export default AppTheme;
|
package/app/sc/auth/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AppProps } from "next/app";
|
|
2
|
-
import { AppThemeProps } from "../AppTheme";
|
|
3
|
-
import { AppMainProps } from "../AppMain";
|
|
4
|
-
export type NextAppProps = AppProps<{
|
|
5
|
-
session: any;
|
|
6
|
-
}> & AppThemeProps & AppMainProps;
|
|
7
|
-
/**
|
|
8
|
-
* App with authentication provided by `next-auth`
|
|
9
|
-
*/
|
|
10
|
-
export declare const NextApp: (props: NextAppProps) => JSX.Element;
|
|
11
|
-
export default NextApp;
|
package/app/sc/auth/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NextApp = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
var react_1 = require("next-auth/react");
|
|
7
|
-
var AppHead_1 = require("../../AppHead");
|
|
8
|
-
var AppTheme_1 = require("../AppTheme");
|
|
9
|
-
var AppMain_1 = require("../AppMain");
|
|
10
|
-
/**
|
|
11
|
-
* App with authentication provided by `next-auth`
|
|
12
|
-
*/
|
|
13
|
-
var NextApp = function (props) {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(AppHead_1.AppHead, {}), (0, jsx_runtime_1.jsx)(react_1.SessionProvider, tslib_1.__assign({ session: props.pageProps.session }, { children: (0, jsx_runtime_1.jsx)(AppTheme_1.AppTheme, tslib_1.__assign({}, props, { children: (0, jsx_runtime_1.jsx)(AppMain_1.AppMain, tslib_1.__assign({}, props)) })) }))] }));
|
|
15
|
-
};
|
|
16
|
-
exports.NextApp = NextApp;
|
|
17
|
-
exports.default = exports.NextApp;
|
package/app/sc/auth/index.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { SessionProvider } from "next-auth/react";
|
|
4
|
-
import { AppHead } from "../../AppHead";
|
|
5
|
-
import { AppTheme } from "../AppTheme";
|
|
6
|
-
import { AppMain } from "../AppMain";
|
|
7
|
-
/**
|
|
8
|
-
* App with authentication provided by `next-auth`
|
|
9
|
-
*/
|
|
10
|
-
export var NextApp = function (props) {
|
|
11
|
-
return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(SessionProvider, __assign({ session: props.pageProps.session }, { children: _jsx(AppTheme, __assign({}, props, { children: _jsx(AppMain, __assign({}, props)) })) }))] }));
|
|
12
|
-
};
|
|
13
|
-
export default NextApp;
|
package/app/sc/index.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { AppProps } from "next/app";
|
|
2
|
-
import { AppThemeProps } from "./AppTheme";
|
|
3
|
-
import { AppMainProps } from "./AppMain";
|
|
4
|
-
export type NextAppProps = AppProps & AppThemeProps & AppMainProps;
|
|
5
|
-
/**
|
|
6
|
-
* App
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
*
|
|
10
|
-
* ```tsx
|
|
11
|
-
* import { NextApp, NextAppProps } from "@koine/next/app/sc/auth";
|
|
12
|
-
* import { Favicon, AnalyticsGoogle } from "@koine/next";
|
|
13
|
-
* import { theme } from "src/helpers/theme";
|
|
14
|
-
* import { Layout, ProgressOverlay } from "src/components/Layout";
|
|
15
|
-
* // import "@fontsource/myfont/800.css";
|
|
16
|
-
* // import "src/helpers/theme.css";
|
|
17
|
-
*
|
|
18
|
-
* const motion = () => import("@koine/react/m/max").then((m) => m.default);
|
|
19
|
-
*
|
|
20
|
-
* export default function App(props: NextAppProps) {
|
|
21
|
-
* return (
|
|
22
|
-
* <NextApp
|
|
23
|
-
* {...props}
|
|
24
|
-
* Layout={Layout}
|
|
25
|
-
* ProgressOverlay={ProgressOverlay}
|
|
26
|
-
* theme={theme}
|
|
27
|
-
* motion={motion}
|
|
28
|
-
* seo={{
|
|
29
|
-
* titleTemplate: "%s | MyApp",
|
|
30
|
-
* defaultTitle: "MyApp",
|
|
31
|
-
* openGraph: {
|
|
32
|
-
* type: "website",
|
|
33
|
-
* locale: "en_US",
|
|
34
|
-
* url: "https://myapp.com/",
|
|
35
|
-
* site_name: "MyApp",
|
|
36
|
-
* },
|
|
37
|
-
* twitter: {
|
|
38
|
-
* handle: "@MklrNl",
|
|
39
|
-
* site: "@MyApp",
|
|
40
|
-
* cardType: "summary_large_image",
|
|
41
|
-
* },
|
|
42
|
-
* }}
|
|
43
|
-
* pre={
|
|
44
|
-
* <>
|
|
45
|
-
* <AnalyticsGoogle id="UA-xxxxxxxx-x" />
|
|
46
|
-
* <Favicon name="MyApp" color="#000000" />
|
|
47
|
-
* </>
|
|
48
|
-
* }
|
|
49
|
-
* />
|
|
50
|
-
* );
|
|
51
|
-
* }
|
|
52
|
-
*
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare const NextApp: (props: NextAppProps) => JSX.Element;
|
|
56
|
-
export default NextApp;
|