strapi-plugin-firebase-authentication 1.2.5 → 1.4.0
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/_chunks/{App-DjamRMm8.mjs → App-BetYshSi.mjs} +480 -160
- package/dist/_chunks/{App-BmP-duLn.js → App-CvU_Hs6w.js} +592 -251
- package/dist/_chunks/{api-Bg075IIT.js → api-e13nzvp3.js} +2 -1
- package/dist/_chunks/{api-CLQa5PFi.mjs → api-ut3LjIwN.mjs} +2 -1
- package/dist/_chunks/{index-B2NvsXdF.mjs → index-CciifEG2.mjs} +13 -14
- package/dist/_chunks/{index-B4ptk_Em.js → index-Cdk5SnH2.js} +1 -1
- package/dist/_chunks/{index-CyOVjVQb.js → index-DG0-IQtm.js} +4 -5
- package/dist/_chunks/{index-CAZnRswo.mjs → index-LLF37Cdh.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +2 -2
- package/dist/admin/src/components/ActivityLog/ActivityLog.d.ts +6 -0
- package/dist/admin/src/components/ActivityLog/index.d.ts +1 -0
- package/dist/admin/src/pages/utils/api.d.ts +18 -1
- package/dist/server/index.js +8171 -30542
- package/dist/server/index.mjs +8131 -30497
- package/dist/server/src/config/index.d.ts +8 -0
- package/dist/server/src/content-types/index.d.ts +74 -0
- package/dist/server/src/controllers/activityLogController.d.ts +8 -0
- package/dist/server/src/controllers/firebaseController.d.ts +9 -0
- package/dist/server/src/controllers/index.d.ts +4 -0
- package/dist/server/src/index.d.ts +97 -1
- package/dist/server/src/middlewares/activity-logger.d.ts +9 -0
- package/dist/server/src/middlewares/index.d.ts +5 -1
- package/dist/server/src/services/activityLogService.d.ts +58 -0
- package/dist/server/src/services/firebaseService.d.ts +12 -0
- package/dist/server/src/services/firebaseUserDataService.d.ts +1 -0
- package/dist/server/src/services/index.d.ts +13 -0
- package/dist/server/src/services/userService.d.ts +1 -0
- package/package.json +2 -1
|
@@ -4,7 +4,7 @@ const m = require("react");
|
|
|
4
4
|
const jsxRuntime = require("react/jsx-runtime");
|
|
5
5
|
const rt = require("@radix-ui/react-tooltip");
|
|
6
6
|
const we$1 = require("react-dom");
|
|
7
|
-
const index$2 = require("./index-
|
|
7
|
+
const index$2 = require("./index-DG0-IQtm.js");
|
|
8
8
|
const admin = require("@strapi/strapi/admin");
|
|
9
9
|
function _interopNamespace(e) {
|
|
10
10
|
if (e && e.__esModule) return e;
|
|
@@ -56673,6 +56673,7 @@ exports.R = R;
|
|
|
56673
56673
|
exports.S1 = S1;
|
|
56674
56674
|
exports.T = T;
|
|
56675
56675
|
exports.Tr = Tr;
|
|
56676
|
+
exports.Wd = Wd;
|
|
56676
56677
|
exports.a0 = a0;
|
|
56677
56678
|
exports.bo = bo;
|
|
56678
56679
|
exports.delFirebaseConfig = delFirebaseConfig;
|
|
@@ -5,7 +5,7 @@ import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
|
5
5
|
import * as rt from "@radix-ui/react-tooltip";
|
|
6
6
|
import * as we$1 from "react-dom";
|
|
7
7
|
import we__default, { flushSync, createPortal } from "react-dom";
|
|
8
|
-
import { q as commonjsGlobal, J as J2, R as R3, C as C5,
|
|
8
|
+
import { q as commonjsGlobal, J as J2, R as R3, C as C5, v as f5, x as a5, N as Nn$1, y as r3, z as f3, u as un$1, w as w5, A as h5, K as K2, B as o5, P as PLUGIN_ID } from "./index-CciifEG2.mjs";
|
|
9
9
|
import { getFetchClient } from "@strapi/strapi/admin";
|
|
10
10
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
11
11
|
const callbackRef = useRef(callback);
|
|
@@ -56653,6 +56653,7 @@ export {
|
|
|
56653
56653
|
R,
|
|
56654
56654
|
S1 as S,
|
|
56655
56655
|
T,
|
|
56656
|
+
Wd as W,
|
|
56656
56657
|
A1 as a,
|
|
56657
56658
|
Tr as b,
|
|
56658
56659
|
bo as c,
|
|
@@ -327,9 +327,7 @@ const I = ({
|
|
|
327
327
|
colors: a
|
|
328
328
|
} = useTheme(), w = n && n in a ? a[n] : n, e = t && t in a ? a[t] : t;
|
|
329
329
|
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill: w, stroke: e, ref: h, ...c, children: /* @__PURE__ */ jsx("path", { d: "m27.061 13.061-10 10a1.503 1.503 0 0 1-2.125 0l-10-10a1.503 1.503 0 1 1 2.125-2.125L16 19.875l8.939-8.94a1.502 1.502 0 1 1 2.125 2.125z" }) });
|
|
330
|
-
}
|
|
331
|
-
forwardRef(I);
|
|
332
|
-
const G = ({
|
|
330
|
+
}, c5 = forwardRef(I), G = ({
|
|
333
331
|
fill: n = "currentColor",
|
|
334
332
|
stroke: t,
|
|
335
333
|
...c
|
|
@@ -2662,7 +2660,7 @@ const index = {
|
|
|
2662
2660
|
id: `${PLUGIN_ID}.page.title`,
|
|
2663
2661
|
defaultMessage: PLUGIN_ID
|
|
2664
2662
|
},
|
|
2665
|
-
Component: () => import("./App-
|
|
2663
|
+
Component: () => import("./App-BetYshSi.mjs").then((mod) => ({
|
|
2666
2664
|
default: mod.App
|
|
2667
2665
|
})),
|
|
2668
2666
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2684,7 +2682,7 @@ const index = {
|
|
|
2684
2682
|
id: "settings",
|
|
2685
2683
|
to: `/settings/${PLUGIN_ID}`,
|
|
2686
2684
|
async Component() {
|
|
2687
|
-
const component = await import("./index-
|
|
2685
|
+
const component = await import("./index-LLF37Cdh.mjs");
|
|
2688
2686
|
return component.default;
|
|
2689
2687
|
},
|
|
2690
2688
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2718,9 +2716,10 @@ const index = {
|
|
|
2718
2716
|
}
|
|
2719
2717
|
};
|
|
2720
2718
|
export {
|
|
2721
|
-
|
|
2722
|
-
|
|
2719
|
+
h5 as A,
|
|
2720
|
+
o5 as B,
|
|
2723
2721
|
C5 as C,
|
|
2722
|
+
index as D,
|
|
2724
2723
|
J2 as J,
|
|
2725
2724
|
K2 as K,
|
|
2726
2725
|
Nn as N,
|
|
@@ -2746,13 +2745,13 @@ export {
|
|
|
2746
2745
|
bn as o,
|
|
2747
2746
|
getAugmentedNamespace as p,
|
|
2748
2747
|
commonjsGlobal as q,
|
|
2749
|
-
|
|
2748
|
+
c5 as r,
|
|
2750
2749
|
sn as s,
|
|
2751
|
-
|
|
2750
|
+
_3 as t,
|
|
2752
2751
|
un as u,
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2752
|
+
f5 as v,
|
|
2753
|
+
w5 as w,
|
|
2754
|
+
a5 as x,
|
|
2755
|
+
r3 as y,
|
|
2756
|
+
f3 as z
|
|
2758
2757
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const m = require("react");
|
|
5
|
-
const api = require("./api-
|
|
5
|
+
const api = require("./api-e13nzvp3.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const reactRouterDom = require("react-router-dom");
|
|
8
8
|
function SettingsPage() {
|
|
@@ -328,9 +328,7 @@ const I = ({
|
|
|
328
328
|
colors: a
|
|
329
329
|
} = styled.useTheme(), w = n && n in a ? a[n] : n, e = t && t in a ? a[t] : t;
|
|
330
330
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill: w, stroke: e, ref: h, ...c, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m27.061 13.061-10 10a1.503 1.503 0 0 1-2.125 0l-10-10a1.503 1.503 0 1 1 2.125-2.125L16 19.875l8.939-8.94a1.502 1.502 0 1 1 2.125 2.125z" }) });
|
|
331
|
-
}
|
|
332
|
-
m$1.forwardRef(I);
|
|
333
|
-
const G = ({
|
|
331
|
+
}, c5 = m$1.forwardRef(I), G = ({
|
|
334
332
|
fill: n = "currentColor",
|
|
335
333
|
stroke: t,
|
|
336
334
|
...c
|
|
@@ -2663,7 +2661,7 @@ const index = {
|
|
|
2663
2661
|
id: `${PLUGIN_ID}.page.title`,
|
|
2664
2662
|
defaultMessage: PLUGIN_ID
|
|
2665
2663
|
},
|
|
2666
|
-
Component: () => Promise.resolve().then(() => require("./App-
|
|
2664
|
+
Component: () => Promise.resolve().then(() => require("./App-CvU_Hs6w.js")).then((mod) => ({
|
|
2667
2665
|
default: mod.App
|
|
2668
2666
|
})),
|
|
2669
2667
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2685,7 +2683,7 @@ const index = {
|
|
|
2685
2683
|
id: "settings",
|
|
2686
2684
|
to: `/settings/${PLUGIN_ID}`,
|
|
2687
2685
|
async Component() {
|
|
2688
|
-
const component = await Promise.resolve().then(() => require("./index-
|
|
2686
|
+
const component = await Promise.resolve().then(() => require("./index-Cdk5SnH2.js"));
|
|
2689
2687
|
return component.default;
|
|
2690
2688
|
},
|
|
2691
2689
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2736,6 +2734,7 @@ exports._equalByTag = _equalByTag;
|
|
|
2736
2734
|
exports._getTag = _getTag;
|
|
2737
2735
|
exports.a5 = a5;
|
|
2738
2736
|
exports.bn = bn;
|
|
2737
|
+
exports.c5 = c5;
|
|
2739
2738
|
exports.commonjsGlobal = commonjsGlobal;
|
|
2740
2739
|
exports.f3 = f3;
|
|
2741
2740
|
exports.f5 = f5;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { T, R, E, J as Jm, N as Nn, G as G0, I as Is, M as M1, D as D1, i as i1, t as t1, g as getFirebaseConfig, s as saveFirebaseConfig, f as delFirebaseConfig, j as savePasswordSettings } from "./api-
|
|
3
|
+
import { T, R, E, J as Jm, N as Nn, G as G0, I as Is, M as M1, D as D1, i as i1, t as t1, g as getFirebaseConfig, s as saveFirebaseConfig, f as delFirebaseConfig, j as savePasswordSettings } from "./api-ut3LjIwN.mjs";
|
|
4
4
|
import { useNotification, Page } from "@strapi/strapi/admin";
|
|
5
5
|
import { useNavigate } from "react-router-dom";
|
|
6
6
|
function SettingsPage() {
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ActivityLog } from "./ActivityLog";
|
|
@@ -35,4 +35,21 @@ declare const sendResetEmail: (userId: string) => Promise<any>;
|
|
|
35
35
|
declare const getFirebaseConfig: () => Promise<any>;
|
|
36
36
|
declare const sendPasswordResetEmail: (userId: string) => Promise<any>;
|
|
37
37
|
declare const sendVerificationEmail: (userId: string) => Promise<any>;
|
|
38
|
-
|
|
38
|
+
interface ActivityLogFilters {
|
|
39
|
+
activityType?: string;
|
|
40
|
+
startDate?: string;
|
|
41
|
+
endDate?: string;
|
|
42
|
+
}
|
|
43
|
+
interface ActivityLogQuery {
|
|
44
|
+
page?: number;
|
|
45
|
+
pageSize?: number;
|
|
46
|
+
filters?: ActivityLogFilters;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @description Fetch activity logs for a Firebase user
|
|
50
|
+
* @param {String} firebaseUserId - The Firebase UID
|
|
51
|
+
* @param {ActivityLogQuery} query - Pagination and filter options
|
|
52
|
+
* @returns {Object} { data: logs[], meta: { total, page, pageSize } }
|
|
53
|
+
*/
|
|
54
|
+
declare const fetchActivityLogs: (firebaseUserId: string, query?: ActivityLogQuery) => Promise<any>;
|
|
55
|
+
export { fetchUsers, fetchUserByID, deleteUser, updateUser, createUser, fetchStrapiUsers, fetchStrapiUserById, resetUserPassword, sendResetEmail, getFirebaseConfig, sendPasswordResetEmail, sendVerificationEmail, fetchActivityLogs, };
|