@koine/next 2.0.0-beta.2 → 2.0.0-beta.4
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/12/AnalyticsGoogle.js +65 -25
- package/12/AnalyticsGoogle.mjs +41 -15
- package/12/DisableErrorOverlay.js +29 -16
- package/12/DisableErrorOverlay.mjs +8 -5
- package/12/DynamicNamespaces.d.ts +1 -1
- package/12/DynamicNamespaces.js +22 -12
- package/12/DynamicNamespaces.mjs +1 -2
- package/12/Favicon.js +28 -9
- package/12/Favicon.mjs +6 -2
- package/12/Link.d.ts +1 -1
- package/12/Link.js +36 -13
- package/12/Link.mjs +14 -6
- package/12/NextProgress.js +47 -24
- package/12/NextProgress.mjs +26 -17
- package/12/Seo.d.ts +1 -1
- package/12/Seo.js +27 -32
- package/12/Seo.mjs +5 -4
- package/12/SeoDefaults.d.ts +1 -1
- package/12/SeoDefaults.js +27 -13
- package/12/SeoDefaults.mjs +5 -3
- package/12/T.d.ts +1 -1
- package/12/T.js +42 -16
- package/12/T.mjs +20 -6
- package/12/ThemeContext.js +22 -7
- package/12/ThemeContext.mjs +3 -3
- package/12/ThemeProvider.js +164 -147
- package/12/ThemeProvider.mjs +139 -129
- package/12/TransText.js +22 -7
- package/12/TransText.mjs +1 -1
- package/12/app/AppHead.js +29 -9
- package/12/app/AppHead.mjs +8 -2
- package/12/app/AppMain.d.ts +4 -4
- package/12/app/AppMain.js +5 -1
- package/12/app/AppMain.mjs +1 -1
- package/12/app/css/AppMain.js +37 -16
- package/12/app/css/AppMain.mjs +15 -5
- package/12/app/css/AppTheme.d.ts +1 -1
- package/12/app/css/AppTheme.js +28 -13
- package/12/app/css/AppTheme.mjs +7 -4
- package/12/app/css/auth/index.d.ts +1 -1
- package/12/app/css/auth/index.js +38 -15
- package/12/app/css/auth/index.mjs +17 -6
- package/12/app/css/index.d.ts +1 -1
- package/12/app/css/index.js +34 -59
- package/12/app/css/index.mjs +14 -6
- package/12/app/index.js +6 -4
- package/12/app/sc/AppMain.js +68 -27
- package/12/app/sc/AppMain.mjs +46 -13
- package/12/app/sc/AppTheme.d.ts +1 -1
- package/12/app/sc/AppTheme.js +31 -13
- package/12/app/sc/AppTheme.mjs +9 -4
- package/12/app/sc/auth/index.d.ts +1 -1
- package/12/app/sc/auth/index.js +38 -15
- package/12/app/sc/auth/index.mjs +17 -6
- package/12/app/sc/index.d.ts +1 -1
- package/12/app/sc/index.js +34 -61
- package/12/app/sc/index.mjs +14 -6
- package/12/document/Document.js +47 -29
- package/12/document/Document.mjs +24 -14
- package/12/document/css/index.js +47 -32
- package/12/document/css/index.mjs +26 -18
- package/12/document/index.js +18 -6
- package/12/document/sc/index.js +71 -65
- package/12/document/sc/index.mjs +46 -45
- package/12/getT.js +22 -13
- package/12/getT.mjs +2 -4
- package/12/index.js +99 -51
- package/12/index.mjs +2 -2
- package/12/seoBuildTags.js +81 -76
- package/12/seoBuildTags.mjs +59 -55
- package/12/to.js +21 -19
- package/12/to.mjs +4 -10
- package/12/translationAsOptions.js +15 -9
- package/12/translationAsOptions.mjs +6 -6
- package/12/types-i18n.js +4 -3
- package/12/types-i18n.mjs +1 -2
- package/12/types-seo.js +3 -1
- package/12/types-seo.mjs +1 -1
- package/12/useBackUrl.js +30 -16
- package/12/useBackUrl.mjs +8 -8
- package/12/useDateFormat.js +37 -38
- package/12/useDateFormat.mjs +15 -28
- package/12/useForm.d.ts +1 -1
- package/12/useForm.js +46 -20
- package/12/useForm.mjs +25 -13
- package/12/useLocale.js +22 -8
- package/12/useT.d.ts +1 -1
- package/12/useT.js +53 -39
- package/12/useT.mjs +32 -14
- package/12/useTheme.js +22 -11
- package/12/useTheme.mjs +1 -2
- package/12/useTo.js +23 -16
- package/12/useTo.mjs +3 -10
- package/README.md +1 -1
- package/config/index.js +225 -251
- package/config/index.mjs +187 -204
- package/getSiteUrl.js +22 -15
- package/getSiteUrl.mjs +2 -4
- package/index.js +19 -6
- package/load.js +21 -8
- package/load.mjs +3 -4
- package/package.json +19 -17
- package/12/app/css/auth/package.json +0 -6
- package/12/app/css/package.json +0 -6
- package/12/app/package.json +0 -6
- package/12/app/sc/auth/package.json +0 -6
- package/12/app/sc/package.json +0 -6
- package/12/document/css/package.json +0 -6
- package/12/document/package.json +0 -6
- package/12/document/sc/package.json +0 -6
- package/12/package.json +0 -6
- package/config/package.json +0 -6
package/12/Seo.js
CHANGED
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Seo = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
1
|
// import { memo } from "react";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
Seo: function() {
|
|
14
|
+
return Seo;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
17
|
+
return _default;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
21
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
22
|
+
const _head = /*#__PURE__*/ _interop_require_default._(require("next/head"));
|
|
23
|
+
const _seoBuildTags = require("./seoBuildTags");
|
|
24
|
+
const Seo = (props)=>{
|
|
25
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_head.default, {
|
|
26
|
+
children: (0, _seoBuildTags.seoBuildTags)(props)
|
|
27
|
+
});
|
|
32
28
|
};
|
|
33
|
-
|
|
34
|
-
exports.default = exports.Seo;
|
|
29
|
+
const _default = Seo;
|
package/12/Seo.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
// import { memo } from "react";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import Head from "next/head";
|
|
4
4
|
import { seoBuildTags } from "./seoBuildTags";
|
|
5
5
|
/**
|
|
@@ -22,8 +22,9 @@ import { seoBuildTags } from "./seoBuildTags";
|
|
|
22
22
|
* ```js
|
|
23
23
|
* <Seo title="MyApp | Some description" titleTemplate="%s" />
|
|
24
24
|
* ```
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
*/ export const Seo = (props)=>{
|
|
26
|
+
return /*#__PURE__*/ _jsx(Head, {
|
|
27
|
+
children: seoBuildTags(props)
|
|
28
|
+
});
|
|
28
29
|
};
|
|
29
30
|
export default Seo;
|
package/12/SeoDefaults.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultSeoProps } from "next-seo/lib/types";
|
|
2
|
-
import { type
|
|
2
|
+
import { type LinkTag, type MetaTag } from "./seoBuildTags";
|
|
3
3
|
/**
|
|
4
4
|
* @see https://github.com/garmeeh/next-seo/blob/master/src/types.ts#L413
|
|
5
5
|
*/
|
package/12/SeoDefaults.js
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeoDefaults = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
1
|
// import { memo } from "react";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
SeoDefaults: function() {
|
|
14
|
+
return SeoDefaults;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
17
|
+
return _default;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
21
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
22
|
+
const _head = /*#__PURE__*/ _interop_require_default._(require("next/head"));
|
|
23
|
+
const _seoBuildTags = require("./seoBuildTags");
|
|
24
|
+
const SeoDefaults = (props)=>{
|
|
12
25
|
// const router = useRouter();
|
|
13
26
|
// props.openGraph.url = getSiteUrl(router.asPath);
|
|
14
|
-
return (0,
|
|
27
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_head.default, {
|
|
28
|
+
children: (0, _seoBuildTags.seoBuildTags)(props)
|
|
29
|
+
});
|
|
15
30
|
};
|
|
16
|
-
|
|
17
|
-
exports.default = exports.SeoDefaults;
|
|
31
|
+
const _default = SeoDefaults;
|
package/12/SeoDefaults.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
// import { memo } from "react";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import Head from "next/head";
|
|
4
4
|
// import { useRouter } from "next/router";
|
|
5
5
|
// import { getSiteUrl } from "../utils";
|
|
6
6
|
import { seoBuildTags } from "./seoBuildTags";
|
|
7
|
-
export
|
|
7
|
+
export const SeoDefaults = (props)=>{
|
|
8
8
|
// const router = useRouter();
|
|
9
9
|
// props.openGraph.url = getSiteUrl(router.asPath);
|
|
10
|
-
return _jsx(Head, {
|
|
10
|
+
return /*#__PURE__*/ _jsx(Head, {
|
|
11
|
+
children: seoBuildTags(props)
|
|
12
|
+
});
|
|
11
13
|
};
|
|
12
14
|
export default SeoDefaults;
|
package/12/T.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TransProps } from "next-translate";
|
|
3
|
-
import type { TranslateNamespace,
|
|
3
|
+
import type { TranslateNamespace, TranslationsAllPaths, TranslationsPaths } from "./types-i18n";
|
|
4
4
|
export type TProps<TNamespace extends TranslateNamespace | undefined = undefined> = (Omit<TransProps, "i18nKey" | "ns"> & {
|
|
5
5
|
i18nKey: TranslationsAllPaths;
|
|
6
6
|
}) | (Omit<TransProps, "i18nKey" | "ns"> & {
|
package/12/T.js
CHANGED
|
@@ -1,17 +1,43 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
|
-
|
|
4
|
-
exports
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
T: function() {
|
|
14
|
+
return T;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
17
|
+
return _default // export type TProps = Omit<TransProps, "i18nKey" | "ns"> & {
|
|
18
|
+
// i18nKey: TranslationsAllPaths;
|
|
19
|
+
// };
|
|
20
|
+
// export type TPropsNamespaced<
|
|
21
|
+
// TNamespace extends TranslateNamespace
|
|
22
|
+
// > = Omit<TransProps, "i18nKey" | "ns"> & {
|
|
23
|
+
// i18nKey: TranslationsPaths<Translations[TNamespace]>;
|
|
24
|
+
// ns?: TNamespace;
|
|
25
|
+
// };
|
|
26
|
+
// export function T(props: TProps): JSX.Element;
|
|
27
|
+
// export function T<TNamespace extends TranslateNamespace>(props: TPropsNamespaced<TNamespace>): JSX.Element;
|
|
28
|
+
// export function T<TNamespace extends TranslateNamespace>(
|
|
29
|
+
// props: TProps<TNamespace>
|
|
30
|
+
// ) {
|
|
31
|
+
// return <Trans {...props} />;
|
|
32
|
+
// }
|
|
33
|
+
// export { default as T } from "next-translate/Trans";
|
|
34
|
+
;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
38
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
39
|
+
const _Trans = /*#__PURE__*/ _interop_require_default._(require("next-translate/Trans"));
|
|
40
|
+
const T = (props)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_Trans.default, {
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
const _default = T;
|
package/12/T.mjs
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __assign } from "tslib";
|
|
3
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
3
|
import Trans from "next-translate/Trans";
|
|
5
4
|
/**
|
|
6
5
|
* **NOTE**: To make typescript work nicely here make sure to enable
|
|
7
6
|
* [`resolveJsonModule`](https://www.typescriptlang.org/tsconfig#resolveJsonModule)
|
|
8
7
|
* in your `tsconfig.json` file.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
*/ export const T = (props)=>/*#__PURE__*/ _jsx(Trans, {
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
export default T; // export type TProps = Omit<TransProps, "i18nKey" | "ns"> & {
|
|
12
|
+
// i18nKey: TranslationsAllPaths;
|
|
13
|
+
// };
|
|
14
|
+
// export type TPropsNamespaced<
|
|
15
|
+
// TNamespace extends TranslateNamespace
|
|
16
|
+
// > = Omit<TransProps, "i18nKey" | "ns"> & {
|
|
17
|
+
// i18nKey: TranslationsPaths<Translations[TNamespace]>;
|
|
18
|
+
// ns?: TNamespace;
|
|
19
|
+
// };
|
|
20
|
+
// export function T(props: TProps): JSX.Element;
|
|
21
|
+
// export function T<TNamespace extends TranslateNamespace>(props: TPropsNamespaced<TNamespace>): JSX.Element;
|
|
22
|
+
// export function T<TNamespace extends TranslateNamespace>(
|
|
23
|
+
// props: TProps<TNamespace>
|
|
24
|
+
// ) {
|
|
25
|
+
// return <Trans {...props} />;
|
|
26
|
+
// }
|
|
27
|
+
// export { default as T } from "next-translate/Trans";
|
package/12/ThemeContext.js
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
ThemeContext: function() {
|
|
13
|
+
return ThemeContext;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return _default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("react");
|
|
20
|
+
const ThemeContext = /*#__PURE__*/ (0, _react.createContext)({
|
|
6
21
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7
|
-
setTheme:
|
|
8
|
-
themes: []
|
|
22
|
+
setTheme: (_)=>{},
|
|
23
|
+
themes: []
|
|
9
24
|
});
|
|
10
|
-
|
|
25
|
+
const _default = ThemeContext;
|
package/12/ThemeContext.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
export
|
|
2
|
+
export const ThemeContext = /*#__PURE__*/ createContext({
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
4
|
-
setTheme:
|
|
5
|
-
themes: []
|
|
4
|
+
setTheme: (_)=>{},
|
|
5
|
+
themes: []
|
|
6
6
|
});
|
|
7
7
|
export default ThemeContext;
|