@akanjs/next 0.0.150 → 0.0.151
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/cjs/index.js +2 -0
- package/cjs/usePage.js +24 -0
- package/esm/index.js +2 -0
- package/esm/usePage.js +5 -0
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/usePage.d.ts +74 -0
package/cjs/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(next_exports, {
|
|
|
33
33
|
useHistory: () => import_useHistory.useHistory,
|
|
34
34
|
useInterval: () => import_useInterval.useInterval,
|
|
35
35
|
useLocation: () => import_useLocation.useLocation,
|
|
36
|
+
usePage: () => import_usePage.usePage,
|
|
36
37
|
usePurchase: () => import_usePurchase.usePurchase,
|
|
37
38
|
usePushNoti: () => import_usePushNoti.usePushNoti,
|
|
38
39
|
useThrottle: () => import_useThrottle.useThrottle
|
|
@@ -57,4 +58,5 @@ var import_createNextMiddleware = require("./createNextMiddleware");
|
|
|
57
58
|
var import_useThrottle = require("./useThrottle");
|
|
58
59
|
var import_useHistory = require("./useHistory");
|
|
59
60
|
var import_useLocation = require("./useLocation");
|
|
61
|
+
var import_usePage = require("./usePage");
|
|
60
62
|
//! PageAgent csr에서 말썽 일으킨다
|
package/cjs/usePage.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var usePage_exports = {};
|
|
19
|
+
__export(usePage_exports, {
|
|
20
|
+
usePage: () => usePage
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(usePage_exports);
|
|
23
|
+
var import_makePageProto = require("./makePageProto");
|
|
24
|
+
const usePage = (0, import_makePageProto.makePageProto)([]);
|
package/esm/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { createNextMiddleware } from "./createNextMiddleware";
|
|
|
18
18
|
import { useThrottle } from "./useThrottle";
|
|
19
19
|
import { useHistory } from "./useHistory";
|
|
20
20
|
import { useLocation } from "./useLocation";
|
|
21
|
+
import { usePage } from "./usePage";
|
|
21
22
|
export {
|
|
22
23
|
bootCsr,
|
|
23
24
|
createNextMiddleware,
|
|
@@ -35,6 +36,7 @@ export {
|
|
|
35
36
|
useHistory,
|
|
36
37
|
useInterval,
|
|
37
38
|
useLocation,
|
|
39
|
+
usePage,
|
|
38
40
|
usePurchase,
|
|
39
41
|
usePushNoti,
|
|
40
42
|
useThrottle
|
package/esm/usePage.js
ADDED
package/index.d.ts
CHANGED
package/package.json
CHANGED
package/usePage.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Translation } from "@akanjs/dictionary";
|
|
2
|
+
export declare const usePage: () => {
|
|
3
|
+
path: string;
|
|
4
|
+
l: {
|
|
5
|
+
(key: `${string}.${string}` | `${string}.${number}`, param?: {
|
|
6
|
+
[key: string]: string | number;
|
|
7
|
+
} | undefined): string;
|
|
8
|
+
rich(key: `${string}.${string}` | `${string}.${number}`, param?: {
|
|
9
|
+
[key: string]: string | number;
|
|
10
|
+
} | undefined): import("react").ReactNode;
|
|
11
|
+
field<ModelKey extends string | number>(model: ModelKey, field: keyof {
|
|
12
|
+
[key: string]: {
|
|
13
|
+
[key: string]: Translation;
|
|
14
|
+
};
|
|
15
|
+
}[ModelKey]): string;
|
|
16
|
+
desc<ModelKey extends string | number>(model: ModelKey, field: keyof {
|
|
17
|
+
[key: string]: {
|
|
18
|
+
[key: string]: Translation;
|
|
19
|
+
};
|
|
20
|
+
}[ModelKey]): string;
|
|
21
|
+
enum<ModelKey extends string | number>(model: ModelKey, field: keyof {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: Translation;
|
|
24
|
+
};
|
|
25
|
+
}[ModelKey], value: string): string;
|
|
26
|
+
enumdesc<ModelKey extends string | number>(model: ModelKey, field: keyof {
|
|
27
|
+
[key: string]: {
|
|
28
|
+
[key: string]: Translation;
|
|
29
|
+
};
|
|
30
|
+
}[ModelKey], value: string): string;
|
|
31
|
+
api<ModelKey extends string | number>(model: ModelKey, endpoint: keyof {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
[key: string]: Translation;
|
|
34
|
+
};
|
|
35
|
+
}[ModelKey]): string;
|
|
36
|
+
apidesc<ModelKey extends string | number>(model: ModelKey, endpoint: keyof {
|
|
37
|
+
[key: string]: {
|
|
38
|
+
[key: string]: Translation;
|
|
39
|
+
};
|
|
40
|
+
}[ModelKey]): string;
|
|
41
|
+
arg<ModelKey extends string | number>(model: ModelKey, endpoint: keyof {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: Translation;
|
|
44
|
+
};
|
|
45
|
+
}[ModelKey], arg: string): string;
|
|
46
|
+
argdesc<ModelKey extends string | number>(model: ModelKey, endpoint: keyof {
|
|
47
|
+
[key: string]: {
|
|
48
|
+
[key: string]: Translation;
|
|
49
|
+
};
|
|
50
|
+
}[ModelKey], arg: string): string;
|
|
51
|
+
qry<ModelKey extends string | number>(model: ModelKey, queryKey: keyof {
|
|
52
|
+
[key: string]: {
|
|
53
|
+
[key: string]: Translation;
|
|
54
|
+
};
|
|
55
|
+
}[ModelKey]): string;
|
|
56
|
+
qrydesc<ModelKey extends string | number>(model: ModelKey, queryKey: keyof {
|
|
57
|
+
[key: string]: {
|
|
58
|
+
[key: string]: Translation;
|
|
59
|
+
};
|
|
60
|
+
}[ModelKey]): string;
|
|
61
|
+
qarg<ModelKey extends string | number>(model: ModelKey, queryKey: keyof {
|
|
62
|
+
[key: string]: {
|
|
63
|
+
[key: string]: Translation;
|
|
64
|
+
};
|
|
65
|
+
}[ModelKey], arg: string): string;
|
|
66
|
+
qargdesc<ModelKey extends string | number>(model: ModelKey, queryKey: keyof {
|
|
67
|
+
[key: string]: {
|
|
68
|
+
[key: string]: Translation;
|
|
69
|
+
};
|
|
70
|
+
}[ModelKey], arg: string): string;
|
|
71
|
+
trans(translation: Record<"en" | "ko" | (string & {}), import("react").ReactNode>): import("react").ReactNode;
|
|
72
|
+
};
|
|
73
|
+
lang: string;
|
|
74
|
+
};
|