warqadui 0.0.72 → 0.0.73
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 +12 -9
- package/dist/index.mjs +6 -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,8 @@ 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: app = "" } = (0, import_react_router_dom7.useParams)();
|
|
8848
8849
|
const navigate = (0, import_react_router_dom7.useNavigate)();
|
|
8849
8850
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
8850
8851
|
url: `${app}/users/get`,
|
|
@@ -9004,8 +9005,10 @@ var users_default = Users;
|
|
|
9004
9005
|
var import_react_hook_form13 = require("react-hook-form");
|
|
9005
9006
|
var import_zod8 = require("@hookform/resolvers/zod");
|
|
9006
9007
|
var import_antd13 = require("antd");
|
|
9008
|
+
var import_react_router_dom8 = require("react-router-dom");
|
|
9007
9009
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
9008
|
-
function UserForm(
|
|
9010
|
+
function UserForm() {
|
|
9011
|
+
const { appId: app = "" } = (0, import_react_router_dom8.useParams)();
|
|
9009
9012
|
const { navigate } = useApp_default();
|
|
9010
9013
|
const { post, isLoading } = useApis_default();
|
|
9011
9014
|
const methods = (0, import_react_hook_form13.useForm)({
|
|
@@ -9084,7 +9087,7 @@ var UserForm_default = UserForm;
|
|
|
9084
9087
|
|
|
9085
9088
|
// src/components/users/ResetPasswordPage.tsx
|
|
9086
9089
|
var import_react40 = require("react");
|
|
9087
|
-
var
|
|
9090
|
+
var import_react_router_dom9 = require("react-router-dom");
|
|
9088
9091
|
var import_lucide_react21 = require("lucide-react");
|
|
9089
9092
|
var import_react_hook_form14 = require("react-hook-form");
|
|
9090
9093
|
var import_zod9 = require("@hookform/resolvers/zod");
|
|
@@ -9099,8 +9102,8 @@ var resetPageSchema = z4.object({
|
|
|
9099
9102
|
path: ["confirmPassword"]
|
|
9100
9103
|
});
|
|
9101
9104
|
function ResetPasswordPage() {
|
|
9102
|
-
const [searchParams] = (0,
|
|
9103
|
-
const navigate = (0,
|
|
9105
|
+
const [searchParams] = (0, import_react_router_dom9.useSearchParams)();
|
|
9106
|
+
const navigate = (0, import_react_router_dom9.useNavigate)();
|
|
9104
9107
|
const { put, isLoading } = useApis_default();
|
|
9105
9108
|
const [isVerified, setIsVerified] = (0, import_react40.useState)(false);
|
|
9106
9109
|
const [verifying, setVerifying] = (0, import_react40.useState)(true);
|
|
@@ -9272,7 +9275,7 @@ var ResetPasswordPage_default = ResetPasswordPage;
|
|
|
9272
9275
|
|
|
9273
9276
|
// src/components/users/UserProfile.tsx
|
|
9274
9277
|
var import_lucide_react22 = require("lucide-react");
|
|
9275
|
-
var
|
|
9278
|
+
var import_react_router_dom10 = require("react-router-dom");
|
|
9276
9279
|
var import_antd15 = require("antd");
|
|
9277
9280
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
9278
9281
|
var UserProfile = ({
|
|
@@ -9285,7 +9288,7 @@ var UserProfile = ({
|
|
|
9285
9288
|
}) => {
|
|
9286
9289
|
const { post } = useApis_default();
|
|
9287
9290
|
const { user, logout: authLogout, account } = useAuth_default();
|
|
9288
|
-
const navigate = (0,
|
|
9291
|
+
const navigate = (0, import_react_router_dom10.useNavigate)();
|
|
9289
9292
|
const logout = async () => {
|
|
9290
9293
|
if (onLogout) {
|
|
9291
9294
|
onLogout();
|
|
@@ -9337,11 +9340,11 @@ var UserProfile = ({
|
|
|
9337
9340
|
var UserProfile_default = UserProfile;
|
|
9338
9341
|
|
|
9339
9342
|
// src/components/users/ProfilePage.tsx
|
|
9340
|
-
var
|
|
9343
|
+
var import_react_router_dom11 = require("react-router-dom");
|
|
9341
9344
|
var import_lucide_react23 = require("lucide-react");
|
|
9342
9345
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
9343
9346
|
var ProfilePage = () => {
|
|
9344
|
-
const navigate = (0,
|
|
9347
|
+
const navigate = (0, import_react_router_dom11.useNavigate)();
|
|
9345
9348
|
const { user, account } = useAuth();
|
|
9346
9349
|
if (!user) {
|
|
9347
9350
|
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,10 @@ 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: app = "" } = useParams3();
|
|
8815
8816
|
const navigate = useNavigate6();
|
|
8816
8817
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
8817
8818
|
url: `${app}/users/get`,
|
|
@@ -8971,8 +8972,10 @@ var users_default = Users;
|
|
|
8971
8972
|
import { useForm as useForm7 } from "react-hook-form";
|
|
8972
8973
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
|
8973
8974
|
import { message as message11 } from "antd";
|
|
8975
|
+
import { useParams as useParams4 } from "react-router-dom";
|
|
8974
8976
|
import { jsx as jsx50, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8975
|
-
function UserForm(
|
|
8977
|
+
function UserForm() {
|
|
8978
|
+
const { appId: app = "" } = useParams4();
|
|
8976
8979
|
const { navigate } = useApp_default();
|
|
8977
8980
|
const { post, isLoading } = useApis_default();
|
|
8978
8981
|
const methods = useForm7({
|