warqadui 0.0.72 → 0.0.74
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/dist/index.d.mts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +14 -9
- package/dist/index.mjs +8 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1140,13 +1140,9 @@ declare function LinkUser({ type: initialType }: {
|
|
|
1140
1140
|
type?: string;
|
|
1141
1141
|
}): react_jsx_runtime.JSX.Element;
|
|
1142
1142
|
|
|
1143
|
-
declare function Users(
|
|
1144
|
-
app?: string;
|
|
1145
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1143
|
+
declare function Users(): react_jsx_runtime.JSX.Element;
|
|
1146
1144
|
|
|
1147
|
-
declare function UserForm(
|
|
1148
|
-
app?: string;
|
|
1149
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1145
|
+
declare function UserForm(): react_jsx_runtime.JSX.Element;
|
|
1150
1146
|
|
|
1151
1147
|
declare function ResetPasswordPage(): react_jsx_runtime.JSX.Element;
|
|
1152
1148
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1140,13 +1140,9 @@ declare function LinkUser({ type: initialType }: {
|
|
|
1140
1140
|
type?: string;
|
|
1141
1141
|
}): react_jsx_runtime.JSX.Element;
|
|
1142
1142
|
|
|
1143
|
-
declare function Users(
|
|
1144
|
-
app?: string;
|
|
1145
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1143
|
+
declare function Users(): react_jsx_runtime.JSX.Element;
|
|
1146
1144
|
|
|
1147
|
-
declare function UserForm(
|
|
1148
|
-
app?: string;
|
|
1149
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1145
|
+
declare function UserForm(): react_jsx_runtime.JSX.Element;
|
|
1150
1146
|
|
|
1151
1147
|
declare function ResetPasswordPage(): react_jsx_runtime.JSX.Element;
|
|
1152
1148
|
|
package/dist/index.js
CHANGED
|
@@ -8844,7 +8844,9 @@ var Activate_default = ActivateUser;
|
|
|
8844
8844
|
// src/components/users/users.tsx
|
|
8845
8845
|
var import_react_router_dom7 = require("react-router-dom");
|
|
8846
8846
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
8847
|
-
function Users(
|
|
8847
|
+
function Users() {
|
|
8848
|
+
const { appId } = (0, import_react_router_dom7.useParams)();
|
|
8849
|
+
const app = appId ? `/${appId}` : "";
|
|
8848
8850
|
const navigate = (0, import_react_router_dom7.useNavigate)();
|
|
8849
8851
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
8850
8852
|
url: `${app}/users/get`,
|
|
@@ -9004,8 +9006,11 @@ var users_default = Users;
|
|
|
9004
9006
|
var import_react_hook_form13 = require("react-hook-form");
|
|
9005
9007
|
var import_zod8 = require("@hookform/resolvers/zod");
|
|
9006
9008
|
var import_antd13 = require("antd");
|
|
9009
|
+
var import_react_router_dom8 = require("react-router-dom");
|
|
9007
9010
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
9008
|
-
function UserForm(
|
|
9011
|
+
function UserForm() {
|
|
9012
|
+
const { appId } = (0, import_react_router_dom8.useParams)();
|
|
9013
|
+
const app = appId ? `/${appId}` : "";
|
|
9009
9014
|
const { navigate } = useApp_default();
|
|
9010
9015
|
const { post, isLoading } = useApis_default();
|
|
9011
9016
|
const methods = (0, import_react_hook_form13.useForm)({
|
|
@@ -9084,7 +9089,7 @@ var UserForm_default = UserForm;
|
|
|
9084
9089
|
|
|
9085
9090
|
// src/components/users/ResetPasswordPage.tsx
|
|
9086
9091
|
var import_react40 = require("react");
|
|
9087
|
-
var
|
|
9092
|
+
var import_react_router_dom9 = require("react-router-dom");
|
|
9088
9093
|
var import_lucide_react21 = require("lucide-react");
|
|
9089
9094
|
var import_react_hook_form14 = require("react-hook-form");
|
|
9090
9095
|
var import_zod9 = require("@hookform/resolvers/zod");
|
|
@@ -9099,8 +9104,8 @@ var resetPageSchema = z4.object({
|
|
|
9099
9104
|
path: ["confirmPassword"]
|
|
9100
9105
|
});
|
|
9101
9106
|
function ResetPasswordPage() {
|
|
9102
|
-
const [searchParams] = (0,
|
|
9103
|
-
const navigate = (0,
|
|
9107
|
+
const [searchParams] = (0, import_react_router_dom9.useSearchParams)();
|
|
9108
|
+
const navigate = (0, import_react_router_dom9.useNavigate)();
|
|
9104
9109
|
const { put, isLoading } = useApis_default();
|
|
9105
9110
|
const [isVerified, setIsVerified] = (0, import_react40.useState)(false);
|
|
9106
9111
|
const [verifying, setVerifying] = (0, import_react40.useState)(true);
|
|
@@ -9272,7 +9277,7 @@ var ResetPasswordPage_default = ResetPasswordPage;
|
|
|
9272
9277
|
|
|
9273
9278
|
// src/components/users/UserProfile.tsx
|
|
9274
9279
|
var import_lucide_react22 = require("lucide-react");
|
|
9275
|
-
var
|
|
9280
|
+
var import_react_router_dom10 = require("react-router-dom");
|
|
9276
9281
|
var import_antd15 = require("antd");
|
|
9277
9282
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
9278
9283
|
var UserProfile = ({
|
|
@@ -9285,7 +9290,7 @@ var UserProfile = ({
|
|
|
9285
9290
|
}) => {
|
|
9286
9291
|
const { post } = useApis_default();
|
|
9287
9292
|
const { user, logout: authLogout, account } = useAuth_default();
|
|
9288
|
-
const navigate = (0,
|
|
9293
|
+
const navigate = (0, import_react_router_dom10.useNavigate)();
|
|
9289
9294
|
const logout = async () => {
|
|
9290
9295
|
if (onLogout) {
|
|
9291
9296
|
onLogout();
|
|
@@ -9337,11 +9342,11 @@ var UserProfile = ({
|
|
|
9337
9342
|
var UserProfile_default = UserProfile;
|
|
9338
9343
|
|
|
9339
9344
|
// src/components/users/ProfilePage.tsx
|
|
9340
|
-
var
|
|
9345
|
+
var import_react_router_dom11 = require("react-router-dom");
|
|
9341
9346
|
var import_lucide_react23 = require("lucide-react");
|
|
9342
9347
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
9343
9348
|
var ProfilePage = () => {
|
|
9344
|
-
const navigate = (0,
|
|
9349
|
+
const navigate = (0, import_react_router_dom11.useNavigate)();
|
|
9345
9350
|
const { user, account } = useAuth();
|
|
9346
9351
|
if (!user) {
|
|
9347
9352
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex items-center justify-center min-h-[400px]", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h1", { children: "Please login to view your profile" }) });
|
package/dist/index.mjs
CHANGED
|
@@ -8809,9 +8809,11 @@ var ActivateUser = ({ data, app = "" }) => {
|
|
|
8809
8809
|
var Activate_default = ActivateUser;
|
|
8810
8810
|
|
|
8811
8811
|
// src/components/users/users.tsx
|
|
8812
|
-
import { useNavigate as useNavigate6 } from "react-router-dom";
|
|
8812
|
+
import { useNavigate as useNavigate6, useParams as useParams3 } from "react-router-dom";
|
|
8813
8813
|
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
8814
|
-
function Users(
|
|
8814
|
+
function Users() {
|
|
8815
|
+
const { appId } = useParams3();
|
|
8816
|
+
const app = appId ? `/${appId}` : "";
|
|
8815
8817
|
const navigate = useNavigate6();
|
|
8816
8818
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
8817
8819
|
url: `${app}/users/get`,
|
|
@@ -8971,8 +8973,11 @@ var users_default = Users;
|
|
|
8971
8973
|
import { useForm as useForm7 } from "react-hook-form";
|
|
8972
8974
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
|
8973
8975
|
import { message as message11 } from "antd";
|
|
8976
|
+
import { useParams as useParams4 } from "react-router-dom";
|
|
8974
8977
|
import { jsx as jsx50, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8975
|
-
function UserForm(
|
|
8978
|
+
function UserForm() {
|
|
8979
|
+
const { appId } = useParams4();
|
|
8980
|
+
const app = appId ? `/${appId}` : "";
|
|
8976
8981
|
const { navigate } = useApp_default();
|
|
8977
8982
|
const { post, isLoading } = useApis_default();
|
|
8978
8983
|
const methods = useForm7({
|