@akanjs/client 0.9.60-canary.9 → 1.0.1-canary.0
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 +1 -1
- package/package.json +5 -3
- package/src/useClient.d.ts +8 -8
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
This package is a sub-library of akanjs. For more information, please refer to [@akanjs/cli](https://www.npmjs.com/package/@akanjs/cli) and the [Akan.js Github](https://github.com/akan-team/akanjs).
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1-canary.0",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
+
"homepage": "https://akanjs.com",
|
|
9
|
+
"license": "MIT",
|
|
8
10
|
"repository": {
|
|
9
11
|
"type": "git",
|
|
10
12
|
"url": "https://github.com/akan-team/akanjs.git",
|
|
@@ -24,8 +26,8 @@
|
|
|
24
26
|
"clsx": "^2.1.1",
|
|
25
27
|
"js-cookie": "^3.0.5",
|
|
26
28
|
"jwt-decode": "^4.0.0",
|
|
27
|
-
"next": "16.0.
|
|
28
|
-
"react": "19.2.
|
|
29
|
+
"next": "16.0.10",
|
|
30
|
+
"react": "19.2.3",
|
|
29
31
|
"react-device-detect": "^2.2.3"
|
|
30
32
|
},
|
|
31
33
|
"exports": {
|
package/src/useClient.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type * as signal from "@akanjs/signal";
|
|
2
2
|
export declare const msg: {
|
|
3
|
-
info: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "error" | "password" | "save" | "remove" | "
|
|
4
|
-
success: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "error" | "password" | "save" | "remove" | "
|
|
5
|
-
error: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "error" | "password" | "save" | "remove" | "
|
|
6
|
-
warning: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "error" | "password" | "save" | "remove" | "
|
|
7
|
-
loading: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "error" | "password" | "save" | "remove" | "
|
|
3
|
+
info: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "view" | "error" | "password" | "save" | "remove" | "ok" | "new" | "somethingWrong" | "connecting" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "success" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "cancel" | "unauthorized" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "addModel" | "createModel" | "createSuccess" | "updateModel" | "removeModel" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "actions" | "edit">, option?: import("./makePageProto").TransMessageOption) => void;
|
|
4
|
+
success: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "view" | "error" | "password" | "save" | "remove" | "ok" | "new" | "somethingWrong" | "connecting" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "success" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "cancel" | "unauthorized" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "addModel" | "createModel" | "createSuccess" | "updateModel" | "removeModel" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "actions" | "edit">, option?: import("./makePageProto").TransMessageOption) => void;
|
|
5
|
+
error: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "view" | "error" | "password" | "save" | "remove" | "ok" | "new" | "somethingWrong" | "connecting" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "success" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "cancel" | "unauthorized" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "addModel" | "createModel" | "createSuccess" | "updateModel" | "removeModel" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "actions" | "edit">, option?: import("./makePageProto").TransMessageOption) => void;
|
|
6
|
+
warning: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "view" | "error" | "password" | "save" | "remove" | "ok" | "new" | "somethingWrong" | "connecting" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "success" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "cancel" | "unauthorized" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "addModel" | "createModel" | "createSuccess" | "updateModel" | "removeModel" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "actions" | "edit">, option?: import("./makePageProto").TransMessageOption) => void;
|
|
7
|
+
loading: (key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "view" | "error" | "password" | "save" | "remove" | "ok" | "new" | "somethingWrong" | "connecting" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "success" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "cancel" | "unauthorized" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "addModel" | "createModel" | "createSuccess" | "updateModel" | "removeModel" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "actions" | "edit">, option?: import("./makePageProto").TransMessageOption) => void;
|
|
8
8
|
}, Revert: {
|
|
9
9
|
new (key: never, data?: any): {
|
|
10
10
|
name: string;
|
|
@@ -17,16 +17,16 @@ export declare const msg: {
|
|
|
17
17
|
}, usePage: () => {
|
|
18
18
|
path: string;
|
|
19
19
|
l: {
|
|
20
|
-
(key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "error" | "password" | "save" | "remove" | "
|
|
20
|
+
(key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "view" | "error" | "password" | "save" | "remove" | "ok" | "new" | "somethingWrong" | "connecting" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "success" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "cancel" | "unauthorized" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "addModel" | "createModel" | "createSuccess" | "updateModel" | "removeModel" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "actions" | "edit">, param?: {
|
|
21
21
|
[key: string]: string | number;
|
|
22
22
|
} | undefined): string;
|
|
23
23
|
_(key: string, param?: {
|
|
24
24
|
[key: string]: string | number;
|
|
25
25
|
} | undefined): string;
|
|
26
|
-
rich(key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "error" | "password" | "save" | "remove" | "
|
|
26
|
+
rich(key: import("@akanjs/dictionary").ServiceTranslatorKey<"base", signal.BaseEndpoint, "view" | "error" | "password" | "save" | "remove" | "ok" | "new" | "somethingWrong" | "connecting" | "connected" | "serverDisconnected" | "refreshing" | "tryReconnecting" | "serverHasProblem" | "checkServerStatus" | "success" | "failed" | "processing" | "processed" | "noData" | "invalidValueError" | "emailInvalidError" | "phoneInvalidError" | "cancel" | "unauthorized" | "confirmClose" | "textTooShortError" | "textTooLongError" | "selectTooShortError" | "selectTooLongError" | "numberTooSmallError" | "numberTooBigError" | "passwordNotMatchError" | "selectDateError" | "priceUnit" | "passwordConfirm" | "noOptions" | "addModel" | "createModel" | "createSuccess" | "updateModel" | "removeModel" | "updateSuccess" | "removeSuccess" | "sureToRemove" | "irreversibleOps" | "typeNameToRemove" | "yesRemove" | "removeMsg" | "confirmMsg" | "perPage" | "actions" | "edit">, param?: {
|
|
27
27
|
[key: string]: string | number;
|
|
28
28
|
} | undefined): import("react").ReactNode;
|
|
29
|
-
trans<Returns extends import("react").ReactNode>(translation: Record<"en" | "ko"
|
|
29
|
+
trans<Returns extends import("react").ReactNode>(translation: Record<(string & {}) | "en" | "ko", Returns>): Returns extends string ? string : Returns;
|
|
30
30
|
};
|
|
31
31
|
lang: string;
|
|
32
32
|
}, fetch: {
|