@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.
@@ -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
- field: "email",
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
- field: "email",
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("path", { fill: "currentColor", d: "M0 3.39v17.22h5.783v-5.55h6.434V8.939H5.783V3.39Zm12.217 5.55h5.638v6.122h-5.638v5.548H24V3.391H12.217Z" })
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-Rol-uNmC.mjs")
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("path", { fill: "currentColor", d: "M0 3.39v17.22h5.783v-5.55h6.434V8.939H5.783V3.39Zm12.217 5.55h5.638v6.122h-5.638v5.548H24V3.391H12.217Z" })
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-BUuPFmkA.js"))
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
@@ -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-CYaQ-gs-.js");
3
+ const index = require("./index-FaCDi-rw.js");
4
4
  exports.default = index.index;
5
- //# sourceMappingURL=index.js.map
@@ -1,5 +1,4 @@
1
- import { i } from "./index-Y9SjzGQY.mjs";
1
+ import { i } from "./index-C83RGFES.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
5
- //# sourceMappingURL=index.mjs.map
@@ -234,4 +234,3 @@ const index = {
234
234
  routes
235
235
  };
236
236
  exports.default = index;
237
- //# sourceMappingURL=index.js.map
@@ -234,4 +234,3 @@ const index = {
234
234
  export {
235
235
  index as default
236
236
  };
237
- //# sourceMappingURL=index.mjs.map
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.7",
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@pluginpal.io",
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": "packages/plugin-better-auth-dashboard"
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
- "test:ts:server": "cd server && tsc --noEmit",
80
- "test:ts:admin": "cd admin && tsc --noEmit",
81
- "check-types": "pnpm run test:ts:server && pnpm run test:ts:admin",
82
- "lint": "biome check --fix"
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
  }