strapi-plugin-firebase-authentication 1.1.10 → 1.1.11

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,13 +5,13 @@ import { Provider } from "@radix-ui/react-tooltip";
5
5
  import React, { useState, useCallback, useMemo, useEffect, useRef, useLayoutEffect } from "react";
6
6
  import { Link, Flex, Box, Button, Tooltip, Tbody, Tr, Td, Checkbox, Typography, Modal, Table, Thead, Th, SingleSelect, SingleSelectOption, SearchForm, Searchbar, IconButton, Dialog, Tabs, TextInput, Alert, Field, Toggle, Divider } from "@strapi/design-system";
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, k as _baseGetTag, l as _MapCache, m as _Symbol, P as PLUGIN_ID, n as getAugmentedNamespace, o as commonjsGlobal } from "./index-Dxg4gNu5.mjs";
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, k as _baseGetTag, l as _MapCache, m as _Symbol, P as PLUGIN_ID, n as getAugmentedNamespace, o as commonjsGlobal } from "./index-DtGfwf9S.mjs";
9
9
  import { ArrowLeft, Key, Trash, WarningCircle, CaretUp, CaretDown, Search, Plus, Pencil } from "@strapi/icons";
10
10
  import styled from "styled-components";
11
11
  import { RxCheck, RxCross2 } from "react-icons/rx";
12
12
  import { AiOutlineUserAdd, AiFillPhone, AiFillMail, AiFillYahoo, AiFillGithub, AiFillTwitterCircle, AiFillFacebook, AiFillApple, AiFillGoogleCircle } from "react-icons/ai";
13
13
  import { MdPassword } from "react-icons/md";
14
- import { g as getFirebaseConfig$1 } from "./api-BznQNKgc.mjs";
14
+ import { g as getFirebaseConfig$1 } from "./api-D_4cdJU5.mjs";
15
15
  import * as PhoneInputModule from "react-phone-input-2";
16
16
  import "react-phone-input-2/lib/style.css";
17
17
  import validator from "validator";
@@ -2381,31 +2381,32 @@ const DeleteAccount = ({
2381
2381
  /* @__PURE__ */ jsx(WarningCircle, { fill: "danger700", width: "20px", height: "20px" }),
2382
2382
  /* @__PURE__ */ jsx(Typography, { textColor: "danger700", children: "After you delete an account, it's permanently deleted. Accounts cannot be undeleted." })
2383
2383
  ] }),
2384
- isSingleRecord && /* @__PURE__ */ jsxs(Fragment, { children: [
2385
- /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2386
- /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "User account" }),
2387
- /* @__PURE__ */ jsx(Typography, { children: email })
2388
- ] }),
2389
- /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2390
- /* @__PURE__ */ jsx(Typography, { children: "Delete user from:" }),
2391
- /* @__PURE__ */ jsxs(Flex, { direction: "row", alignItems: "center", gap: 4, children: [
2392
- /* @__PURE__ */ jsx(
2393
- Checkbox,
2394
- {
2395
- onCheckedChange: (checked) => setIsStrapiIncluded(checked === true),
2396
- checked: isStrapiIncluded,
2397
- children: "Strapi"
2398
- }
2399
- ),
2400
- /* @__PURE__ */ jsx(
2401
- Checkbox,
2402
- {
2403
- onCheckedChange: (checked) => setIsFirebaseIncluded(checked === true),
2404
- checked: isFirebaseIncluded,
2405
- children: "Firebase"
2406
- }
2407
- )
2408
- ] })
2384
+ isSingleRecord ? /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2385
+ /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "User account" }),
2386
+ /* @__PURE__ */ jsx(Typography, { children: email })
2387
+ ] }) : /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2388
+ /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Bulk delete operation" }),
2389
+ /* @__PURE__ */ jsx(Typography, { children: "You are about to delete multiple user accounts" })
2390
+ ] }),
2391
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2392
+ /* @__PURE__ */ jsx(Typography, { children: "Delete user from:" }),
2393
+ /* @__PURE__ */ jsxs(Flex, { direction: "row", alignItems: "center", gap: 4, children: [
2394
+ /* @__PURE__ */ jsx(
2395
+ Checkbox,
2396
+ {
2397
+ onCheckedChange: (checked) => setIsStrapiIncluded(checked === true),
2398
+ checked: isStrapiIncluded,
2399
+ children: "Strapi"
2400
+ }
2401
+ ),
2402
+ /* @__PURE__ */ jsx(
2403
+ Checkbox,
2404
+ {
2405
+ onCheckedChange: (checked) => setIsFirebaseIncluded(checked === true),
2406
+ checked: isFirebaseIncluded,
2407
+ children: "Firebase"
2408
+ }
2409
+ )
2409
2410
  ] })
2410
2411
  ] })
2411
2412
  ] }) }),
@@ -2507,7 +2508,15 @@ const FirebaseTable = ({
2507
2508
  const sort = query?.sort ?? "";
2508
2509
  const [sortBy, sortOrder] = sort.split(":");
2509
2510
  const handleBulkDelete = async (isStrapiIncluded, isFirebaseIncluded) => {
2510
- await onConfirmDeleteAll(selectedArray);
2511
+ let destination = null;
2512
+ if (isStrapiIncluded && isFirebaseIncluded) {
2513
+ destination = null;
2514
+ } else if (isStrapiIncluded) {
2515
+ destination = "strapi";
2516
+ } else if (isFirebaseIncluded) {
2517
+ destination = "firebase";
2518
+ }
2519
+ await onConfirmDeleteAll(selectedArray, destination);
2511
2520
  clearSelection();
2512
2521
  setShowBulkDeleteDialog(false);
2513
2522
  };
@@ -2631,7 +2640,7 @@ const fetchUsers = async (query = {}) => {
2631
2640
  return users;
2632
2641
  };
2633
2642
  const createUser = async (userPayload) => {
2634
- const url = `${PLUGIN_ID}/users`;
2643
+ const url = `/${PLUGIN_ID}/users`;
2635
2644
  try {
2636
2645
  const { post } = getFetchClient();
2637
2646
  const { data: user } = await post(url, userPayload);
@@ -2641,7 +2650,7 @@ const createUser = async (userPayload) => {
2641
2650
  }
2642
2651
  };
2643
2652
  const fetchUserByID = async (userID) => {
2644
- const url = `${PLUGIN_ID}/users/${userID}`;
2653
+ const url = `/${PLUGIN_ID}/users/${userID}`;
2645
2654
  try {
2646
2655
  const { get: get2 } = getFetchClient();
2647
2656
  const { data: user } = await get2(url);
@@ -2651,7 +2660,7 @@ const fetchUserByID = async (userID) => {
2651
2660
  }
2652
2661
  };
2653
2662
  const deleteUser = async (idToDelete, destination) => {
2654
- const url = `${PLUGIN_ID}/users/${idToDelete}${destination ? `?destination=${destination}` : ""}`;
2663
+ const url = `/${PLUGIN_ID}/users/${idToDelete}${destination ? `?destination=${destination}` : ""}`;
2655
2664
  try {
2656
2665
  const { del } = getFetchClient();
2657
2666
  const { data: users } = await del(url);
@@ -2661,19 +2670,19 @@ const deleteUser = async (idToDelete, destination) => {
2661
2670
  }
2662
2671
  };
2663
2672
  const updateUser = async (idToUpdate, payload) => {
2664
- const url = `${PLUGIN_ID}/users/${idToUpdate}`;
2673
+ const url = `/${PLUGIN_ID}/users/${idToUpdate}`;
2665
2674
  const { put } = getFetchClient();
2666
2675
  const { data: user } = await put(url, payload);
2667
2676
  return user;
2668
2677
  };
2669
2678
  const resetUserPassword = async (idToUpdate, payload) => {
2670
- const url = `${PLUGIN_ID}/users/resetPassword/${idToUpdate}`;
2679
+ const url = `/${PLUGIN_ID}/users/resetPassword/${idToUpdate}`;
2671
2680
  const { put } = getFetchClient();
2672
2681
  const { data: user } = await put(url, payload);
2673
2682
  return user;
2674
2683
  };
2675
2684
  const sendResetEmail = async (userId) => {
2676
- const url = `${PLUGIN_ID}/users/sendResetEmail/${userId}`;
2685
+ const url = `/${PLUGIN_ID}/users/sendResetEmail/${userId}`;
2677
2686
  const { put } = getFetchClient();
2678
2687
  const { data: result } = await put(url, {});
2679
2688
  return result;
@@ -2966,7 +2975,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2966
2975
  var ys = arrObjKeys(obj, inspect2);
2967
2976
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2968
2977
  var protoTag = obj instanceof Object ? "" : "null prototype";
2969
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
2978
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
2970
2979
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
2971
2980
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
2972
2981
  if (ys.length === 0) {
@@ -2991,25 +3000,25 @@ function canTrustToString(obj) {
2991
3000
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
2992
3001
  }
2993
3002
  function isArray$3(obj) {
2994
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
3003
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
2995
3004
  }
2996
3005
  function isDate(obj) {
2997
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
3006
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
2998
3007
  }
2999
3008
  function isRegExp$1(obj) {
3000
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
3009
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3001
3010
  }
3002
3011
  function isError(obj) {
3003
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
3012
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
3004
3013
  }
3005
3014
  function isString(obj) {
3006
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
3015
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
3007
3016
  }
3008
3017
  function isNumber(obj) {
3009
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
3018
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
3010
3019
  }
3011
3020
  function isBoolean(obj) {
3012
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
3021
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3013
3022
  }
3014
3023
  function isSymbol(obj) {
3015
3024
  if (hasShammedSymbols) {
@@ -3045,7 +3054,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
3045
3054
  function has$3(obj, key) {
3046
3055
  return hasOwn$1.call(obj, key);
3047
3056
  }
3048
- function toStr$1(obj) {
3057
+ function toStr(obj) {
3049
3058
  return objectToString.call(obj);
3050
3059
  }
3051
3060
  function nameOf(f) {
@@ -3354,7 +3363,7 @@ var syntax = SyntaxError;
3354
3363
  var uri = URIError;
3355
3364
  var abs$1 = Math.abs;
3356
3365
  var floor$1 = Math.floor;
3357
- var max$2 = Math.max;
3366
+ var max$1 = Math.max;
3358
3367
  var min$1 = Math.min;
3359
3368
  var pow$1 = Math.pow;
3360
3369
  var round$1 = Math.round;
@@ -3483,78 +3492,99 @@ function requireObject_getPrototypeOf() {
3483
3492
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3484
3493
  return Object_getPrototypeOf;
3485
3494
  }
3486
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3487
- var toStr = Object.prototype.toString;
3488
- var max$1 = Math.max;
3489
- var funcType = "[object Function]";
3490
- var concatty = function concatty2(a3, b2) {
3491
- var arr = [];
3492
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
3493
- arr[i2] = a3[i2];
3494
- }
3495
- for (var j = 0; j < b2.length; j += 1) {
3496
- arr[j + a3.length] = b2[j];
3497
- }
3498
- return arr;
3499
- };
3500
- var slicy = function slicy2(arrLike, offset) {
3501
- var arr = [];
3502
- for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3503
- arr[j] = arrLike[i2];
3504
- }
3505
- return arr;
3506
- };
3507
- var joiny = function(arr, joiner) {
3508
- var str = "";
3509
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
3510
- str += arr[i2];
3511
- if (i2 + 1 < arr.length) {
3512
- str += joiner;
3495
+ var implementation;
3496
+ var hasRequiredImplementation;
3497
+ function requireImplementation() {
3498
+ if (hasRequiredImplementation) return implementation;
3499
+ hasRequiredImplementation = 1;
3500
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3501
+ var toStr2 = Object.prototype.toString;
3502
+ var max2 = Math.max;
3503
+ var funcType = "[object Function]";
3504
+ var concatty = function concatty2(a3, b2) {
3505
+ var arr = [];
3506
+ for (var i2 = 0; i2 < a3.length; i2 += 1) {
3507
+ arr[i2] = a3[i2];
3508
+ }
3509
+ for (var j = 0; j < b2.length; j += 1) {
3510
+ arr[j + a3.length] = b2[j];
3511
+ }
3512
+ return arr;
3513
+ };
3514
+ var slicy = function slicy2(arrLike, offset) {
3515
+ var arr = [];
3516
+ for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3517
+ arr[j] = arrLike[i2];
3513
3518
  }
3514
- }
3515
- return str;
3516
- };
3517
- var implementation$1 = function bind(that) {
3518
- var target = this;
3519
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
3520
- throw new TypeError(ERROR_MESSAGE + target);
3521
- }
3522
- var args = slicy(arguments, 1);
3523
- var bound;
3524
- var binder = function() {
3525
- if (this instanceof bound) {
3526
- var result = target.apply(
3527
- this,
3528
- concatty(args, arguments)
3529
- );
3530
- if (Object(result) === result) {
3531
- return result;
3519
+ return arr;
3520
+ };
3521
+ var joiny = function(arr, joiner) {
3522
+ var str = "";
3523
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
3524
+ str += arr[i2];
3525
+ if (i2 + 1 < arr.length) {
3526
+ str += joiner;
3532
3527
  }
3533
- return this;
3534
3528
  }
3535
- return target.apply(
3536
- that,
3537
- concatty(args, arguments)
3538
- );
3529
+ return str;
3539
3530
  };
3540
- var boundLength = max$1(0, target.length - args.length);
3541
- var boundArgs = [];
3542
- for (var i2 = 0; i2 < boundLength; i2++) {
3543
- boundArgs[i2] = "$" + i2;
3544
- }
3545
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3546
- if (target.prototype) {
3547
- var Empty = function Empty2() {
3531
+ implementation = function bind2(that) {
3532
+ var target = this;
3533
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
3534
+ throw new TypeError(ERROR_MESSAGE + target);
3535
+ }
3536
+ var args = slicy(arguments, 1);
3537
+ var bound;
3538
+ var binder = function() {
3539
+ if (this instanceof bound) {
3540
+ var result = target.apply(
3541
+ this,
3542
+ concatty(args, arguments)
3543
+ );
3544
+ if (Object(result) === result) {
3545
+ return result;
3546
+ }
3547
+ return this;
3548
+ }
3549
+ return target.apply(
3550
+ that,
3551
+ concatty(args, arguments)
3552
+ );
3548
3553
  };
3549
- Empty.prototype = target.prototype;
3550
- bound.prototype = new Empty();
3551
- Empty.prototype = null;
3552
- }
3553
- return bound;
3554
- };
3555
- var implementation = implementation$1;
3556
- var functionBind = Function.prototype.bind || implementation;
3557
- var functionCall = Function.prototype.call;
3554
+ var boundLength = max2(0, target.length - args.length);
3555
+ var boundArgs = [];
3556
+ for (var i2 = 0; i2 < boundLength; i2++) {
3557
+ boundArgs[i2] = "$" + i2;
3558
+ }
3559
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3560
+ if (target.prototype) {
3561
+ var Empty = function Empty2() {
3562
+ };
3563
+ Empty.prototype = target.prototype;
3564
+ bound.prototype = new Empty();
3565
+ Empty.prototype = null;
3566
+ }
3567
+ return bound;
3568
+ };
3569
+ return implementation;
3570
+ }
3571
+ var functionBind;
3572
+ var hasRequiredFunctionBind;
3573
+ function requireFunctionBind() {
3574
+ if (hasRequiredFunctionBind) return functionBind;
3575
+ hasRequiredFunctionBind = 1;
3576
+ var implementation2 = requireImplementation();
3577
+ functionBind = Function.prototype.bind || implementation2;
3578
+ return functionBind;
3579
+ }
3580
+ var functionCall;
3581
+ var hasRequiredFunctionCall;
3582
+ function requireFunctionCall() {
3583
+ if (hasRequiredFunctionCall) return functionCall;
3584
+ hasRequiredFunctionCall = 1;
3585
+ functionCall = Function.prototype.call;
3586
+ return functionCall;
3587
+ }
3558
3588
  var functionApply;
3559
3589
  var hasRequiredFunctionApply;
3560
3590
  function requireFunctionApply() {
@@ -3564,14 +3594,14 @@ function requireFunctionApply() {
3564
3594
  return functionApply;
3565
3595
  }
3566
3596
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3567
- var bind$2 = functionBind;
3597
+ var bind$2 = requireFunctionBind();
3568
3598
  var $apply$1 = requireFunctionApply();
3569
- var $call$2 = functionCall;
3599
+ var $call$2 = requireFunctionCall();
3570
3600
  var $reflectApply = reflectApply;
3571
3601
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
3572
- var bind$1 = functionBind;
3602
+ var bind$1 = requireFunctionBind();
3573
3603
  var $TypeError$4 = type;
3574
- var $call$1 = functionCall;
3604
+ var $call$1 = requireFunctionCall();
3575
3605
  var $actualApply = actualApply;
3576
3606
  var callBindApplyHelpers = function callBindBasic(args) {
3577
3607
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3637,8 +3667,8 @@ function requireHasown() {
3637
3667
  hasRequiredHasown = 1;
3638
3668
  var call = Function.prototype.call;
3639
3669
  var $hasOwn = Object.prototype.hasOwnProperty;
3640
- var bind3 = functionBind;
3641
- hasown = bind3.call(call, $hasOwn);
3670
+ var bind2 = requireFunctionBind();
3671
+ hasown = bind2.call(call, $hasOwn);
3642
3672
  return hasown;
3643
3673
  }
3644
3674
  var undefined$1;
@@ -3652,7 +3682,7 @@ var $TypeError$3 = type;
3652
3682
  var $URIError = uri;
3653
3683
  var abs = abs$1;
3654
3684
  var floor = floor$1;
3655
- var max = max$2;
3685
+ var max = max$1;
3656
3686
  var min = min$1;
3657
3687
  var pow = pow$1;
3658
3688
  var round = round$1;
@@ -3686,7 +3716,7 @@ var getProto = requireGetProto();
3686
3716
  var $ObjectGPO = requireObject_getPrototypeOf();
3687
3717
  var $ReflectGPO = requireReflect_getPrototypeOf();
3688
3718
  var $apply = requireFunctionApply();
3689
- var $call = functionCall;
3719
+ var $call = requireFunctionCall();
3690
3720
  var needsEval = {};
3691
3721
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3692
3722
  var INTRINSICS = {
@@ -3857,13 +3887,13 @@ var LEGACY_ALIASES = {
3857
3887
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3858
3888
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3859
3889
  };
3860
- var bind2 = functionBind;
3890
+ var bind = requireFunctionBind();
3861
3891
  var hasOwn = requireHasown();
3862
- var $concat = bind2.call($call, Array.prototype.concat);
3863
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
3864
- var $replace = bind2.call($call, String.prototype.replace);
3865
- var $strSlice = bind2.call($call, String.prototype.slice);
3866
- var $exec = bind2.call($call, RegExp.prototype.exec);
3892
+ var $concat = bind.call($call, Array.prototype.concat);
3893
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
3894
+ var $replace = bind.call($call, String.prototype.replace);
3895
+ var $strSlice = bind.call($call, String.prototype.slice);
3896
+ var $exec = bind.call($call, RegExp.prototype.exec);
3867
3897
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
3868
3898
  var reEscapeChar = /\\(\\)?/g;
3869
3899
  var stringToPath = function stringToPath2(string) {
@@ -5135,8 +5165,8 @@ function ListView({ data, meta }) {
5135
5165
  }
5136
5166
  }, [fetchPaginatedUsers, toggleNotification, formatMessage]);
5137
5167
  const handleDeleteAll = useCallback(
5138
- async (idsToDelete) => {
5139
- await Promise.all(idsToDelete.map((id) => deleteUser(id, null)));
5168
+ async (idsToDelete, destination = null) => {
5169
+ await Promise.all(idsToDelete.map((id) => deleteUser(id, destination)));
5140
5170
  await fetchData();
5141
5171
  },
5142
5172
  [fetchData]
@@ -7,13 +7,13 @@ const reactTooltip = require("@radix-ui/react-tooltip");
7
7
  const React = require("react");
8
8
  const designSystem = require("@strapi/design-system");
9
9
  const reactIntl = require("react-intl");
10
- const index = require("./index-Dz1nqS7B.js");
10
+ const index = require("./index-BnT1fFPr.js");
11
11
  const icons = require("@strapi/icons");
12
12
  const styled = require("styled-components");
13
13
  const rx = require("react-icons/rx");
14
14
  const ai = require("react-icons/ai");
15
15
  const md = require("react-icons/md");
16
- const api = require("./api-C7A4Ky3o.js");
16
+ const api = require("./api-DR4wmAFN.js");
17
17
  const PhoneInputModule = require("react-phone-input-2");
18
18
  require("react-phone-input-2/lib/style.css");
19
19
  const validator = require("validator");
@@ -2405,31 +2405,32 @@ const DeleteAccount = ({
2405
2405
  /* @__PURE__ */ jsxRuntime.jsx(icons.WarningCircle, { fill: "danger700", width: "20px", height: "20px" }),
2406
2406
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "danger700", children: "After you delete an account, it's permanently deleted. Accounts cannot be undeleted." })
2407
2407
  ] }),
2408
- isSingleRecord && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2409
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2410
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", children: "User account" }),
2411
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: email })
2412
- ] }),
2413
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2414
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: "Delete user from:" }),
2415
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "row", alignItems: "center", gap: 4, children: [
2416
- /* @__PURE__ */ jsxRuntime.jsx(
2417
- designSystem.Checkbox,
2418
- {
2419
- onCheckedChange: (checked) => setIsStrapiIncluded(checked === true),
2420
- checked: isStrapiIncluded,
2421
- children: "Strapi"
2422
- }
2423
- ),
2424
- /* @__PURE__ */ jsxRuntime.jsx(
2425
- designSystem.Checkbox,
2426
- {
2427
- onCheckedChange: (checked) => setIsFirebaseIncluded(checked === true),
2428
- checked: isFirebaseIncluded,
2429
- children: "Firebase"
2430
- }
2431
- )
2432
- ] })
2408
+ isSingleRecord ? /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2409
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", children: "User account" }),
2410
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: email })
2411
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2412
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", children: "Bulk delete operation" }),
2413
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: "You are about to delete multiple user accounts" })
2414
+ ] }),
2415
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2416
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: "Delete user from:" }),
2417
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "row", alignItems: "center", gap: 4, children: [
2418
+ /* @__PURE__ */ jsxRuntime.jsx(
2419
+ designSystem.Checkbox,
2420
+ {
2421
+ onCheckedChange: (checked) => setIsStrapiIncluded(checked === true),
2422
+ checked: isStrapiIncluded,
2423
+ children: "Strapi"
2424
+ }
2425
+ ),
2426
+ /* @__PURE__ */ jsxRuntime.jsx(
2427
+ designSystem.Checkbox,
2428
+ {
2429
+ onCheckedChange: (checked) => setIsFirebaseIncluded(checked === true),
2430
+ checked: isFirebaseIncluded,
2431
+ children: "Firebase"
2432
+ }
2433
+ )
2433
2434
  ] })
2434
2435
  ] })
2435
2436
  ] }) }),
@@ -2531,7 +2532,15 @@ const FirebaseTable = ({
2531
2532
  const sort = query?.sort ?? "";
2532
2533
  const [sortBy, sortOrder] = sort.split(":");
2533
2534
  const handleBulkDelete = async (isStrapiIncluded, isFirebaseIncluded) => {
2534
- await onConfirmDeleteAll(selectedArray);
2535
+ let destination = null;
2536
+ if (isStrapiIncluded && isFirebaseIncluded) {
2537
+ destination = null;
2538
+ } else if (isStrapiIncluded) {
2539
+ destination = "strapi";
2540
+ } else if (isFirebaseIncluded) {
2541
+ destination = "firebase";
2542
+ }
2543
+ await onConfirmDeleteAll(selectedArray, destination);
2535
2544
  clearSelection();
2536
2545
  setShowBulkDeleteDialog(false);
2537
2546
  };
@@ -2655,7 +2664,7 @@ const fetchUsers = async (query = {}) => {
2655
2664
  return users;
2656
2665
  };
2657
2666
  const createUser = async (userPayload) => {
2658
- const url = `${index.PLUGIN_ID}/users`;
2667
+ const url = `/${index.PLUGIN_ID}/users`;
2659
2668
  try {
2660
2669
  const { post } = admin.getFetchClient();
2661
2670
  const { data: user } = await post(url, userPayload);
@@ -2665,7 +2674,7 @@ const createUser = async (userPayload) => {
2665
2674
  }
2666
2675
  };
2667
2676
  const fetchUserByID = async (userID) => {
2668
- const url = `${index.PLUGIN_ID}/users/${userID}`;
2677
+ const url = `/${index.PLUGIN_ID}/users/${userID}`;
2669
2678
  try {
2670
2679
  const { get: get2 } = admin.getFetchClient();
2671
2680
  const { data: user } = await get2(url);
@@ -2675,7 +2684,7 @@ const fetchUserByID = async (userID) => {
2675
2684
  }
2676
2685
  };
2677
2686
  const deleteUser = async (idToDelete, destination) => {
2678
- const url = `${index.PLUGIN_ID}/users/${idToDelete}${destination ? `?destination=${destination}` : ""}`;
2687
+ const url = `/${index.PLUGIN_ID}/users/${idToDelete}${destination ? `?destination=${destination}` : ""}`;
2679
2688
  try {
2680
2689
  const { del } = admin.getFetchClient();
2681
2690
  const { data: users } = await del(url);
@@ -2685,19 +2694,19 @@ const deleteUser = async (idToDelete, destination) => {
2685
2694
  }
2686
2695
  };
2687
2696
  const updateUser = async (idToUpdate, payload) => {
2688
- const url = `${index.PLUGIN_ID}/users/${idToUpdate}`;
2697
+ const url = `/${index.PLUGIN_ID}/users/${idToUpdate}`;
2689
2698
  const { put } = admin.getFetchClient();
2690
2699
  const { data: user } = await put(url, payload);
2691
2700
  return user;
2692
2701
  };
2693
2702
  const resetUserPassword = async (idToUpdate, payload) => {
2694
- const url = `${index.PLUGIN_ID}/users/resetPassword/${idToUpdate}`;
2703
+ const url = `/${index.PLUGIN_ID}/users/resetPassword/${idToUpdate}`;
2695
2704
  const { put } = admin.getFetchClient();
2696
2705
  const { data: user } = await put(url, payload);
2697
2706
  return user;
2698
2707
  };
2699
2708
  const sendResetEmail = async (userId) => {
2700
- const url = `${index.PLUGIN_ID}/users/sendResetEmail/${userId}`;
2709
+ const url = `/${index.PLUGIN_ID}/users/sendResetEmail/${userId}`;
2701
2710
  const { put } = admin.getFetchClient();
2702
2711
  const { data: result } = await put(url, {});
2703
2712
  return result;
@@ -2990,7 +2999,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2990
2999
  var ys = arrObjKeys(obj, inspect2);
2991
3000
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2992
3001
  var protoTag = obj instanceof Object ? "" : "null prototype";
2993
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
3002
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
2994
3003
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
2995
3004
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
2996
3005
  if (ys.length === 0) {
@@ -3015,25 +3024,25 @@ function canTrustToString(obj) {
3015
3024
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
3016
3025
  }
3017
3026
  function isArray$3(obj) {
3018
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
3027
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
3019
3028
  }
3020
3029
  function isDate(obj) {
3021
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
3030
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
3022
3031
  }
3023
3032
  function isRegExp$1(obj) {
3024
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
3033
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3025
3034
  }
3026
3035
  function isError(obj) {
3027
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
3036
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
3028
3037
  }
3029
3038
  function isString(obj) {
3030
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
3039
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
3031
3040
  }
3032
3041
  function isNumber(obj) {
3033
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
3042
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
3034
3043
  }
3035
3044
  function isBoolean(obj) {
3036
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
3045
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3037
3046
  }
3038
3047
  function isSymbol(obj) {
3039
3048
  if (hasShammedSymbols) {
@@ -3069,7 +3078,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
3069
3078
  function has$3(obj, key) {
3070
3079
  return hasOwn$1.call(obj, key);
3071
3080
  }
3072
- function toStr$1(obj) {
3081
+ function toStr(obj) {
3073
3082
  return objectToString.call(obj);
3074
3083
  }
3075
3084
  function nameOf(f) {
@@ -3378,7 +3387,7 @@ var syntax = SyntaxError;
3378
3387
  var uri = URIError;
3379
3388
  var abs$1 = Math.abs;
3380
3389
  var floor$1 = Math.floor;
3381
- var max$2 = Math.max;
3390
+ var max$1 = Math.max;
3382
3391
  var min$1 = Math.min;
3383
3392
  var pow$1 = Math.pow;
3384
3393
  var round$1 = Math.round;
@@ -3507,78 +3516,99 @@ function requireObject_getPrototypeOf() {
3507
3516
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3508
3517
  return Object_getPrototypeOf;
3509
3518
  }
3510
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3511
- var toStr = Object.prototype.toString;
3512
- var max$1 = Math.max;
3513
- var funcType = "[object Function]";
3514
- var concatty = function concatty2(a3, b2) {
3515
- var arr = [];
3516
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
3517
- arr[i2] = a3[i2];
3518
- }
3519
- for (var j = 0; j < b2.length; j += 1) {
3520
- arr[j + a3.length] = b2[j];
3521
- }
3522
- return arr;
3523
- };
3524
- var slicy = function slicy2(arrLike, offset) {
3525
- var arr = [];
3526
- for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3527
- arr[j] = arrLike[i2];
3528
- }
3529
- return arr;
3530
- };
3531
- var joiny = function(arr, joiner) {
3532
- var str = "";
3533
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
3534
- str += arr[i2];
3535
- if (i2 + 1 < arr.length) {
3536
- str += joiner;
3519
+ var implementation;
3520
+ var hasRequiredImplementation;
3521
+ function requireImplementation() {
3522
+ if (hasRequiredImplementation) return implementation;
3523
+ hasRequiredImplementation = 1;
3524
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3525
+ var toStr2 = Object.prototype.toString;
3526
+ var max2 = Math.max;
3527
+ var funcType = "[object Function]";
3528
+ var concatty = function concatty2(a3, b2) {
3529
+ var arr = [];
3530
+ for (var i2 = 0; i2 < a3.length; i2 += 1) {
3531
+ arr[i2] = a3[i2];
3532
+ }
3533
+ for (var j = 0; j < b2.length; j += 1) {
3534
+ arr[j + a3.length] = b2[j];
3535
+ }
3536
+ return arr;
3537
+ };
3538
+ var slicy = function slicy2(arrLike, offset) {
3539
+ var arr = [];
3540
+ for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3541
+ arr[j] = arrLike[i2];
3537
3542
  }
3538
- }
3539
- return str;
3540
- };
3541
- var implementation$1 = function bind(that) {
3542
- var target = this;
3543
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
3544
- throw new TypeError(ERROR_MESSAGE + target);
3545
- }
3546
- var args = slicy(arguments, 1);
3547
- var bound;
3548
- var binder = function() {
3549
- if (this instanceof bound) {
3550
- var result = target.apply(
3551
- this,
3552
- concatty(args, arguments)
3553
- );
3554
- if (Object(result) === result) {
3555
- return result;
3543
+ return arr;
3544
+ };
3545
+ var joiny = function(arr, joiner) {
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;
3556
3551
  }
3557
- return this;
3558
3552
  }
3559
- return target.apply(
3560
- that,
3561
- concatty(args, arguments)
3562
- );
3553
+ return str;
3563
3554
  };
3564
- var boundLength = max$1(0, target.length - args.length);
3565
- var boundArgs = [];
3566
- for (var i2 = 0; i2 < boundLength; i2++) {
3567
- boundArgs[i2] = "$" + i2;
3568
- }
3569
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3570
- if (target.prototype) {
3571
- var Empty = function Empty2() {
3555
+ implementation = function bind2(that) {
3556
+ var target = this;
3557
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
3558
+ throw new TypeError(ERROR_MESSAGE + target);
3559
+ }
3560
+ var args = slicy(arguments, 1);
3561
+ var bound;
3562
+ var binder = function() {
3563
+ if (this instanceof bound) {
3564
+ var result = target.apply(
3565
+ this,
3566
+ concatty(args, arguments)
3567
+ );
3568
+ if (Object(result) === result) {
3569
+ return result;
3570
+ }
3571
+ return this;
3572
+ }
3573
+ return target.apply(
3574
+ that,
3575
+ concatty(args, arguments)
3576
+ );
3572
3577
  };
3573
- Empty.prototype = target.prototype;
3574
- bound.prototype = new Empty();
3575
- Empty.prototype = null;
3576
- }
3577
- return bound;
3578
- };
3579
- var implementation = implementation$1;
3580
- var functionBind = Function.prototype.bind || implementation;
3581
- var functionCall = Function.prototype.call;
3578
+ var boundLength = max2(0, target.length - args.length);
3579
+ var boundArgs = [];
3580
+ for (var i2 = 0; i2 < boundLength; i2++) {
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;
3590
+ }
3591
+ return bound;
3592
+ };
3593
+ return implementation;
3594
+ }
3595
+ var functionBind;
3596
+ var hasRequiredFunctionBind;
3597
+ function requireFunctionBind() {
3598
+ if (hasRequiredFunctionBind) return functionBind;
3599
+ hasRequiredFunctionBind = 1;
3600
+ var implementation2 = requireImplementation();
3601
+ functionBind = Function.prototype.bind || implementation2;
3602
+ return functionBind;
3603
+ }
3604
+ var functionCall;
3605
+ var hasRequiredFunctionCall;
3606
+ function requireFunctionCall() {
3607
+ if (hasRequiredFunctionCall) return functionCall;
3608
+ hasRequiredFunctionCall = 1;
3609
+ functionCall = Function.prototype.call;
3610
+ return functionCall;
3611
+ }
3582
3612
  var functionApply;
3583
3613
  var hasRequiredFunctionApply;
3584
3614
  function requireFunctionApply() {
@@ -3588,14 +3618,14 @@ function requireFunctionApply() {
3588
3618
  return functionApply;
3589
3619
  }
3590
3620
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3591
- var bind$2 = functionBind;
3621
+ var bind$2 = requireFunctionBind();
3592
3622
  var $apply$1 = requireFunctionApply();
3593
- var $call$2 = functionCall;
3623
+ var $call$2 = requireFunctionCall();
3594
3624
  var $reflectApply = reflectApply;
3595
3625
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
3596
- var bind$1 = functionBind;
3626
+ var bind$1 = requireFunctionBind();
3597
3627
  var $TypeError$4 = type;
3598
- var $call$1 = functionCall;
3628
+ var $call$1 = requireFunctionCall();
3599
3629
  var $actualApply = actualApply;
3600
3630
  var callBindApplyHelpers = function callBindBasic(args) {
3601
3631
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3661,8 +3691,8 @@ function requireHasown() {
3661
3691
  hasRequiredHasown = 1;
3662
3692
  var call = Function.prototype.call;
3663
3693
  var $hasOwn = Object.prototype.hasOwnProperty;
3664
- var bind3 = functionBind;
3665
- hasown = bind3.call(call, $hasOwn);
3694
+ var bind2 = requireFunctionBind();
3695
+ hasown = bind2.call(call, $hasOwn);
3666
3696
  return hasown;
3667
3697
  }
3668
3698
  var undefined$1;
@@ -3676,7 +3706,7 @@ var $TypeError$3 = type;
3676
3706
  var $URIError = uri;
3677
3707
  var abs = abs$1;
3678
3708
  var floor = floor$1;
3679
- var max = max$2;
3709
+ var max = max$1;
3680
3710
  var min = min$1;
3681
3711
  var pow = pow$1;
3682
3712
  var round = round$1;
@@ -3710,7 +3740,7 @@ var getProto = requireGetProto();
3710
3740
  var $ObjectGPO = requireObject_getPrototypeOf();
3711
3741
  var $ReflectGPO = requireReflect_getPrototypeOf();
3712
3742
  var $apply = requireFunctionApply();
3713
- var $call = functionCall;
3743
+ var $call = requireFunctionCall();
3714
3744
  var needsEval = {};
3715
3745
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3716
3746
  var INTRINSICS = {
@@ -3881,13 +3911,13 @@ var LEGACY_ALIASES = {
3881
3911
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3882
3912
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3883
3913
  };
3884
- var bind2 = functionBind;
3914
+ var bind = requireFunctionBind();
3885
3915
  var hasOwn = requireHasown();
3886
- var $concat = bind2.call($call, Array.prototype.concat);
3887
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
3888
- var $replace = bind2.call($call, String.prototype.replace);
3889
- var $strSlice = bind2.call($call, String.prototype.slice);
3890
- var $exec = bind2.call($call, RegExp.prototype.exec);
3916
+ var $concat = bind.call($call, Array.prototype.concat);
3917
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
3918
+ var $replace = bind.call($call, String.prototype.replace);
3919
+ var $strSlice = bind.call($call, String.prototype.slice);
3920
+ var $exec = bind.call($call, RegExp.prototype.exec);
3891
3921
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
3892
3922
  var reEscapeChar = /\\(\\)?/g;
3893
3923
  var stringToPath = function stringToPath2(string) {
@@ -5159,8 +5189,8 @@ function ListView({ data, meta }) {
5159
5189
  }
5160
5190
  }, [fetchPaginatedUsers, toggleNotification, formatMessage]);
5161
5191
  const handleDeleteAll = React.useCallback(
5162
- async (idsToDelete) => {
5163
- await Promise.all(idsToDelete.map((id) => deleteUser(id, null)));
5192
+ async (idsToDelete, destination = null) => {
5193
+ await Promise.all(idsToDelete.map((id) => deleteUser(id, destination)));
5164
5194
  await fetchData();
5165
5195
  },
5166
5196
  [fetchData]
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const admin = require("@strapi/strapi/admin");
3
- const index = require("./index-Dz1nqS7B.js");
3
+ const index = require("./index-BnT1fFPr.js");
4
4
  const saveFirebaseConfig = async (json, firebaseWebApiKey, passwordConfig) => {
5
5
  const url = `/${index.PLUGIN_ID}/settings/firebase-config`;
6
6
  const { post } = admin.getFetchClient();
@@ -1,5 +1,5 @@
1
1
  import { getFetchClient } from "@strapi/strapi/admin";
2
- import { P as PLUGIN_ID } from "./index-Dxg4gNu5.mjs";
2
+ import { P as PLUGIN_ID } from "./index-DtGfwf9S.mjs";
3
3
  const saveFirebaseConfig = async (json, firebaseWebApiKey, passwordConfig) => {
4
4
  const url = `/${PLUGIN_ID}/settings/firebase-config`;
5
5
  const { post } = getFetchClient();
@@ -739,7 +739,7 @@ const index = {
739
739
  id: `${PLUGIN_ID}.page.title`,
740
740
  defaultMessage: PLUGIN_ID
741
741
  },
742
- Component: () => Promise.resolve().then(() => require("./App-Cd5yIsKz.js")).then((mod) => ({
742
+ Component: () => Promise.resolve().then(() => require("./App-DZQe17x8.js")).then((mod) => ({
743
743
  default: mod.App
744
744
  })),
745
745
  permissions: PERMISSIONS["menu-link"]
@@ -761,7 +761,7 @@ const index = {
761
761
  id: "settings",
762
762
  to: `/settings/${PLUGIN_ID}`,
763
763
  async Component() {
764
- const component = await Promise.resolve().then(() => require("./index-d4XkRCYN.js"));
764
+ const component = await Promise.resolve().then(() => require("./index-dVTLVmwU.js"));
765
765
  return component.default;
766
766
  },
767
767
  permissions: PERMISSIONS["menu-link"]
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { Flex, Box, Typography, JSONInput, Button, TextInput, Badge, Textarea, Toggle, NumberInput, Modal } from "@strapi/design-system";
4
4
  import { useNotification, Page } from "@strapi/strapi/admin";
5
- import { g as getFirebaseConfig, s as saveFirebaseConfig, d as delFirebaseConfig, a as savePasswordSettings } from "./api-BznQNKgc.mjs";
5
+ import { g as getFirebaseConfig, s as saveFirebaseConfig, d as delFirebaseConfig, a as savePasswordSettings } from "./api-D_4cdJU5.mjs";
6
6
  import { useNavigate } from "react-router-dom";
7
7
  function SettingsPage() {
8
8
  const { toggleNotification } = useNotification();
@@ -738,7 +738,7 @@ const index = {
738
738
  id: `${PLUGIN_ID}.page.title`,
739
739
  defaultMessage: PLUGIN_ID
740
740
  },
741
- Component: () => import("./App-Beg-rhfs.mjs").then((mod) => ({
741
+ Component: () => import("./App-BY1gNGKH.mjs").then((mod) => ({
742
742
  default: mod.App
743
743
  })),
744
744
  permissions: PERMISSIONS["menu-link"]
@@ -760,7 +760,7 @@ const index = {
760
760
  id: "settings",
761
761
  to: `/settings/${PLUGIN_ID}`,
762
762
  async Component() {
763
- const component = await import("./index-C3713gpv.mjs");
763
+ const component = await import("./index-D8pv1Q6h.mjs");
764
764
  return component.default;
765
765
  },
766
766
  permissions: PERMISSIONS["menu-link"]
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const designSystem = require("@strapi/design-system");
6
6
  const admin = require("@strapi/strapi/admin");
7
- const api = require("./api-C7A4Ky3o.js");
7
+ const api = require("./api-DR4wmAFN.js");
8
8
  const reactRouterDom = require("react-router-dom");
9
9
  function SettingsPage() {
10
10
  const { toggleNotification } = admin.useNotification();
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-Dz1nqS7B.js");
2
+ const index = require("../_chunks/index-BnT1fFPr.js");
3
3
  require("react/jsx-runtime");
4
4
  require("@strapi/strapi/admin");
5
5
  require("@strapi/design-system");
@@ -1,4 +1,4 @@
1
- import { p } from "../_chunks/index-Dxg4gNu5.mjs";
1
+ import { p } from "../_chunks/index-DtGfwf9S.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "@strapi/strapi/admin";
4
4
  import "@strapi/design-system";
@@ -5,7 +5,7 @@ interface FirebaseTableProps {
5
5
  createAction?: React.ReactNode;
6
6
  isLoading: boolean;
7
7
  rows: User[];
8
- onConfirmDeleteAll: (idsToDelete: Array<string | number>) => Promise<void>;
8
+ onConfirmDeleteAll: (idsToDelete: Array<string | number>, destination: string | null) => Promise<void>;
9
9
  onResetPasswordClick: (data: User) => void;
10
10
  onDeleteAccountClick: (data: User) => void;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-firebase-authentication",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Allows easy integration between clients utilizing Firebase for authentication and Strapi",
5
5
  "license": "MIT",
6
6
  "repository": {