@koine/next 1.0.75 → 1.0.78
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/DisableErrorOverlay.js +1 -1
- package/T.d.ts +1 -0
- package/T.js +1 -0
- package/app/AppHead.d.ts +1 -0
- package/app/AppHead.js +1 -0
- package/app/css/AppMain.d.ts +1 -0
- package/app/css/AppMain.js +1 -0
- package/app/css/AppTheme.d.ts +1 -0
- package/app/css/AppTheme.js +1 -0
- package/app/em/AppMain.d.ts +1 -0
- package/app/em/AppMain.js +1 -0
- package/app/em/AppTheme.d.ts +1 -0
- package/app/em/AppTheme.js +1 -0
- package/app/sc/AppMain.d.ts +1 -0
- package/app/sc/AppMain.js +1 -0
- package/app/sc/AppTheme.d.ts +1 -0
- package/app/sc/AppTheme.js +1 -0
- package/config/index.js +2 -2
- package/document/Document.d.ts +1 -0
- package/document/Document.js +1 -0
- package/node/DisableErrorOverlay.js +1 -1
- package/node/T.js +1 -0
- package/node/app/AppHead.js +1 -0
- package/node/app/css/AppMain.js +1 -0
- package/node/app/css/AppTheme.js +1 -0
- package/node/app/em/AppMain.js +1 -0
- package/node/app/em/AppTheme.js +1 -0
- package/node/app/sc/AppMain.js +1 -0
- package/node/app/sc/AppTheme.js +1 -0
- package/node/config/index.js +2 -2
- package/node/document/Document.js +1 -0
- package/node/useDateFormat.js +1 -0
- package/node/useForm.js +2 -1
- package/node/useLocale.js +1 -0
- package/node/useT.js +1 -0
- package/package.json +20 -19
- package/seoBuildTags.d.ts +1 -1
- package/useDateFormat.d.ts +1 -0
- package/useDateFormat.js +1 -0
- package/useForm.d.ts +3 -2
- package/useForm.js +2 -1
- package/useLocale.d.ts +1 -0
- package/useLocale.js +1 -0
- package/useT.d.ts +1 -0
- package/useT.js +1 -0
package/DisableErrorOverlay.js
CHANGED
|
@@ -6,7 +6,7 @@ import Head from "next/head";
|
|
|
6
6
|
* @see https://github.com/vercel/next.js/discussions/13387#discussioncomment-101564
|
|
7
7
|
*/
|
|
8
8
|
export var DisableErrorOverlay = function () {
|
|
9
|
-
return (_jsx(Head, { children: process.env
|
|
9
|
+
return (_jsx(Head, { children: process.env["NODE_ENV"] !== "production" && (_jsx("script", { dangerouslySetInnerHTML: {
|
|
10
10
|
__html: "window.addEventListener('error',event =>{event.stopImmediatePropagation()});window.addEventListener('unhandledrejection',event =>{event.stopImmediatePropagation()});",
|
|
11
11
|
} })) }));
|
|
12
12
|
};
|
package/T.d.ts
CHANGED
package/T.js
CHANGED
package/app/AppHead.d.ts
CHANGED
package/app/AppHead.js
CHANGED
package/app/css/AppMain.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare type AppMainProps = Omit<AppMainBaseProps, "ProgressOverlay">;
|
|
|
6
6
|
* It does not imply any specific styling or animation solution
|
|
7
7
|
*/
|
|
8
8
|
export declare const AppMain: ({ Component, pageProps, Layout, seo, pre, post, }: AppMainProps) => JSX.Element;
|
|
9
|
+
export default AppMain;
|
package/app/css/AppMain.js
CHANGED
|
@@ -11,3 +11,4 @@ export var AppMain = function (_a) {
|
|
|
11
11
|
var Component = _a.Component, pageProps = _a.pageProps, Layout = _a.Layout, seo = _a.seo, pre = _a.pre, post = _a.post;
|
|
12
12
|
return (_jsxs(React.Fragment, { children: [_jsx(SeoDefaults, __assign({}, seo)), pre, _jsx(Layout, { children: _jsx(Component, __assign({}, pageProps)) }), post] }));
|
|
13
13
|
};
|
|
14
|
+
export default AppMain;
|
package/app/css/AppTheme.d.ts
CHANGED
package/app/css/AppTheme.js
CHANGED
package/app/em/AppMain.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export declare type AppMainProps = AppMainBaseProps & AppMainFramerProps;
|
|
|
8
8
|
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
9
9
|
*/
|
|
10
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
CHANGED
|
@@ -22,3 +22,4 @@ export var AppMain = function (_a) {
|
|
|
22
22
|
var pathname = useRouter().pathname;
|
|
23
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
24
|
};
|
|
25
|
+
export default AppMain;
|
package/app/em/AppTheme.d.ts
CHANGED
package/app/em/AppTheme.js
CHANGED
|
@@ -15,4 +15,5 @@ export var AppTheme = function (_a) {
|
|
|
15
15
|
var _b = _a.emotionCache, emotionCache = _b === void 0 ? clientSideEmotionCache : _b, theme = _a.theme, children = _a.children;
|
|
16
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
17
|
};
|
|
18
|
+
export default AppTheme;
|
|
18
19
|
var templateObject_1;
|
package/app/sc/AppMain.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export declare type AppMainProps = AppMainBaseProps & AppMainFramerProps;
|
|
|
8
8
|
* About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
|
|
9
9
|
*/
|
|
10
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
CHANGED
|
@@ -22,3 +22,4 @@ export var AppMain = function (_a) {
|
|
|
22
22
|
var pathname = useRouter().pathname;
|
|
23
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
24
|
};
|
|
25
|
+
export default AppMain;
|
package/app/sc/AppTheme.d.ts
CHANGED
package/app/sc/AppTheme.js
CHANGED
package/config/index.js
CHANGED
|
@@ -165,7 +165,7 @@ export function getRedirects(defaultLocale, routes, permanent, debug) {
|
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
if (debug)
|
|
168
|
-
console.
|
|
168
|
+
console.info("[@koine/next/config:getRedirects]", redirects);
|
|
169
169
|
return [2 /*return*/, redirects];
|
|
170
170
|
});
|
|
171
171
|
});
|
|
@@ -185,7 +185,7 @@ export function getRewrites(routes, debug) {
|
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
if (debug)
|
|
188
|
-
console.
|
|
188
|
+
console.info("[@koine/next/config:getRewrites]", rewrites);
|
|
189
189
|
return [2 /*return*/, rewrites];
|
|
190
190
|
});
|
|
191
191
|
});
|
package/document/Document.d.ts
CHANGED
package/document/Document.js
CHANGED
|
@@ -10,7 +10,7 @@ var head_1 = tslib_1.__importDefault(require("next/head"));
|
|
|
10
10
|
* @see https://github.com/vercel/next.js/discussions/13387#discussioncomment-101564
|
|
11
11
|
*/
|
|
12
12
|
var DisableErrorOverlay = function () {
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(head_1.default, { children: process.env
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(head_1.default, { children: process.env["NODE_ENV"] !== "production" && ((0, jsx_runtime_1.jsx)("script", { dangerouslySetInnerHTML: {
|
|
14
14
|
__html: "window.addEventListener('error',event =>{event.stopImmediatePropagation()});window.addEventListener('unhandledrejection',event =>{event.stopImmediatePropagation()});",
|
|
15
15
|
} })) }));
|
|
16
16
|
};
|
package/node/T.js
CHANGED
package/node/app/AppHead.js
CHANGED
package/node/app/css/AppMain.js
CHANGED
|
@@ -15,3 +15,4 @@ var AppMain = function (_a) {
|
|
|
15
15
|
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(SeoDefaults_1.SeoDefaults, tslib_1.__assign({}, seo)), pre, (0, jsx_runtime_1.jsx)(Layout, { children: (0, jsx_runtime_1.jsx)(Component, tslib_1.__assign({}, pageProps)) }), post] }));
|
|
16
16
|
};
|
|
17
17
|
exports.AppMain = AppMain;
|
|
18
|
+
exports.default = exports.AppMain;
|
package/node/app/css/AppTheme.js
CHANGED
package/node/app/em/AppMain.js
CHANGED
|
@@ -26,3 +26,4 @@ var AppMain = function (_a) {
|
|
|
26
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
27
|
};
|
|
28
28
|
exports.AppMain = AppMain;
|
|
29
|
+
exports.default = exports.AppMain;
|
package/node/app/em/AppTheme.js
CHANGED
|
@@ -19,4 +19,5 @@ var AppTheme = function (_a) {
|
|
|
19
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
20
|
};
|
|
21
21
|
exports.AppTheme = AppTheme;
|
|
22
|
+
exports.default = exports.AppTheme;
|
|
22
23
|
var templateObject_1;
|
package/node/app/sc/AppMain.js
CHANGED
|
@@ -26,3 +26,4 @@ var AppMain = function (_a) {
|
|
|
26
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
27
|
};
|
|
28
28
|
exports.AppMain = AppMain;
|
|
29
|
+
exports.default = exports.AppMain;
|
package/node/app/sc/AppTheme.js
CHANGED
|
@@ -13,3 +13,4 @@ var AppTheme = function (_a) {
|
|
|
13
13
|
return ((0, jsx_runtime_1.jsxs)(styled_components_1.ThemeProvider, tslib_1.__assign({ theme: theme }, { children: [(0, jsx_runtime_1.jsx)(sc_1.StylesGlobal, {}), children] })));
|
|
14
14
|
};
|
|
15
15
|
exports.AppTheme = AppTheme;
|
|
16
|
+
exports.default = exports.AppTheme;
|
package/node/config/index.js
CHANGED
|
@@ -173,7 +173,7 @@ function getRedirects(defaultLocale, routes, permanent, debug) {
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
if (debug)
|
|
176
|
-
console.
|
|
176
|
+
console.info("[@koine/next/config:getRedirects]", redirects);
|
|
177
177
|
return [2 /*return*/, redirects];
|
|
178
178
|
});
|
|
179
179
|
});
|
|
@@ -194,7 +194,7 @@ function getRewrites(routes, debug) {
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
if (debug)
|
|
197
|
-
console.
|
|
197
|
+
console.info("[@koine/next/config:getRewrites]", rewrites);
|
|
198
198
|
return [2 /*return*/, rewrites];
|
|
199
199
|
});
|
|
200
200
|
});
|
package/node/useDateFormat.js
CHANGED
package/node/useForm.js
CHANGED
|
@@ -17,7 +17,7 @@ schema, t, formProps, debug) {
|
|
|
17
17
|
// const field = { control, register, setValue, t };
|
|
18
18
|
// if (process.env["NODE_ENV"] !== "production") {
|
|
19
19
|
// if (debug) {
|
|
20
|
-
// console.
|
|
20
|
+
// console.info(
|
|
21
21
|
// `Form ${i18nNamespace} data`,
|
|
22
22
|
// form.watch(),
|
|
23
23
|
// `errors: `,
|
|
@@ -35,3 +35,4 @@ schema, t, formProps, debug) {
|
|
|
35
35
|
}, [t, form]);
|
|
36
36
|
}
|
|
37
37
|
exports.useForm = useForm;
|
|
38
|
+
exports.default = useForm;
|
package/node/useLocale.js
CHANGED
package/node/useT.js
CHANGED
|
@@ -20,6 +20,7 @@ function useT(namespace) {
|
|
|
20
20
|
return tMemoized;
|
|
21
21
|
}
|
|
22
22
|
exports.useT = useT;
|
|
23
|
+
exports.default = useT;
|
|
23
24
|
// Instead of wrapping the `useTranslation` hook from [`next-translate`](https://github.com/vinissimus/next-translate/blob/master/src/useTranslation.tsx)
|
|
24
25
|
// we might just rewrite it with our custom implementation but the `_context`
|
|
25
26
|
// to use is not exposed by the library...
|
package/package.json
CHANGED
|
@@ -14,34 +14,35 @@
|
|
|
14
14
|
},
|
|
15
15
|
"main": "./node/index.js",
|
|
16
16
|
"typings": "./index.d.ts",
|
|
17
|
-
"dependencies": {
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"framer-motion": "^
|
|
23
|
-
"@koine/react": "1.0.
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"react": "^18.2.0",
|
|
19
|
+
"next": "^12.2.5",
|
|
20
|
+
"@koine/utils": "1.0.78",
|
|
21
|
+
"date-fns-tz": "^1.3.7",
|
|
22
|
+
"framer-motion": "^7.2.1",
|
|
23
|
+
"@koine/react": "1.0.78",
|
|
24
24
|
"styled-components": "^5.3.5",
|
|
25
|
-
"@mui/base": "^5.0.0-alpha.
|
|
25
|
+
"@mui/base": "^5.0.0-alpha.95",
|
|
26
26
|
"react-icons": "^4.4.0",
|
|
27
|
-
"date-fns": "^2.29.
|
|
27
|
+
"date-fns": "^2.29.2",
|
|
28
28
|
"react-swipeable": "^7.0.0",
|
|
29
|
-
"@tiptap/react": "^2.0.0-beta.
|
|
30
|
-
"@tiptap/starter-kit": "^2.0.0-beta.
|
|
29
|
+
"@tiptap/react": "^2.0.0-beta.115",
|
|
30
|
+
"@tiptap/starter-kit": "^2.0.0-beta.192",
|
|
31
31
|
"@kuus/yup": "^1.0.0-beta.4",
|
|
32
|
-
"react-hook-form": "^7.
|
|
33
|
-
"type-fest": "^2.
|
|
32
|
+
"react-hook-form": "^7.34.2",
|
|
33
|
+
"type-fest": "^2.19.0",
|
|
34
34
|
"react-popper": "^2.3.0",
|
|
35
35
|
"tslib": "^2.4.0",
|
|
36
|
-
"next-auth": "^4.10.
|
|
37
|
-
"@mui/material": "^5.
|
|
38
|
-
"@emotion/react": "^11.
|
|
39
|
-
"@emotion/server": "^11.
|
|
36
|
+
"next-auth": "^4.10.3",
|
|
37
|
+
"@mui/material": "^5.10.3",
|
|
38
|
+
"@emotion/react": "^11.10.4",
|
|
39
|
+
"@emotion/server": "^11.10.0",
|
|
40
40
|
"next-translate": "^1.5.0",
|
|
41
41
|
"next-seo": "^5.5.0",
|
|
42
|
-
"@hookform/resolvers": "^2.9.
|
|
42
|
+
"@hookform/resolvers": "^2.9.7"
|
|
43
43
|
},
|
|
44
|
-
"
|
|
44
|
+
"peerDependencies": {},
|
|
45
|
+
"version": "1.0.78",
|
|
45
46
|
"module": "./index.js",
|
|
46
47
|
"types": "./index.d.ts"
|
|
47
48
|
}
|
package/seoBuildTags.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ declare type BuildTagsParams = SeoProps & SeoDefaultsProps;
|
|
|
17
17
|
*
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
export declare const seoBuildTags: ({ seo, hidden, keywords, title, titleTemplate, defaultTitle, noindex, nofollow, description, languageAlternates, twitter, facebook, openGraph, og
|
|
20
|
+
export declare const seoBuildTags: ({ seo, hidden, keywords, title, titleTemplate, defaultTitle, noindex, nofollow, description, languageAlternates, twitter, facebook, openGraph, og, canonical, metaTags, linkTags, }?: BuildTagsParams) => React.ReactNode[];
|
|
21
21
|
export default seoBuildTags;
|
package/useDateFormat.d.ts
CHANGED
package/useDateFormat.js
CHANGED
package/useForm.d.ts
CHANGED
|
@@ -14,13 +14,14 @@ export declare function useForm<T extends FieldValues>(schema: ObjectSchema<any>
|
|
|
14
14
|
reset: import("react-hook-form").UseFormReset<T>;
|
|
15
15
|
handleSubmit: import("react-hook-form").UseFormHandleSubmit<T>;
|
|
16
16
|
unregister: import("react-hook-form").UseFormUnregister<T>;
|
|
17
|
-
control: import("react-hook-form").Control<T,
|
|
17
|
+
control: import("react-hook-form").Control<T, any>;
|
|
18
18
|
register: import("react-hook-form").UseFormRegister<T>;
|
|
19
19
|
setFocus: import("react-hook-form").UseFormSetFocus<T>;
|
|
20
20
|
field: {
|
|
21
|
-
control: import("react-hook-form").Control<T,
|
|
21
|
+
control: import("react-hook-form").Control<T, any>;
|
|
22
22
|
register: import("react-hook-form").UseFormRegister<T>;
|
|
23
23
|
setValue: import("react-hook-form").UseFormSetValue<T>;
|
|
24
24
|
t: TranslateLoose;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
export default useForm;
|
package/useForm.js
CHANGED
|
@@ -14,7 +14,7 @@ schema, t, formProps, debug) {
|
|
|
14
14
|
// const field = { control, register, setValue, t };
|
|
15
15
|
// if (process.env["NODE_ENV"] !== "production") {
|
|
16
16
|
// if (debug) {
|
|
17
|
-
// console.
|
|
17
|
+
// console.info(
|
|
18
18
|
// `Form ${i18nNamespace} data`,
|
|
19
19
|
// form.watch(),
|
|
20
20
|
// `errors: `,
|
|
@@ -31,3 +31,4 @@ schema, t, formProps, debug) {
|
|
|
31
31
|
return __assign({ field: field }, form);
|
|
32
32
|
}, [t, form]);
|
|
33
33
|
}
|
|
34
|
+
export default useForm;
|
package/useLocale.d.ts
CHANGED
package/useLocale.js
CHANGED
package/useT.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ import type { TranslateNamespace, TranslateDefault, TranslateNamespaced } from "
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function useT(): TranslateDefault;
|
|
16
16
|
export declare function useT<TNamespace extends TranslateNamespace>(namespace: TNamespace): TranslateNamespaced<TNamespace>;
|
|
17
|
+
export default useT;
|
package/useT.js
CHANGED
|
@@ -15,6 +15,7 @@ export function useT(namespace) {
|
|
|
15
15
|
}, [t, namespace]);
|
|
16
16
|
return tMemoized;
|
|
17
17
|
}
|
|
18
|
+
export default useT;
|
|
18
19
|
// Instead of wrapping the `useTranslation` hook from [`next-translate`](https://github.com/vinissimus/next-translate/blob/master/src/useTranslation.tsx)
|
|
19
20
|
// we might just rewrite it with our custom implementation but the `_context`
|
|
20
21
|
// to use is not exposed by the library...
|