@strapi-community/plugin-better-auth-dashboard 1.0.0-alpha.8 → 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,7 +5,7 @@ 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
+ import { g as getMediaLibraryComponent, a as getEditViewSidePanels, P as PluginIcon } from "./index-BMTIuxZI.mjs";
9
9
  import { Cross, Images, Trash, Plus, Pencil } from "@strapi/icons";
10
10
  import { useNotification, useFetchClient } from "@strapi/strapi/admin";
11
11
  const dashPathMethods = () => ({
@@ -450,8 +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, connector: "OR" },
454
- { field: "name", operator: "contains", value: search, connector: "OR" }
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
+ }
455
465
  ]) : void 0;
456
466
  const result = await client.dash.listUsers({
457
467
  query: {
@@ -3717,8 +3727,18 @@ function useUsers(options = {}) {
3717
3727
  queryKey: ["dash-users", limit, offset, search],
3718
3728
  queryFn: async () => {
3719
3729
  const whereClause = search ? JSON.stringify([
3720
- { field: "email", operator: "contains", value: search, connector: "OR" },
3721
- { field: "name", operator: "contains", value: search, connector: "OR" }
3730
+ {
3731
+ field: "email",
3732
+ operator: "contains",
3733
+ value: search,
3734
+ connector: "OR"
3735
+ },
3736
+ {
3737
+ field: "name",
3738
+ operator: "contains",
3739
+ value: search,
3740
+ connector: "OR"
3741
+ }
3722
3742
  ]) : void 0;
3723
3743
  const result = await client.dash.listUsers({
3724
3744
  query: {
@@ -7,7 +7,7 @@ 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
+ const index = require("./index-CkSsWnBx.js");
11
11
  const icons = require("@strapi/icons");
12
12
  const admin = require("@strapi/strapi/admin");
13
13
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
@@ -454,8 +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, connector: "OR" },
458
- { field: "name", operator: "contains", value: search, connector: "OR" }
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
+ }
459
469
  ]) : void 0;
460
470
  const result = await client.dash.listUsers({
461
471
  query: {
@@ -3721,8 +3731,18 @@ function useUsers(options = {}) {
3721
3731
  queryKey: ["dash-users", limit, offset, search],
3722
3732
  queryFn: async () => {
3723
3733
  const whereClause = search ? JSON.stringify([
3724
- { field: "email", operator: "contains", value: search, connector: "OR" },
3725
- { field: "name", operator: "contains", value: search, connector: "OR" }
3734
+ {
3735
+ field: "email",
3736
+ operator: "contains",
3737
+ value: search,
3738
+ connector: "OR"
3739
+ },
3740
+ {
3741
+ field: "name",
3742
+ operator: "contains",
3743
+ value: search,
3744
+ connector: "OR"
3745
+ }
3726
3746
  ]) : void 0;
3727
3747
  const result = await client.dash.listUsers({
3728
3748
  query: {
@@ -82,7 +82,7 @@ const index = {
82
82
  id: `${PLUGIN_ID}.plugin.name`,
83
83
  defaultMessage: "Auth Dashboard"
84
84
  },
85
- Component: async () => import("./Root-BvxYnCtW.mjs")
85
+ Component: async () => import("./Root-BYdYQBE5.mjs")
86
86
  });
87
87
  },
88
88
  bootstrap() {
@@ -83,7 +83,7 @@ const index = {
83
83
  id: `${PLUGIN_ID}.plugin.name`,
84
84
  defaultMessage: "Auth Dashboard"
85
85
  },
86
- Component: async () => Promise.resolve().then(() => require("./Root-M8utGvhO.js"))
86
+ Component: async () => Promise.resolve().then(() => require("./Root-D_vCtQoC.js"))
87
87
  });
88
88
  },
89
89
  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-FaCDi-rw.js");
3
+ const index = require("./index-CkSsWnBx.js");
4
4
  exports.default = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "./index-C83RGFES.mjs";
1
+ import { i } from "./index-BMTIuxZI.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
@@ -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
  },
@@ -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
  },
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.8",
3
+ "version": "1.0.0-alpha.9",
4
4
  "description": "Better Auth dashboard for the Strapi admin panel",
5
5
  "keywords": [
6
6
  "strapi",