@akanjs/ui 0.9.48 → 0.9.49
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/Data/CardList.d.ts +1 -1
- package/Data/ListContainer.d.ts +4 -5
- package/Data/QueryMaker.d.ts +1 -1
- package/Data/TableList.d.ts +1 -1
- package/Data/index.d.ts +0 -1
- package/Field.d.ts +1 -1
- package/Layout/Navbar.d.ts +1 -1
- package/Model/AdminPanel.d.ts +2 -3
- package/System/CSR.d.ts +2 -2
- package/System/Client.d.ts +4 -2
- package/System/Common.d.ts +10 -9
- package/System/SSR.d.ts +2 -2
- package/cjs/Button.js +3 -4
- package/cjs/Data/Dashboard.js +1 -2
- package/cjs/Data/Insight.js +1 -2
- package/cjs/Data/Item.js +3 -4
- package/cjs/Data/ListContainer.js +5 -19
- package/cjs/Data/QueryMaker.js +1 -292
- package/cjs/Data/TableList.js +3 -3
- package/cjs/Data/index.js +2 -2
- package/cjs/DatePicker.js +4 -5
- package/cjs/Dialog/Modal.js +2 -3
- package/cjs/Empty.js +2 -3
- package/cjs/Field.js +42 -46
- package/cjs/Input.js +11 -12
- package/cjs/Layout/BottomTab.js +1 -2
- package/cjs/Link/CsrLink.js +1 -2
- package/cjs/Link/NextLink.js +1 -2
- package/cjs/Load/Page.js +1 -2
- package/cjs/Load/Units.js +4 -3
- package/cjs/Load/View.js +3 -2
- package/cjs/Model/Edit.js +2 -3
- package/cjs/Model/EditModal.js +5 -4
- package/cjs/Model/New.js +2 -3
- package/cjs/Model/NewWrapper_Client.js +3 -2
- package/cjs/Model/Remove.js +6 -8
- package/cjs/Model/RemoveWrapper.js +3 -4
- package/cjs/Model/SureToRemove.js +8 -10
- package/cjs/Model/ViewEditModal.js +4 -4
- package/cjs/Popconfirm.js +3 -4
- package/cjs/RecentTime.js +1 -2
- package/cjs/Select.js +2 -2
- package/cjs/Signal/Arg.js +2 -2
- package/cjs/Signal/Doc.js +2 -2
- package/cjs/Signal/GraphQL.js +4 -4
- package/cjs/Signal/Message.js +2 -4
- package/cjs/Signal/Object.js +12 -17
- package/cjs/Signal/PubSub.js +2 -4
- package/cjs/Signal/RestApi.js +2 -2
- package/cjs/System/CSR.js +3 -6
- package/cjs/System/Client.js +18 -7
- package/cjs/System/Common.js +2 -2
- package/cjs/System/Messages.js +2 -4
- package/cjs/System/Reconnect.js +16 -21
- package/cjs/System/Root.js +0 -4
- package/cjs/System/SSR.js +30 -24
- package/cjs/System/SelectLanguage.js +1 -2
- package/cjs/ToggleSelect.js +4 -5
- package/cjs/Unauthorized.js +2 -3
- package/esm/Button.js +3 -4
- package/esm/Data/Dashboard.js +1 -2
- package/esm/Data/Insight.js +1 -2
- package/esm/Data/Item.js +2 -3
- package/esm/Data/ListContainer.js +6 -20
- package/esm/Data/QueryMaker.js +1 -299
- package/esm/Data/TableList.js +2 -2
- package/esm/Data/index.js +3 -3
- package/esm/DatePicker.js +5 -6
- package/esm/Dialog/Modal.js +2 -3
- package/esm/Empty.js +2 -3
- package/esm/Field.js +30 -34
- package/esm/Input.js +7 -8
- package/esm/Layout/BottomTab.js +1 -2
- package/esm/Link/CsrLink.js +1 -2
- package/esm/Link/NextLink.js +1 -2
- package/esm/Load/Page.js +1 -2
- package/esm/Load/Units.js +4 -3
- package/esm/Load/View.js +3 -2
- package/esm/Model/Edit.js +2 -3
- package/esm/Model/EditModal.js +8 -7
- package/esm/Model/New.js +2 -3
- package/esm/Model/NewWrapper_Client.js +3 -2
- package/esm/Model/Remove.js +6 -8
- package/esm/Model/RemoveWrapper.js +3 -4
- package/esm/Model/SureToRemove.js +8 -10
- package/esm/Model/ViewEditModal.js +3 -3
- package/esm/Popconfirm.js +3 -4
- package/esm/RecentTime.js +1 -2
- package/esm/Select.js +3 -3
- package/esm/Signal/Arg.js +1 -1
- package/esm/Signal/Doc.js +1 -1
- package/esm/Signal/GraphQL.js +4 -4
- package/esm/Signal/Message.js +1 -3
- package/esm/Signal/Object.js +13 -18
- package/esm/Signal/PubSub.js +1 -3
- package/esm/Signal/RestApi.js +1 -1
- package/esm/System/CSR.js +3 -6
- package/esm/System/Client.js +22 -12
- package/esm/System/Common.js +2 -2
- package/esm/System/Messages.js +1 -3
- package/esm/System/Reconnect.js +15 -10
- package/esm/System/Root.js +0 -4
- package/esm/System/SSR.js +30 -24
- package/esm/System/SelectLanguage.js +1 -2
- package/esm/ToggleSelect.js +3 -4
- package/esm/Unauthorized.js +2 -3
- package/package.json +1 -1
package/cjs/Model/Remove.js
CHANGED
|
@@ -24,15 +24,13 @@ module.exports = __toCommonJS(Remove_exports);
|
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_client = require("@akanjs/client");
|
|
26
26
|
var import_common = require("@akanjs/common");
|
|
27
|
-
var import_dictionary = require("@akanjs/dictionary");
|
|
28
|
-
var import_next = require("@akanjs/next");
|
|
29
27
|
var import_store = require("@akanjs/store");
|
|
30
28
|
var import_react = require("react");
|
|
31
29
|
var import_ai = require("react-icons/ai");
|
|
32
30
|
var import_Button = require("../Button");
|
|
33
31
|
var import_Modal = require("../Modal");
|
|
34
32
|
function Remove({ className, name, modelId, sliceName, modal, redirect }) {
|
|
35
|
-
const { l } = (0,
|
|
33
|
+
const { l } = (0, import_client.usePage)();
|
|
36
34
|
const [modalOpen, setModalOpen] = (0, import_react.useState)(false);
|
|
37
35
|
const storeDo = import_store.st.do;
|
|
38
36
|
const refName = import_store.st.slice[sliceName].refName;
|
|
@@ -55,7 +53,7 @@ function Remove({ className, name, modelId, sliceName, modal, redirect }) {
|
|
|
55
53
|
children: [
|
|
56
54
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineDelete, {}),
|
|
57
55
|
" ",
|
|
58
|
-
l("
|
|
56
|
+
l("base.remove")
|
|
59
57
|
]
|
|
60
58
|
}
|
|
61
59
|
),
|
|
@@ -66,14 +64,14 @@ function Remove({ className, name, modelId, sliceName, modal, redirect }) {
|
|
|
66
64
|
onCancel: () => {
|
|
67
65
|
setModalOpen(false);
|
|
68
66
|
},
|
|
69
|
-
title: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-error text-lg font-bold", children: l("
|
|
67
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-error text-lg font-bold", children: l("base.removeModel", { model: l(`${modelName}.modelName`) }) }),
|
|
70
68
|
action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
69
|
import_Button.Button,
|
|
72
70
|
{
|
|
73
71
|
className: "btn btn-warning w-full",
|
|
74
72
|
onClick: async (e, { onError }) => {
|
|
75
73
|
await storeDo[names.removeModel](modelId, { onError, modal });
|
|
76
|
-
|
|
74
|
+
import_client.msg.success("base.removeSuccess", { data: { model: l(`${modelName}.modelName`) } });
|
|
77
75
|
setModalOpen(false);
|
|
78
76
|
if (!redirect)
|
|
79
77
|
return;
|
|
@@ -82,10 +80,10 @@ function Remove({ className, name, modelId, sliceName, modal, redirect }) {
|
|
|
82
80
|
else
|
|
83
81
|
import_client.router.push(redirect);
|
|
84
82
|
},
|
|
85
|
-
children: l("
|
|
83
|
+
children: l("base.yesRemove", { model: l(`${modelName}.modelName`) })
|
|
86
84
|
}
|
|
87
85
|
),
|
|
88
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full items-center justify-center", children: l("
|
|
86
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full items-center justify-center", children: l("base.sureToRemove", { model: l(`${modelName}.modelName`), name: name ?? "" }) })
|
|
89
87
|
}
|
|
90
88
|
)
|
|
91
89
|
] });
|
|
@@ -24,11 +24,10 @@ module.exports = __toCommonJS(RemoveWrapper_exports);
|
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_client = require("@akanjs/client");
|
|
26
26
|
var import_common = require("@akanjs/common");
|
|
27
|
-
var import_next = require("@akanjs/next");
|
|
28
27
|
var import_store = require("@akanjs/store");
|
|
29
28
|
var import_Popconfirm = require("../Popconfirm");
|
|
30
29
|
function RemoveWrapper({ children, sliceName, name, modelId, className, modal }) {
|
|
31
|
-
const { l } = (0,
|
|
30
|
+
const { l } = (0, import_client.usePage)();
|
|
32
31
|
const refName = import_store.st.slice[sliceName].refName;
|
|
33
32
|
const modelName = refName;
|
|
34
33
|
const names = {
|
|
@@ -38,8 +37,8 @@ function RemoveWrapper({ children, sliceName, name, modelId, className, modal })
|
|
|
38
37
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
38
|
import_Popconfirm.Popconfirm,
|
|
40
39
|
{
|
|
41
|
-
title: l("
|
|
42
|
-
description: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: l("
|
|
40
|
+
title: l("base.removeModel", { model: l(`${modelName}.modelName`) }),
|
|
41
|
+
description: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: l("base.sureToRemove", { model: l(`${modelName}.modelName`), name }) }),
|
|
43
42
|
onConfirm: () => {
|
|
44
43
|
void storeDo[names.removeModel](modelId, { modal });
|
|
45
44
|
},
|
|
@@ -24,8 +24,6 @@ module.exports = __toCommonJS(SureToRemove_exports);
|
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_client = require("@akanjs/client");
|
|
26
26
|
var import_common = require("@akanjs/common");
|
|
27
|
-
var import_dictionary = require("@akanjs/dictionary");
|
|
28
|
-
var import_next = require("@akanjs/next");
|
|
29
27
|
var import_store = require("@akanjs/store");
|
|
30
28
|
var import_react = require("react");
|
|
31
29
|
var import_ai = require("react-icons/ai");
|
|
@@ -38,7 +36,7 @@ function SureToRemove({
|
|
|
38
36
|
redirect,
|
|
39
37
|
typeNameToRemove
|
|
40
38
|
}) {
|
|
41
|
-
const { l } = (0,
|
|
39
|
+
const { l } = (0, import_client.usePage)();
|
|
42
40
|
const [repeatName, setRepeatName] = (0, import_react.useState)("");
|
|
43
41
|
const [modalOpen, setModalOpen] = (0, import_react.useState)(false);
|
|
44
42
|
const storeDo = import_store.st.do;
|
|
@@ -69,7 +67,7 @@ function SureToRemove({
|
|
|
69
67
|
children: [
|
|
70
68
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineDelete, {}),
|
|
71
69
|
" ",
|
|
72
|
-
l("
|
|
70
|
+
l("base.remove")
|
|
73
71
|
]
|
|
74
72
|
}
|
|
75
73
|
),
|
|
@@ -80,7 +78,7 @@ function SureToRemove({
|
|
|
80
78
|
onCancel: () => {
|
|
81
79
|
setModalOpen(false);
|
|
82
80
|
},
|
|
83
|
-
title: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-error text-lg font-bold", children: l("
|
|
81
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-error text-lg font-bold", children: l("base.removeModel", { model: l(`${modelName}.modelName`) }) }),
|
|
84
82
|
bodyClassName: "border-error",
|
|
85
83
|
action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
84
|
"button",
|
|
@@ -89,7 +87,7 @@ function SureToRemove({
|
|
|
89
87
|
disabled: typeNameToRemove && repeatName !== name,
|
|
90
88
|
onClick: async () => {
|
|
91
89
|
await storeDo[names.removeModel](modelId);
|
|
92
|
-
|
|
90
|
+
import_client.msg.success("base.removeSuccess", { data: { model: l(`${modelName}.modelName`) } });
|
|
93
91
|
setModalOpen(false);
|
|
94
92
|
if (!redirect)
|
|
95
93
|
return;
|
|
@@ -98,17 +96,17 @@ function SureToRemove({
|
|
|
98
96
|
else
|
|
99
97
|
import_client.router.push(redirect);
|
|
100
98
|
},
|
|
101
|
-
children: l("
|
|
99
|
+
children: l("base.removeModel", { model: l(`${modelName}.modelName`) })
|
|
102
100
|
}
|
|
103
101
|
),
|
|
104
102
|
children: [
|
|
105
103
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "py-4", children: [
|
|
106
|
-
l("
|
|
104
|
+
l("base.sureToRemove", { model: l(`${modelName}.modelName`), name }),
|
|
107
105
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
108
|
-
l("
|
|
106
|
+
l("base.irreversibleOps"),
|
|
109
107
|
typeNameToRemove ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
110
108
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
111
|
-
l("
|
|
109
|
+
l("base.typeNameToRemove", { model: l(`${modelName}.modelName`), name })
|
|
112
110
|
] }) : null
|
|
113
111
|
] }),
|
|
114
112
|
typeNameToRemove ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -32,8 +32,8 @@ __export(ViewEditModal_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(ViewEditModal_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_client = require("@akanjs/client");
|
|
35
36
|
var import_common = require("@akanjs/common");
|
|
36
|
-
var import_next = require("@akanjs/next");
|
|
37
37
|
var import_store = require("@akanjs/store");
|
|
38
38
|
var import_ai = require("react-icons/ai");
|
|
39
39
|
var import_bi = require("react-icons/bi");
|
|
@@ -48,7 +48,7 @@ function ViewEditModal({
|
|
|
48
48
|
renderView,
|
|
49
49
|
renderTemplate
|
|
50
50
|
}) {
|
|
51
|
-
const { l } = (0,
|
|
51
|
+
const { l } = (0, import_client.usePage)();
|
|
52
52
|
const storeUse = import_store.st.use;
|
|
53
53
|
const storeDo = import_store.st.do;
|
|
54
54
|
const storeSel = import_store.st.sel;
|
|
@@ -108,7 +108,7 @@ function ViewEditModal({
|
|
|
108
108
|
children: [
|
|
109
109
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineEdit, {}),
|
|
110
110
|
" ",
|
|
111
|
-
l("
|
|
111
|
+
l("base.edit")
|
|
112
112
|
]
|
|
113
113
|
}
|
|
114
114
|
) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
@@ -121,7 +121,7 @@ function ViewEditModal({
|
|
|
121
121
|
children: [
|
|
122
122
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ai.AiOutlineSave, {}),
|
|
123
123
|
" ",
|
|
124
|
-
l("
|
|
124
|
+
l("base.save")
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
),
|
package/cjs/Popconfirm.js
CHANGED
|
@@ -23,7 +23,6 @@ __export(Popconfirm_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(Popconfirm_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_client = require("@akanjs/client");
|
|
26
|
-
var import_next = require("@akanjs/next");
|
|
27
26
|
var import_web = require("@react-spring/web");
|
|
28
27
|
var import_react = require("react");
|
|
29
28
|
var import_bi = require("react-icons/bi");
|
|
@@ -41,7 +40,7 @@ const Popconfirm = ({
|
|
|
41
40
|
triggerClassName,
|
|
42
41
|
decoClassName
|
|
43
42
|
}) => {
|
|
44
|
-
const { l } = (0,
|
|
43
|
+
const { l } = (0, import_client.usePage)();
|
|
45
44
|
const [isConfirming, setIsConfirming] = (0, import_react.useState)(false);
|
|
46
45
|
const popconfirmProps = (0, import_web.useSpring)({
|
|
47
46
|
opacity: isConfirming ? 1 : 0,
|
|
@@ -105,8 +104,8 @@ const Popconfirm = ({
|
|
|
105
104
|
] })
|
|
106
105
|
] }),
|
|
107
106
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-end gap-2", children: [
|
|
108
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "btn btn-xs btn-outline", onClick: handleCancel, ...cancelButtonProps, children: cancelText ?? l("
|
|
109
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "btn btn-xs", onClick: handleConfirm, ...okButtonProps, children: okText ?? l("
|
|
107
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "btn btn-xs btn-outline", onClick: handleCancel, ...cancelButtonProps, children: cancelText ?? l("base.cancel") }),
|
|
108
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "btn btn-xs", onClick: handleConfirm, ...okButtonProps, children: okText ?? l("base.ok") })
|
|
110
109
|
] })
|
|
111
110
|
]
|
|
112
111
|
}
|
package/cjs/RecentTime.js
CHANGED
|
@@ -33,7 +33,6 @@ module.exports = __toCommonJS(RecentTime_exports);
|
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
34
|
var import_base = require("@akanjs/base");
|
|
35
35
|
var import_client = require("@akanjs/client");
|
|
36
|
-
var import_next = require("@akanjs/next");
|
|
37
36
|
var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime"));
|
|
38
37
|
import_base.dayjs.extend(import_relativeTime.default);
|
|
39
38
|
const RecentTime = ({
|
|
@@ -42,7 +41,7 @@ const RecentTime = ({
|
|
|
42
41
|
format = "auto",
|
|
43
42
|
className
|
|
44
43
|
}) => {
|
|
45
|
-
const { lang } = (0,
|
|
44
|
+
const { lang } = (0, import_client.usePage)();
|
|
46
45
|
const now = (0, import_base.dayjs)();
|
|
47
46
|
const datejs = (0, import_base.dayjs)(date).locale(lang);
|
|
48
47
|
const diff = (0, import_base.dayjs)().diff(datejs);
|
package/cjs/Select.js
CHANGED
|
@@ -50,7 +50,7 @@ const Select = ({
|
|
|
50
50
|
renderOption,
|
|
51
51
|
renderSelected
|
|
52
52
|
}) => {
|
|
53
|
-
const { l } = (0,
|
|
53
|
+
const { l } = (0, import_client.usePage)();
|
|
54
54
|
const [isOpen, setIsOpen] = (0, import_react.useState)(false);
|
|
55
55
|
const labeledOptions = (0, import_react.useMemo)(
|
|
56
56
|
() => options instanceof import_base.Enum ? options.values.map((v) => ({
|
|
@@ -279,7 +279,7 @@ const Select = ({
|
|
|
279
279
|
] }, index);
|
|
280
280
|
}) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "text-base-content/50 flex size-full flex-col items-center justify-center gap-2 p-2 text-center text-5xl", children: [
|
|
281
281
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bs.BsQuestionCircleFill, {}),
|
|
282
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm", children: l("
|
|
282
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm", children: l("base.noOptions") })
|
|
283
283
|
] })
|
|
284
284
|
]
|
|
285
285
|
}
|
package/cjs/Signal/Arg.js
CHANGED
|
@@ -33,8 +33,8 @@ __export(Arg_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(Arg_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_base = require("@akanjs/base");
|
|
36
|
+
var import_client = require("@akanjs/client");
|
|
36
37
|
var import_constant = require("@akanjs/constant");
|
|
37
|
-
var import_next = require("@akanjs/next");
|
|
38
38
|
var import_store = require("@akanjs/store");
|
|
39
39
|
var import_ai = require("react-icons/ai");
|
|
40
40
|
var import_DatePicker = require("../DatePicker");
|
|
@@ -44,7 +44,7 @@ function Arg({ argType, value, onChange }) {
|
|
|
44
44
|
return argType === "ID" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.ID, { value, onChange }) : argType === "Int" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.Int, { value, onChange }) : argType === "Float" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.Float, { value, onChange }) : argType === "String" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.String, { value, onChange }) : argType === "Boolean" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.Boolean, { value, onChange }) : argType === "Date" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.Date, { value, onChange }) : argType === "JSON" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.Json, { value, onChange }) : argType === "Upload" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arg.Upload, { value, onChange }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
|
|
45
45
|
}
|
|
46
46
|
const ArgTable = ({ sigMeta, gqlMeta, argMetas }) => {
|
|
47
|
-
const { l } = (0,
|
|
47
|
+
const { l } = (0, import_client.usePage)();
|
|
48
48
|
const onCopy = (text) => {
|
|
49
49
|
void navigator.clipboard.writeText(text);
|
|
50
50
|
import_store.st.do.showMessage({ content: "\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.", type: "success", duration: 3 });
|
package/cjs/Signal/Doc.js
CHANGED
|
@@ -32,8 +32,8 @@ __export(Doc_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(Doc_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_client = require("@akanjs/client");
|
|
35
36
|
var import_common = require("@akanjs/common");
|
|
36
|
-
var import_next = require("@akanjs/next");
|
|
37
37
|
var import_signal = require("@akanjs/signal");
|
|
38
38
|
var import_store = require("@akanjs/store");
|
|
39
39
|
var import_decode = __toESM(require("jsonwebtoken/decode"));
|
|
@@ -240,7 +240,7 @@ const DocSignal = ({ refName }) => {
|
|
|
240
240
|
};
|
|
241
241
|
Doc.DocSignal = DocSignal;
|
|
242
242
|
const Zone = ({ refName, openAll }) => {
|
|
243
|
-
const { l } = (0,
|
|
243
|
+
const { l } = (0, import_client.usePage)();
|
|
244
244
|
const trySingnalType = import_store.st.use.trySignalType();
|
|
245
245
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex break-after-page flex-col gap-4", children: [
|
|
246
246
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-3xl font-bold", children: refName }),
|
package/cjs/Signal/GraphQL.js
CHANGED
|
@@ -33,8 +33,8 @@ __export(GraphQL_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(GraphQL_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_base = require("@akanjs/base");
|
|
36
|
+
var import_client = require("@akanjs/client");
|
|
36
37
|
var import_constant = require("@akanjs/constant");
|
|
37
|
-
var import_next = require("@akanjs/next");
|
|
38
38
|
var import_signal = require("@akanjs/signal");
|
|
39
39
|
var import_store = require("@akanjs/store");
|
|
40
40
|
var import_react = require("react");
|
|
@@ -70,7 +70,7 @@ const GraphQLEndpoints = ({ refName, openAll }) => {
|
|
|
70
70
|
};
|
|
71
71
|
GraphQL.Endpoints = GraphQLEndpoints;
|
|
72
72
|
const GraphQLEndpoint = ({ sigRef, gqlMeta, open }) => {
|
|
73
|
-
const { l } = (0,
|
|
73
|
+
const { l } = (0, import_client.usePage)();
|
|
74
74
|
const sigMeta = (0, import_signal.getSigMeta)(sigRef);
|
|
75
75
|
const [viewStatus, setViewStatus] = (0, import_react.useState)("doc");
|
|
76
76
|
const [argMetas] = (0, import_signal.getArgMetas)(sigRef, gqlMeta.key);
|
|
@@ -183,11 +183,11 @@ const GraphQLTry = ({ sigRef, gqlMeta, gqlArgMetas, uploadArgMetas }) => {
|
|
|
183
183
|
const tryJwt = import_store.st.use.tryJwt();
|
|
184
184
|
const [modelRef, arrDepth] = (0, import_base.getNonArrayModel)(gqlMeta.returns());
|
|
185
185
|
const isScalar = (0, import_base.isGqlScalar)(modelRef);
|
|
186
|
-
const returnRef = isScalar ||
|
|
186
|
+
const returnRef = isScalar || arrDepth === 0 ? modelRef : import_constant.constantInfo.isFull(modelRef) ? import_constant.constantInfo.getDatabase(import_constant.constantInfo.getRefName(modelRef)).light : modelRef;
|
|
187
187
|
const gqlStr = (0, import_react.useMemo)(
|
|
188
188
|
() => (0, import_signal.getGqlStr)(
|
|
189
189
|
modelRef,
|
|
190
|
-
gqlMeta,
|
|
190
|
+
gqlMeta.key,
|
|
191
191
|
[...gqlArgMetas, ...uploadArgMetas].sort((a, b) => a.idx - b.idx),
|
|
192
192
|
returnRef
|
|
193
193
|
),
|
package/cjs/Signal/Message.js
CHANGED
|
@@ -33,9 +33,8 @@ __export(Message_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(Message_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_base = require("@akanjs/base");
|
|
36
|
+
var import_client = require("@akanjs/client");
|
|
36
37
|
var import_common = require("@akanjs/common");
|
|
37
|
-
var import_constant = require("@akanjs/constant");
|
|
38
|
-
var import_next = require("@akanjs/next");
|
|
39
38
|
var import_signal = require("@akanjs/signal");
|
|
40
39
|
var import_store = require("@akanjs/store");
|
|
41
40
|
var import_react = require("react");
|
|
@@ -49,7 +48,7 @@ function Message() {
|
|
|
49
48
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {});
|
|
50
49
|
}
|
|
51
50
|
const MessageEndpoint = ({ sigRef, gqlMeta, open }) => {
|
|
52
|
-
const { l } = (0,
|
|
51
|
+
const { l } = (0, import_client.usePage)();
|
|
53
52
|
const sigMeta = (0, import_signal.getSigMeta)(sigRef);
|
|
54
53
|
const [viewStatus, setViewStatus] = (0, import_react.useState)("doc");
|
|
55
54
|
const [argMetas] = (0, import_signal.getArgMetas)(sigRef, gqlMeta.key);
|
|
@@ -162,7 +161,6 @@ const MessageTry = ({ sigRef, gqlMeta, gqlArgMetas, uploadArgMetas }) => {
|
|
|
162
161
|
const tryJwt = import_store.st.use.tryJwt();
|
|
163
162
|
const [modelRef, arrDepth] = (0, import_base.getNonArrayModel)(gqlMeta.returns());
|
|
164
163
|
const isScalar = (0, import_base.isGqlScalar)(modelRef);
|
|
165
|
-
const returnRef = isScalar || !arrDepth ? modelRef : (0, import_constant.getLightModelRef)(modelRef);
|
|
166
164
|
const requestExample = (0, import_react.useMemo)(() => JSON.stringify((0, import_signal.makeRequestExample)(sigRef, gqlMeta.key), null, 2), []);
|
|
167
165
|
const [gqlRequest, setGqlRequest] = (0, import_react.useState)(requestExample);
|
|
168
166
|
const [uploadRequest, setUploadRequest] = (0, import_react.useState)({});
|
package/cjs/Signal/Object.js
CHANGED
|
@@ -23,9 +23,9 @@ __export(Object_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(Object_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_base = require("@akanjs/base");
|
|
26
|
+
var import_client = require("@akanjs/client");
|
|
26
27
|
var import_common = require("@akanjs/common");
|
|
27
28
|
var import_constant = require("@akanjs/constant");
|
|
28
|
-
var import_next = require("@akanjs/next");
|
|
29
29
|
var import_react = require("react");
|
|
30
30
|
var import_Modal = require("../Modal");
|
|
31
31
|
function Object2() {
|
|
@@ -33,7 +33,7 @@ function Object2() {
|
|
|
33
33
|
}
|
|
34
34
|
const ObjectType = ({ objRef, arrDepth, nullable }) => {
|
|
35
35
|
const isModelType = !(0, import_base.isGqlScalar)(objRef);
|
|
36
|
-
const
|
|
36
|
+
const gqlName = (0, import_constant.getGqlTypeStr)(objRef);
|
|
37
37
|
const [openDetail, setOpenDetail] = (0, import_react.useState)(false);
|
|
38
38
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
39
39
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
@@ -46,7 +46,7 @@ const ObjectType = ({ objRef, arrDepth, nullable }) => {
|
|
|
46
46
|
},
|
|
47
47
|
children: [
|
|
48
48
|
"[".repeat(arrDepth),
|
|
49
|
-
|
|
49
|
+
gqlName,
|
|
50
50
|
"]".repeat(arrDepth),
|
|
51
51
|
nullable ? "" : "!"
|
|
52
52
|
]
|
|
@@ -55,7 +55,7 @@ const ObjectType = ({ objRef, arrDepth, nullable }) => {
|
|
|
55
55
|
isModelType ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
56
56
|
import_Modal.Modal,
|
|
57
57
|
{
|
|
58
|
-
title: `Model Type - ${
|
|
58
|
+
title: `Model Type - ${gqlName}`,
|
|
59
59
|
open: openDetail,
|
|
60
60
|
onCancel: () => {
|
|
61
61
|
setOpenDetail(false);
|
|
@@ -67,14 +67,9 @@ const ObjectType = ({ objRef, arrDepth, nullable }) => {
|
|
|
67
67
|
};
|
|
68
68
|
Object2.Type = ObjectType;
|
|
69
69
|
const ObjectDetail = ({ objRef }) => {
|
|
70
|
-
const
|
|
71
|
-
const refName = (0, import_common.lowerlize)((0, import_constant.getGqlTypeStr)(objRef));
|
|
72
|
-
const modelRefName = (0, import_react.useMemo)(
|
|
73
|
-
() => classMeta.type === "light" ? (0, import_common.lowerlize)(refName.replace("light", "")) : refName.startsWith("summary") ? refName : refName.replace("Summary", "").replace("Insight", "").replace("Input", ""),
|
|
74
|
-
[]
|
|
75
|
-
);
|
|
70
|
+
const modelRefName = import_constant.constantInfo.getRefName(objRef);
|
|
76
71
|
const fieldMetas = (0, import_constant.getFieldMetas)(objRef);
|
|
77
|
-
const { l } = (0,
|
|
72
|
+
const { l } = (0, import_client.usePage)();
|
|
78
73
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("table", { className: "table", children: [
|
|
79
74
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", { className: "text-bold", children: [
|
|
80
75
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { className: "text-base", children: "Key" }),
|
|
@@ -83,10 +78,10 @@ const ObjectDetail = ({ objRef }) => {
|
|
|
83
78
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { className: "text-center text-base", children: "Description" }),
|
|
84
79
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { className: "text-center text-base", children: "Enum" })
|
|
85
80
|
] }) }),
|
|
86
|
-
fieldMetas.map(({ key, arrDepth,
|
|
81
|
+
fieldMetas.map(({ key, arrDepth, nullable, modelRef, isClass, enum: enumOpt, isMap, of }, idx) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { className: "font-normal", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", { children: [
|
|
87
82
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { className: "", children: key }),
|
|
88
83
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("td", { className: "text-center", children: [
|
|
89
|
-
isClass ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ObjectType, { objRef: modelRef, arrDepth }) : `${"[".repeat(arrDepth)}${
|
|
84
|
+
isClass ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ObjectType, { objRef: modelRef, arrDepth }) : `${"[".repeat(arrDepth)}${(0, import_constant.getGqlTypeStr)(modelRef)}${"]".repeat(arrDepth)}${nullable ? "" : "!"}`,
|
|
90
85
|
isMap ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
91
86
|
" => ",
|
|
92
87
|
(() => {
|
|
@@ -114,12 +109,12 @@ const ObjectDetail = ({ objRef }) => {
|
|
|
114
109
|
};
|
|
115
110
|
Object2.Detail = ObjectDetail;
|
|
116
111
|
const ObjectSchema = ({ objRef }) => {
|
|
117
|
-
const { l } = (0,
|
|
118
|
-
const
|
|
119
|
-
const
|
|
112
|
+
const { l } = (0, import_client.usePage)();
|
|
113
|
+
const refName = (0, import_common.capitalize)(import_constant.constantInfo.getRefName(objRef));
|
|
114
|
+
const gqlName = `${import_constant.constantInfo.isLight(objRef) ? "Light" : ""}${refName}${import_constant.constantInfo.isInsight(objRef) ? "Insight" : ""}`;
|
|
120
115
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex break-after-page flex-col gap-4", children: [
|
|
121
116
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-24" }),
|
|
122
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-3xl font-bold", children:
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-3xl font-bold", children: gqlName }),
|
|
123
118
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-5", children: [
|
|
124
119
|
" - ",
|
|
125
120
|
l.field(refName, "modelDesc")
|
package/cjs/Signal/PubSub.js
CHANGED
|
@@ -33,9 +33,8 @@ __export(PubSub_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(PubSub_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_base = require("@akanjs/base");
|
|
36
|
+
var import_client = require("@akanjs/client");
|
|
36
37
|
var import_common = require("@akanjs/common");
|
|
37
|
-
var import_constant = require("@akanjs/constant");
|
|
38
|
-
var import_next = require("@akanjs/next");
|
|
39
38
|
var import_signal = require("@akanjs/signal");
|
|
40
39
|
var import_store = require("@akanjs/store");
|
|
41
40
|
var import_react = require("react");
|
|
@@ -49,7 +48,7 @@ function PubSub() {
|
|
|
49
48
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {});
|
|
50
49
|
}
|
|
51
50
|
const PubSubEndpoint = ({ sigRef, gqlMeta, open }) => {
|
|
52
|
-
const { l } = (0,
|
|
51
|
+
const { l } = (0, import_client.usePage)();
|
|
53
52
|
const sigMeta = (0, import_signal.getSigMeta)(sigRef);
|
|
54
53
|
const [viewStatus, setViewStatus] = (0, import_react.useState)("doc");
|
|
55
54
|
const [argMetas] = (0, import_signal.getArgMetas)(sigRef, gqlMeta.key);
|
|
@@ -162,7 +161,6 @@ const PubSubTry = ({ sigRef, gqlMeta, gqlArgMetas, uploadArgMetas }) => {
|
|
|
162
161
|
const tryJwt = import_store.st.use.tryJwt();
|
|
163
162
|
const [modelRef, arrDepth] = (0, import_base.getNonArrayModel)(gqlMeta.returns());
|
|
164
163
|
const isScalar = (0, import_base.isGqlScalar)(modelRef);
|
|
165
|
-
const returnRef = isScalar || !arrDepth ? modelRef : (0, import_constant.getLightModelRef)(modelRef);
|
|
166
164
|
const requestExample = (0, import_react.useMemo)(() => JSON.stringify((0, import_signal.makeRequestExample)(sigRef, gqlMeta.key), null, 2), []);
|
|
167
165
|
const [gqlRequest, setGqlRequest] = (0, import_react.useState)(requestExample);
|
|
168
166
|
const [uploadRequest, setUploadRequest] = (0, import_react.useState)({});
|
package/cjs/Signal/RestApi.js
CHANGED
|
@@ -33,8 +33,8 @@ __export(RestApi_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(RestApi_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_base = require("@akanjs/base");
|
|
36
|
+
var import_client = require("@akanjs/client");
|
|
36
37
|
var import_constant = require("@akanjs/constant");
|
|
37
|
-
var import_next = require("@akanjs/next");
|
|
38
38
|
var import_signal = require("@akanjs/signal");
|
|
39
39
|
var import_store = require("@akanjs/store");
|
|
40
40
|
var import_react = require("react");
|
|
@@ -71,7 +71,7 @@ const RestApiEndpoints = ({ refName, endpoints, openAll, httpUri }) => {
|
|
|
71
71
|
};
|
|
72
72
|
RestApi.Endpoints = RestApiEndpoints;
|
|
73
73
|
const RestApiEndpoint = ({ sigRef, gqlMeta, open, httpUri }) => {
|
|
74
|
-
const { l } = (0,
|
|
74
|
+
const { l } = (0, import_client.usePage)();
|
|
75
75
|
const sigMeta = (0, import_signal.getSigMeta)(sigRef);
|
|
76
76
|
const [viewStatus, setViewStatus] = (0, import_react.useState)("doc");
|
|
77
77
|
const [argMetas] = (0, import_signal.getArgMetas)(sigRef, gqlMeta.key);
|
package/cjs/System/CSR.js
CHANGED
|
@@ -24,7 +24,6 @@ __export(CSR_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(CSR_exports);
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
26
|
var import_client = require("@akanjs/client");
|
|
27
|
-
var import_dictionary = require("@akanjs/dictionary");
|
|
28
27
|
var import_next = require("@akanjs/next");
|
|
29
28
|
var import_store = require("@akanjs/store");
|
|
30
29
|
var import_ui = require("@akanjs/ui");
|
|
@@ -45,7 +44,6 @@ const CSRProvider = ({
|
|
|
45
44
|
env,
|
|
46
45
|
theme,
|
|
47
46
|
prefix,
|
|
48
|
-
fetch,
|
|
49
47
|
children,
|
|
50
48
|
gaTrackingId,
|
|
51
49
|
fonts,
|
|
@@ -62,11 +60,10 @@ const CSRProvider = ({
|
|
|
62
60
|
of,
|
|
63
61
|
loader: async () => {
|
|
64
62
|
const { lang } = await params;
|
|
65
|
-
|
|
66
|
-
return { lang, dictionary };
|
|
63
|
+
return { lang };
|
|
67
64
|
},
|
|
68
|
-
render: ({ lang
|
|
69
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Client.Client.Wrapper, { theme, lang,
|
|
65
|
+
render: ({ lang }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Client.Client.Wrapper, { theme, lang, reconnect, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
67
|
CSRWrapper,
|
|
71
68
|
{
|
|
72
69
|
className,
|
package/cjs/System/Client.js
CHANGED
|
@@ -30,6 +30,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
30
30
|
var import_base = require("@akanjs/base");
|
|
31
31
|
var import_client = require("@akanjs/client");
|
|
32
32
|
var import_common = require("@akanjs/common");
|
|
33
|
+
var import_constant = require("@akanjs/constant");
|
|
33
34
|
var import_dictionary = require("@akanjs/dictionary");
|
|
34
35
|
var import_next = require("@akanjs/next");
|
|
35
36
|
var import_signal = require("@akanjs/signal");
|
|
@@ -49,17 +50,25 @@ const ClientWrapper = ({
|
|
|
49
50
|
theme,
|
|
50
51
|
lang = "en",
|
|
51
52
|
dictionary = {},
|
|
53
|
+
signals = [],
|
|
52
54
|
reconnect = true
|
|
53
55
|
}) => {
|
|
54
|
-
if (
|
|
55
|
-
import_dictionary.serverTranslator.
|
|
56
|
-
|
|
56
|
+
if (import_base.baseClientEnv.renderMode === "ssr") {
|
|
57
|
+
if (!import_dictionary.serverTranslator.hasTranslator(lang))
|
|
58
|
+
import_dictionary.serverTranslator.setTranslator(lang, dictionary);
|
|
59
|
+
global.builtFetch ??= import_signal.signalInfo.buildFetch(
|
|
60
|
+
signals
|
|
61
|
+
);
|
|
62
|
+
if (!import_store.baseSt.use)
|
|
63
|
+
import_store.storeInfo.buildStore(signals);
|
|
64
|
+
}
|
|
65
|
+
(0, import_react.useLayoutEffect)(() => {
|
|
57
66
|
import_common.Logger.rawLog(import_base.logo);
|
|
58
67
|
}, []);
|
|
59
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
68
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_next_themes.ThemeProvider, { defaultTheme: theme, children: [
|
|
60
69
|
children,
|
|
61
70
|
reconnect ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Reconnect.Reconnect, {}) : null
|
|
62
|
-
] })
|
|
71
|
+
] });
|
|
63
72
|
};
|
|
64
73
|
Client.Wrapper = ClientWrapper;
|
|
65
74
|
const ClientPathWrapper = ({
|
|
@@ -146,11 +155,13 @@ const ClientBridge = ({ env, lang, mePromise, selfPromise, theme, prefix, gaTrac
|
|
|
146
155
|
(0, import_client.setCookie)("siteurl", window.location.origin);
|
|
147
156
|
import_base.dayjs.locale(language);
|
|
148
157
|
(0, import_client.initAuth)({ jwt: searchParams.jwt });
|
|
158
|
+
const adminCnst = import_constant.constantInfo.getDatabase("admin", { allowEmpty: true });
|
|
159
|
+
const userCnst = import_constant.constantInfo.getDatabase("user", { allowEmpty: true });
|
|
149
160
|
import_store.st.set({
|
|
150
161
|
prefix,
|
|
151
162
|
uiOperation: "loading",
|
|
152
|
-
...me ? { me:
|
|
153
|
-
...self ? { self:
|
|
163
|
+
...me && adminCnst ? { me: adminCnst.crystalize(me) } : {},
|
|
164
|
+
...self && userCnst ? { self: userCnst.crystalize(self) } : {}
|
|
154
165
|
});
|
|
155
166
|
setTimeout(() => {
|
|
156
167
|
import_store.st.set({ uiOperation: "idle" });
|
package/cjs/System/Common.js
CHANGED
|
@@ -32,8 +32,8 @@ const CommonWrapper = ({
|
|
|
32
32
|
environment,
|
|
33
33
|
render,
|
|
34
34
|
fetchPing,
|
|
35
|
-
fetchMe = (props) => fetch.me?.(props),
|
|
36
|
-
fetchSelf = (props) => fetch.getSelf?.(props)
|
|
35
|
+
fetchMe = (props, option) => fetch.me?.(props, option),
|
|
36
|
+
fetchSelf = (props, option) => fetch.getSelf?.(props, option)
|
|
37
37
|
}) => {
|
|
38
38
|
const account = (0, import_client.getAccount)();
|
|
39
39
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
package/cjs/System/Messages.js
CHANGED
|
@@ -23,8 +23,6 @@ __export(Messages_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(Messages_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_client = require("@akanjs/client");
|
|
26
|
-
var import_dictionary = require("@akanjs/dictionary");
|
|
27
|
-
var import_next = require("@akanjs/next");
|
|
28
26
|
var import_store = require("@akanjs/store");
|
|
29
27
|
var import_react = require("react");
|
|
30
28
|
var import_ai = require("react-icons/ai");
|
|
@@ -106,9 +104,9 @@ const Message = ({ content, type = "info", duration, keyForMessage }) => {
|
|
|
106
104
|
};
|
|
107
105
|
const Messages = () => {
|
|
108
106
|
const messages = import_store.st.use.messages();
|
|
109
|
-
const { l } = (0,
|
|
107
|
+
const { l } = (0, import_client.usePage)();
|
|
110
108
|
(0, import_react.useEffect)(() => {
|
|
111
|
-
Object.assign(
|
|
109
|
+
Object.assign(import_client.msg, {
|
|
112
110
|
info: (msgKey, option = {}) => {
|
|
113
111
|
import_store.st.do.showMessage({
|
|
114
112
|
type: "info",
|