@koine/next 1.0.5 → 1.0.10
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/README.md +0 -0
- package/package.json +26 -25
- package/{types.d.ts → typings.d.ts} +10 -7
- package/Analytics/AnalyticsGoogle.d.ts +0 -6
- package/Analytics/index.d.ts +0 -1
- package/Auth/helpers.d.ts +0 -17
- package/Auth/index.d.ts +0 -4
- package/Auth/useLogin.d.ts +0 -7
- package/Auth/useLoginUrl.d.ts +0 -1
- package/Auth/useLogout.d.ts +0 -6
- package/Favicon/Favicon.d.ts +0 -4
- package/Favicon/index.d.ts +0 -1
- package/Forms/index.d.ts +0 -2
- package/Forms/useForm.d.ts +0 -32
- package/Forms/useSubmit.d.ts +0 -24
- package/Head/Head.d.ts +0 -1
- package/Head/index.d.ts +0 -1
- package/I18n/I18n.d.ts +0 -48
- package/I18n/index.d.ts +0 -1
- package/Img/Img.d.ts +0 -21
- package/Img/index.d.ts +0 -1
- package/Link/Link.d.ts +0 -8
- package/Link/index.d.ts +0 -1
- package/NextProgress/NextProgress.d.ts +0 -14
- package/NextProgress/index.d.ts +0 -1
- package/Seo/Seo.d.ts +0 -3
- package/Seo/SeoDefaults.d.ts +0 -3
- package/Seo/helpers.d.ts +0 -48
- package/Seo/index.d.ts +0 -12
- package/Theme/Theme.d.ts +0 -46
- package/Theme/index.d.ts +0 -1
- package/Theme.cjs.js +0 -1905
- package/_tslib.cjs.js +0 -41
- package/app/App--emotion.d.ts +0 -10
- package/app/App--sc.d.ts +0 -10
- package/app/App--vanilla.d.ts +0 -10
- package/app/AppAuth--emotion.d.ts +0 -10
- package/app/AppAuth--sc.d.ts +0 -10
- package/app/AppHead.d.ts +0 -3
- package/app/AppMain--vanilla.d.ts +0 -27
- package/app/AppMain.d.ts +0 -34
- package/app/AppTheme--emotion.d.ts +0 -15
- package/app/AppTheme--sc.d.ts +0 -13
- package/app/AppTheme--vanilla.d.ts +0 -10
- package/app/index.d.ts +0 -11
- package/app/motion-features.d.ts +0 -2
- package/app.js +0 -256
- package/config/index.d.ts +0 -58
- package/config.js +0 -183
- package/document/Document--emotion.d.ts +0 -5
- package/document/Document--sc.d.ts +0 -11
- package/document/Document--vanilla.d.ts +0 -11
- package/document/Document.d.ts +0 -10
- package/document/emotion.d.ts +0 -5
- package/document/index.d.ts +0 -4
- package/document.js +0 -207
- package/emotion.cjs.js +0 -1329
- package/es.object.assign.cjs.js +0 -1074
- package/es.string.replace.cjs.js +0 -785
- package/es.string.split.cjs.js +0 -201
- package/index.d.ts +0 -12
- package/index.esm.js +0 -4600
- package/index.js +0 -743
- package/index.umd.js +0 -4638
- package/motion-features.cjs.js +0 -10
- package/utils/api.d.ts +0 -55
- package/utils/index.d.ts +0 -19
package/motion-features.cjs.js
DELETED
package/utils/api.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
declare type _Response = Response;
|
|
2
|
-
export declare namespace KoineApi {
|
|
3
|
-
type ResponseSuccesfull = unknown;
|
|
4
|
-
type ResponseFailed = unknown;
|
|
5
|
-
type ResponseShared<T extends Record<string, unknown> = {}> = T & {
|
|
6
|
-
status: _Response["status"];
|
|
7
|
-
msg: _Response["statusText"];
|
|
8
|
-
};
|
|
9
|
-
type Response<Succesfull extends ResponseSuccesfull = ResponseSuccesfull, Failed extends ResponseFailed = ResponseFailed> = {
|
|
10
|
-
status: _Response["status"];
|
|
11
|
-
msg: _Response["statusText"];
|
|
12
|
-
ok: true;
|
|
13
|
-
fail?: false;
|
|
14
|
-
data: Succesfull;
|
|
15
|
-
} | {
|
|
16
|
-
status: _Response["status"];
|
|
17
|
-
msg: _Response["statusText"];
|
|
18
|
-
ok?: false;
|
|
19
|
-
fail: true;
|
|
20
|
-
data: Failed;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Request options
|
|
24
|
-
*/
|
|
25
|
-
type RequestOptions<TJson = unknown> = {
|
|
26
|
-
/**
|
|
27
|
-
* JSON request body
|
|
28
|
-
*
|
|
29
|
-
* @default {}
|
|
30
|
-
*/
|
|
31
|
-
json?: TJson;
|
|
32
|
-
/**
|
|
33
|
-
* Params will be serialized into a string and appended to the URL
|
|
34
|
-
*/
|
|
35
|
-
params?: Record<string, unknown>;
|
|
36
|
-
/**
|
|
37
|
-
* Headers will be merged with
|
|
38
|
-
* ```
|
|
39
|
-
* { "content-type": "application/json" }
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
headers?: RequestInit["headers"];
|
|
43
|
-
/**
|
|
44
|
-
* Timeout in `ms`, if `falsy` there is no timeout
|
|
45
|
-
*
|
|
46
|
-
* @default 10000
|
|
47
|
-
*/
|
|
48
|
-
timeout?: number | false | null;
|
|
49
|
-
};
|
|
50
|
-
type RequestMethod = "get" | "post" | "put" | "patch" | "delete";
|
|
51
|
-
type RequestFn = <Succesfull extends ResponseSuccesfull = unknown, Failed extends ResponseFailed = unknown>(endpoint: string, options?: RequestOptions) => Promise<Response<Succesfull, Failed>>;
|
|
52
|
-
type Client = Record<RequestMethod, RequestFn>;
|
|
53
|
-
}
|
|
54
|
-
export declare const api: KoineApi.Client;
|
|
55
|
-
export {};
|
package/utils/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from "./api";
|
|
2
|
-
export declare const ONE_HOUR = 3600;
|
|
3
|
-
export declare const ONE_DAY = 84000;
|
|
4
|
-
/**
|
|
5
|
-
* Get site absolute url with the given path
|
|
6
|
-
*
|
|
7
|
-
* - It uses the `NEXT_PUBLIC_APP_URL` env variable
|
|
8
|
-
* - It removes the trailing slashes
|
|
9
|
-
*/
|
|
10
|
-
export declare function getSiteUrl(path?: string): string;
|
|
11
|
-
/**
|
|
12
|
-
* Utility to load a component with an optional pre-determined delay.
|
|
13
|
-
*
|
|
14
|
-
* This was designed to improve anti spam wit async form loading.
|
|
15
|
-
*
|
|
16
|
-
* @see https://github.com/vercel/next.js/blob/main/packages/next/next-server/lib/dynamic.tsx
|
|
17
|
-
* @see https://github.com/vercel/next.js/blob/canary/examples/with-dynamic-import/pages/index.js
|
|
18
|
-
*/
|
|
19
|
-
export declare function load<T>(component: T, milliseconds: number): Promise<T>;
|