@koine/next 2.0.0-beta.4 → 2.0.0-beta.42
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.d.ts +0 -1
- package/12/DisableErrorOverlay.d.ts +0 -5
- package/12/NextProgress.d.ts +1 -4
- package/12/Seo.d.ts +0 -24
- package/12/SeoDefaults.d.ts +0 -3
- package/12/seoBuildTags.d.ts +0 -15
- package/12/types-seo.d.ts +0 -0
- package/12/types.d.ts +1 -0
- package/12.cjs.d.ts +1 -0
- package/12.cjs.default.js +1 -0
- package/12.cjs.js +28 -0
- package/12.cjs.mjs +2 -0
- package/12.d.ts +3 -0
- package/12.esm.js +18 -0
- package/config.cjs.d.ts +1 -0
- package/config.cjs.default.js +1 -0
- package/config.cjs.js +9 -0
- package/config.cjs.mjs +2 -0
- package/config.d.ts +106 -0
- package/config.esm.js +5 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +25 -0
- package/index.cjs.mjs +2 -0
- package/index.d.ts +4 -2
- package/index.esm.js +14 -0
- package/package.json +29 -83
- package/theme/ThemeContext.d.ts +11 -0
- package/theme/ThemeProvider.d.ts +17 -0
- package/theme/useTheme.d.ts +4 -0
- package/utils/load.d.ts +1 -0
- package/12/AnalyticsGoogle.js +0 -79
- package/12/AnalyticsGoogle.mjs +0 -60
- package/12/DisableErrorOverlay.js +0 -31
- package/12/DisableErrorOverlay.mjs +0 -16
- package/12/DynamicNamespaces.d.ts +0 -13
- package/12/DynamicNamespaces.js +0 -23
- package/12/DynamicNamespaces.mjs +0 -8
- package/12/Favicon.d.ts +0 -4
- package/12/Favicon.js +0 -29
- package/12/Favicon.mjs +0 -10
- package/12/Link.d.ts +0 -10
- package/12/Link.js +0 -38
- package/12/Link.mjs +0 -20
- package/12/NextProgress.js +0 -69
- package/12/NextProgress.mjs +0 -51
- package/12/Seo.js +0 -29
- package/12/Seo.mjs +0 -30
- package/12/SeoDefaults.js +0 -31
- package/12/SeoDefaults.mjs +0 -14
- package/12/T.d.ts +0 -16
- package/12/T.js +0 -43
- package/12/T.mjs +0 -27
- package/12/ThemeContext.d.ts +0 -17
- package/12/ThemeContext.js +0 -25
- package/12/ThemeContext.mjs +0 -7
- package/12/ThemeProvider.d.ts +0 -35
- package/12/ThemeProvider.js +0 -256
- package/12/ThemeProvider.mjs +0 -245
- package/12/TransText.d.ts +0 -3
- package/12/TransText.js +0 -23
- package/12/TransText.mjs +0 -4
- package/12/app/AppHead.d.ts +0 -3
- package/12/app/AppHead.js +0 -31
- package/12/app/AppHead.mjs +0 -12
- package/12/app/AppMain.d.ts +0 -35
- package/12/app/AppMain.js +0 -6
- package/12/app/AppMain.mjs +0 -1
- package/12/app/css/AppMain.d.ts +0 -9
- package/12/app/css/AppMain.js +0 -39
- package/12/app/css/AppMain.mjs +0 -24
- package/12/app/css/AppTheme.d.ts +0 -11
- package/12/app/css/AppTheme.js +0 -33
- package/12/app/css/AppTheme.mjs +0 -17
- package/12/app/css/auth/index.d.ts +0 -11
- package/12/app/css/auth/index.js +0 -40
- package/12/app/css/auth/index.mjs +0 -24
- package/12/app/css/index.d.ts +0 -54
- package/12/app/css/index.js +0 -36
- package/12/app/css/index.mjs +0 -65
- package/12/app/index.d.ts +0 -2
- package/12/app/index.js +0 -7
- package/12/app/index.mjs +0 -2
- package/12/app/sc/AppMain.d.ts +0 -11
- package/12/app/sc/AppMain.js +0 -70
- package/12/app/sc/AppMain.mjs +0 -58
- package/12/app/sc/AppTheme.d.ts +0 -14
- package/12/app/sc/AppTheme.js +0 -33
- package/12/app/sc/AppTheme.mjs +0 -16
- package/12/app/sc/auth/index.d.ts +0 -11
- package/12/app/sc/auth/index.js +0 -40
- package/12/app/sc/auth/index.mjs +0 -24
- package/12/app/sc/index.d.ts +0 -56
- package/12/app/sc/index.js +0 -36
- package/12/app/sc/index.mjs +0 -67
- package/12/document/Document.d.ts +0 -15
- package/12/document/Document.js +0 -49
- package/12/document/Document.mjs +0 -38
- package/12/document/css/index.d.ts +0 -17
- package/12/document/css/index.js +0 -60
- package/12/document/css/index.mjs +0 -53
- package/12/document/index.d.ts +0 -2
- package/12/document/index.js +0 -19
- package/12/document/index.mjs +0 -2
- package/12/document/sc/index.d.ts +0 -19
- package/12/document/sc/index.js +0 -73
- package/12/document/sc/index.mjs +0 -65
- package/12/getT.d.ts +0 -9
- package/12/getT.js +0 -23
- package/12/getT.mjs +0 -8
- package/12/index.d.ts +0 -24
- package/12/index.js +0 -100
- package/12/index.mjs +0 -27
- package/12/seoBuildTags.js +0 -126
- package/12/seoBuildTags.mjs +0 -121
- package/12/to.d.ts +0 -24
- package/12/to.js +0 -31
- package/12/to.mjs +0 -19
- package/12/translationAsOptions.d.ts +0 -3
- package/12/translationAsOptions.js +0 -19
- package/12/translationAsOptions.mjs +0 -9
- package/12/types-i18n.d.ts +0 -118
- package/12/types-i18n.js +0 -15
- package/12/types-i18n.mjs +0 -12
- package/12/types-seo.js +0 -4
- package/12/types-seo.mjs +0 -1
- package/12/useBackUrl.d.ts +0 -2
- package/12/useBackUrl.js +0 -47
- package/12/useBackUrl.mjs +0 -28
- package/12/useDateFormat.d.ts +0 -7
- package/12/useDateFormat.js +0 -42
- package/12/useDateFormat.mjs +0 -26
- package/12/useForm.d.ts +0 -27
- package/12/useForm.js +0 -65
- package/12/useForm.mjs +0 -47
- package/12/useLocale.d.ts +0 -2
- package/12/useLocale.js +0 -25
- package/12/useLocale.mjs +0 -6
- package/12/useT.d.ts +0 -4
- package/12/useT.js +0 -58
- package/12/useT.mjs +0 -39
- package/12/useTheme.d.ts +0 -7
- package/12/useTheme.js +0 -23
- package/12/useTheme.mjs +0 -7
- package/12/useTo.d.ts +0 -3
- package/12/useTo.js +0 -26
- package/12/useTo.mjs +0 -8
- package/config/index.d.ts +0 -160
- package/config/index.js +0 -317
- package/config/index.mjs +0 -315
- package/getSiteUrl.d.ts +0 -8
- package/getSiteUrl.js +0 -24
- package/getSiteUrl.mjs +0 -10
- package/index.js +0 -20
- package/index.mjs +0 -2
- package/load.d.ts +0 -10
- package/load.js +0 -31
- package/load.mjs +0 -13
- package/typings.d.ts +0 -72
package/12/types-i18n.mjs
DELETED
|
@@ -1,12 +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+8HABEwRAcXU6CETtgAAR2AAB2ABWRiAGZsBYgA2DjgGwABOFjcF4+iAAYdxtUlyUpItw2NXkAAUkkxGgulccwUHGKZdA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NAhWzVhWsta1sAQ1+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
|
-
*/ export { };
|
package/12/types-seo.js
DELETED
package/12/types-seo.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/12/useBackUrl.d.ts
DELETED
package/12/useBackUrl.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
useBackUrl: function() {
|
|
14
|
-
return useBackUrl;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
21
|
-
const _router = require("next/router");
|
|
22
|
-
const _react = require("react");
|
|
23
|
-
const _createStorage = /*#__PURE__*/ _interop_require_default._(require("@koine/browser/createStorage"));
|
|
24
|
-
const back = (0, _createStorage.default)({
|
|
25
|
-
lastUrl: ""
|
|
26
|
-
});
|
|
27
|
-
function useBackUrl() {
|
|
28
|
-
const { asPath } = (0, _router.useRouter)();
|
|
29
|
-
const calledOnce = (0, _react.useRef)(false);
|
|
30
|
-
const [backUrl, setBackUrl] = (0, _react.useState)();
|
|
31
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
-
(0, _react.useEffect)(()=>{
|
|
33
|
-
if (calledOnce.current) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const prevLastUrl = back.get("lastUrl");
|
|
37
|
-
// console.log("useBackUrl: prevLastUrl", prevLastUrl);
|
|
38
|
-
// first set it to use on a link, set to undefined if the previous URL
|
|
39
|
-
// is the same as the current one
|
|
40
|
-
setBackUrl(asPath === prevLastUrl || !prevLastUrl ? undefined : prevLastUrl);
|
|
41
|
-
// then update the local storage
|
|
42
|
-
back.set("lastUrl", asPath);
|
|
43
|
-
calledOnce.current = true;
|
|
44
|
-
});
|
|
45
|
-
return backUrl;
|
|
46
|
-
}
|
|
47
|
-
const _default = useBackUrl;
|
package/12/useBackUrl.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useRouter } from "next/router";
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
4
|
-
import createStorage from "@koine/browser/createStorage";
|
|
5
|
-
const back = createStorage({
|
|
6
|
-
lastUrl: ""
|
|
7
|
-
});
|
|
8
|
-
export function useBackUrl() {
|
|
9
|
-
const { asPath } = useRouter();
|
|
10
|
-
const calledOnce = useRef(false);
|
|
11
|
-
const [backUrl, setBackUrl] = useState();
|
|
12
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
13
|
-
useEffect(()=>{
|
|
14
|
-
if (calledOnce.current) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const 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/12/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/12/useDateFormat.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
useDateFormat: function() {
|
|
14
|
-
return useDateFormat;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
21
|
-
const _format = /*#__PURE__*/ _interop_require_default._(require("date-fns/format"));
|
|
22
|
-
const _router = require("next/router");
|
|
23
|
-
const _react = require("react");
|
|
24
|
-
const _useDateLocale = /*#__PURE__*/ _interop_require_default._(require("@koine/react/hooks/useDateLocale"));
|
|
25
|
-
const useDateFormat = ()=>{
|
|
26
|
-
const [formatter, setFormatter] = (0, _react.useState)(()=>(...args)=>(0, _format.default)(...args));
|
|
27
|
-
const router = (0, _router.useRouter)();
|
|
28
|
-
const locale = (0, _useDateLocale.default)(router.locale);
|
|
29
|
-
(0, _react.useEffect)(()=>{
|
|
30
|
-
if (locale) {
|
|
31
|
-
const newFormatter = (date, _format1, options)=>(0, _format.default)(date, _format1, {
|
|
32
|
-
...options || {},
|
|
33
|
-
locale
|
|
34
|
-
});
|
|
35
|
-
setFormatter(()=>(...args)=>newFormatter(...args));
|
|
36
|
-
}
|
|
37
|
-
}, [
|
|
38
|
-
locale
|
|
39
|
-
]);
|
|
40
|
-
return formatter;
|
|
41
|
-
};
|
|
42
|
-
const _default = useDateFormat;
|
package/12/useDateFormat.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import format from "date-fns/format";
|
|
3
|
-
import { useRouter } from "next/router";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
import useDateLocale from "@koine/react/hooks/useDateLocale";
|
|
6
|
-
/**
|
|
7
|
-
* Automatically returns the `date-fns/format` function with the right locale
|
|
8
|
-
* passed as option (grabbed from next router value).
|
|
9
|
-
*/ export const useDateFormat = ()=>{
|
|
10
|
-
const [formatter, setFormatter] = useState(()=>(...args)=>format(...args));
|
|
11
|
-
const router = useRouter();
|
|
12
|
-
const locale = useDateLocale(router.locale);
|
|
13
|
-
useEffect(()=>{
|
|
14
|
-
if (locale) {
|
|
15
|
-
const newFormatter = (date, _format, options)=>format(date, _format, {
|
|
16
|
-
...options || {},
|
|
17
|
-
locale
|
|
18
|
-
});
|
|
19
|
-
setFormatter(()=>(...args)=>newFormatter(...args));
|
|
20
|
-
}
|
|
21
|
-
}, [
|
|
22
|
-
locale
|
|
23
|
-
]);
|
|
24
|
-
return formatter;
|
|
25
|
-
};
|
|
26
|
-
export default useDateFormat;
|
package/12/useForm.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ObjectSchema } from "@kuus/yup";
|
|
2
|
-
import type { FieldValues, UseFormProps } from "react-hook-form";
|
|
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, undefined>;
|
|
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/12/useForm.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
useForm: function() {
|
|
14
|
-
return useForm;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _yup = require("@hookform/resolvers/yup");
|
|
21
|
-
const _react = require("react");
|
|
22
|
-
const _reacthookform = require("react-hook-form");
|
|
23
|
-
function useForm(// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
-
schema, t, formProps = {}, debug) {
|
|
25
|
-
// const form = _useForm<InferType<ObjectSchema<T, object>>>({
|
|
26
|
-
const form = (0, _reacthookform.useForm)({
|
|
27
|
-
// @ts-expect-error FIXME:
|
|
28
|
-
resolver: (0, _yup.yupResolver)(schema),
|
|
29
|
-
// make the form behave more closer as native:
|
|
30
|
-
// shouldUnregister: true,
|
|
31
|
-
...formProps
|
|
32
|
-
});
|
|
33
|
-
// const { control, register, setValue } = form;
|
|
34
|
-
// const field = { control, register, setValue, t };
|
|
35
|
-
// if (process.env["NODE_ENV"] !== "production") {
|
|
36
|
-
// if (debug) {
|
|
37
|
-
// console.info(
|
|
38
|
-
// `Form ${i18nNamespace} data`,
|
|
39
|
-
// form.watch(),
|
|
40
|
-
// `errors: `,
|
|
41
|
-
// form.formState.errors
|
|
42
|
-
// );
|
|
43
|
-
// }
|
|
44
|
-
// }
|
|
45
|
-
// if (formProps.mode === "onChange") {
|
|
46
|
-
// return { field, ...form };
|
|
47
|
-
// }
|
|
48
|
-
return (0, _react.useMemo)(()=>{
|
|
49
|
-
const { control, register, setValue } = form;
|
|
50
|
-
const field = {
|
|
51
|
-
control,
|
|
52
|
-
register,
|
|
53
|
-
setValue,
|
|
54
|
-
t
|
|
55
|
-
};
|
|
56
|
-
return {
|
|
57
|
-
field,
|
|
58
|
-
...form
|
|
59
|
-
};
|
|
60
|
-
}, [
|
|
61
|
-
t,
|
|
62
|
-
form
|
|
63
|
-
]);
|
|
64
|
-
}
|
|
65
|
-
const _default = useForm;
|
package/12/useForm.mjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { yupResolver as resolver } from "@hookform/resolvers/yup";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { useForm as _useForm } from "react-hook-form";
|
|
5
|
-
export function useForm(// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
-
schema, t, formProps = {}, debug) {
|
|
7
|
-
// const form = _useForm<InferType<ObjectSchema<T, object>>>({
|
|
8
|
-
const form = _useForm({
|
|
9
|
-
// @ts-expect-error FIXME:
|
|
10
|
-
resolver: resolver(schema),
|
|
11
|
-
// make the form behave more closer as native:
|
|
12
|
-
// shouldUnregister: true,
|
|
13
|
-
...formProps
|
|
14
|
-
});
|
|
15
|
-
// const { control, register, setValue } = form;
|
|
16
|
-
// const field = { control, register, setValue, t };
|
|
17
|
-
// if (process.env["NODE_ENV"] !== "production") {
|
|
18
|
-
// if (debug) {
|
|
19
|
-
// console.info(
|
|
20
|
-
// `Form ${i18nNamespace} data`,
|
|
21
|
-
// form.watch(),
|
|
22
|
-
// `errors: `,
|
|
23
|
-
// form.formState.errors
|
|
24
|
-
// );
|
|
25
|
-
// }
|
|
26
|
-
// }
|
|
27
|
-
// if (formProps.mode === "onChange") {
|
|
28
|
-
// return { field, ...form };
|
|
29
|
-
// }
|
|
30
|
-
return useMemo(()=>{
|
|
31
|
-
const { control, register, setValue } = form;
|
|
32
|
-
const field = {
|
|
33
|
-
control,
|
|
34
|
-
register,
|
|
35
|
-
setValue,
|
|
36
|
-
t
|
|
37
|
-
};
|
|
38
|
-
return {
|
|
39
|
-
field,
|
|
40
|
-
...form
|
|
41
|
-
};
|
|
42
|
-
}, [
|
|
43
|
-
t,
|
|
44
|
-
form
|
|
45
|
-
]);
|
|
46
|
-
}
|
|
47
|
-
export default useForm;
|
package/12/useLocale.d.ts
DELETED
package/12/useLocale.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
useLocale: function() {
|
|
14
|
-
return useLocale;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
21
|
-
const _useTranslation = /*#__PURE__*/ _interop_require_default._(require("next-translate/useTranslation"));
|
|
22
|
-
function useLocale() {
|
|
23
|
-
return (0, _useTranslation.default)().lang;
|
|
24
|
-
}
|
|
25
|
-
const _default = useLocale;
|
package/12/useLocale.mjs
DELETED
package/12/useT.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TranslateDefault, TranslateNamespace, TranslateNamespaced } from "./types-i18n";
|
|
2
|
-
export declare function useT(): TranslateDefault;
|
|
3
|
-
export declare function useT<TNamespace extends TranslateNamespace>(namespace: TNamespace): TranslateNamespaced<TNamespace>;
|
|
4
|
-
export default useT;
|
package/12/useT.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
useT: function() {
|
|
14
|
-
return useT;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default // Instead of wrapping the `useTranslation` hook from [`next-translate`](https://github.com/vinissimus/next-translate/blob/master/src/useTranslation.tsx)
|
|
18
|
-
// we might just rewrite it with our custom implementation but the `_context`
|
|
19
|
-
// to use is not exposed by the library...
|
|
20
|
-
// import { useContext/* , useMemo */ } from "react"
|
|
21
|
-
// // import wrapTWithDefaultNs from "next-translate";
|
|
22
|
-
// import I18nContext from "next-translate/context";
|
|
23
|
-
// import type { Translate } from "./types-i18n";
|
|
24
|
-
// export default function useT(_defaultNS?: string) {
|
|
25
|
-
// const ctx = useContext(I18nContext);
|
|
26
|
-
// return ctx.t as Translate;
|
|
27
|
-
// // return useMemo(
|
|
28
|
-
// // () => ({
|
|
29
|
-
// // ...ctx,
|
|
30
|
-
// // t: wrapTWithDefaultNs(ctx.t, defaultNS),
|
|
31
|
-
// // }),
|
|
32
|
-
// // [ctx, defaultNS]
|
|
33
|
-
// // )
|
|
34
|
-
// }
|
|
35
|
-
;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
39
|
-
const _context = /*#__PURE__*/ _interop_require_default._(require("next-translate/context"));
|
|
40
|
-
const _react = require("react");
|
|
41
|
-
function useT(namespace) {
|
|
42
|
-
const { t } = (0, _react.useContext)(_context.default);
|
|
43
|
-
// const t = useTranslation().t;
|
|
44
|
-
const tMemoized = (0, _react.useMemo)(()=>function(s, q, o) {
|
|
45
|
-
return t(namespace ? `${namespace}:${s}` : `${s}`, q === "obj" || q === "" ? null : q, q === "obj" || o === "obj" ? {
|
|
46
|
-
returnObjects: true
|
|
47
|
-
} : q === "" || o === "" ? {
|
|
48
|
-
fallback: ""
|
|
49
|
-
} : o);
|
|
50
|
-
// ) as TReturn extends (undefined | never | unknown) ? TranslateReturn<TranslationQuery, TranslationOptions> : TReturn;
|
|
51
|
-
// );
|
|
52
|
-
}, [
|
|
53
|
-
t,
|
|
54
|
-
namespace
|
|
55
|
-
]);
|
|
56
|
-
return tMemoized;
|
|
57
|
-
}
|
|
58
|
-
const _default = useT;
|
package/12/useT.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
// import useTranslation from "next-translate/useTranslation";
|
|
3
|
-
import I18nContext from "next-translate/context";
|
|
4
|
-
import { useContext, useMemo } from "react";
|
|
5
|
-
export function useT(namespace) {
|
|
6
|
-
const { t } = useContext(I18nContext);
|
|
7
|
-
// const t = useTranslation().t;
|
|
8
|
-
const tMemoized = useMemo(()=>function(s, q, o) {
|
|
9
|
-
return t(namespace ? `${namespace}:${s}` : `${s}`, q === "obj" || q === "" ? null : q, q === "obj" || o === "obj" ? {
|
|
10
|
-
returnObjects: true
|
|
11
|
-
} : q === "" || o === "" ? {
|
|
12
|
-
fallback: ""
|
|
13
|
-
} : o);
|
|
14
|
-
// ) as TReturn extends (undefined | never | unknown) ? TranslateReturn<TranslationQuery, TranslationOptions> : TReturn;
|
|
15
|
-
// );
|
|
16
|
-
}, [
|
|
17
|
-
t,
|
|
18
|
-
namespace
|
|
19
|
-
]);
|
|
20
|
-
return tMemoized;
|
|
21
|
-
}
|
|
22
|
-
export default useT; // Instead of wrapping the `useTranslation` hook from [`next-translate`](https://github.com/vinissimus/next-translate/blob/master/src/useTranslation.tsx)
|
|
23
|
-
// we might just rewrite it with our custom implementation but the `_context`
|
|
24
|
-
// to use is not exposed by the library...
|
|
25
|
-
// import { useContext/* , useMemo */ } from "react"
|
|
26
|
-
// // import wrapTWithDefaultNs from "next-translate";
|
|
27
|
-
// import I18nContext from "next-translate/context";
|
|
28
|
-
// import type { Translate } from "./types-i18n";
|
|
29
|
-
// export default function useT(_defaultNS?: string) {
|
|
30
|
-
// const ctx = useContext(I18nContext);
|
|
31
|
-
// return ctx.t as Translate;
|
|
32
|
-
// // return useMemo(
|
|
33
|
-
// // () => ({
|
|
34
|
-
// // ...ctx,
|
|
35
|
-
// // t: wrapTWithDefaultNs(ctx.t, defaultNS),
|
|
36
|
-
// // }),
|
|
37
|
-
// // [ctx, defaultNS]
|
|
38
|
-
// // )
|
|
39
|
-
// }
|
package/12/useTheme.d.ts
DELETED
package/12/useTheme.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
useTheme: function() {
|
|
14
|
-
return useTheme;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _react = require("react");
|
|
21
|
-
const _ThemeContext = require("./ThemeContext");
|
|
22
|
-
const useTheme = ()=>(0, _react.useContext)(_ThemeContext.ThemeContext);
|
|
23
|
-
const _default = useTheme;
|
package/12/useTheme.mjs
DELETED
package/12/useTo.d.ts
DELETED
package/12/useTo.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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
|
-
useTo: function() {
|
|
14
|
-
return useTo;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _to = require("./to");
|
|
21
|
-
const _useT = require("./useT");
|
|
22
|
-
function useTo() {
|
|
23
|
-
const t = (0, _useT.useT)("~");
|
|
24
|
-
return (...args)=>(0, _to.to)(t, ...args);
|
|
25
|
-
}
|
|
26
|
-
const _default = useTo;
|