@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.
- package/dist/admin/{Root-BvxYnCtW.mjs → Root-BYdYQBE5.mjs} +25 -5
- package/dist/admin/{Root-M8utGvhO.js → Root-D_vCtQoC.js} +25 -5
- package/dist/admin/{index-C83RGFES.mjs → index-BMTIuxZI.mjs} +1 -1
- package/dist/admin/{index-FaCDi-rw.js → index-CkSsWnBx.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +1 -6
- package/dist/server/index.mjs +1 -6
- package/package.json +1 -1
|
@@ -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-
|
|
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
|
-
{
|
|
454
|
-
|
|
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
|
-
{
|
|
3721
|
-
|
|
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-
|
|
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
|
-
{
|
|
458
|
-
|
|
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
|
-
{
|
|
3725
|
-
|
|
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: {
|
|
@@ -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-
|
|
86
|
+
Component: async () => Promise.resolve().then(() => require("./Root-D_vCtQoC.js"))
|
|
87
87
|
});
|
|
88
88
|
},
|
|
89
89
|
bootstrap() {
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -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
|
},
|
package/dist/server/index.mjs
CHANGED
|
@@ -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
|
},
|