@strapi-community/plugin-better-auth-dashboard 1.0.0-alpha.6 → 1.0.0-alpha.7
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/README.md +101 -0
- package/dist/admin/{Root-BgL9lcCN.js → Root-BUuPFmkA.js} +61 -26
- package/dist/admin/Root-BUuPFmkA.js.map +1 -0
- package/dist/admin/{Root-BHQUxF7-.mjs → Root-Rol-uNmC.mjs} +61 -26
- package/dist/admin/Root-Rol-uNmC.mjs.map +1 -0
- package/dist/admin/{index-DY_8hwEC.js → index-CYaQ-gs-.js} +25 -1
- package/dist/admin/index-CYaQ-gs-.js.map +1 -0
- package/dist/admin/{index-DS5B1Klk.mjs → index-Y9SjzGQY.mjs} +25 -1
- package/dist/admin/index-Y9SjzGQY.mjs.map +1 -0
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +2 -1
- package/dist/admin/index.mjs.map +1 -0
- package/dist/server/index.js +1 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +1 -0
- package/dist/server/index.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -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-
|
|
10
|
+
import { g as getMediaLibraryComponent, a as getEditViewSidePanels, P as PluginIcon } from "./index-Y9SjzGQY.mjs";
|
|
11
11
|
const dashPathMethods = () => ({
|
|
12
12
|
id: "dash-path-methods",
|
|
13
13
|
pathMethods: {
|
|
@@ -953,6 +953,21 @@ function CustomFieldsSection({
|
|
|
953
953
|
)) })
|
|
954
954
|
] });
|
|
955
955
|
}
|
|
956
|
+
function EditViewSidePanels({ model, documentId, document: document2 }) {
|
|
957
|
+
const panels = getEditViewSidePanels(model);
|
|
958
|
+
if (panels.length === 0) return null;
|
|
959
|
+
return /* @__PURE__ */ jsx(Fragment, { children: panels.map(({ id, title, Component }) => /* @__PURE__ */ jsxs(FormSection, { children: [
|
|
960
|
+
/* @__PURE__ */ jsx(SectionLabel, { children: title }),
|
|
961
|
+
/* @__PURE__ */ jsx(
|
|
962
|
+
Component,
|
|
963
|
+
{
|
|
964
|
+
model,
|
|
965
|
+
documentId,
|
|
966
|
+
document: document2
|
|
967
|
+
}
|
|
968
|
+
)
|
|
969
|
+
] }, id)) });
|
|
970
|
+
}
|
|
956
971
|
const SYSTEM_FIELDS = /* @__PURE__ */ new Set([
|
|
957
972
|
"id",
|
|
958
973
|
"documentId",
|
|
@@ -1138,6 +1153,7 @@ function OrganizationDetail({
|
|
|
1138
1153
|
});
|
|
1139
1154
|
qc.invalidateQueries({ queryKey: ["dash-org", organizationId] });
|
|
1140
1155
|
qc.invalidateQueries({ queryKey: ["dash-organizations"] });
|
|
1156
|
+
qc.invalidateQueries({ queryKey: ["dash-strapi-org", organizationId] });
|
|
1141
1157
|
setEditName(void 0);
|
|
1142
1158
|
setEditSlug(void 0);
|
|
1143
1159
|
setEditLogo(void 0);
|
|
@@ -1466,33 +1482,43 @@ function OrganizationDetail({
|
|
|
1466
1482
|
}
|
|
1467
1483
|
)
|
|
1468
1484
|
] }),
|
|
1469
|
-
/* @__PURE__ */
|
|
1470
|
-
/* @__PURE__ */
|
|
1471
|
-
|
|
1472
|
-
|
|
1485
|
+
/* @__PURE__ */ jsxs(EditSidebar, { children: [
|
|
1486
|
+
/* @__PURE__ */ jsxs(FormSection, { children: [
|
|
1487
|
+
/* @__PURE__ */ jsx(SectionLabel, { children: "Details" }),
|
|
1488
|
+
/* @__PURE__ */ jsxs(
|
|
1489
|
+
"div",
|
|
1490
|
+
{
|
|
1491
|
+
style: {
|
|
1492
|
+
display: "grid",
|
|
1493
|
+
gridTemplateColumns: "1fr 1fr",
|
|
1494
|
+
gap: 12
|
|
1495
|
+
},
|
|
1496
|
+
children: [
|
|
1497
|
+
/* @__PURE__ */ jsxs(MetaItem, { style: { gridColumn: "1 / -1" }, children: [
|
|
1498
|
+
/* @__PURE__ */ jsx(MetaKey, { children: "Organization ID" }),
|
|
1499
|
+
/* @__PURE__ */ jsx(MonoChip, { children: org?.id })
|
|
1500
|
+
] }),
|
|
1501
|
+
/* @__PURE__ */ jsxs(MetaItem, { children: [
|
|
1502
|
+
/* @__PURE__ */ jsx(MetaKey, { children: "Members" }),
|
|
1503
|
+
/* @__PURE__ */ jsx(MetaVal, { children: org?.memberCount ?? 0 })
|
|
1504
|
+
] }),
|
|
1505
|
+
/* @__PURE__ */ jsxs(MetaItem, { children: [
|
|
1506
|
+
/* @__PURE__ */ jsx(MetaKey, { children: "Created" }),
|
|
1507
|
+
/* @__PURE__ */ jsx(MetaVal, { children: org?.createdAt ? new Date(org.createdAt).toLocaleDateString() : "—" })
|
|
1508
|
+
] })
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
)
|
|
1512
|
+
] }),
|
|
1513
|
+
/* @__PURE__ */ jsx(
|
|
1514
|
+
EditViewSidePanels,
|
|
1473
1515
|
{
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
gap: 12
|
|
1478
|
-
},
|
|
1479
|
-
children: [
|
|
1480
|
-
/* @__PURE__ */ jsxs(MetaItem, { style: { gridColumn: "1 / -1" }, children: [
|
|
1481
|
-
/* @__PURE__ */ jsx(MetaKey, { children: "Organization ID" }),
|
|
1482
|
-
/* @__PURE__ */ jsx(MonoChip, { children: org?.id })
|
|
1483
|
-
] }),
|
|
1484
|
-
/* @__PURE__ */ jsxs(MetaItem, { children: [
|
|
1485
|
-
/* @__PURE__ */ jsx(MetaKey, { children: "Members" }),
|
|
1486
|
-
/* @__PURE__ */ jsx(MetaVal, { children: org?.memberCount ?? 0 })
|
|
1487
|
-
] }),
|
|
1488
|
-
/* @__PURE__ */ jsxs(MetaItem, { children: [
|
|
1489
|
-
/* @__PURE__ */ jsx(MetaKey, { children: "Created" }),
|
|
1490
|
-
/* @__PURE__ */ jsx(MetaVal, { children: org?.createdAt ? new Date(org.createdAt).toLocaleDateString() : "—" })
|
|
1491
|
-
] })
|
|
1492
|
-
]
|
|
1516
|
+
model: "plugin::better-auth.organization",
|
|
1517
|
+
documentId: strapiOrgQuery.data?.documentId,
|
|
1518
|
+
document: strapiOrgQuery.data ?? void 0
|
|
1493
1519
|
}
|
|
1494
1520
|
)
|
|
1495
|
-
] })
|
|
1521
|
+
] })
|
|
1496
1522
|
] }) }),
|
|
1497
1523
|
/* @__PURE__ */ jsx(Tabs.Content, { value: "members", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 5, paddingTop: 6, children: [
|
|
1498
1524
|
/* @__PURE__ */ jsxs(FormSection, { children: [
|
|
@@ -4572,7 +4598,15 @@ function UserDetailDrawer({
|
|
|
4572
4598
|
}
|
|
4573
4599
|
)
|
|
4574
4600
|
] })
|
|
4575
|
-
] })
|
|
4601
|
+
] }),
|
|
4602
|
+
/* @__PURE__ */ jsx(
|
|
4603
|
+
EditViewSidePanels,
|
|
4604
|
+
{
|
|
4605
|
+
model: "plugin::better-auth.user",
|
|
4606
|
+
documentId: strapiUserQuery.data?.documentId,
|
|
4607
|
+
document: strapiUserQuery.data ?? void 0
|
|
4608
|
+
}
|
|
4609
|
+
)
|
|
4576
4610
|
] })
|
|
4577
4611
|
] }) }),
|
|
4578
4612
|
/* @__PURE__ */ jsx(Tabs.Content, { value: "security", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 5, paddingTop: 6, children: [
|
|
@@ -5687,3 +5721,4 @@ export {
|
|
|
5687
5721
|
Root,
|
|
5688
5722
|
Root as default
|
|
5689
5723
|
};
|
|
5724
|
+
//# sourceMappingURL=Root-Rol-uNmC.mjs.map
|