@strapi-community/plugin-better-auth-dashboard 1.0.0-alpha.5 → 1.0.0-alpha.6

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.
@@ -7,7 +7,7 @@ import { dashClient } from "@better-auth/infra/client";
7
7
  import { createAuthClient, InferPlugin } from "better-auth/client";
8
8
  import { Cross, Images, Trash, Plus, Pencil } from "@strapi/icons";
9
9
  import { useNotification, useFetchClient } from "@strapi/strapi/admin";
10
- import { g as getMediaLibraryComponent, P as PluginIcon } from "./index-QYGGdXAd.mjs";
10
+ import { g as getMediaLibraryComponent, P as PluginIcon } from "./index-DS5B1Klk.mjs";
11
11
  const dashPathMethods = () => ({
12
12
  id: "dash-path-methods",
13
13
  pathMethods: {
@@ -1132,7 +1132,10 @@ function OrganizationDetail({
1132
1132
  body
1133
1133
  );
1134
1134
  },
1135
- onSuccess: () => {
1135
+ onSuccess: async () => {
1136
+ await qc.invalidateQueries({
1137
+ queryKey: ["dash-strapi-org", organizationId]
1138
+ });
1136
1139
  qc.invalidateQueries({ queryKey: ["dash-org", organizationId] });
1137
1140
  qc.invalidateQueries({ queryKey: ["dash-organizations"] });
1138
1141
  setEditName(void 0);
@@ -4069,10 +4072,10 @@ function UserDetailDrawer({
4069
4072
  body
4070
4073
  );
4071
4074
  },
4072
- onSuccess: () => {
4075
+ onSuccess: async () => {
4076
+ await qc.invalidateQueries({ queryKey: ["dash-strapi-user", userId] });
4073
4077
  qc.invalidateQueries({ queryKey: ["dash-user", userId] });
4074
4078
  qc.invalidateQueries({ queryKey: ["dash-users"] });
4075
- qc.invalidateQueries({ queryKey: ["dash-strapi-user", userId] });
4076
4079
  setEditName(void 0);
4077
4080
  setEditEmail(void 0);
4078
4081
  setEditEmailVerified(void 0);
@@ -9,7 +9,7 @@ const client$2 = require("@better-auth/infra/client");
9
9
  const client$1 = require("better-auth/client");
10
10
  const icons = require("@strapi/icons");
11
11
  const admin = require("@strapi/strapi/admin");
12
- const index = require("./index-C4--Z2Qg.js");
12
+ const index = require("./index-DY_8hwEC.js");
13
13
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
14
14
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
15
15
  const dashPathMethods = () => ({
@@ -1136,7 +1136,10 @@ function OrganizationDetail({
1136
1136
  body
1137
1137
  );
1138
1138
  },
1139
- onSuccess: () => {
1139
+ onSuccess: async () => {
1140
+ await qc.invalidateQueries({
1141
+ queryKey: ["dash-strapi-org", organizationId]
1142
+ });
1140
1143
  qc.invalidateQueries({ queryKey: ["dash-org", organizationId] });
1141
1144
  qc.invalidateQueries({ queryKey: ["dash-organizations"] });
1142
1145
  setEditName(void 0);
@@ -4073,10 +4076,10 @@ function UserDetailDrawer({
4073
4076
  body
4074
4077
  );
4075
4078
  },
4076
- onSuccess: () => {
4079
+ onSuccess: async () => {
4080
+ await qc.invalidateQueries({ queryKey: ["dash-strapi-user", userId] });
4077
4081
  qc.invalidateQueries({ queryKey: ["dash-user", userId] });
4078
4082
  qc.invalidateQueries({ queryKey: ["dash-users"] });
4079
- qc.invalidateQueries({ queryKey: ["dash-strapi-user", userId] });
4080
4083
  setEditName(void 0);
4081
4084
  setEditEmail(void 0);
4082
4085
  setEditEmailVerified(void 0);
@@ -54,7 +54,7 @@ const index = {
54
54
  id: `${PLUGIN_ID}.plugin.name`,
55
55
  defaultMessage: "Auth Dashboard"
56
56
  },
57
- Component: async () => import("./Root-CJNOLkgF.mjs")
57
+ Component: async () => import("./Root-BHQUxF7-.mjs")
58
58
  });
59
59
  },
60
60
  bootstrap() {
@@ -55,7 +55,7 @@ const index = {
55
55
  id: `${PLUGIN_ID}.plugin.name`,
56
56
  defaultMessage: "Auth Dashboard"
57
57
  },
58
- Component: async () => Promise.resolve().then(() => require("./Root-CFxaaNC8.js"))
58
+ Component: async () => Promise.resolve().then(() => require("./Root-BgL9lcCN.js"))
59
59
  });
60
60
  },
61
61
  bootstrap() {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("./index-C4--Z2Qg.js");
3
+ const index = require("./index-DY_8hwEC.js");
4
4
  exports.default = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "./index-QYGGdXAd.mjs";
1
+ import { i } from "./index-DS5B1Klk.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi-community/plugin-better-auth-dashboard",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.6",
4
4
  "description": "Better Auth dashboard for the Strapi admin panel",
5
5
  "keywords": [
6
6
  "strapi",