@strapi-community/plugin-better-auth-dashboard 1.0.0-alpha.7 → 1.0.0-alpha.9

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-BMTIuxZI.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,18 @@ 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
+ {
454
+ field: "email",
455
+ operator: "contains",
456
+ value: search,
457
+ connector: "OR"
458
+ },
459
+ {
460
+ field: "name",
461
+ operator: "contains",
462
+ value: search,
463
+ connector: "OR"
464
+ }
454
465
  ]) : void 0;
455
466
  const result = await client.dash.listUsers({
456
467
  query: {
@@ -542,6 +553,7 @@ function CreateOrganizationDialog({ teamsEnabled, onClose }) {
542
553
  loading: createMutation.isLoading,
543
554
  disabled: !name || !slug || !ownerId,
544
555
  onClick: () => createMutation.mutate(),
556
+ "data-testid": "create-org-submit",
545
557
  children: "Create organization"
546
558
  }
547
559
  )
@@ -3718,7 +3730,14 @@ function useUsers(options = {}) {
3718
3730
  {
3719
3731
  field: "email",
3720
3732
  operator: "contains",
3721
- value: search
3733
+ value: search,
3734
+ connector: "OR"
3735
+ },
3736
+ {
3737
+ field: "name",
3738
+ operator: "contains",
3739
+ value: search,
3740
+ connector: "OR"
3722
3741
  }
3723
3742
  ]) : void 0;
3724
3743
  const result = await client.dash.listUsers({
@@ -5721,4 +5740,3 @@ export {
5721
5740
  Root,
5722
5741
  Root as default
5723
5742
  };
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-CkSsWnBx.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,18 @@ 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
+ {
458
+ field: "email",
459
+ operator: "contains",
460
+ value: search,
461
+ connector: "OR"
462
+ },
463
+ {
464
+ field: "name",
465
+ operator: "contains",
466
+ value: search,
467
+ connector: "OR"
468
+ }
458
469
  ]) : void 0;
459
470
  const result = await client.dash.listUsers({
460
471
  query: {
@@ -546,6 +557,7 @@ function CreateOrganizationDialog({ teamsEnabled, onClose }) {
546
557
  loading: createMutation.isLoading,
547
558
  disabled: !name || !slug || !ownerId,
548
559
  onClick: () => createMutation.mutate(),
560
+ "data-testid": "create-org-submit",
549
561
  children: "Create organization"
550
562
  }
551
563
  )
@@ -3722,7 +3734,14 @@ function useUsers(options = {}) {
3722
3734
  {
3723
3735
  field: "email",
3724
3736
  operator: "contains",
3725
- value: search
3737
+ value: search,
3738
+ connector: "OR"
3739
+ },
3740
+ {
3741
+ field: "name",
3742
+ operator: "contains",
3743
+ value: search,
3744
+ connector: "OR"
3726
3745
  }
3727
3746
  ]) : void 0;
3728
3747
  const result = await client.dash.listUsers({
@@ -5723,4 +5742,3 @@ function Root() {
5723
5742
  }
5724
5743
  exports.Root = Root;
5725
5744
  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-BYdYQBE5.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-D_vCtQoC.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-CkSsWnBx.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-BMTIuxZI.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
5
- //# sourceMappingURL=index.mjs.map
@@ -164,8 +164,7 @@ const adminRoutes = () => ({
164
164
  handler: "auth-controller.handleAuthRequest",
165
165
  config: {
166
166
  policies: [],
167
- prefix: "",
168
- auth: false
167
+ prefix: ""
169
168
  }
170
169
  },
171
170
  {
@@ -174,7 +173,6 @@ const adminRoutes = () => ({
174
173
  handler: "auth-controller.handleAuthRequest",
175
174
  config: {
176
175
  policies: [],
177
- auth: false,
178
176
  prefix: ""
179
177
  }
180
178
  },
@@ -184,7 +182,6 @@ const adminRoutes = () => ({
184
182
  handler: "auth-controller.handleAuthRequest",
185
183
  config: {
186
184
  policies: [],
187
- auth: false,
188
185
  prefix: ""
189
186
  }
190
187
  },
@@ -194,7 +191,6 @@ const adminRoutes = () => ({
194
191
  handler: "auth-controller.handleAuthRequest",
195
192
  config: {
196
193
  policies: [],
197
- auth: false,
198
194
  prefix: ""
199
195
  }
200
196
  },
@@ -204,7 +200,6 @@ const adminRoutes = () => ({
204
200
  handler: "auth-controller.handleAuthRequest",
205
201
  config: {
206
202
  policies: [],
207
- auth: false,
208
203
  prefix: ""
209
204
  }
210
205
  },
@@ -234,4 +229,3 @@ const index = {
234
229
  routes
235
230
  };
236
231
  exports.default = index;
237
- //# sourceMappingURL=index.js.map
@@ -162,8 +162,7 @@ const adminRoutes = () => ({
162
162
  handler: "auth-controller.handleAuthRequest",
163
163
  config: {
164
164
  policies: [],
165
- prefix: "",
166
- auth: false
165
+ prefix: ""
167
166
  }
168
167
  },
169
168
  {
@@ -172,7 +171,6 @@ const adminRoutes = () => ({
172
171
  handler: "auth-controller.handleAuthRequest",
173
172
  config: {
174
173
  policies: [],
175
- auth: false,
176
174
  prefix: ""
177
175
  }
178
176
  },
@@ -182,7 +180,6 @@ const adminRoutes = () => ({
182
180
  handler: "auth-controller.handleAuthRequest",
183
181
  config: {
184
182
  policies: [],
185
- auth: false,
186
183
  prefix: ""
187
184
  }
188
185
  },
@@ -192,7 +189,6 @@ const adminRoutes = () => ({
192
189
  handler: "auth-controller.handleAuthRequest",
193
190
  config: {
194
191
  policies: [],
195
- auth: false,
196
192
  prefix: ""
197
193
  }
198
194
  },
@@ -202,7 +198,6 @@ const adminRoutes = () => ({
202
198
  handler: "auth-controller.handleAuthRequest",
203
199
  config: {
204
200
  policies: [],
205
- auth: false,
206
201
  prefix: ""
207
202
  }
208
203
  },
@@ -234,4 +229,3 @@ const index = {
234
229
  export {
235
230
  index as default
236
231
  };
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.9",
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
  }