strapi-plugin-firebase-authentication 1.0.6 → 1.0.8

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,14 +5,14 @@ const admin = require("@strapi/strapi/admin");
5
5
  const reactRouterDom = require("react-router-dom");
6
6
  const react = require("react");
7
7
  const designSystem = require("@strapi/design-system");
8
- const index = require("./index-CY52kL3w.js");
8
+ const index = require("./index-BzkEABvl.js");
9
9
  const reactIntl = require("react-intl");
10
10
  const icons = require("@strapi/icons");
11
11
  const rx = require("react-icons/rx");
12
12
  const styled = require("styled-components");
13
13
  const ai = require("react-icons/ai");
14
14
  const md = require("react-icons/md");
15
- const api = require("./api-BMQDkXhr.js");
15
+ const api = require("./api-vCRJO8qn.js");
16
16
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
17
17
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
18
18
  const fetchUsers = async (query = {}) => {
@@ -2607,7 +2607,14 @@ var implementation$1 = function bind(that) {
2607
2607
  };
2608
2608
  var implementation = implementation$1;
2609
2609
  var functionBind = Function.prototype.bind || implementation;
2610
- var functionCall = Function.prototype.call;
2610
+ var functionCall;
2611
+ var hasRequiredFunctionCall;
2612
+ function requireFunctionCall() {
2613
+ if (hasRequiredFunctionCall) return functionCall;
2614
+ hasRequiredFunctionCall = 1;
2615
+ functionCall = Function.prototype.call;
2616
+ return functionCall;
2617
+ }
2611
2618
  var functionApply;
2612
2619
  var hasRequiredFunctionApply;
2613
2620
  function requireFunctionApply() {
@@ -2619,12 +2626,12 @@ function requireFunctionApply() {
2619
2626
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
2620
2627
  var bind$2 = functionBind;
2621
2628
  var $apply$1 = requireFunctionApply();
2622
- var $call$2 = functionCall;
2629
+ var $call$2 = requireFunctionCall();
2623
2630
  var $reflectApply = reflectApply;
2624
2631
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
2625
2632
  var bind$1 = functionBind;
2626
2633
  var $TypeError$4 = type;
2627
- var $call$1 = functionCall;
2634
+ var $call$1 = requireFunctionCall();
2628
2635
  var $actualApply = actualApply;
2629
2636
  var callBindApplyHelpers = function callBindBasic(args) {
2630
2637
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -2739,7 +2746,7 @@ var getProto = requireGetProto();
2739
2746
  var $ObjectGPO = requireObject_getPrototypeOf();
2740
2747
  var $ReflectGPO = requireReflect_getPrototypeOf();
2741
2748
  var $apply = requireFunctionApply();
2742
- var $call = functionCall;
2749
+ var $call = requireFunctionCall();
2743
2750
  var needsEval = {};
2744
2751
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2745
2752
  var INTRINSICS = {
@@ -3,14 +3,14 @@ import { getFetchClient, Pagination, useQueryParams as useQueryParams$1, useNoti
3
3
  import { useNavigate, useLocation, Routes, Route } from "react-router-dom";
4
4
  import { useState, useEffect, useMemo, useCallback, useRef, useLayoutEffect, memo } from "react";
5
5
  import { Flex, Tooltip, Thead, Tr, Th, Tbody, Td, Checkbox, Box, Button, Typography, Dialog, Table, SearchForm, Searchbar, TextInput, Main, Link } from "@strapi/design-system";
6
- import { P as PLUGIN_ID } from "./index-VqMriC8x.mjs";
6
+ import { P as PLUGIN_ID } from "./index-8ErokDMe.mjs";
7
7
  import { useIntl } from "react-intl";
8
8
  import { Key, Trash, WarningCircle, ArrowLeft, Plus } from "@strapi/icons";
9
9
  import { RxCheck, RxCross2 } from "react-icons/rx";
10
10
  import styled from "styled-components";
11
11
  import { AiOutlineUserAdd, AiFillPhone, AiFillMail, AiFillYahoo, AiFillGithub, AiFillTwitterCircle, AiFillFacebook, AiFillApple, AiFillGoogleCircle } from "react-icons/ai";
12
12
  import { MdPassword } from "react-icons/md";
13
- import { g as getFirebaseConfig } from "./api-KRlq4Oq_.mjs";
13
+ import { g as getFirebaseConfig } from "./api-CSB13cU_.mjs";
14
14
  const fetchUsers = async (query = {}) => {
15
15
  if (!query.page) {
16
16
  query.page = 1;
@@ -2015,7 +2015,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2015
2015
  var ys = arrObjKeys(obj, inspect2);
2016
2016
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2017
2017
  var protoTag = obj instanceof Object ? "" : "null prototype";
2018
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
2018
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
2019
2019
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
2020
2020
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
2021
2021
  if (ys.length === 0) {
@@ -2040,25 +2040,25 @@ function canTrustToString(obj) {
2040
2040
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
2041
2041
  }
2042
2042
  function isArray$3(obj) {
2043
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
2043
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
2044
2044
  }
2045
2045
  function isDate(obj) {
2046
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
2046
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
2047
2047
  }
2048
2048
  function isRegExp$1(obj) {
2049
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
2049
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
2050
2050
  }
2051
2051
  function isError(obj) {
2052
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
2052
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
2053
2053
  }
2054
2054
  function isString(obj) {
2055
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
2055
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
2056
2056
  }
2057
2057
  function isNumber(obj) {
2058
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
2058
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
2059
2059
  }
2060
2060
  function isBoolean(obj) {
2061
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
2061
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
2062
2062
  }
2063
2063
  function isSymbol(obj) {
2064
2064
  if (hasShammedSymbols) {
@@ -2094,7 +2094,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
2094
2094
  function has$3(obj, key) {
2095
2095
  return hasOwn$1.call(obj, key);
2096
2096
  }
2097
- function toStr$1(obj) {
2097
+ function toStr(obj) {
2098
2098
  return objectToString.call(obj);
2099
2099
  }
2100
2100
  function nameOf(f) {
@@ -2403,7 +2403,7 @@ var syntax = SyntaxError;
2403
2403
  var uri = URIError;
2404
2404
  var abs$1 = Math.abs;
2405
2405
  var floor$1 = Math.floor;
2406
- var max$2 = Math.max;
2406
+ var max$1 = Math.max;
2407
2407
  var min$1 = Math.min;
2408
2408
  var pow$1 = Math.pow;
2409
2409
  var round$1 = Math.round;
@@ -2532,78 +2532,99 @@ function requireObject_getPrototypeOf() {
2532
2532
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
2533
2533
  return Object_getPrototypeOf;
2534
2534
  }
2535
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2536
- var toStr = Object.prototype.toString;
2537
- var max$1 = Math.max;
2538
- var funcType = "[object Function]";
2539
- var concatty = function concatty2(a, b) {
2540
- var arr = [];
2541
- for (var i = 0; i < a.length; i += 1) {
2542
- arr[i] = a[i];
2543
- }
2544
- for (var j = 0; j < b.length; j += 1) {
2545
- arr[j + a.length] = b[j];
2546
- }
2547
- return arr;
2548
- };
2549
- var slicy = function slicy2(arrLike, offset) {
2550
- var arr = [];
2551
- for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
2552
- arr[j] = arrLike[i];
2553
- }
2554
- return arr;
2555
- };
2556
- var joiny = function(arr, joiner) {
2557
- var str = "";
2558
- for (var i = 0; i < arr.length; i += 1) {
2559
- str += arr[i];
2560
- if (i + 1 < arr.length) {
2561
- str += joiner;
2535
+ var implementation;
2536
+ var hasRequiredImplementation;
2537
+ function requireImplementation() {
2538
+ if (hasRequiredImplementation) return implementation;
2539
+ hasRequiredImplementation = 1;
2540
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2541
+ var toStr2 = Object.prototype.toString;
2542
+ var max2 = Math.max;
2543
+ var funcType = "[object Function]";
2544
+ var concatty = function concatty2(a, b) {
2545
+ var arr = [];
2546
+ for (var i = 0; i < a.length; i += 1) {
2547
+ arr[i] = a[i];
2548
+ }
2549
+ for (var j = 0; j < b.length; j += 1) {
2550
+ arr[j + a.length] = b[j];
2551
+ }
2552
+ return arr;
2553
+ };
2554
+ var slicy = function slicy2(arrLike, offset) {
2555
+ var arr = [];
2556
+ for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
2557
+ arr[j] = arrLike[i];
2562
2558
  }
2563
- }
2564
- return str;
2565
- };
2566
- var implementation$1 = function bind(that) {
2567
- var target = this;
2568
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
2569
- throw new TypeError(ERROR_MESSAGE + target);
2570
- }
2571
- var args = slicy(arguments, 1);
2572
- var bound;
2573
- var binder = function() {
2574
- if (this instanceof bound) {
2575
- var result = target.apply(
2576
- this,
2577
- concatty(args, arguments)
2578
- );
2579
- if (Object(result) === result) {
2580
- return result;
2559
+ return arr;
2560
+ };
2561
+ var joiny = function(arr, joiner) {
2562
+ var str = "";
2563
+ for (var i = 0; i < arr.length; i += 1) {
2564
+ str += arr[i];
2565
+ if (i + 1 < arr.length) {
2566
+ str += joiner;
2581
2567
  }
2582
- return this;
2583
2568
  }
2584
- return target.apply(
2585
- that,
2586
- concatty(args, arguments)
2587
- );
2569
+ return str;
2588
2570
  };
2589
- var boundLength = max$1(0, target.length - args.length);
2590
- var boundArgs = [];
2591
- for (var i = 0; i < boundLength; i++) {
2592
- boundArgs[i] = "$" + i;
2593
- }
2594
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
2595
- if (target.prototype) {
2596
- var Empty = function Empty2() {
2571
+ implementation = function bind2(that) {
2572
+ var target = this;
2573
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
2574
+ throw new TypeError(ERROR_MESSAGE + target);
2575
+ }
2576
+ var args = slicy(arguments, 1);
2577
+ var bound;
2578
+ var binder = function() {
2579
+ if (this instanceof bound) {
2580
+ var result = target.apply(
2581
+ this,
2582
+ concatty(args, arguments)
2583
+ );
2584
+ if (Object(result) === result) {
2585
+ return result;
2586
+ }
2587
+ return this;
2588
+ }
2589
+ return target.apply(
2590
+ that,
2591
+ concatty(args, arguments)
2592
+ );
2597
2593
  };
2598
- Empty.prototype = target.prototype;
2599
- bound.prototype = new Empty();
2600
- Empty.prototype = null;
2601
- }
2602
- return bound;
2603
- };
2604
- var implementation = implementation$1;
2605
- var functionBind = Function.prototype.bind || implementation;
2606
- var functionCall = Function.prototype.call;
2594
+ var boundLength = max2(0, target.length - args.length);
2595
+ var boundArgs = [];
2596
+ for (var i = 0; i < boundLength; i++) {
2597
+ boundArgs[i] = "$" + i;
2598
+ }
2599
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
2600
+ if (target.prototype) {
2601
+ var Empty = function Empty2() {
2602
+ };
2603
+ Empty.prototype = target.prototype;
2604
+ bound.prototype = new Empty();
2605
+ Empty.prototype = null;
2606
+ }
2607
+ return bound;
2608
+ };
2609
+ return implementation;
2610
+ }
2611
+ var functionBind;
2612
+ var hasRequiredFunctionBind;
2613
+ function requireFunctionBind() {
2614
+ if (hasRequiredFunctionBind) return functionBind;
2615
+ hasRequiredFunctionBind = 1;
2616
+ var implementation2 = requireImplementation();
2617
+ functionBind = Function.prototype.bind || implementation2;
2618
+ return functionBind;
2619
+ }
2620
+ var functionCall;
2621
+ var hasRequiredFunctionCall;
2622
+ function requireFunctionCall() {
2623
+ if (hasRequiredFunctionCall) return functionCall;
2624
+ hasRequiredFunctionCall = 1;
2625
+ functionCall = Function.prototype.call;
2626
+ return functionCall;
2627
+ }
2607
2628
  var functionApply;
2608
2629
  var hasRequiredFunctionApply;
2609
2630
  function requireFunctionApply() {
@@ -2613,14 +2634,14 @@ function requireFunctionApply() {
2613
2634
  return functionApply;
2614
2635
  }
2615
2636
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
2616
- var bind$2 = functionBind;
2637
+ var bind$2 = requireFunctionBind();
2617
2638
  var $apply$1 = requireFunctionApply();
2618
- var $call$2 = functionCall;
2639
+ var $call$2 = requireFunctionCall();
2619
2640
  var $reflectApply = reflectApply;
2620
2641
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
2621
- var bind$1 = functionBind;
2642
+ var bind$1 = requireFunctionBind();
2622
2643
  var $TypeError$4 = type;
2623
- var $call$1 = functionCall;
2644
+ var $call$1 = requireFunctionCall();
2624
2645
  var $actualApply = actualApply;
2625
2646
  var callBindApplyHelpers = function callBindBasic(args) {
2626
2647
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -2686,8 +2707,8 @@ function requireHasown() {
2686
2707
  hasRequiredHasown = 1;
2687
2708
  var call = Function.prototype.call;
2688
2709
  var $hasOwn = Object.prototype.hasOwnProperty;
2689
- var bind3 = functionBind;
2690
- hasown = bind3.call(call, $hasOwn);
2710
+ var bind2 = requireFunctionBind();
2711
+ hasown = bind2.call(call, $hasOwn);
2691
2712
  return hasown;
2692
2713
  }
2693
2714
  var undefined$1;
@@ -2701,7 +2722,7 @@ var $TypeError$3 = type;
2701
2722
  var $URIError = uri;
2702
2723
  var abs = abs$1;
2703
2724
  var floor = floor$1;
2704
- var max = max$2;
2725
+ var max = max$1;
2705
2726
  var min = min$1;
2706
2727
  var pow = pow$1;
2707
2728
  var round = round$1;
@@ -2735,7 +2756,7 @@ var getProto = requireGetProto();
2735
2756
  var $ObjectGPO = requireObject_getPrototypeOf();
2736
2757
  var $ReflectGPO = requireReflect_getPrototypeOf();
2737
2758
  var $apply = requireFunctionApply();
2738
- var $call = functionCall;
2759
+ var $call = requireFunctionCall();
2739
2760
  var needsEval = {};
2740
2761
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2741
2762
  var INTRINSICS = {
@@ -2906,13 +2927,13 @@ var LEGACY_ALIASES = {
2906
2927
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2907
2928
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2908
2929
  };
2909
- var bind2 = functionBind;
2930
+ var bind = requireFunctionBind();
2910
2931
  var hasOwn = requireHasown();
2911
- var $concat = bind2.call($call, Array.prototype.concat);
2912
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
2913
- var $replace = bind2.call($call, String.prototype.replace);
2914
- var $strSlice = bind2.call($call, String.prototype.slice);
2915
- var $exec = bind2.call($call, RegExp.prototype.exec);
2932
+ var $concat = bind.call($call, Array.prototype.concat);
2933
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
2934
+ var $replace = bind.call($call, String.prototype.replace);
2935
+ var $strSlice = bind.call($call, String.prototype.slice);
2936
+ var $exec = bind.call($call, RegExp.prototype.exec);
2916
2937
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2917
2938
  var reEscapeChar = /\\(\\)?/g;
2918
2939
  var stringToPath = function stringToPath2(string) {
@@ -1,5 +1,5 @@
1
1
  import { getFetchClient } from "@strapi/strapi/admin";
2
- import { P as PLUGIN_ID } from "./index-VqMriC8x.mjs";
2
+ import { P as PLUGIN_ID } from "./index-8ErokDMe.mjs";
3
3
  const saveFirebaseConfig = async (json) => {
4
4
  const url = `/${PLUGIN_ID}/settings/firebase-config`;
5
5
  const { post } = getFetchClient();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const admin = require("@strapi/strapi/admin");
3
- const index = require("./index-CY52kL3w.js");
3
+ const index = require("./index-BzkEABvl.js");
4
4
  const saveFirebaseConfig = async (json) => {
5
5
  const url = `/${index.PLUGIN_ID}/settings/firebase-config`;
6
6
  const { post } = admin.getFetchClient();
@@ -49,7 +49,7 @@ const index = {
49
49
  id: `${PLUGIN_ID}.page.title`,
50
50
  defaultMessage: PLUGIN_ID
51
51
  },
52
- Component: () => import("./App-ibb0A26-.mjs").then((mod) => ({
52
+ Component: () => import("./App-DaxdXe5h.mjs").then((mod) => ({
53
53
  default: mod.App
54
54
  })),
55
55
  permissions: PERMISSIONS["menu-link"]
@@ -71,7 +71,7 @@ const index = {
71
71
  id: "settings",
72
72
  to: `/settings/${PLUGIN_ID}`,
73
73
  async Component() {
74
- const component = await import("./index-CAq8_dR7.mjs");
74
+ const component = await import("./index-DIqCTZth.mjs");
75
75
  return component.default;
76
76
  },
77
77
  permissions: PERMISSIONS["menu-link"]
@@ -50,7 +50,7 @@ const index = {
50
50
  id: `${PLUGIN_ID}.page.title`,
51
51
  defaultMessage: PLUGIN_ID
52
52
  },
53
- Component: () => Promise.resolve().then(() => require("./App-LRljvkiG.js")).then((mod) => ({
53
+ Component: () => Promise.resolve().then(() => require("./App-CpdZZLSF.js")).then((mod) => ({
54
54
  default: mod.App
55
55
  })),
56
56
  permissions: PERMISSIONS["menu-link"]
@@ -72,7 +72,7 @@ const index = {
72
72
  id: "settings",
73
73
  to: `/settings/${PLUGIN_ID}`,
74
74
  async Component() {
75
- const component = await Promise.resolve().then(() => require("./index-hVmu7PS8.js"));
75
+ const component = await Promise.resolve().then(() => require("./index-x3WIiA6Y.js"));
76
76
  return component.default;
77
77
  },
78
78
  permissions: PERMISSIONS["menu-link"]