@koine/next 1.0.8 → 1.0.11
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/Analytics/AnalyticsGoogle.d.ts +0 -0
- package/Analytics/AnalyticsGoogle.js +2 -2
- package/Analytics/index.d.ts +0 -0
- package/Analytics/index.js +0 -0
- package/Analytics/package.json +6 -0
- package/Auth/helpers.d.ts +0 -0
- package/Auth/helpers.js +0 -0
- package/Auth/index.d.ts +0 -0
- package/Auth/index.js +0 -0
- package/Auth/package.json +6 -0
- package/Auth/useLogin.d.ts +1 -1
- package/Auth/useLogin.js +4 -1
- package/Auth/useLoginUrl.d.ts +0 -0
- package/Auth/useLoginUrl.js +0 -0
- package/Auth/useLogout.d.ts +0 -0
- package/Auth/useLogout.js +0 -0
- package/Favicon/Favicon.d.ts +0 -0
- package/Favicon/Favicon.js +1 -1
- package/Favicon/index.d.ts +0 -0
- package/Favicon/index.js +0 -0
- package/Favicon/package.json +6 -0
- package/Forms/index.d.ts +0 -0
- package/Forms/index.js +0 -0
- package/Forms/package.json +6 -0
- package/Forms/useForm.d.ts +0 -0
- package/Forms/useForm.js +8 -4
- package/Forms/useSubmit.d.ts +0 -0
- package/Forms/useSubmit.js +12 -9
- package/Head/Head.d.ts +0 -0
- package/Head/Head.js +0 -0
- package/Head/index.d.ts +0 -0
- package/Head/index.js +0 -0
- package/Head/package.json +6 -0
- package/I18n/I18n.d.ts +3 -7
- package/I18n/I18n.js +2 -14
- package/I18n/index.d.ts +0 -0
- package/I18n/index.js +0 -0
- package/I18n/package.json +6 -0
- package/Img/Img.d.ts +4 -4
- package/Img/Img.js +2 -4
- package/Img/index.d.ts +0 -0
- package/Img/index.js +0 -0
- package/Img/package.json +6 -0
- package/Link/Link.d.ts +4 -3
- package/Link/Link.js +2 -5
- package/Link/index.d.ts +0 -0
- package/Link/index.js +0 -0
- package/Link/package.json +6 -0
- package/NextProgress/NextProgress.d.ts +20 -9
- package/NextProgress/NextProgress.js +2 -3
- package/NextProgress/index.d.ts +2 -1
- package/NextProgress/index.js +1 -1
- package/NextProgress/package.json +6 -0
- package/README.md +0 -0
- package/Seo/Seo.d.ts +0 -0
- package/Seo/Seo.js +0 -0
- package/Seo/SeoDefaults.d.ts +0 -0
- package/Seo/SeoDefaults.js +0 -0
- package/Seo/helpers.d.ts +0 -0
- package/Seo/helpers.js +17 -19
- package/Seo/index.d.ts +0 -0
- package/Seo/index.js +0 -0
- package/Seo/package.json +6 -0
- package/Theme/Theme.d.ts +3 -3
- package/Theme/Theme.js +18 -18
- package/Theme/index.d.ts +0 -0
- package/Theme/index.js +0 -0
- package/Theme/package.json +6 -0
- package/app/AppHead.d.ts +1 -2
- package/app/AppHead.js +2 -2
- package/app/AppMain.d.ts +35 -0
- package/app/AppMain.js +1 -0
- package/app/css/AppMain.d.ts +8 -0
- package/app/{AppMain--vanilla.js → css/AppMain.js} +3 -3
- package/app/css/AppTheme.d.ts +10 -0
- package/app/{AppTheme--vanilla.js → css/AppTheme.js} +3 -3
- package/app/css/auth/index.d.ts +9 -0
- package/app/css/auth/index.js +13 -0
- package/app/css/auth/package.json +6 -0
- package/app/css/index.d.ts +54 -0
- package/app/css/index.js +57 -0
- package/app/css/package.json +6 -0
- package/app/em/AppMain.d.ts +10 -0
- package/app/em/AppMain.js +22 -0
- package/app/{AppTheme--emotion.d.ts → em/AppTheme.d.ts} +3 -3
- package/app/{AppTheme--emotion.js → em/AppTheme.js} +5 -5
- package/app/em/auth/index.d.ts +9 -0
- package/app/em/auth/index.js +13 -0
- package/app/em/auth/package.json +6 -0
- package/app/em/index.d.ts +9 -0
- package/app/em/index.js +12 -0
- package/app/em/package.json +6 -0
- package/app/index.d.ts +1 -10
- package/app/index.js +1 -10
- package/app/package.json +6 -0
- package/app/sc/AppMain.d.ts +10 -0
- package/app/sc/AppMain.js +22 -0
- package/app/sc/AppTheme.d.ts +13 -0
- package/app/sc/AppTheme.js +9 -0
- package/app/sc/auth/index.d.ts +9 -0
- package/app/sc/auth/index.js +13 -0
- package/app/sc/auth/package.json +6 -0
- package/app/sc/index.d.ts +56 -0
- package/app/sc/index.js +59 -0
- package/app/sc/package.json +6 -0
- package/config/index.d.ts +14 -1
- package/config/index.js +68 -38
- package/config/package.json +6 -0
- package/document/Document.d.ts +7 -2
- package/document/Document.js +8 -3
- package/document/css/index.d.ts +22 -0
- package/document/css/index.js +30 -0
- package/document/css/package.json +6 -0
- package/document/em/index.d.ts +16 -0
- package/document/{Document--emotion.js → em/index.js} +24 -11
- package/document/em/package.json +6 -0
- package/document/index.d.ts +2 -4
- package/document/index.js +2 -4
- package/document/package.json +6 -0
- package/document/{Document--sc.d.ts → sc/index.d.ts} +11 -2
- package/document/sc/index.js +44 -0
- package/document/sc/package.json +6 -0
- package/index.d.ts +0 -3
- package/index.js +0 -3
- package/node/Analytics/AnalyticsGoogle.js +42 -0
- package/node/Analytics/index.js +4 -0
- package/node/Auth/helpers.js +26 -0
- package/node/Auth/index.js +7 -0
- package/node/Auth/useLogin.js +54 -0
- package/node/Auth/useLoginUrl.js +15 -0
- package/node/Auth/useLogout.js +56 -0
- package/node/Favicon/Favicon.js +9 -0
- package/node/Favicon/index.js +4 -0
- package/node/Forms/index.js +5 -0
- package/node/Forms/useForm.js +41 -0
- package/node/Forms/useSubmit.js +27 -0
- package/node/Head/Head.js +8 -0
- package/node/Head/index.js +4 -0
- package/node/I18n/I18n.js +82 -0
- package/node/I18n/index.js +4 -0
- package/node/Img/Img.js +34 -0
- package/node/Img/index.js +4 -0
- package/node/Link/Link.js +13 -0
- package/node/Link/index.js +4 -0
- package/node/NextProgress/NextProgress.js +41 -0
- package/node/NextProgress/index.js +5 -0
- package/node/Seo/Seo.js +12 -0
- package/node/Seo/SeoDefaults.js +16 -0
- package/node/Seo/helpers.js +115 -0
- package/node/Seo/index.js +15 -0
- package/node/Theme/Theme.js +241 -0
- package/node/Theme/index.js +4 -0
- package/node/app/AppHead.js +10 -0
- package/node/app/AppMain.js +2 -0
- package/node/app/css/AppMain.js +16 -0
- package/node/app/css/AppTheme.js +16 -0
- package/node/app/css/auth/index.js +18 -0
- package/node/app/css/index.js +62 -0
- package/node/app/em/AppMain.js +26 -0
- package/node/app/em/AppTheme.js +22 -0
- package/node/app/em/auth/index.js +18 -0
- package/node/app/em/index.js +17 -0
- package/node/app/index.js +5 -0
- package/node/app/sc/AppMain.js +26 -0
- package/node/app/sc/AppTheme.js +13 -0
- package/node/app/sc/auth/index.js +18 -0
- package/node/app/sc/index.js +64 -0
- package/node/config/index.js +184 -0
- package/node/document/Document.js +24 -0
- package/node/document/css/index.js +35 -0
- package/node/document/em/index.js +73 -0
- package/node/document/index.js +7 -0
- package/node/document/sc/index.js +49 -0
- package/node/index.js +15 -0
- package/node/utils/api.js +38 -0
- package/node/utils/emotion-cache.js +13 -0
- package/node/utils/index.js +32 -0
- package/package.json +17 -25
- package/typings.d.ts +10 -7
- package/utils/api.d.ts +0 -0
- package/utils/api.js +8 -6
- package/utils/emotion-cache.d.ts +0 -0
- package/utils/emotion-cache.js +0 -0
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -1
- package/utils/package.json +6 -0
- package/app/App--emotion.d.ts +0 -10
- package/app/App--emotion.js +0 -11
- package/app/App--sc.d.ts +0 -10
- package/app/App--sc.js +0 -11
- package/app/App--vanilla.d.ts +0 -10
- package/app/App--vanilla.js +0 -11
- package/app/AppAuth--emotion.d.ts +0 -10
- package/app/AppAuth--emotion.js +0 -12
- package/app/AppAuth--sc.d.ts +0 -10
- package/app/AppAuth--sc.js +0 -12
- package/app/AppMain--emotion.d.ts +0 -34
- package/app/AppMain--emotion.js +0 -27
- package/app/AppMain--sc.d.ts +0 -34
- package/app/AppMain--sc.js +0 -27
- package/app/AppMain--vanilla.d.ts +0 -27
- package/app/AppTheme--sc.d.ts +0 -13
- package/app/AppTheme--sc.js +0 -9
- package/app/AppTheme--vanilla.d.ts +0 -10
- package/app/motion-features.d.ts +0 -2
- package/app/motion-features.js +0 -2
- package/document/Document--emotion.d.ts +0 -5
- package/document/Document--sc.js +0 -33
- package/document/Document--vanilla.d.ts +0 -11
- package/document/Document--vanilla.js +0 -20
- package/index.umd.js +0 -6621
package/app/App--sc.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { AppThemeScProps } from "./AppTheme--sc";
|
|
4
|
-
import { AppMainScProps } from "./AppMain--sc";
|
|
5
|
-
export declare type AppScProps = NextAppProps & AppThemeScProps & AppMainScProps;
|
|
6
|
-
/**
|
|
7
|
-
* App
|
|
8
|
-
*/
|
|
9
|
-
export declare const AppSc: React.FC<AppScProps>;
|
|
10
|
-
export default AppSc;
|
package/app/App--sc.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AppHead } from "./AppHead";
|
|
3
|
-
import { AppThemeSc } from "./AppTheme--sc";
|
|
4
|
-
import { AppMainSc } from "./AppMain--sc";
|
|
5
|
-
/**
|
|
6
|
-
* App
|
|
7
|
-
*/
|
|
8
|
-
export const AppSc = (props) => {
|
|
9
|
-
return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(AppThemeSc, Object.assign({}, props, { children: _jsx(AppMainSc, Object.assign({}, props)) }))] }));
|
|
10
|
-
};
|
|
11
|
-
export default AppSc;
|
package/app/App--vanilla.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { AppThemeVanillaProps } from "./AppTheme--vanilla";
|
|
4
|
-
import { AppMainVanillaProps } from "./AppMain--vanilla";
|
|
5
|
-
export declare type AppVanillaProps = NextAppProps & AppThemeVanillaProps & AppMainVanillaProps;
|
|
6
|
-
/**
|
|
7
|
-
* App
|
|
8
|
-
*/
|
|
9
|
-
export declare const AppVanilla: React.FC<AppVanillaProps>;
|
|
10
|
-
export default AppVanilla;
|
package/app/App--vanilla.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AppHead } from "./AppHead";
|
|
3
|
-
import { AppThemeVanilla } from "./AppTheme--vanilla";
|
|
4
|
-
import { AppMainVanilla } from "./AppMain--vanilla";
|
|
5
|
-
/**
|
|
6
|
-
* App
|
|
7
|
-
*/
|
|
8
|
-
export const AppVanilla = (props) => {
|
|
9
|
-
return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(AppThemeVanilla, Object.assign({}, props, { children: _jsx(AppMainVanilla, Object.assign({}, props)) }))] }));
|
|
10
|
-
};
|
|
11
|
-
export default AppVanilla;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { AppThemeEmotionProps } from "./AppTheme--emotion";
|
|
4
|
-
import { AppMainEmotionProps } from "./AppMain--emotion";
|
|
5
|
-
export declare type AppAuthEmotionProps = NextAppProps & AppThemeEmotionProps & AppMainEmotionProps;
|
|
6
|
-
/**
|
|
7
|
-
* App with authentication provided by `next-auth`
|
|
8
|
-
*/
|
|
9
|
-
export declare const AppAuthEmotion: React.FC<AppAuthEmotionProps>;
|
|
10
|
-
export default AppAuthEmotion;
|
package/app/AppAuth--emotion.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { SessionProvider } from "next-auth/react";
|
|
3
|
-
import { AppHead } from "./AppHead";
|
|
4
|
-
import { AppThemeEmotion } from "./AppTheme--emotion";
|
|
5
|
-
import { AppMainEmotion } from "./AppMain--emotion";
|
|
6
|
-
/**
|
|
7
|
-
* App with authentication provided by `next-auth`
|
|
8
|
-
*/
|
|
9
|
-
export const AppAuthEmotion = (props) => {
|
|
10
|
-
return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(SessionProvider, Object.assign({ session: props.pageProps.session }, { children: _jsx(AppThemeEmotion, Object.assign({}, props, { children: _jsx(AppMainEmotion, Object.assign({}, props)) })) }))] }));
|
|
11
|
-
};
|
|
12
|
-
export default AppAuthEmotion;
|
package/app/AppAuth--sc.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { AppThemeScProps } from "./AppTheme--sc";
|
|
4
|
-
import { AppMainScProps } from "./AppMain--sc";
|
|
5
|
-
export declare type AppAuthScProps = NextAppProps & AppThemeScProps & AppMainScProps;
|
|
6
|
-
/**
|
|
7
|
-
* App with authentication provided by `next-auth`
|
|
8
|
-
*/
|
|
9
|
-
export declare const AppAuthSc: React.FC<AppAuthScProps>;
|
|
10
|
-
export default AppAuthSc;
|
package/app/AppAuth--sc.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { SessionProvider } from "next-auth/react";
|
|
3
|
-
import { AppHead } from "./AppHead";
|
|
4
|
-
import { AppThemeSc } from "./AppTheme--sc";
|
|
5
|
-
import { AppMainSc } from "./AppMain--sc";
|
|
6
|
-
/**
|
|
7
|
-
* App with authentication provided by `next-auth`
|
|
8
|
-
*/
|
|
9
|
-
export const AppAuthSc = (props) => {
|
|
10
|
-
return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(SessionProvider, Object.assign({ session: props.pageProps.session }, { children: _jsx(AppThemeSc, Object.assign({}, props, { children: _jsx(AppMainSc, Object.assign({}, props)) })) }))] }));
|
|
11
|
-
};
|
|
12
|
-
export default AppAuthSc;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { HTMLMotionProps } from "framer-motion";
|
|
4
|
-
import { SeoDefaultsProps } from "../Seo";
|
|
5
|
-
export declare type AppMainEmotionProps = NextAppProps & {
|
|
6
|
-
/**
|
|
7
|
-
* A wrapping layout component
|
|
8
|
-
*/
|
|
9
|
-
Layout: React.FC<Record<string, unknown>>;
|
|
10
|
-
/**
|
|
11
|
-
* Seo site wide default configuration
|
|
12
|
-
*/
|
|
13
|
-
seo?: SeoDefaultsProps;
|
|
14
|
-
/**
|
|
15
|
-
* It defaults to fade in/out
|
|
16
|
-
*/
|
|
17
|
-
transition?: Omit<HTMLMotionProps<"div">, "key">;
|
|
18
|
-
/**
|
|
19
|
-
* JSX to render just after SEO
|
|
20
|
-
*/
|
|
21
|
-
pre?: React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* JSX to render just at the end of the markup
|
|
24
|
-
*/
|
|
25
|
-
post?: React.ReactNode;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* App main
|
|
29
|
-
*
|
|
30
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
31
|
-
*
|
|
32
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
33
|
-
*/
|
|
34
|
-
export declare const AppMainEmotion: React.FC<AppMainEmotionProps>;
|
package/app/AppMain--emotion.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createElement as _createElement } from "react";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { useRouter } from "next/router";
|
|
4
|
-
import { AnimatePresence, LazyMotion, m } from "framer-motion";
|
|
5
|
-
import { SeoDefaults } from "../Seo";
|
|
6
|
-
import { NextProgress } from "../NextProgress";
|
|
7
|
-
/**
|
|
8
|
-
* @see https://www.framer.com/docs/guide-reduce-bundle-size/
|
|
9
|
-
*/
|
|
10
|
-
const loadMotionFeatures = () => import("./motion-features").then((m) => m.default);
|
|
11
|
-
/**
|
|
12
|
-
* App main
|
|
13
|
-
*
|
|
14
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
15
|
-
*
|
|
16
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
17
|
-
*/
|
|
18
|
-
export const AppMainEmotion = ({ Component, pageProps, Layout,
|
|
19
|
-
// theme,
|
|
20
|
-
seo, transition = {
|
|
21
|
-
initial: { opacity: 0 },
|
|
22
|
-
animate: { opacity: 1 },
|
|
23
|
-
exit: { opacity: 0 },
|
|
24
|
-
}, pre, post, }) => {
|
|
25
|
-
const { pathname } = useRouter();
|
|
26
|
-
return (_jsxs(_Fragment, { children: [_jsx(SeoDefaults, Object.assign({}, seo)), pre, _jsxs(LazyMotion, Object.assign({ features: loadMotionFeatures }, { children: [_jsx(NextProgress, {}), _jsx(Layout, { children: _jsx(AnimatePresence, Object.assign({ exitBeforeEnter: true, initial: false }, { children: _jsx(m.div, Object.assign({}, transition, { children: _createElement(Component, Object.assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
|
|
27
|
-
};
|
package/app/AppMain--sc.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { HTMLMotionProps } from "framer-motion";
|
|
4
|
-
import { SeoDefaultsProps } from "../Seo";
|
|
5
|
-
export declare type AppMainScProps = NextAppProps & {
|
|
6
|
-
/**
|
|
7
|
-
* A wrapping layout component
|
|
8
|
-
*/
|
|
9
|
-
Layout: React.FC<Record<string, unknown>>;
|
|
10
|
-
/**
|
|
11
|
-
* Seo site wide default configuration
|
|
12
|
-
*/
|
|
13
|
-
seo?: SeoDefaultsProps;
|
|
14
|
-
/**
|
|
15
|
-
* It defaults to fade in/out
|
|
16
|
-
*/
|
|
17
|
-
transition?: Omit<HTMLMotionProps<"div">, "key">;
|
|
18
|
-
/**
|
|
19
|
-
* JSX to render just after SEO
|
|
20
|
-
*/
|
|
21
|
-
pre?: React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* JSX to render just at the end of the markup
|
|
24
|
-
*/
|
|
25
|
-
post?: React.ReactNode;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* App main
|
|
29
|
-
*
|
|
30
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
31
|
-
*
|
|
32
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
33
|
-
*/
|
|
34
|
-
export declare const AppMainSc: React.FC<AppMainScProps>;
|
package/app/AppMain--sc.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createElement as _createElement } from "react";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { useRouter } from "next/router";
|
|
4
|
-
import { AnimatePresence, LazyMotion, m } from "framer-motion";
|
|
5
|
-
import { SeoDefaults } from "../Seo";
|
|
6
|
-
import { NextProgress } from "../NextProgress";
|
|
7
|
-
/**
|
|
8
|
-
* @see https://www.framer.com/docs/guide-reduce-bundle-size/
|
|
9
|
-
*/
|
|
10
|
-
const loadMotionFeatures = () => import("./motion-features").then((m) => m.default);
|
|
11
|
-
/**
|
|
12
|
-
* App main
|
|
13
|
-
*
|
|
14
|
-
* It implies a setup for `styled-components` and `framer-motion` libraries.
|
|
15
|
-
*
|
|
16
|
-
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
17
|
-
*/
|
|
18
|
-
export const AppMainSc = ({ Component, pageProps, Layout,
|
|
19
|
-
// theme,
|
|
20
|
-
seo, transition = {
|
|
21
|
-
initial: { opacity: 0 },
|
|
22
|
-
animate: { opacity: 1 },
|
|
23
|
-
exit: { opacity: 0 },
|
|
24
|
-
}, pre, post, }) => {
|
|
25
|
-
const { pathname } = useRouter();
|
|
26
|
-
return (_jsxs(_Fragment, { children: [_jsx(SeoDefaults, Object.assign({}, seo)), pre, _jsxs(LazyMotion, Object.assign({ features: loadMotionFeatures }, { children: [_jsx(NextProgress, {}), _jsx(Layout, { children: _jsx(AnimatePresence, Object.assign({ exitBeforeEnter: true, initial: false }, { children: _jsx(m.div, Object.assign({}, transition, { children: _createElement(Component, Object.assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
|
|
27
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { SeoDefaultsProps } from "../Seo";
|
|
4
|
-
export declare type AppMainVanillaProps = NextAppProps & {
|
|
5
|
-
/**
|
|
6
|
-
* A wrapping layout component
|
|
7
|
-
*/
|
|
8
|
-
Layout: React.FC<Record<string, unknown>>;
|
|
9
|
-
/**
|
|
10
|
-
* Seo site wide default configuration
|
|
11
|
-
*/
|
|
12
|
-
seo?: SeoDefaultsProps;
|
|
13
|
-
/**
|
|
14
|
-
* JSX to render just after SEO
|
|
15
|
-
*/
|
|
16
|
-
pre?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* JSX to render just at the end of the markup
|
|
19
|
-
*/
|
|
20
|
-
post?: React.ReactNode;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* App main
|
|
24
|
-
*
|
|
25
|
-
* It does not imply any specific styling or animation solution
|
|
26
|
-
*/
|
|
27
|
-
export declare const AppMainVanilla: React.FC<AppMainVanillaProps>;
|
package/app/AppTheme--sc.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { Theme } from "@koine/react";
|
|
4
|
-
export declare type AppThemeScProps = NextAppProps & {
|
|
5
|
-
/**
|
|
6
|
-
* A theme object
|
|
7
|
-
*/
|
|
8
|
-
theme: Theme;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* App theme with `styled-components`
|
|
12
|
-
*/
|
|
13
|
-
export declare const AppThemeSc: React.FC<AppThemeScProps>;
|
package/app/AppTheme--sc.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ThemeProvider } from "styled-components";
|
|
3
|
-
import { StylesGlobal } from "@koine/react";
|
|
4
|
-
/**
|
|
5
|
-
* App theme with `styled-components`
|
|
6
|
-
*/
|
|
7
|
-
export const AppThemeSc = ({ theme, children }) => {
|
|
8
|
-
return (_jsxs(ThemeProvider, Object.assign({ theme: theme }, { children: [_jsx(StylesGlobal, {}), children] })));
|
|
9
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AppProps as NextAppProps } from "next/app";
|
|
3
|
-
import { ThemeProviderProps } from "../Theme";
|
|
4
|
-
export declare type AppThemeVanillaProps = NextAppProps & {
|
|
5
|
-
theme: ThemeProviderProps["defaultTheme"];
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* App theme with vanilla class based theme (good for `tailwindcss`)
|
|
9
|
-
*/
|
|
10
|
-
export declare const AppThemeVanilla: React.FC<AppThemeVanillaProps>;
|
package/app/motion-features.d.ts
DELETED
package/app/motion-features.js
DELETED
package/document/Document--sc.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
/* ? eslint-disable @next/next/no-document-import-in-page */
|
|
4
|
-
import NextDocument, { Html, Head, Main, NextScript, } from "next/document";
|
|
5
|
-
import { ServerStyleSheet } from "styled-components";
|
|
6
|
-
import { Meta, NoJs } from "@koine/react";
|
|
7
|
-
/**
|
|
8
|
-
* For typescript safety of this component
|
|
9
|
-
*
|
|
10
|
-
* @see https://bit.ly/3ceuF8m
|
|
11
|
-
*/
|
|
12
|
-
export class DocumentSc extends NextDocument {
|
|
13
|
-
static getInitialProps(ctx) {
|
|
14
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
const sheet = new ServerStyleSheet();
|
|
16
|
-
const originalRenderPage = ctx.renderPage;
|
|
17
|
-
try {
|
|
18
|
-
ctx.renderPage = () => originalRenderPage({
|
|
19
|
-
enhanceApp: (App) => (props) => sheet.collectStyles(_jsx(App, Object.assign({}, props))),
|
|
20
|
-
});
|
|
21
|
-
const initialProps = yield NextDocument.getInitialProps(ctx);
|
|
22
|
-
return Object.assign(Object.assign({}, initialProps), { styles: (_jsxs(_Fragment, { children: [initialProps.styles, sheet.getStyleElement()] })) });
|
|
23
|
-
}
|
|
24
|
-
finally {
|
|
25
|
-
sheet.seal();
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
const { locale, defaultLocale } = this.props.__NEXT_DATA__;
|
|
31
|
-
return (_jsxs(Html, Object.assign({ lang: locale || defaultLocale, className: "no-js" }, { children: [_jsxs(Head, { children: [_jsx(Meta, {}), _jsx(NoJs, {})] }), _jsxs("body", { children: [_jsx(Main, {}), _jsx(NextScript, {})] })] })));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NextDocument, { DocumentContext, DocumentInitialProps } from "next/document";
|
|
3
|
-
import { ThemeVanillaValue } from "@koine/react";
|
|
4
|
-
/**
|
|
5
|
-
*/
|
|
6
|
-
export declare class DocumentVanilla extends NextDocument {
|
|
7
|
-
static getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps & {
|
|
8
|
-
theme: ThemeVanillaValue;
|
|
9
|
-
}>;
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
/* ? eslint-disable @next/next/no-document-import-in-page */
|
|
4
|
-
import NextDocument, { Html, Head, Main, NextScript, } from "next/document";
|
|
5
|
-
import { Meta, NoJs, getInitialThemeFromRequest, } from "@koine/react";
|
|
6
|
-
/**
|
|
7
|
-
*/
|
|
8
|
-
export class DocumentVanilla extends NextDocument {
|
|
9
|
-
static getInitialProps(ctx) {
|
|
10
|
-
var _a;
|
|
11
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12
|
-
const initialProps = yield NextDocument.getInitialProps(ctx);
|
|
13
|
-
return Object.assign(Object.assign({}, initialProps), { theme: getInitialThemeFromRequest(((_a = ctx.req) === null || _a === void 0 ? void 0 : _a.headers.cookie /* || document?.cookie */) || "") });
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
const { locale, defaultLocale } = this.props.__NEXT_DATA__;
|
|
18
|
-
return (_jsxs(Html, Object.assign({ lang: locale || defaultLocale, className: "no-js" }, { children: [_jsxs(Head, { children: [_jsx(Meta, {}), _jsx(NoJs, {})] }), _jsxs("body", { children: [_jsx(Main, {}), _jsx(NextScript, {})] })] })));
|
|
19
|
-
}
|
|
20
|
-
}
|