@strapi-community/plugin-better-auth-dashboard 1.0.0-alpha.7 → 1.0.0-alpha.8
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/admin/{Root-Rol-uNmC.mjs → Root-BvxYnCtW.mjs} +6 -8
- package/dist/admin/{Root-BUuPFmkA.js → Root-M8utGvhO.js} +6 -8
- package/dist/admin/{index-Y9SjzGQY.mjs → index-C83RGFES.mjs} +8 -3
- package/dist/admin/{index-CYaQ-gs-.js → index-FaCDi-rw.js} +8 -3
- package/dist/admin/index.js +1 -2
- package/dist/admin/index.mjs +1 -2
- package/dist/server/index.js +0 -1
- package/dist/server/index.mjs +0 -1
- package/package.json +9 -8
- package/dist/admin/Root-BUuPFmkA.js.map +0 -1
- package/dist/admin/Root-Rol-uNmC.mjs.map +0 -1
- package/dist/admin/index-CYaQ-gs-.js.map +0 -1
- package/dist/admin/index-Y9SjzGQY.mjs.map +0 -1
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/index.mjs.map +0 -1
|
@@ -5,9 +5,9 @@ import { Modal, Typography, Button, Portal, Flex, IconButton, Box, Field, TextIn
|
|
|
5
5
|
import styled, { keyframes } from "styled-components";
|
|
6
6
|
import { dashClient } from "@better-auth/infra/client";
|
|
7
7
|
import { createAuthClient, InferPlugin } from "better-auth/client";
|
|
8
|
+
import { g as getMediaLibraryComponent, a as getEditViewSidePanels, P as PluginIcon } from "./index-C83RGFES.mjs";
|
|
8
9
|
import { Cross, Images, Trash, Plus, Pencil } from "@strapi/icons";
|
|
9
10
|
import { useNotification, useFetchClient } from "@strapi/strapi/admin";
|
|
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: {
|
|
@@ -450,7 +450,8 @@ function UserCombobox({
|
|
|
450
450
|
queryKey: ["user-combobox-search", search],
|
|
451
451
|
queryFn: async () => {
|
|
452
452
|
const whereClause = search ? JSON.stringify([
|
|
453
|
-
{ field: "email", operator: "contains", value: search }
|
|
453
|
+
{ field: "email", operator: "contains", value: search, connector: "OR" },
|
|
454
|
+
{ field: "name", operator: "contains", value: search, connector: "OR" }
|
|
454
455
|
]) : void 0;
|
|
455
456
|
const result = await client.dash.listUsers({
|
|
456
457
|
query: {
|
|
@@ -542,6 +543,7 @@ function CreateOrganizationDialog({ teamsEnabled, onClose }) {
|
|
|
542
543
|
loading: createMutation.isLoading,
|
|
543
544
|
disabled: !name || !slug || !ownerId,
|
|
544
545
|
onClick: () => createMutation.mutate(),
|
|
546
|
+
"data-testid": "create-org-submit",
|
|
545
547
|
children: "Create organization"
|
|
546
548
|
}
|
|
547
549
|
)
|
|
@@ -3715,11 +3717,8 @@ function useUsers(options = {}) {
|
|
|
3715
3717
|
queryKey: ["dash-users", limit, offset, search],
|
|
3716
3718
|
queryFn: async () => {
|
|
3717
3719
|
const whereClause = search ? JSON.stringify([
|
|
3718
|
-
{
|
|
3719
|
-
|
|
3720
|
-
operator: "contains",
|
|
3721
|
-
value: search
|
|
3722
|
-
}
|
|
3720
|
+
{ field: "email", operator: "contains", value: search, connector: "OR" },
|
|
3721
|
+
{ field: "name", operator: "contains", value: search, connector: "OR" }
|
|
3723
3722
|
]) : void 0;
|
|
3724
3723
|
const result = await client.dash.listUsers({
|
|
3725
3724
|
query: {
|
|
@@ -5721,4 +5720,3 @@ export {
|
|
|
5721
5720
|
Root,
|
|
5722
5721
|
Root as default
|
|
5723
5722
|
};
|
|
5724
|
-
//# sourceMappingURL=Root-Rol-uNmC.mjs.map
|
|
@@ -7,9 +7,9 @@ const designSystem = require("@strapi/design-system");
|
|
|
7
7
|
const styled = require("styled-components");
|
|
8
8
|
const client$2 = require("@better-auth/infra/client");
|
|
9
9
|
const client$1 = require("better-auth/client");
|
|
10
|
+
const index = require("./index-FaCDi-rw.js");
|
|
10
11
|
const icons = require("@strapi/icons");
|
|
11
12
|
const admin = require("@strapi/strapi/admin");
|
|
12
|
-
const index = require("./index-CYaQ-gs-.js");
|
|
13
13
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
14
14
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
15
15
|
const dashPathMethods = () => ({
|
|
@@ -454,7 +454,8 @@ function UserCombobox({
|
|
|
454
454
|
queryKey: ["user-combobox-search", search],
|
|
455
455
|
queryFn: async () => {
|
|
456
456
|
const whereClause = search ? JSON.stringify([
|
|
457
|
-
{ field: "email", operator: "contains", value: search }
|
|
457
|
+
{ field: "email", operator: "contains", value: search, connector: "OR" },
|
|
458
|
+
{ field: "name", operator: "contains", value: search, connector: "OR" }
|
|
458
459
|
]) : void 0;
|
|
459
460
|
const result = await client.dash.listUsers({
|
|
460
461
|
query: {
|
|
@@ -546,6 +547,7 @@ function CreateOrganizationDialog({ teamsEnabled, onClose }) {
|
|
|
546
547
|
loading: createMutation.isLoading,
|
|
547
548
|
disabled: !name || !slug || !ownerId,
|
|
548
549
|
onClick: () => createMutation.mutate(),
|
|
550
|
+
"data-testid": "create-org-submit",
|
|
549
551
|
children: "Create organization"
|
|
550
552
|
}
|
|
551
553
|
)
|
|
@@ -3719,11 +3721,8 @@ function useUsers(options = {}) {
|
|
|
3719
3721
|
queryKey: ["dash-users", limit, offset, search],
|
|
3720
3722
|
queryFn: async () => {
|
|
3721
3723
|
const whereClause = search ? JSON.stringify([
|
|
3722
|
-
{
|
|
3723
|
-
|
|
3724
|
-
operator: "contains",
|
|
3725
|
-
value: search
|
|
3726
|
-
}
|
|
3724
|
+
{ field: "email", operator: "contains", value: search, connector: "OR" },
|
|
3725
|
+
{ field: "name", operator: "contains", value: search, connector: "OR" }
|
|
3727
3726
|
]) : void 0;
|
|
3728
3727
|
const result = await client.dash.listUsers({
|
|
3729
3728
|
query: {
|
|
@@ -5723,4 +5722,3 @@ function Root() {
|
|
|
5723
5722
|
}
|
|
5724
5723
|
exports.Root = Root;
|
|
5725
5724
|
exports.default = Root;
|
|
5726
|
-
//# sourceMappingURL=Root-BUuPFmkA.js.map
|
|
@@ -32,7 +32,13 @@ const PluginIcon = ({
|
|
|
32
32
|
},
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ jsx("title", { children: "Better Auth Logo" }),
|
|
35
|
-
/* @__PURE__ */ jsx(
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
"path",
|
|
37
|
+
{
|
|
38
|
+
fill: "currentColor",
|
|
39
|
+
d: "M0 3.39v17.22h5.783v-5.55h6.434V8.939H5.783V3.39Zm12.217 5.55h5.638v6.122h-5.638v5.548H24V3.391H12.217Z"
|
|
40
|
+
}
|
|
41
|
+
)
|
|
36
42
|
]
|
|
37
43
|
}
|
|
38
44
|
);
|
|
@@ -76,7 +82,7 @@ const index = {
|
|
|
76
82
|
id: `${PLUGIN_ID}.plugin.name`,
|
|
77
83
|
defaultMessage: "Auth Dashboard"
|
|
78
84
|
},
|
|
79
|
-
Component: async () => import("./Root-
|
|
85
|
+
Component: async () => import("./Root-BvxYnCtW.mjs")
|
|
80
86
|
});
|
|
81
87
|
},
|
|
82
88
|
bootstrap() {
|
|
@@ -88,4 +94,3 @@ export {
|
|
|
88
94
|
getMediaLibraryComponent as g,
|
|
89
95
|
index as i
|
|
90
96
|
};
|
|
91
|
-
//# sourceMappingURL=index-Y9SjzGQY.mjs.map
|
|
@@ -33,7 +33,13 @@ const PluginIcon = ({
|
|
|
33
33
|
},
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ jsxRuntime.jsx("title", { children: "Better Auth Logo" }),
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
fill: "currentColor",
|
|
40
|
+
d: "M0 3.39v17.22h5.783v-5.55h6.434V8.939H5.783V3.39Zm12.217 5.55h5.638v6.122h-5.638v5.548H24V3.391H12.217Z"
|
|
41
|
+
}
|
|
42
|
+
)
|
|
37
43
|
]
|
|
38
44
|
}
|
|
39
45
|
);
|
|
@@ -77,7 +83,7 @@ const index = {
|
|
|
77
83
|
id: `${PLUGIN_ID}.plugin.name`,
|
|
78
84
|
defaultMessage: "Auth Dashboard"
|
|
79
85
|
},
|
|
80
|
-
Component: async () => Promise.resolve().then(() => require("./Root-
|
|
86
|
+
Component: async () => Promise.resolve().then(() => require("./Root-M8utGvhO.js"))
|
|
81
87
|
});
|
|
82
88
|
},
|
|
83
89
|
bootstrap() {
|
|
@@ -87,4 +93,3 @@ exports.PluginIcon = PluginIcon;
|
|
|
87
93
|
exports.getEditViewSidePanels = getEditViewSidePanels;
|
|
88
94
|
exports.getMediaLibraryComponent = getMediaLibraryComponent;
|
|
89
95
|
exports.index = index;
|
|
90
|
-
//# sourceMappingURL=index-CYaQ-gs-.js.map
|
package/dist/admin/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-FaCDi-rw.js");
|
|
4
4
|
exports.default = index.index;
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
package/dist/server/index.mjs
CHANGED
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.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"description": "Better Auth dashboard for the Strapi admin panel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": {
|
|
13
13
|
"name": "Boaz Poolman",
|
|
14
|
-
"email": "boaz@
|
|
14
|
+
"email": "boaz.poolman@strapi.io",
|
|
15
15
|
"url": "https://github.com/boazpoolman"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "git+https://github.com/strapi-community/plugin-better-auth.git",
|
|
20
|
-
"directory": "
|
|
20
|
+
"directory": "plugins/plugin-better-auth-dashboard"
|
|
21
21
|
},
|
|
22
22
|
"type": "commonjs",
|
|
23
23
|
"exports": {
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"@types/node": "^22",
|
|
49
49
|
"@types/react": "^18.0.0",
|
|
50
50
|
"@types/styled-components": "^5.1.36",
|
|
51
|
-
"typescript": "^5.9.3"
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"@strapi-community/dev-utils": "0.0.1"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
55
|
"@better-auth/infra": "^0.2.6",
|
|
@@ -76,9 +77,9 @@
|
|
|
76
77
|
"watch": "strapi-plugin watch",
|
|
77
78
|
"dev": "strapi-plugin watch",
|
|
78
79
|
"verify": "strapi-plugin verify",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
80
|
+
"lint:ts:server": "cd server && tsc --noEmit",
|
|
81
|
+
"lint:ts:admin": "cd admin && tsc --noEmit",
|
|
82
|
+
"lint": "biome check --fix",
|
|
83
|
+
"test:e2e": "playwright test"
|
|
83
84
|
}
|
|
84
85
|
}
|