strapi-plugin-firebase-authentication 1.4.0 → 1.5.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-CvU_Hs6w.js → App-C-kv4yRv.js} +110 -127
- package/dist/_chunks/{App-BetYshSi.mjs → App-uoQJMwID.mjs} +110 -127
- package/dist/_chunks/{api-e13nzvp3.js → api-BRXy82Pb.js} +1 -1
- package/dist/_chunks/{api-ut3LjIwN.mjs → api-C0Snp7-s.mjs} +1 -1
- package/dist/_chunks/{index-DG0-IQtm.js → index-BIxv8ozL.js} +2 -2
- package/dist/_chunks/{index-LLF37Cdh.mjs → index-DDk7ZjCB.mjs} +1 -1
- package/dist/_chunks/{index-Cdk5SnH2.js → index-DLh-g83g.js} +1 -1
- package/dist/_chunks/{index-CciifEG2.mjs → index-DrHJAVR8.mjs} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +16 -11
- package/dist/server/index.mjs +16 -11
- package/dist/server/src/index.d.ts +2 -0
- package/dist/server/src/services/firebaseService.d.ts +2 -0
- package/dist/server/src/services/index.d.ts +2 -0
- package/package.json +5 -4
|
@@ -5,9 +5,9 @@ const admin = require("@strapi/strapi/admin");
|
|
|
5
5
|
const reactRouterDom = require("react-router-dom");
|
|
6
6
|
const rt = require("@radix-ui/react-tooltip");
|
|
7
7
|
const m = require("react");
|
|
8
|
-
const api = require("./api-
|
|
8
|
+
const api = require("./api-BRXy82Pb.js");
|
|
9
9
|
const reactIntl = require("react-intl");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-BIxv8ozL.js");
|
|
11
11
|
const styled = require("styled-components");
|
|
12
12
|
const rx = require("react-icons/rx");
|
|
13
13
|
const ai = require("react-icons/ai");
|
|
@@ -3023,7 +3023,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
3023
3023
|
var ys = arrObjKeys(obj, inspect2);
|
|
3024
3024
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
3025
3025
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
3026
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
3026
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
3027
3027
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
3028
3028
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
3029
3029
|
if (ys.length === 0) {
|
|
@@ -3048,25 +3048,25 @@ function canTrustToString(obj) {
|
|
|
3048
3048
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
3049
3049
|
}
|
|
3050
3050
|
function isArray$3(obj) {
|
|
3051
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
3051
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
3052
3052
|
}
|
|
3053
3053
|
function isDate(obj) {
|
|
3054
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
3054
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
3055
3055
|
}
|
|
3056
3056
|
function isRegExp$1(obj) {
|
|
3057
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
3057
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
3058
3058
|
}
|
|
3059
3059
|
function isError(obj) {
|
|
3060
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
3060
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
3061
3061
|
}
|
|
3062
3062
|
function isString(obj) {
|
|
3063
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
3063
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
3064
3064
|
}
|
|
3065
3065
|
function isNumber(obj) {
|
|
3066
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
3066
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
3067
3067
|
}
|
|
3068
3068
|
function isBoolean(obj) {
|
|
3069
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
3069
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
3070
3070
|
}
|
|
3071
3071
|
function isSymbol(obj) {
|
|
3072
3072
|
if (hasShammedSymbols) {
|
|
@@ -3102,7 +3102,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
3102
3102
|
function has$3(obj, key) {
|
|
3103
3103
|
return hasOwn$1.call(obj, key);
|
|
3104
3104
|
}
|
|
3105
|
-
function toStr(obj) {
|
|
3105
|
+
function toStr$1(obj) {
|
|
3106
3106
|
return objectToString.call(obj);
|
|
3107
3107
|
}
|
|
3108
3108
|
function nameOf(f) {
|
|
@@ -3411,7 +3411,7 @@ var syntax = SyntaxError;
|
|
|
3411
3411
|
var uri = URIError;
|
|
3412
3412
|
var abs$1 = Math.abs;
|
|
3413
3413
|
var floor$1 = Math.floor;
|
|
3414
|
-
var max$
|
|
3414
|
+
var max$2 = Math.max;
|
|
3415
3415
|
var min$1 = Math.min;
|
|
3416
3416
|
var pow$1 = Math.pow;
|
|
3417
3417
|
var round$1 = Math.round;
|
|
@@ -3540,99 +3540,78 @@ function requireObject_getPrototypeOf() {
|
|
|
3540
3540
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
3541
3541
|
return Object_getPrototypeOf;
|
|
3542
3542
|
}
|
|
3543
|
-
var
|
|
3544
|
-
var
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
var
|
|
3549
|
-
var
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
var
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
}
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
var str = "";
|
|
3571
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3572
|
-
str += arr[i2];
|
|
3573
|
-
if (i2 + 1 < arr.length) {
|
|
3574
|
-
str += joiner;
|
|
3575
|
-
}
|
|
3543
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
3544
|
+
var toStr = Object.prototype.toString;
|
|
3545
|
+
var max$1 = Math.max;
|
|
3546
|
+
var funcType = "[object Function]";
|
|
3547
|
+
var concatty = function concatty2(a3, b2) {
|
|
3548
|
+
var arr = [];
|
|
3549
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
3550
|
+
arr[i2] = a3[i2];
|
|
3551
|
+
}
|
|
3552
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
3553
|
+
arr[j + a3.length] = b2[j];
|
|
3554
|
+
}
|
|
3555
|
+
return arr;
|
|
3556
|
+
};
|
|
3557
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
3558
|
+
var arr = [];
|
|
3559
|
+
for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
3560
|
+
arr[j] = arrLike[i2];
|
|
3561
|
+
}
|
|
3562
|
+
return arr;
|
|
3563
|
+
};
|
|
3564
|
+
var joiny = function(arr, joiner) {
|
|
3565
|
+
var str = "";
|
|
3566
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3567
|
+
str += arr[i2];
|
|
3568
|
+
if (i2 + 1 < arr.length) {
|
|
3569
|
+
str += joiner;
|
|
3576
3570
|
}
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
);
|
|
3592
|
-
if (Object(result) === result) {
|
|
3593
|
-
return result;
|
|
3594
|
-
}
|
|
3595
|
-
return this;
|
|
3596
|
-
}
|
|
3597
|
-
return target.apply(
|
|
3598
|
-
that,
|
|
3571
|
+
}
|
|
3572
|
+
return str;
|
|
3573
|
+
};
|
|
3574
|
+
var implementation$1 = function bind(that) {
|
|
3575
|
+
var target = this;
|
|
3576
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
3577
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
3578
|
+
}
|
|
3579
|
+
var args = slicy(arguments, 1);
|
|
3580
|
+
var bound;
|
|
3581
|
+
var binder = function() {
|
|
3582
|
+
if (this instanceof bound) {
|
|
3583
|
+
var result = target.apply(
|
|
3584
|
+
this,
|
|
3599
3585
|
concatty(args, arguments)
|
|
3600
3586
|
);
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
boundArgs[i2] = "$" + i2;
|
|
3606
|
-
}
|
|
3607
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
3608
|
-
if (target.prototype) {
|
|
3609
|
-
var Empty = function Empty2() {
|
|
3610
|
-
};
|
|
3611
|
-
Empty.prototype = target.prototype;
|
|
3612
|
-
bound.prototype = new Empty();
|
|
3613
|
-
Empty.prototype = null;
|
|
3587
|
+
if (Object(result) === result) {
|
|
3588
|
+
return result;
|
|
3589
|
+
}
|
|
3590
|
+
return this;
|
|
3614
3591
|
}
|
|
3615
|
-
return
|
|
3592
|
+
return target.apply(
|
|
3593
|
+
that,
|
|
3594
|
+
concatty(args, arguments)
|
|
3595
|
+
);
|
|
3616
3596
|
};
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
var
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
}
|
|
3597
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
3598
|
+
var boundArgs = [];
|
|
3599
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
3600
|
+
boundArgs[i2] = "$" + i2;
|
|
3601
|
+
}
|
|
3602
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
3603
|
+
if (target.prototype) {
|
|
3604
|
+
var Empty = function Empty2() {
|
|
3605
|
+
};
|
|
3606
|
+
Empty.prototype = target.prototype;
|
|
3607
|
+
bound.prototype = new Empty();
|
|
3608
|
+
Empty.prototype = null;
|
|
3609
|
+
}
|
|
3610
|
+
return bound;
|
|
3611
|
+
};
|
|
3612
|
+
var implementation = implementation$1;
|
|
3613
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
3614
|
+
var functionCall = Function.prototype.call;
|
|
3636
3615
|
var functionApply;
|
|
3637
3616
|
var hasRequiredFunctionApply;
|
|
3638
3617
|
function requireFunctionApply() {
|
|
@@ -3642,14 +3621,14 @@ function requireFunctionApply() {
|
|
|
3642
3621
|
return functionApply;
|
|
3643
3622
|
}
|
|
3644
3623
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
3645
|
-
var bind$2 =
|
|
3624
|
+
var bind$2 = functionBind;
|
|
3646
3625
|
var $apply$1 = requireFunctionApply();
|
|
3647
|
-
var $call$2 =
|
|
3626
|
+
var $call$2 = functionCall;
|
|
3648
3627
|
var $reflectApply = reflectApply;
|
|
3649
3628
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
3650
|
-
var bind$1 =
|
|
3629
|
+
var bind$1 = functionBind;
|
|
3651
3630
|
var $TypeError$4 = type;
|
|
3652
|
-
var $call$1 =
|
|
3631
|
+
var $call$1 = functionCall;
|
|
3653
3632
|
var $actualApply = actualApply;
|
|
3654
3633
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
3655
3634
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -3715,8 +3694,8 @@ function requireHasown() {
|
|
|
3715
3694
|
hasRequiredHasown = 1;
|
|
3716
3695
|
var call = Function.prototype.call;
|
|
3717
3696
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
3718
|
-
var
|
|
3719
|
-
hasown =
|
|
3697
|
+
var bind3 = functionBind;
|
|
3698
|
+
hasown = bind3.call(call, $hasOwn);
|
|
3720
3699
|
return hasown;
|
|
3721
3700
|
}
|
|
3722
3701
|
var undefined$1;
|
|
@@ -3730,7 +3709,7 @@ var $TypeError$3 = type;
|
|
|
3730
3709
|
var $URIError = uri;
|
|
3731
3710
|
var abs = abs$1;
|
|
3732
3711
|
var floor = floor$1;
|
|
3733
|
-
var max = max$
|
|
3712
|
+
var max = max$2;
|
|
3734
3713
|
var min = min$1;
|
|
3735
3714
|
var pow = pow$1;
|
|
3736
3715
|
var round = round$1;
|
|
@@ -3764,7 +3743,7 @@ var getProto = requireGetProto();
|
|
|
3764
3743
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
3765
3744
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
3766
3745
|
var $apply = requireFunctionApply();
|
|
3767
|
-
var $call =
|
|
3746
|
+
var $call = functionCall;
|
|
3768
3747
|
var needsEval = {};
|
|
3769
3748
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
3770
3749
|
var INTRINSICS = {
|
|
@@ -3935,13 +3914,13 @@ var LEGACY_ALIASES = {
|
|
|
3935
3914
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3936
3915
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3937
3916
|
};
|
|
3938
|
-
var
|
|
3917
|
+
var bind2 = functionBind;
|
|
3939
3918
|
var hasOwn = requireHasown();
|
|
3940
|
-
var $concat =
|
|
3941
|
-
var $spliceApply =
|
|
3942
|
-
var $replace =
|
|
3943
|
-
var $strSlice =
|
|
3944
|
-
var $exec =
|
|
3919
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
3920
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
3921
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
3922
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
3923
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
3945
3924
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
3946
3925
|
var reEscapeChar = /\\(\\)?/g;
|
|
3947
3926
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -6006,8 +5985,10 @@ const FilterRow = styled__default.default(api.T)`
|
|
|
6006
5985
|
margin-bottom: 16px;
|
|
6007
5986
|
`;
|
|
6008
5987
|
const ScrollContainer = styled__default.default(api.R)`
|
|
6009
|
-
max-height:
|
|
5988
|
+
max-height: calc(100vh - 500px);
|
|
5989
|
+
min-height: 200px;
|
|
6010
5990
|
overflow-y: auto;
|
|
5991
|
+
padding-right: 12px;
|
|
6011
5992
|
`;
|
|
6012
5993
|
const PaginationRow = styled__default.default(api.T)`
|
|
6013
5994
|
margin-top: 16px;
|
|
@@ -6019,6 +6000,8 @@ const ExpandableDetails = styled__default.default(api.R)`
|
|
|
6019
6000
|
padding: 12px;
|
|
6020
6001
|
background: ${({ theme }) => theme.colors.neutral100};
|
|
6021
6002
|
border-radius: 4px;
|
|
6003
|
+
text-align: left;
|
|
6004
|
+
width: 100%;
|
|
6022
6005
|
`;
|
|
6023
6006
|
const ResponseBodyContainer = styled__default.default(api.R)`
|
|
6024
6007
|
margin-top: 8px;
|
|
@@ -6180,17 +6163,7 @@ const ActivityLog = ({ firebaseUserId }) => {
|
|
|
6180
6163
|
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(api.T, { justifyContent: "center", padding: 4, children: /* @__PURE__ */ jsxRuntime.jsx(api.Wd, { small: true, children: "Loading activity logs..." }) }) : logs.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(api.E, { variant: "pi", textColor: "neutral600", children: "No activity logs found." }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6181
6164
|
/* @__PURE__ */ jsxRuntime.jsx(ScrollContainer, { children: logs.map((log) => /* @__PURE__ */ jsxRuntime.jsx(LogItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(api.T, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
6182
6165
|
/* @__PURE__ */ jsxRuntime.jsxs(api.T, { direction: "column", gap: 1, alignItems: "flex-start", style: { flex: 1 }, children: [
|
|
6183
|
-
/* @__PURE__ */ jsxRuntime.jsxs(api.T, { gap: 2, alignItems: "center", children: [
|
|
6184
|
-
hasExpandableContent(log) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6185
|
-
api.ot,
|
|
6186
|
-
{
|
|
6187
|
-
onClick: () => toggleExpand(log.documentId),
|
|
6188
|
-
label: expandedRows.has(log.documentId) ? "Collapse" : "Expand",
|
|
6189
|
-
variant: "ghost",
|
|
6190
|
-
size: "S",
|
|
6191
|
-
children: expandedRows.has(log.documentId) ? /* @__PURE__ */ jsxRuntime.jsx(index.c5, {}) : /* @__PURE__ */ jsxRuntime.jsx(index.w5, {})
|
|
6192
|
-
}
|
|
6193
|
-
),
|
|
6166
|
+
/* @__PURE__ */ jsxRuntime.jsxs(api.T, { gap: 2, alignItems: "center", wrap: "wrap", children: [
|
|
6194
6167
|
/* @__PURE__ */ jsxRuntime.jsx(api.Is, { textColor: getActivityTypeBadgeColor(log.activityType), size: "S", children: formatActivityType(log.activityType) }),
|
|
6195
6168
|
log.activityType !== "fieldUpdate" && /* @__PURE__ */ jsxRuntime.jsx(api.E, { variant: "omega", fontWeight: "semiBold", children: log.action }),
|
|
6196
6169
|
log.metadata?.statusCode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6208,7 +6181,17 @@ const ActivityLog = ({ firebaseUserId }) => {
|
|
|
6208
6181
|
"Error: ",
|
|
6209
6182
|
log.errorMessage
|
|
6210
6183
|
] }),
|
|
6211
|
-
|
|
6184
|
+
hasExpandableContent(log) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6185
|
+
api.Nn,
|
|
6186
|
+
{
|
|
6187
|
+
onClick: () => toggleExpand(log.documentId),
|
|
6188
|
+
variant: "ghost",
|
|
6189
|
+
size: "S",
|
|
6190
|
+
startIcon: expandedRows.has(log.documentId) ? /* @__PURE__ */ jsxRuntime.jsx(index.c5, {}) : /* @__PURE__ */ jsxRuntime.jsx(index.w5, {}),
|
|
6191
|
+
children: expandedRows.has(log.documentId) ? "Hide details" : "Show details"
|
|
6192
|
+
}
|
|
6193
|
+
),
|
|
6194
|
+
expandedRows.has(log.documentId) && hasExpandableContent(log) && /* @__PURE__ */ jsxRuntime.jsx(ExpandableDetails, { children: /* @__PURE__ */ jsxRuntime.jsxs(api.T, { direction: "column", gap: 2, alignItems: "flex-start", children: [
|
|
6212
6195
|
log.endpoint && /* @__PURE__ */ jsxRuntime.jsxs(api.E, { variant: "pi", textColor: "neutral600", children: [
|
|
6213
6196
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Endpoint:" }),
|
|
6214
6197
|
" ",
|
|
@@ -3,9 +3,9 @@ import { Layouts, useQueryParams as useQueryParams$1, getFetchClient, Pagination
|
|
|
3
3
|
import { useNavigate, useLocation, useParams, Routes, Route } from "react-router-dom";
|
|
4
4
|
import { Provider } from "@radix-ui/react-tooltip";
|
|
5
5
|
import m__default, { useState, useCallback, useMemo, useEffect, useRef, useLayoutEffect } from "react";
|
|
6
|
-
import { z as zc, T, R, N as Nn, A as Ar, S as S1, k as k1, a as A1, b as Tr, E, t as t1, v as v1, C as C1, $ as $1, c as bo, w as wo, h as h0, d as a0, o as ot, K as Km, x as x1, G as G0, e as vm, g as getFirebaseConfig$1, F as Fm, D as D1, W as Wd, I as Is, p as pl } from "./api-
|
|
6
|
+
import { z as zc, T, R, N as Nn, A as Ar, S as S1, k as k1, a as A1, b as Tr, E, t as t1, v as v1, C as C1, $ as $1, c as bo, w as wo, h as h0, d as a0, o as ot, K as Km, x as x1, G as G0, e as vm, g as getFirebaseConfig$1, F as Fm, D as D1, W as Wd, I as Is, p as pl } from "./api-C0Snp7-s.mjs";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
|
-
import { i as isArguments_1, a as isBufferExports, b as isTypedArray_1, c as isLength_1, d as isFunction_1, _ as _getTag, e as _Stack, f as _equalArrays, g as _equalByTag, h as isObjectLike_1, j as getDefaultExportFromCjs, U as U2, k as _baseGetTag, l as _MapCache, m as _Symbol, n as m3, o as bn, N as Nn$1, Y as Y2, J as J2, P as PLUGIN_ID, p as getAugmentedNamespace, q as commonjsGlobal, u as un, s as sn, r as c5, w as w5, t as _3 } from "./index-
|
|
8
|
+
import { i as isArguments_1, a as isBufferExports, b as isTypedArray_1, c as isLength_1, d as isFunction_1, _ as _getTag, e as _Stack, f as _equalArrays, g as _equalByTag, h as isObjectLike_1, j as getDefaultExportFromCjs, U as U2, k as _baseGetTag, l as _MapCache, m as _Symbol, n as m3, o as bn, N as Nn$1, Y as Y2, J as J2, P as PLUGIN_ID, p as getAugmentedNamespace, q as commonjsGlobal, u as un, s as sn, r as c5, w as w5, t as _3 } from "./index-DrHJAVR8.mjs";
|
|
9
9
|
import styled from "styled-components";
|
|
10
10
|
import { RxCheck, RxCross2 } from "react-icons/rx";
|
|
11
11
|
import { AiOutlineUserAdd, AiFillPhone, AiFillMail, AiFillYahoo, AiFillGithub, AiFillTwitterCircle, AiFillFacebook, AiFillApple, AiFillGoogleCircle } from "react-icons/ai";
|
|
@@ -2999,7 +2999,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
2999
2999
|
var ys = arrObjKeys(obj, inspect2);
|
|
3000
3000
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
3001
3001
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
3002
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
3002
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
3003
3003
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
3004
3004
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
3005
3005
|
if (ys.length === 0) {
|
|
@@ -3024,25 +3024,25 @@ function canTrustToString(obj) {
|
|
|
3024
3024
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
3025
3025
|
}
|
|
3026
3026
|
function isArray$3(obj) {
|
|
3027
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
3027
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
3028
3028
|
}
|
|
3029
3029
|
function isDate(obj) {
|
|
3030
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
3030
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
3031
3031
|
}
|
|
3032
3032
|
function isRegExp$1(obj) {
|
|
3033
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
3033
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
3034
3034
|
}
|
|
3035
3035
|
function isError(obj) {
|
|
3036
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
3036
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
3037
3037
|
}
|
|
3038
3038
|
function isString(obj) {
|
|
3039
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
3039
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
3040
3040
|
}
|
|
3041
3041
|
function isNumber(obj) {
|
|
3042
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
3042
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
3043
3043
|
}
|
|
3044
3044
|
function isBoolean(obj) {
|
|
3045
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
3045
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
3046
3046
|
}
|
|
3047
3047
|
function isSymbol(obj) {
|
|
3048
3048
|
if (hasShammedSymbols) {
|
|
@@ -3078,7 +3078,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
3078
3078
|
function has$3(obj, key) {
|
|
3079
3079
|
return hasOwn$1.call(obj, key);
|
|
3080
3080
|
}
|
|
3081
|
-
function toStr(obj) {
|
|
3081
|
+
function toStr$1(obj) {
|
|
3082
3082
|
return objectToString.call(obj);
|
|
3083
3083
|
}
|
|
3084
3084
|
function nameOf(f) {
|
|
@@ -3387,7 +3387,7 @@ var syntax = SyntaxError;
|
|
|
3387
3387
|
var uri = URIError;
|
|
3388
3388
|
var abs$1 = Math.abs;
|
|
3389
3389
|
var floor$1 = Math.floor;
|
|
3390
|
-
var max$
|
|
3390
|
+
var max$2 = Math.max;
|
|
3391
3391
|
var min$1 = Math.min;
|
|
3392
3392
|
var pow$1 = Math.pow;
|
|
3393
3393
|
var round$1 = Math.round;
|
|
@@ -3516,99 +3516,78 @@ function requireObject_getPrototypeOf() {
|
|
|
3516
3516
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
3517
3517
|
return Object_getPrototypeOf;
|
|
3518
3518
|
}
|
|
3519
|
-
var
|
|
3520
|
-
var
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
var
|
|
3525
|
-
var
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
var
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
var str = "";
|
|
3547
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3548
|
-
str += arr[i2];
|
|
3549
|
-
if (i2 + 1 < arr.length) {
|
|
3550
|
-
str += joiner;
|
|
3551
|
-
}
|
|
3519
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
3520
|
+
var toStr = Object.prototype.toString;
|
|
3521
|
+
var max$1 = Math.max;
|
|
3522
|
+
var funcType = "[object Function]";
|
|
3523
|
+
var concatty = function concatty2(a3, b2) {
|
|
3524
|
+
var arr = [];
|
|
3525
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
3526
|
+
arr[i2] = a3[i2];
|
|
3527
|
+
}
|
|
3528
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
3529
|
+
arr[j + a3.length] = b2[j];
|
|
3530
|
+
}
|
|
3531
|
+
return arr;
|
|
3532
|
+
};
|
|
3533
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
3534
|
+
var arr = [];
|
|
3535
|
+
for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
3536
|
+
arr[j] = arrLike[i2];
|
|
3537
|
+
}
|
|
3538
|
+
return arr;
|
|
3539
|
+
};
|
|
3540
|
+
var joiny = function(arr, joiner) {
|
|
3541
|
+
var str = "";
|
|
3542
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3543
|
+
str += arr[i2];
|
|
3544
|
+
if (i2 + 1 < arr.length) {
|
|
3545
|
+
str += joiner;
|
|
3552
3546
|
}
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
);
|
|
3568
|
-
if (Object(result) === result) {
|
|
3569
|
-
return result;
|
|
3570
|
-
}
|
|
3571
|
-
return this;
|
|
3572
|
-
}
|
|
3573
|
-
return target.apply(
|
|
3574
|
-
that,
|
|
3547
|
+
}
|
|
3548
|
+
return str;
|
|
3549
|
+
};
|
|
3550
|
+
var implementation$1 = function bind(that) {
|
|
3551
|
+
var target = this;
|
|
3552
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
3553
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
3554
|
+
}
|
|
3555
|
+
var args = slicy(arguments, 1);
|
|
3556
|
+
var bound;
|
|
3557
|
+
var binder = function() {
|
|
3558
|
+
if (this instanceof bound) {
|
|
3559
|
+
var result = target.apply(
|
|
3560
|
+
this,
|
|
3575
3561
|
concatty(args, arguments)
|
|
3576
3562
|
);
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
boundArgs[i2] = "$" + i2;
|
|
3582
|
-
}
|
|
3583
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
3584
|
-
if (target.prototype) {
|
|
3585
|
-
var Empty = function Empty2() {
|
|
3586
|
-
};
|
|
3587
|
-
Empty.prototype = target.prototype;
|
|
3588
|
-
bound.prototype = new Empty();
|
|
3589
|
-
Empty.prototype = null;
|
|
3563
|
+
if (Object(result) === result) {
|
|
3564
|
+
return result;
|
|
3565
|
+
}
|
|
3566
|
+
return this;
|
|
3590
3567
|
}
|
|
3591
|
-
return
|
|
3568
|
+
return target.apply(
|
|
3569
|
+
that,
|
|
3570
|
+
concatty(args, arguments)
|
|
3571
|
+
);
|
|
3592
3572
|
};
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
var
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
}
|
|
3573
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
3574
|
+
var boundArgs = [];
|
|
3575
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
3576
|
+
boundArgs[i2] = "$" + i2;
|
|
3577
|
+
}
|
|
3578
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
3579
|
+
if (target.prototype) {
|
|
3580
|
+
var Empty = function Empty2() {
|
|
3581
|
+
};
|
|
3582
|
+
Empty.prototype = target.prototype;
|
|
3583
|
+
bound.prototype = new Empty();
|
|
3584
|
+
Empty.prototype = null;
|
|
3585
|
+
}
|
|
3586
|
+
return bound;
|
|
3587
|
+
};
|
|
3588
|
+
var implementation = implementation$1;
|
|
3589
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
3590
|
+
var functionCall = Function.prototype.call;
|
|
3612
3591
|
var functionApply;
|
|
3613
3592
|
var hasRequiredFunctionApply;
|
|
3614
3593
|
function requireFunctionApply() {
|
|
@@ -3618,14 +3597,14 @@ function requireFunctionApply() {
|
|
|
3618
3597
|
return functionApply;
|
|
3619
3598
|
}
|
|
3620
3599
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
3621
|
-
var bind$2 =
|
|
3600
|
+
var bind$2 = functionBind;
|
|
3622
3601
|
var $apply$1 = requireFunctionApply();
|
|
3623
|
-
var $call$2 =
|
|
3602
|
+
var $call$2 = functionCall;
|
|
3624
3603
|
var $reflectApply = reflectApply;
|
|
3625
3604
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
3626
|
-
var bind$1 =
|
|
3605
|
+
var bind$1 = functionBind;
|
|
3627
3606
|
var $TypeError$4 = type;
|
|
3628
|
-
var $call$1 =
|
|
3607
|
+
var $call$1 = functionCall;
|
|
3629
3608
|
var $actualApply = actualApply;
|
|
3630
3609
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
3631
3610
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -3691,8 +3670,8 @@ function requireHasown() {
|
|
|
3691
3670
|
hasRequiredHasown = 1;
|
|
3692
3671
|
var call = Function.prototype.call;
|
|
3693
3672
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
3694
|
-
var
|
|
3695
|
-
hasown =
|
|
3673
|
+
var bind3 = functionBind;
|
|
3674
|
+
hasown = bind3.call(call, $hasOwn);
|
|
3696
3675
|
return hasown;
|
|
3697
3676
|
}
|
|
3698
3677
|
var undefined$1;
|
|
@@ -3706,7 +3685,7 @@ var $TypeError$3 = type;
|
|
|
3706
3685
|
var $URIError = uri;
|
|
3707
3686
|
var abs = abs$1;
|
|
3708
3687
|
var floor = floor$1;
|
|
3709
|
-
var max = max$
|
|
3688
|
+
var max = max$2;
|
|
3710
3689
|
var min = min$1;
|
|
3711
3690
|
var pow = pow$1;
|
|
3712
3691
|
var round = round$1;
|
|
@@ -3740,7 +3719,7 @@ var getProto = requireGetProto();
|
|
|
3740
3719
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
3741
3720
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
3742
3721
|
var $apply = requireFunctionApply();
|
|
3743
|
-
var $call =
|
|
3722
|
+
var $call = functionCall;
|
|
3744
3723
|
var needsEval = {};
|
|
3745
3724
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
3746
3725
|
var INTRINSICS = {
|
|
@@ -3911,13 +3890,13 @@ var LEGACY_ALIASES = {
|
|
|
3911
3890
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3912
3891
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3913
3892
|
};
|
|
3914
|
-
var
|
|
3893
|
+
var bind2 = functionBind;
|
|
3915
3894
|
var hasOwn = requireHasown();
|
|
3916
|
-
var $concat =
|
|
3917
|
-
var $spliceApply =
|
|
3918
|
-
var $replace =
|
|
3919
|
-
var $strSlice =
|
|
3920
|
-
var $exec =
|
|
3895
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
3896
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
3897
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
3898
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
3899
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
3921
3900
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
3922
3901
|
var reEscapeChar = /\\(\\)?/g;
|
|
3923
3902
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -5982,8 +5961,10 @@ const FilterRow = styled(T)`
|
|
|
5982
5961
|
margin-bottom: 16px;
|
|
5983
5962
|
`;
|
|
5984
5963
|
const ScrollContainer = styled(R)`
|
|
5985
|
-
max-height:
|
|
5964
|
+
max-height: calc(100vh - 500px);
|
|
5965
|
+
min-height: 200px;
|
|
5986
5966
|
overflow-y: auto;
|
|
5967
|
+
padding-right: 12px;
|
|
5987
5968
|
`;
|
|
5988
5969
|
const PaginationRow = styled(T)`
|
|
5989
5970
|
margin-top: 16px;
|
|
@@ -5995,6 +5976,8 @@ const ExpandableDetails = styled(R)`
|
|
|
5995
5976
|
padding: 12px;
|
|
5996
5977
|
background: ${({ theme }) => theme.colors.neutral100};
|
|
5997
5978
|
border-radius: 4px;
|
|
5979
|
+
text-align: left;
|
|
5980
|
+
width: 100%;
|
|
5998
5981
|
`;
|
|
5999
5982
|
const ResponseBodyContainer = styled(R)`
|
|
6000
5983
|
margin-top: 8px;
|
|
@@ -6156,17 +6139,7 @@ const ActivityLog = ({ firebaseUserId }) => {
|
|
|
6156
6139
|
isLoading ? /* @__PURE__ */ jsx(T, { justifyContent: "center", padding: 4, children: /* @__PURE__ */ jsx(Wd, { small: true, children: "Loading activity logs..." }) }) : logs.length === 0 ? /* @__PURE__ */ jsx(E, { variant: "pi", textColor: "neutral600", children: "No activity logs found." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6157
6140
|
/* @__PURE__ */ jsx(ScrollContainer, { children: logs.map((log) => /* @__PURE__ */ jsx(LogItem, { children: /* @__PURE__ */ jsxs(T, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
6158
6141
|
/* @__PURE__ */ jsxs(T, { direction: "column", gap: 1, alignItems: "flex-start", style: { flex: 1 }, children: [
|
|
6159
|
-
/* @__PURE__ */ jsxs(T, { gap: 2, alignItems: "center", children: [
|
|
6160
|
-
hasExpandableContent(log) && /* @__PURE__ */ jsx(
|
|
6161
|
-
ot,
|
|
6162
|
-
{
|
|
6163
|
-
onClick: () => toggleExpand(log.documentId),
|
|
6164
|
-
label: expandedRows.has(log.documentId) ? "Collapse" : "Expand",
|
|
6165
|
-
variant: "ghost",
|
|
6166
|
-
size: "S",
|
|
6167
|
-
children: expandedRows.has(log.documentId) ? /* @__PURE__ */ jsx(c5, {}) : /* @__PURE__ */ jsx(w5, {})
|
|
6168
|
-
}
|
|
6169
|
-
),
|
|
6142
|
+
/* @__PURE__ */ jsxs(T, { gap: 2, alignItems: "center", wrap: "wrap", children: [
|
|
6170
6143
|
/* @__PURE__ */ jsx(Is, { textColor: getActivityTypeBadgeColor(log.activityType), size: "S", children: formatActivityType(log.activityType) }),
|
|
6171
6144
|
log.activityType !== "fieldUpdate" && /* @__PURE__ */ jsx(E, { variant: "omega", fontWeight: "semiBold", children: log.action }),
|
|
6172
6145
|
log.metadata?.statusCode && /* @__PURE__ */ jsx(
|
|
@@ -6184,7 +6157,17 @@ const ActivityLog = ({ firebaseUserId }) => {
|
|
|
6184
6157
|
"Error: ",
|
|
6185
6158
|
log.errorMessage
|
|
6186
6159
|
] }),
|
|
6187
|
-
|
|
6160
|
+
hasExpandableContent(log) && /* @__PURE__ */ jsx(
|
|
6161
|
+
Nn,
|
|
6162
|
+
{
|
|
6163
|
+
onClick: () => toggleExpand(log.documentId),
|
|
6164
|
+
variant: "ghost",
|
|
6165
|
+
size: "S",
|
|
6166
|
+
startIcon: expandedRows.has(log.documentId) ? /* @__PURE__ */ jsx(c5, {}) : /* @__PURE__ */ jsx(w5, {}),
|
|
6167
|
+
children: expandedRows.has(log.documentId) ? "Hide details" : "Show details"
|
|
6168
|
+
}
|
|
6169
|
+
),
|
|
6170
|
+
expandedRows.has(log.documentId) && hasExpandableContent(log) && /* @__PURE__ */ jsx(ExpandableDetails, { children: /* @__PURE__ */ jsxs(T, { direction: "column", gap: 2, alignItems: "flex-start", children: [
|
|
6188
6171
|
log.endpoint && /* @__PURE__ */ jsxs(E, { variant: "pi", textColor: "neutral600", children: [
|
|
6189
6172
|
/* @__PURE__ */ jsx("strong", { children: "Endpoint:" }),
|
|
6190
6173
|
" ",
|
|
@@ -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-BIxv8ozL.js");
|
|
8
8
|
const admin = require("@strapi/strapi/admin");
|
|
9
9
|
function _interopNamespace(e) {
|
|
10
10
|
if (e && e.__esModule) return e;
|
|
@@ -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, 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-
|
|
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-DrHJAVR8.mjs";
|
|
9
9
|
import { getFetchClient } from "@strapi/strapi/admin";
|
|
10
10
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
11
11
|
const callbackRef = useRef(callback);
|
|
@@ -2661,7 +2661,7 @@ const index = {
|
|
|
2661
2661
|
id: `${PLUGIN_ID}.page.title`,
|
|
2662
2662
|
defaultMessage: PLUGIN_ID
|
|
2663
2663
|
},
|
|
2664
|
-
Component: () => Promise.resolve().then(() => require("./App-
|
|
2664
|
+
Component: () => Promise.resolve().then(() => require("./App-C-kv4yRv.js")).then((mod) => ({
|
|
2665
2665
|
default: mod.App
|
|
2666
2666
|
})),
|
|
2667
2667
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2683,7 +2683,7 @@ const index = {
|
|
|
2683
2683
|
id: "settings",
|
|
2684
2684
|
to: `/settings/${PLUGIN_ID}`,
|
|
2685
2685
|
async Component() {
|
|
2686
|
-
const component = await Promise.resolve().then(() => require("./index-
|
|
2686
|
+
const component = await Promise.resolve().then(() => require("./index-DLh-g83g.js"));
|
|
2687
2687
|
return component.default;
|
|
2688
2688
|
},
|
|
2689
2689
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -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-C0Snp7-s.mjs";
|
|
4
4
|
import { useNotification, Page } from "@strapi/strapi/admin";
|
|
5
5
|
import { useNavigate } from "react-router-dom";
|
|
6
6
|
function SettingsPage() {
|
|
@@ -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-BRXy82Pb.js");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const reactRouterDom = require("react-router-dom");
|
|
8
8
|
function SettingsPage() {
|
|
@@ -2660,7 +2660,7 @@ const index = {
|
|
|
2660
2660
|
id: `${PLUGIN_ID}.page.title`,
|
|
2661
2661
|
defaultMessage: PLUGIN_ID
|
|
2662
2662
|
},
|
|
2663
|
-
Component: () => import("./App-
|
|
2663
|
+
Component: () => import("./App-uoQJMwID.mjs").then((mod) => ({
|
|
2664
2664
|
default: mod.App
|
|
2665
2665
|
})),
|
|
2666
2666
|
permissions: PERMISSIONS["menu-link"]
|
|
@@ -2682,7 +2682,7 @@ const index = {
|
|
|
2682
2682
|
id: "settings",
|
|
2683
2683
|
to: `/settings/${PLUGIN_ID}`,
|
|
2684
2684
|
async Component() {
|
|
2685
|
-
const component = await import("./index-
|
|
2685
|
+
const component = await import("./index-DDk7ZjCB.mjs");
|
|
2686
2686
|
return component.default;
|
|
2687
2687
|
},
|
|
2688
2688
|
permissions: PERMISSIONS["menu-link"]
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -339,11 +339,14 @@ function getClientIP(ctx) {
|
|
|
339
339
|
return ctx.request.ip || "unknown";
|
|
340
340
|
}
|
|
341
341
|
const activityLoggerFactory = ({ strapi: strapi2 }) => {
|
|
342
|
+
strapi2.log.info("[Activity Logger] Middleware registered");
|
|
342
343
|
return async (ctx, next) => {
|
|
343
344
|
const startTime = Date.now();
|
|
344
345
|
await next();
|
|
345
346
|
const routeConfig = LOGGED_ROUTES.find((r) => ctx.path === r.path && ctx.method === r.method);
|
|
346
|
-
if (!routeConfig)
|
|
347
|
+
if (!routeConfig) {
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
347
350
|
const status = ctx.status;
|
|
348
351
|
const body = ctx.body;
|
|
349
352
|
const path2 = ctx.path;
|
|
@@ -354,7 +357,9 @@ const activityLoggerFactory = ({ strapi: strapi2 }) => {
|
|
|
354
357
|
(async () => {
|
|
355
358
|
try {
|
|
356
359
|
const firebaseUserId = await extractFirebaseUserId(ctx, strapi2);
|
|
357
|
-
if (!firebaseUserId)
|
|
360
|
+
if (!firebaseUserId) {
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
358
363
|
await strapi2.plugin("firebase-authentication").service("activityLogService").logActivity({
|
|
359
364
|
firebaseUserId,
|
|
360
365
|
strapiUserId: stateUser?.documentId,
|
|
@@ -373,7 +378,7 @@ const activityLoggerFactory = ({ strapi: strapi2 }) => {
|
|
|
373
378
|
}
|
|
374
379
|
});
|
|
375
380
|
} catch (err) {
|
|
376
|
-
strapi2.log.error("[Activity Logger] Failed:", err);
|
|
381
|
+
strapi2.log.error("[Activity Logger] Failed to log activity:", err);
|
|
377
382
|
}
|
|
378
383
|
})();
|
|
379
384
|
};
|
|
@@ -2802,7 +2807,9 @@ const firebaseService = ({ strapi: strapi2 }) => ({
|
|
|
2802
2807
|
const jwt2 = await strapi2.plugin("firebase-authentication").service("firebaseService").generateJWTForCurrentUser(user);
|
|
2803
2808
|
return {
|
|
2804
2809
|
user: await processMeData(user, populate || []),
|
|
2805
|
-
jwt: jwt2
|
|
2810
|
+
jwt: jwt2,
|
|
2811
|
+
uid: decodedToken.uid
|
|
2812
|
+
// Firebase UID for activity logging
|
|
2806
2813
|
};
|
|
2807
2814
|
},
|
|
2808
2815
|
/**
|
|
@@ -2899,7 +2906,9 @@ const firebaseService = ({ strapi: strapi2 }) => ({
|
|
|
2899
2906
|
const jwt2 = await strapi2.plugin("firebase-authentication").service("firebaseService").generateJWTForCurrentUser(user);
|
|
2900
2907
|
return {
|
|
2901
2908
|
user: await processMeData(user, populate || []),
|
|
2902
|
-
jwt: jwt2
|
|
2909
|
+
jwt: jwt2,
|
|
2910
|
+
uid: decodedToken.uid
|
|
2911
|
+
// Firebase UID for activity logging
|
|
2903
2912
|
};
|
|
2904
2913
|
} catch (error) {
|
|
2905
2914
|
strapi2.log.error("emailLogin error:", error);
|
|
@@ -9927,9 +9936,7 @@ const firebaseUserDataService = ({ strapi: strapi2 }) => ({
|
|
|
9927
9936
|
if (data.firebaseUserID) {
|
|
9928
9937
|
const existingByUID = await this.getByFirebaseUID(data.firebaseUserID);
|
|
9929
9938
|
if (existingByUID) {
|
|
9930
|
-
strapi2.log.info(
|
|
9931
|
-
`[Orphan Recovery] Adopting firebase_user_data for UID ${data.firebaseUserID} to user ${userId}`
|
|
9932
|
-
);
|
|
9939
|
+
strapi2.log.info(`[Orphan Recovery] Adopting firebase_user_data for UID ${data.firebaseUserID} to user ${userId}`);
|
|
9933
9940
|
return await strapi2.documents("plugin::firebase-authentication.firebase-user-data").update({
|
|
9934
9941
|
documentId: existingByUID.documentId,
|
|
9935
9942
|
data: { user: userId, ...data }
|
|
@@ -9956,9 +9963,7 @@ const firebaseUserDataService = ({ strapi: strapi2 }) => ({
|
|
|
9956
9963
|
if (error.code === "23505" || error.name === "ValidationError") {
|
|
9957
9964
|
const raceWinner = await this.getByFirebaseUID(data.firebaseUserID);
|
|
9958
9965
|
if (raceWinner) {
|
|
9959
|
-
strapi2.log.warn(
|
|
9960
|
-
`[Race Condition] Resolved for firebaseUserID ${data.firebaseUserID}, updating to user ${userId}`
|
|
9961
|
-
);
|
|
9966
|
+
strapi2.log.warn(`[Race Condition] Resolved for firebaseUserID ${data.firebaseUserID}, updating to user ${userId}`);
|
|
9962
9967
|
return await strapi2.documents("plugin::firebase-authentication.firebase-user-data").update({
|
|
9963
9968
|
documentId: raceWinner.documentId,
|
|
9964
9969
|
data: { user: userId, ...data }
|
package/dist/server/index.mjs
CHANGED
|
@@ -312,11 +312,14 @@ function getClientIP(ctx) {
|
|
|
312
312
|
return ctx.request.ip || "unknown";
|
|
313
313
|
}
|
|
314
314
|
const activityLoggerFactory = ({ strapi: strapi2 }) => {
|
|
315
|
+
strapi2.log.info("[Activity Logger] Middleware registered");
|
|
315
316
|
return async (ctx, next) => {
|
|
316
317
|
const startTime = Date.now();
|
|
317
318
|
await next();
|
|
318
319
|
const routeConfig = LOGGED_ROUTES.find((r) => ctx.path === r.path && ctx.method === r.method);
|
|
319
|
-
if (!routeConfig)
|
|
320
|
+
if (!routeConfig) {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
320
323
|
const status = ctx.status;
|
|
321
324
|
const body = ctx.body;
|
|
322
325
|
const path2 = ctx.path;
|
|
@@ -327,7 +330,9 @@ const activityLoggerFactory = ({ strapi: strapi2 }) => {
|
|
|
327
330
|
(async () => {
|
|
328
331
|
try {
|
|
329
332
|
const firebaseUserId = await extractFirebaseUserId(ctx, strapi2);
|
|
330
|
-
if (!firebaseUserId)
|
|
333
|
+
if (!firebaseUserId) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
331
336
|
await strapi2.plugin("firebase-authentication").service("activityLogService").logActivity({
|
|
332
337
|
firebaseUserId,
|
|
333
338
|
strapiUserId: stateUser?.documentId,
|
|
@@ -346,7 +351,7 @@ const activityLoggerFactory = ({ strapi: strapi2 }) => {
|
|
|
346
351
|
}
|
|
347
352
|
});
|
|
348
353
|
} catch (err) {
|
|
349
|
-
strapi2.log.error("[Activity Logger] Failed:", err);
|
|
354
|
+
strapi2.log.error("[Activity Logger] Failed to log activity:", err);
|
|
350
355
|
}
|
|
351
356
|
})();
|
|
352
357
|
};
|
|
@@ -2775,7 +2780,9 @@ const firebaseService = ({ strapi: strapi2 }) => ({
|
|
|
2775
2780
|
const jwt2 = await strapi2.plugin("firebase-authentication").service("firebaseService").generateJWTForCurrentUser(user);
|
|
2776
2781
|
return {
|
|
2777
2782
|
user: await processMeData(user, populate || []),
|
|
2778
|
-
jwt: jwt2
|
|
2783
|
+
jwt: jwt2,
|
|
2784
|
+
uid: decodedToken.uid
|
|
2785
|
+
// Firebase UID for activity logging
|
|
2779
2786
|
};
|
|
2780
2787
|
},
|
|
2781
2788
|
/**
|
|
@@ -2872,7 +2879,9 @@ const firebaseService = ({ strapi: strapi2 }) => ({
|
|
|
2872
2879
|
const jwt2 = await strapi2.plugin("firebase-authentication").service("firebaseService").generateJWTForCurrentUser(user);
|
|
2873
2880
|
return {
|
|
2874
2881
|
user: await processMeData(user, populate || []),
|
|
2875
|
-
jwt: jwt2
|
|
2882
|
+
jwt: jwt2,
|
|
2883
|
+
uid: decodedToken.uid
|
|
2884
|
+
// Firebase UID for activity logging
|
|
2876
2885
|
};
|
|
2877
2886
|
} catch (error) {
|
|
2878
2887
|
strapi2.log.error("emailLogin error:", error);
|
|
@@ -9900,9 +9909,7 @@ const firebaseUserDataService = ({ strapi: strapi2 }) => ({
|
|
|
9900
9909
|
if (data.firebaseUserID) {
|
|
9901
9910
|
const existingByUID = await this.getByFirebaseUID(data.firebaseUserID);
|
|
9902
9911
|
if (existingByUID) {
|
|
9903
|
-
strapi2.log.info(
|
|
9904
|
-
`[Orphan Recovery] Adopting firebase_user_data for UID ${data.firebaseUserID} to user ${userId}`
|
|
9905
|
-
);
|
|
9912
|
+
strapi2.log.info(`[Orphan Recovery] Adopting firebase_user_data for UID ${data.firebaseUserID} to user ${userId}`);
|
|
9906
9913
|
return await strapi2.documents("plugin::firebase-authentication.firebase-user-data").update({
|
|
9907
9914
|
documentId: existingByUID.documentId,
|
|
9908
9915
|
data: { user: userId, ...data }
|
|
@@ -9929,9 +9936,7 @@ const firebaseUserDataService = ({ strapi: strapi2 }) => ({
|
|
|
9929
9936
|
if (error.code === "23505" || error.name === "ValidationError") {
|
|
9930
9937
|
const raceWinner = await this.getByFirebaseUID(data.firebaseUserID);
|
|
9931
9938
|
if (raceWinner) {
|
|
9932
|
-
strapi2.log.warn(
|
|
9933
|
-
`[Race Condition] Resolved for firebaseUserID ${data.firebaseUserID}, updating to user ${userId}`
|
|
9934
|
-
);
|
|
9939
|
+
strapi2.log.warn(`[Race Condition] Resolved for firebaseUserID ${data.firebaseUserID}, updating to user ${userId}`);
|
|
9935
9940
|
return await strapi2.documents("plugin::firebase-authentication.firebase-user-data").update({
|
|
9936
9941
|
documentId: raceWinner.documentId,
|
|
9937
9942
|
data: { user: userId, ...data }
|
|
@@ -181,10 +181,12 @@ declare const _default: {
|
|
|
181
181
|
validateFirebaseToken: (idToken: string, profileMetaData?: any, populate?: string[]) => Promise<{
|
|
182
182
|
user: any;
|
|
183
183
|
jwt: any;
|
|
184
|
+
uid: any;
|
|
184
185
|
}>;
|
|
185
186
|
emailLogin: (email: string, password: string, populate?: string[]) => Promise<{
|
|
186
187
|
user: any;
|
|
187
188
|
jwt: any;
|
|
189
|
+
uid: any;
|
|
188
190
|
}>;
|
|
189
191
|
forgotPassword: (email: string) => Promise<{
|
|
190
192
|
message: string;
|
|
@@ -18,6 +18,7 @@ declare const _default: ({ strapi }: {
|
|
|
18
18
|
validateFirebaseToken: (idToken: string, profileMetaData?: any, populate?: string[]) => Promise<{
|
|
19
19
|
user: any;
|
|
20
20
|
jwt: any;
|
|
21
|
+
uid: any;
|
|
21
22
|
}>;
|
|
22
23
|
/**
|
|
23
24
|
* Authenticates a user with email and password through Firebase Identity Toolkit API
|
|
@@ -63,6 +64,7 @@ declare const _default: ({ strapi }: {
|
|
|
63
64
|
emailLogin: (email: string, password: string, populate?: string[]) => Promise<{
|
|
64
65
|
user: any;
|
|
65
66
|
jwt: any;
|
|
67
|
+
uid: any;
|
|
66
68
|
}>;
|
|
67
69
|
/**
|
|
68
70
|
* Forgot password flow - sends reset email with custom JWT token
|
|
@@ -87,10 +87,12 @@ declare const _default: {
|
|
|
87
87
|
validateFirebaseToken: (idToken: string, profileMetaData?: any, populate?: string[]) => Promise<{
|
|
88
88
|
user: any;
|
|
89
89
|
jwt: any;
|
|
90
|
+
uid: any;
|
|
90
91
|
}>;
|
|
91
92
|
emailLogin: (email: string, password: string, populate?: string[]) => Promise<{
|
|
92
93
|
user: any;
|
|
93
94
|
jwt: any;
|
|
95
|
+
uid: any;
|
|
94
96
|
}>;
|
|
95
97
|
forgotPassword: (email: string) => Promise<{
|
|
96
98
|
message: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strapi-plugin-firebase-authentication",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Allows easy integration between clients utilizing Firebase for authentication and Strapi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"watch:link": "strapi-plugin watch:link"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
+
"@radix-ui/react-tooltip": "1.0.7",
|
|
54
55
|
"@tanstack/react-query": "^5.90.2",
|
|
55
56
|
"crypto-js": "^4.2.0",
|
|
56
57
|
"destr": "^2.0.5",
|
|
@@ -61,15 +62,15 @@
|
|
|
61
62
|
"react-phone-input-2": "^2.15.1",
|
|
62
63
|
"react-phone-number-input": "^3.4.12",
|
|
63
64
|
"react-syntax-highlighter": "^15.6.6",
|
|
64
|
-
"@radix-ui/react-tooltip": "1.0.7",
|
|
65
65
|
"validator": "^13.15.15"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
+
"@strapi/design-system": "^2.0.0-rc.16",
|
|
69
|
+
"@strapi/icons": "^2.0.0-rc.25",
|
|
68
70
|
"@strapi/sdk-plugin": "^5.3.2",
|
|
69
71
|
"@strapi/strapi": "^5.0.0",
|
|
70
72
|
"@strapi/typescript-utils": "^5.23.3",
|
|
71
|
-
"@strapi/
|
|
72
|
-
"@strapi/icons": "^2.0.0-rc.25",
|
|
73
|
+
"@strapi/utils": "^5.33.3",
|
|
73
74
|
"@types/koa": "^2.15.0",
|
|
74
75
|
"@types/react": "^18.3.0",
|
|
75
76
|
"@types/react-dom": "^18.3.0",
|