@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/types-i18n.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
*
|
|
4
|
-
* Test this on TSplayground:
|
|
5
|
-
* https://www.typescriptlang.org/play?#code/PTAEFpK6dv4YpSBQJSgJYEYAcA7YAFwE8AHTfAcwGcA6AEzqJrTGQ86+7hRQYCmAYwA2AQwBOA0PjEBbATTJih0gJJ58oAN4oMlIgIkAzFdIAqEsfhriimAPY2dejKHQAiAH4eAXKGsSAG5XAF8+fXxDEzNQS2tbMXsnGgBhJ2NMKh1w8LYIHkKi4sh8rE1ickVmVnQS+obUFFIyaQApB0oAHgBlbAAaUB6AJgA+UABeIexQAQAPQ3wGGlAaIglKKlcAfiHh2YWBJZW1jepXDF2AAwASbT7QujuR0KuL0H8+1398AQA3IwhNAAKmBemBoAAIpghMlZBISKAHMYAiIRKAiAALaTrBJ2Rw2cHAFDzMgOCREDFVOJWGz4lLQ2EEySIqYaAh0eJ0pIEmhA4Cg8GgABy8kUylUJ0xDgAriIGKA5EkhJiMdjQJkREcxSsAO5GHG0xJwlaSaSCTK-BhEklzMkUqmtGl4pICUUKJSxKYAUQWVlhXQA1gISMjndyTYy4SzBqdNqN+YLQBCAErCGUSGiYAGKsRkVoKlo4hwHXGw1HomU0MQAIy1q3Wm1AyixK2MEgccgCGKN9PwQotlEwcKRNYAVsJKQAKKsysRoxHtzvdto9ADywo1mC1AEo6EK1JSq4o1dIrpRjEYrqAPI2hIGPBiS2tyTj1Q5x5OsFoFHJyYjrAVMgpABKIhQAbQvIdDG-NZrHsHknFmCQO0zABdKdMSIIgyBoXwQDg+8HABEwRAcXU6CETtgAAR2AAB2ABWRiAG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lvVvTA1jAZVoVtaEV-wcx0uQsBwcV9JyV41tVjEdq3I81zxq191qKO11VmwI8NAhWzVhWsta1sAQ1+1jER1js9koNrgVwaV31tMP8GCBB3UfbSkakrho4Xhm8Lx2N4No16VglrNt-ZRwK-N5N4cotvCvh3V-VuN21mRdN712BmtwwYYP3TN4uftv3at4dgQAdjEU1vtid+BgIPN5bdUzsTUugJ2KcW5qKQtjwYtncS3DALd4tvhrxvdxt7Vw9m8Ntk9g9ltm8S13d1wMh8t+N7tsN0zP15TAIflLhjF3wRZkZ+9qKGsflAlrhv9vVk9oQL9jwYl3wY5ugU5gDtwBgflU1rhuDhDk9zFmE6N6D2ZogcD94YwflBwMJ311tqFAjzd-lId7NgQb9ijxDjATEYDqFGd0D4cLUSjtwTAaj8d4YLhmD9DsULj-QYYFDvDmd-jjwK5kTz3ajwoyTgTvD2T9AP47C0kScEE3ygmT5yGQKKUA+hUQjbRY8Q7d4OQcTuvItv5gFlTsANTkEu0TTowVCEKdyfOLyKVOUIzt-HaaQUzn0twCzqdvD6z0KWThwFjhQRT28Dj-9sINFL1sNp9ztvgUIIAA
|
|
6
|
-
*
|
|
7
|
-
* @see
|
|
8
|
-
* - https://stackoverflow.com/q/75531366/1938970: fix for `Type instantiation is excessively deep and possibly infinite in Promise.all`
|
|
9
|
-
*
|
|
10
|
-
* @notes
|
|
11
|
-
* I might take a better look at how things were done in [i18next](https://github.com/i18next/i18next/blob/master/index.d.ts)
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
package/types-seo.d.ts
DELETED
package/types-seo.js
DELETED
package/types-seo.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/useBackUrl.d.ts
DELETED
package/useBackUrl.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useBackUrl = void 0;
|
|
5
|
-
var tslib_1 = require("tslib");
|
|
6
|
-
var react_1 = require("react");
|
|
7
|
-
var router_1 = require("next/router");
|
|
8
|
-
var createStorage_1 = tslib_1.__importDefault(require("@koine/browser/createStorage"));
|
|
9
|
-
var back = (0, createStorage_1.default)({
|
|
10
|
-
lastUrl: "",
|
|
11
|
-
});
|
|
12
|
-
function useBackUrl() {
|
|
13
|
-
var asPath = (0, router_1.useRouter)().asPath;
|
|
14
|
-
var calledOnce = (0, react_1.useRef)(false);
|
|
15
|
-
var _a = (0, react_1.useState)(), backUrl = _a[0], setBackUrl = _a[1];
|
|
16
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17
|
-
(0, react_1.useEffect)(function () {
|
|
18
|
-
if (calledOnce.current) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
var prevLastUrl = back.get("lastUrl");
|
|
22
|
-
// console.log("useBackUrl: prevLastUrl", prevLastUrl);
|
|
23
|
-
// first set it to use on a link, set to undefined if the previous URL
|
|
24
|
-
// is the same as the current one
|
|
25
|
-
setBackUrl(asPath === prevLastUrl || !prevLastUrl ? undefined : prevLastUrl);
|
|
26
|
-
// then update the local storage
|
|
27
|
-
back.set("lastUrl", asPath);
|
|
28
|
-
calledOnce.current = true;
|
|
29
|
-
});
|
|
30
|
-
return backUrl;
|
|
31
|
-
}
|
|
32
|
-
exports.useBackUrl = useBackUrl;
|
|
33
|
-
exports.default = useBackUrl;
|
package/useBackUrl.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import { useRouter } from "next/router";
|
|
4
|
-
import createStorage from "@koine/browser/createStorage";
|
|
5
|
-
var back = createStorage({
|
|
6
|
-
lastUrl: "",
|
|
7
|
-
});
|
|
8
|
-
export function useBackUrl() {
|
|
9
|
-
var asPath = useRouter().asPath;
|
|
10
|
-
var calledOnce = useRef(false);
|
|
11
|
-
var _a = useState(), backUrl = _a[0], setBackUrl = _a[1];
|
|
12
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
13
|
-
useEffect(function () {
|
|
14
|
-
if (calledOnce.current) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
var prevLastUrl = back.get("lastUrl");
|
|
18
|
-
// console.log("useBackUrl: prevLastUrl", prevLastUrl);
|
|
19
|
-
// first set it to use on a link, set to undefined if the previous URL
|
|
20
|
-
// is the same as the current one
|
|
21
|
-
setBackUrl(asPath === prevLastUrl || !prevLastUrl ? undefined : prevLastUrl);
|
|
22
|
-
// then update the local storage
|
|
23
|
-
back.set("lastUrl", asPath);
|
|
24
|
-
calledOnce.current = true;
|
|
25
|
-
});
|
|
26
|
-
return backUrl;
|
|
27
|
-
}
|
|
28
|
-
export default useBackUrl;
|
package/useDateFormat.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import format from "date-fns/format";
|
|
2
|
-
/**
|
|
3
|
-
* Automatically returns the `date-fns/format` function with the right locale
|
|
4
|
-
* passed as option (grabbed from next router value).
|
|
5
|
-
*/
|
|
6
|
-
export declare const useDateFormat: () => typeof format;
|
|
7
|
-
export default useDateFormat;
|
package/useDateFormat.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useDateFormat = void 0;
|
|
5
|
-
var tslib_1 = require("tslib");
|
|
6
|
-
var react_1 = require("react");
|
|
7
|
-
var router_1 = require("next/router");
|
|
8
|
-
var format_1 = tslib_1.__importDefault(require("date-fns/format"));
|
|
9
|
-
var useDateLocale_1 = tslib_1.__importDefault(require("@koine/react/hooks/useDateLocale"));
|
|
10
|
-
/**
|
|
11
|
-
* Automatically returns the `date-fns/format` function with the right locale
|
|
12
|
-
* passed as option (grabbed from next router value).
|
|
13
|
-
*/
|
|
14
|
-
var useDateFormat = function () {
|
|
15
|
-
var _a = (0, react_1.useState)(function () {
|
|
16
|
-
return function () {
|
|
17
|
-
var args = [];
|
|
18
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
19
|
-
args[_i] = arguments[_i];
|
|
20
|
-
}
|
|
21
|
-
return format_1.default.apply(void 0, args);
|
|
22
|
-
};
|
|
23
|
-
}), formatter = _a[0], setFormatter = _a[1];
|
|
24
|
-
var router = (0, router_1.useRouter)();
|
|
25
|
-
var locale = (0, useDateLocale_1.default)(router.locale);
|
|
26
|
-
(0, react_1.useEffect)(function () {
|
|
27
|
-
if (locale) {
|
|
28
|
-
var newFormatter_1 = function (date, _format, options) { return (0, format_1.default)(date, _format, tslib_1.__assign(tslib_1.__assign({}, (options || {})), { locale: locale })); };
|
|
29
|
-
setFormatter(function () {
|
|
30
|
-
return function () {
|
|
31
|
-
var args = [];
|
|
32
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
33
|
-
args[_i] = arguments[_i];
|
|
34
|
-
}
|
|
35
|
-
return newFormatter_1.apply(void 0, args);
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}, [locale]);
|
|
40
|
-
return formatter;
|
|
41
|
-
};
|
|
42
|
-
exports.useDateFormat = useDateFormat;
|
|
43
|
-
exports.default = exports.useDateFormat;
|
package/useDateFormat.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { __assign } from "tslib";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { useRouter } from "next/router";
|
|
5
|
-
import format from "date-fns/format";
|
|
6
|
-
import useDateLocale from "@koine/react/hooks/useDateLocale";
|
|
7
|
-
/**
|
|
8
|
-
* Automatically returns the `date-fns/format` function with the right locale
|
|
9
|
-
* passed as option (grabbed from next router value).
|
|
10
|
-
*/
|
|
11
|
-
export var useDateFormat = function () {
|
|
12
|
-
var _a = useState(function () {
|
|
13
|
-
return function () {
|
|
14
|
-
var args = [];
|
|
15
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16
|
-
args[_i] = arguments[_i];
|
|
17
|
-
}
|
|
18
|
-
return format.apply(void 0, args);
|
|
19
|
-
};
|
|
20
|
-
}), formatter = _a[0], setFormatter = _a[1];
|
|
21
|
-
var router = useRouter();
|
|
22
|
-
var locale = useDateLocale(router.locale);
|
|
23
|
-
useEffect(function () {
|
|
24
|
-
if (locale) {
|
|
25
|
-
var newFormatter_1 = function (date, _format, options) { return format(date, _format, __assign(__assign({}, (options || {})), { locale: locale })); };
|
|
26
|
-
setFormatter(function () {
|
|
27
|
-
return function () {
|
|
28
|
-
var args = [];
|
|
29
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
30
|
-
args[_i] = arguments[_i];
|
|
31
|
-
}
|
|
32
|
-
return newFormatter_1.apply(void 0, args);
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}, [locale]);
|
|
37
|
-
return formatter;
|
|
38
|
-
};
|
|
39
|
-
export default useDateFormat;
|
package/useForm.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { UseFormProps, FieldValues } from "react-hook-form";
|
|
2
|
-
import type { ObjectSchema } from "@kuus/yup";
|
|
3
|
-
import { type TranslateLoose } from "./types-i18n";
|
|
4
|
-
export declare function useForm<T extends FieldValues>(schema: ObjectSchema<any>, t: TranslateLoose, formProps?: UseFormProps, debug?: boolean): {
|
|
5
|
-
watch: import("react-hook-form").UseFormWatch<T>;
|
|
6
|
-
getValues: import("react-hook-form").UseFormGetValues<T>;
|
|
7
|
-
getFieldState: import("react-hook-form").UseFormGetFieldState<T>;
|
|
8
|
-
setError: import("react-hook-form").UseFormSetError<T>;
|
|
9
|
-
clearErrors: import("react-hook-form").UseFormClearErrors<T>;
|
|
10
|
-
setValue: import("react-hook-form").UseFormSetValue<T>;
|
|
11
|
-
trigger: import("react-hook-form").UseFormTrigger<T>;
|
|
12
|
-
formState: import("react-hook-form").FormState<T>;
|
|
13
|
-
resetField: import("react-hook-form").UseFormResetField<T>;
|
|
14
|
-
reset: import("react-hook-form").UseFormReset<T>;
|
|
15
|
-
handleSubmit: import("react-hook-form").UseFormHandleSubmit<T>;
|
|
16
|
-
unregister: import("react-hook-form").UseFormUnregister<T>;
|
|
17
|
-
control: import("react-hook-form").Control<T, any>;
|
|
18
|
-
register: import("react-hook-form").UseFormRegister<T>;
|
|
19
|
-
setFocus: import("react-hook-form").UseFormSetFocus<T>;
|
|
20
|
-
field: {
|
|
21
|
-
control: import("react-hook-form").Control<T, any>;
|
|
22
|
-
register: import("react-hook-form").UseFormRegister<T>;
|
|
23
|
-
setValue: import("react-hook-form").UseFormSetValue<T>;
|
|
24
|
-
t: TranslateLoose;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default useForm;
|
package/useForm.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useForm = void 0;
|
|
5
|
-
var tslib_1 = require("tslib");
|
|
6
|
-
var react_1 = require("react");
|
|
7
|
-
var react_hook_form_1 = require("react-hook-form");
|
|
8
|
-
var yup_1 = require("@hookform/resolvers/yup");
|
|
9
|
-
function useForm(
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
-
schema, t, formProps, debug) {
|
|
12
|
-
if (formProps === void 0) { formProps = {}; }
|
|
13
|
-
// const form = _useForm<InferType<ObjectSchema<T, object>>>({
|
|
14
|
-
var form = (0, react_hook_form_1.useForm)(tslib_1.__assign({
|
|
15
|
-
// @ts-expect-error FIXME:
|
|
16
|
-
resolver: (0, yup_1.yupResolver)(schema) }, formProps));
|
|
17
|
-
// const { control, register, setValue } = form;
|
|
18
|
-
// const field = { control, register, setValue, t };
|
|
19
|
-
// if (process.env["NODE_ENV"] !== "production") {
|
|
20
|
-
// if (debug) {
|
|
21
|
-
// console.info(
|
|
22
|
-
// `Form ${i18nNamespace} data`,
|
|
23
|
-
// form.watch(),
|
|
24
|
-
// `errors: `,
|
|
25
|
-
// form.formState.errors
|
|
26
|
-
// );
|
|
27
|
-
// }
|
|
28
|
-
// }
|
|
29
|
-
// if (formProps.mode === "onChange") {
|
|
30
|
-
// return { field, ...form };
|
|
31
|
-
// }
|
|
32
|
-
return (0, react_1.useMemo)(function () {
|
|
33
|
-
var control = form.control, register = form.register, setValue = form.setValue;
|
|
34
|
-
var field = { control: control, register: register, setValue: setValue, t: t };
|
|
35
|
-
return tslib_1.__assign({ field: field }, form);
|
|
36
|
-
}, [t, form]);
|
|
37
|
-
}
|
|
38
|
-
exports.useForm = useForm;
|
|
39
|
-
exports.default = useForm;
|
package/useForm.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { __assign } from "tslib";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { useForm as _useForm } from "react-hook-form";
|
|
5
|
-
import { yupResolver as resolver } from "@hookform/resolvers/yup";
|
|
6
|
-
export function useForm(
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
-
schema, t, formProps, debug) {
|
|
9
|
-
if (formProps === void 0) { formProps = {}; }
|
|
10
|
-
// const form = _useForm<InferType<ObjectSchema<T, object>>>({
|
|
11
|
-
var form = _useForm(__assign({
|
|
12
|
-
// @ts-expect-error FIXME:
|
|
13
|
-
resolver: resolver(schema) }, formProps));
|
|
14
|
-
// const { control, register, setValue } = form;
|
|
15
|
-
// const field = { control, register, setValue, t };
|
|
16
|
-
// if (process.env["NODE_ENV"] !== "production") {
|
|
17
|
-
// if (debug) {
|
|
18
|
-
// console.info(
|
|
19
|
-
// `Form ${i18nNamespace} data`,
|
|
20
|
-
// form.watch(),
|
|
21
|
-
// `errors: `,
|
|
22
|
-
// form.formState.errors
|
|
23
|
-
// );
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
// if (formProps.mode === "onChange") {
|
|
27
|
-
// return { field, ...form };
|
|
28
|
-
// }
|
|
29
|
-
return useMemo(function () {
|
|
30
|
-
var control = form.control, register = form.register, setValue = form.setValue;
|
|
31
|
-
var field = { control: control, register: register, setValue: setValue, t: t };
|
|
32
|
-
return __assign({ field: field }, form);
|
|
33
|
-
}, [t, form]);
|
|
34
|
-
}
|
|
35
|
-
export default useForm;
|
package/useLocale.d.ts
DELETED
package/useLocale.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useLocale = void 0;
|
|
5
|
-
var tslib_1 = require("tslib");
|
|
6
|
-
var useTranslation_1 = tslib_1.__importDefault(require("next-translate/useTranslation"));
|
|
7
|
-
function useLocale() {
|
|
8
|
-
return (0, useTranslation_1.default)().lang;
|
|
9
|
-
}
|
|
10
|
-
exports.useLocale = useLocale;
|
|
11
|
-
exports.default = useLocale;
|
package/useLocale.mjs
DELETED
package/useT.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { TranslateNamespace, TranslateDefault, TranslateNamespaced } from "./types-i18n";
|
|
2
|
-
/**
|
|
3
|
-
* Wrap `next-translate` useTranslations for type safety and adds TranslationShortcut
|
|
4
|
-
* as second/thir argument.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/vinissimus/next-translate/issues/513#issuecomment-779826418
|
|
7
|
-
*
|
|
8
|
-
* About the typescript support for translation strings see:
|
|
9
|
-
* - https://github.com/vinissimus/next-translate/issues/721
|
|
10
|
-
*
|
|
11
|
-
* **NOTE**: To make typescript work nicely here make sure to enable
|
|
12
|
-
* [`resolveJsonModule`](https://www.typescriptlang.org/tsconfig#resolveJsonModule)
|
|
13
|
-
* in your `tsconfig.json` file.
|
|
14
|
-
*/
|
|
15
|
-
export declare function useT(): TranslateDefault;
|
|
16
|
-
export declare function useT<TNamespace extends TranslateNamespace>(namespace: TNamespace): TranslateNamespaced<TNamespace>;
|
|
17
|
-
export default useT;
|
package/useT.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import useTranslation from "next-translate/useTranslation";
|
|
4
|
-
export function useT(namespace) {
|
|
5
|
-
var t = useTranslation().t;
|
|
6
|
-
var tMemoized = useMemo(function () {
|
|
7
|
-
return function (s, q, o) {
|
|
8
|
-
return t(namespace ? "".concat(namespace, ":").concat(s) : "".concat(s), q === "obj" || q === "" ? null : q, q === "obj" || o === "obj"
|
|
9
|
-
? { returnObjects: true }
|
|
10
|
-
: q === "" || o === ""
|
|
11
|
-
? { fallback: "" }
|
|
12
|
-
: o
|
|
13
|
-
// ) as TReturn extends (undefined | never | unknown) ? TranslateReturn<TranslationQuery, TranslationOptions> : TReturn;
|
|
14
|
-
);
|
|
15
|
-
};
|
|
16
|
-
}, [t, namespace]);
|
|
17
|
-
return tMemoized;
|
|
18
|
-
}
|
|
19
|
-
export default useT;
|
package/useTheme.d.ts
DELETED
package/useTheme.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useTheme = void 0;
|
|
5
|
-
var react_1 = require("react");
|
|
6
|
-
var ThemeContext_1 = require("./ThemeContext");
|
|
7
|
-
/**
|
|
8
|
-
* @borrows [next-themes](https://github.com/pacocoursey/next-themes)
|
|
9
|
-
*/
|
|
10
|
-
var useTheme = function () { return (0, react_1.useContext)(ThemeContext_1.ThemeContext); };
|
|
11
|
-
exports.useTheme = useTheme;
|
|
12
|
-
exports.default = exports.useTheme;
|
package/useTheme.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { ThemeContext } from "./ThemeContext";
|
|
4
|
-
/**
|
|
5
|
-
* @borrows [next-themes](https://github.com/pacocoursey/next-themes)
|
|
6
|
-
*/
|
|
7
|
-
export var useTheme = function () { return useContext(ThemeContext); };
|
|
8
|
-
export default useTheme;
|
package/useTo.d.ts
DELETED
package/useTo.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useTo = void 0;
|
|
5
|
-
var tslib_1 = require("tslib");
|
|
6
|
-
var useT_1 = require("./useT");
|
|
7
|
-
var to_1 = require("./to");
|
|
8
|
-
function useTo() {
|
|
9
|
-
var t = (0, useT_1.useT)("~");
|
|
10
|
-
return function () {
|
|
11
|
-
var args = [];
|
|
12
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
13
|
-
args[_i] = arguments[_i];
|
|
14
|
-
}
|
|
15
|
-
return to_1.to.apply(void 0, tslib_1.__spreadArray([t], args, false));
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
exports.useTo = useTo;
|
|
19
|
-
exports.default = useTo;
|
package/useTo.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { __spreadArray } from "tslib";
|
|
3
|
-
import { useT } from "./useT";
|
|
4
|
-
import { to } from "./to";
|
|
5
|
-
export function useTo() {
|
|
6
|
-
var t = useT("~");
|
|
7
|
-
return function () {
|
|
8
|
-
var args = [];
|
|
9
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10
|
-
args[_i] = arguments[_i];
|
|
11
|
-
}
|
|
12
|
-
return to.apply(void 0, __spreadArray([t], args, false));
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export default useTo;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{Seo.js → 12/Seo.js}
RENAMED
|
File without changes
|
/package/{Seo.mjs → 12/Seo.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{T.js → 12/T.js}
RENAMED
|
File without changes
|
/package/{T.mjs → 12/T.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{app → 12/app}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{getT.js → 12/getT.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{legacy → 12}/index.js
RENAMED
|
File without changes
|
/package/{legacy → 12}/index.mjs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{legacy → 12}/to.d.ts
RENAMED
|
File without changes
|
/package/{legacy → 12}/to.js
RENAMED
|
File without changes
|
/package/{legacy → 12}/to.mjs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|