warqadui 0.0.271 → 0.0.272

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 CHANGED
@@ -1522,6 +1522,8 @@ interface UserProfileProps {
1522
1522
  image?: string;
1523
1523
  onLogout?: () => void;
1524
1524
  showThemeToggle?: boolean;
1525
+ logoutUrl?: string;
1526
+ v?: 1 | 2 | 3;
1525
1527
  }
1526
1528
  declare const UserProfile: React__default.FC<UserProfileProps>;
1527
1529
 
package/dist/index.d.ts CHANGED
@@ -1522,6 +1522,8 @@ interface UserProfileProps {
1522
1522
  image?: string;
1523
1523
  onLogout?: () => void;
1524
1524
  showThemeToggle?: boolean;
1525
+ logoutUrl?: string;
1526
+ v?: 1 | 2 | 3;
1525
1527
  }
1526
1528
  declare const UserProfile: React__default.FC<UserProfileProps>;
1527
1529
 
package/dist/index.js CHANGED
@@ -18537,6 +18537,8 @@ var UserProfile = ({
18537
18537
  role,
18538
18538
  image,
18539
18539
  onLogout,
18540
+ logoutUrl,
18541
+ v,
18540
18542
  showThemeToggle = true
18541
18543
  }) => {
18542
18544
  const { post } = useApis_default();
@@ -18549,8 +18551,8 @@ var UserProfile = ({
18549
18551
  }
18550
18552
  try {
18551
18553
  await post({
18552
- url: `/users/logout/${user?._id}`,
18553
- v: 1
18554
+ url: `${logoutUrl || "/users/logout"}/${user?._id}`,
18555
+ v: v || 1
18554
18556
  });
18555
18557
  import_antd25.message.success("Logout successfully");
18556
18558
  authLogout();
package/dist/index.mjs CHANGED
@@ -18613,6 +18613,8 @@ var UserProfile = ({
18613
18613
  role,
18614
18614
  image,
18615
18615
  onLogout,
18616
+ logoutUrl,
18617
+ v,
18616
18618
  showThemeToggle = true
18617
18619
  }) => {
18618
18620
  const { post } = useApis_default();
@@ -18625,8 +18627,8 @@ var UserProfile = ({
18625
18627
  }
18626
18628
  try {
18627
18629
  await post({
18628
- url: `/users/logout/${user?._id}`,
18629
- v: 1
18630
+ url: `${logoutUrl || "/users/logout"}/${user?._id}`,
18631
+ v: v || 1
18630
18632
  });
18631
18633
  message20.success("Logout successfully");
18632
18634
  authLogout();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warqadui",
3
- "version": "0.0.271",
3
+ "version": "0.0.272",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",