strapi-plugin-firebase-authentication 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{App-C49N6om4.mjs → App-C0XJYDQh.mjs} +34 -98
- package/dist/_chunks/{App-CtjmoTFU.js → App-COMAshYj.js} +34 -98
- package/dist/_chunks/{api-DrAXGM3H.mjs → api-CM79I13t.mjs} +1 -1
- package/dist/_chunks/{api-Bw_7tM52.js → api-DzbiYzK4.js} +1 -1
- package/dist/_chunks/{index-FAW4iPgh.mjs → index-4s0RQKAx.mjs} +2 -2
- package/dist/_chunks/{index-C9AUBuP7.mjs → index-B8sQntQh.mjs} +1 -1
- package/dist/_chunks/{index-yE1zATuU.js → index-DHMYqfl3.js} +2 -2
- package/dist/_chunks/{index-BkQ4pF_p.js → index-DyXjIUy8.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/forms/index.d.ts +2 -4
- package/dist/server/index.js +110 -52
- package/dist/server/index.mjs +110 -52
- package/dist/server/src/controllers/firebaseController.d.ts +0 -1
- package/dist/server/src/controllers/index.d.ts +0 -1
- package/dist/server/src/index.d.ts +4 -5
- package/dist/server/src/services/firebaseService.d.ts +3 -3
- package/dist/server/src/services/index.d.ts +4 -4
- package/dist/server/src/services/settingsService.d.ts +1 -2
- package/package.json +1 -1
|
@@ -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-
|
|
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-4s0RQKAx.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-
|
|
14
|
+
import { g as getFirebaseConfig$1 } from "./api-CM79I13t.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";
|
|
@@ -5361,60 +5361,27 @@ const HomePage = () => {
|
|
|
5361
5361
|
] })
|
|
5362
5362
|
] });
|
|
5363
5363
|
};
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
console.log(
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
console.log("
|
|
5373
|
-
console.log("
|
|
5374
|
-
console.log("
|
|
5375
|
-
console.log(" Field.Label type:", typeof Field.Label);
|
|
5376
|
-
console.log(" Field.Label $$typeof:", Field.Label?.$$typeof);
|
|
5377
|
-
console.log(" Field.Error:", Field.Error);
|
|
5378
|
-
console.log(" Field.Error type:", typeof Field.Error);
|
|
5379
|
-
console.log(" Field.Error $$typeof:", Field.Error?.$$typeof);
|
|
5380
|
-
console.log(" Field.Hint:", Field.Hint);
|
|
5381
|
-
console.log(" Field.Hint type:", typeof Field.Hint);
|
|
5382
|
-
console.log(" TextInput:", TextInput);
|
|
5383
|
-
console.log(" TextInput type:", typeof TextInput);
|
|
5384
|
-
console.log(" TextInput $$typeof:", TextInput?.$$typeof);
|
|
5385
|
-
console.log(" Toggle:", Toggle);
|
|
5386
|
-
console.log(" Toggle type:", typeof Toggle);
|
|
5387
|
-
console.log(" Toggle $$typeof:", Toggle?.$$typeof);
|
|
5388
|
-
console.log(" PhoneInput:", PhoneInput);
|
|
5364
|
+
let PhoneInputTemp = PhoneInputModule;
|
|
5365
|
+
let unwrapCount = 0;
|
|
5366
|
+
while (PhoneInputTemp && typeof PhoneInputTemp === "object" && PhoneInputTemp.default && unwrapCount < 5) {
|
|
5367
|
+
console.log(`🔧 Unwrapping PhoneInput layer ${unwrapCount}:`, PhoneInputTemp);
|
|
5368
|
+
PhoneInputTemp = PhoneInputTemp.default;
|
|
5369
|
+
unwrapCount++;
|
|
5370
|
+
}
|
|
5371
|
+
const PhoneInput = PhoneInputTemp;
|
|
5372
|
+
console.log("🔍 ==================== PhoneInput Final Check ====================");
|
|
5373
|
+
console.log(" Unwrap iterations:", unwrapCount);
|
|
5374
|
+
console.log(" PhoneInput FINAL:", PhoneInput);
|
|
5389
5375
|
console.log(" PhoneInput type:", typeof PhoneInput);
|
|
5390
5376
|
console.log(" PhoneInput $$typeof:", PhoneInput?.$$typeof);
|
|
5377
|
+
console.log(" PhoneInput name:", PhoneInput?.name);
|
|
5391
5378
|
console.log(" PhoneInput displayName:", PhoneInput?.displayName);
|
|
5392
|
-
console.log("
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
}
|
|
5399
|
-
try {
|
|
5400
|
-
const testLabel = React.createElement(Field.Label, { children: "test" });
|
|
5401
|
-
console.log(" ✅ Field.Label createElement succeeded:", testLabel);
|
|
5402
|
-
} catch (e2) {
|
|
5403
|
-
console.error(" ❌ Field.Label createElement FAILED:", e2);
|
|
5404
|
-
}
|
|
5405
|
-
try {
|
|
5406
|
-
const testInput = React.createElement(TextInput, { value: "test" });
|
|
5407
|
-
console.log(" ✅ TextInput createElement succeeded:", testInput);
|
|
5408
|
-
} catch (e2) {
|
|
5409
|
-
console.error(" ❌ TextInput createElement FAILED:", e2);
|
|
5410
|
-
}
|
|
5411
|
-
try {
|
|
5412
|
-
const testToggle = React.createElement(Toggle, { checked: false });
|
|
5413
|
-
console.log(" ✅ Toggle createElement succeeded:", testToggle);
|
|
5414
|
-
} catch (e2) {
|
|
5415
|
-
console.error(" ❌ Toggle createElement FAILED:", e2);
|
|
5416
|
-
}
|
|
5417
|
-
console.log("🔍 ==================== UserFormFields Debug End ====================");
|
|
5379
|
+
console.log(" Is function?:", typeof PhoneInput === "function");
|
|
5380
|
+
console.log(
|
|
5381
|
+
" Is valid React component?:",
|
|
5382
|
+
typeof PhoneInput === "function" || PhoneInput && PhoneInput.$$typeof
|
|
5383
|
+
);
|
|
5384
|
+
console.log("🔍 ================================================================");
|
|
5418
5385
|
const StyledPhoneInputWrapper = styled.div`
|
|
5419
5386
|
width: 100%;
|
|
5420
5387
|
|
|
@@ -5569,19 +5536,6 @@ const UserFormFields = ({
|
|
|
5569
5536
|
isPasswordRequired = false,
|
|
5570
5537
|
hasBeenTouched = false
|
|
5571
5538
|
}) => {
|
|
5572
|
-
console.log("🎨 UserFormFields RENDER START");
|
|
5573
|
-
console.log(" Props received:", {
|
|
5574
|
-
userData,
|
|
5575
|
-
emailError,
|
|
5576
|
-
phoneError,
|
|
5577
|
-
showPasswordHint,
|
|
5578
|
-
isPasswordRequired,
|
|
5579
|
-
hasBeenTouched
|
|
5580
|
-
});
|
|
5581
|
-
console.log(" About to render Field.Root, type:", typeof Field.Root);
|
|
5582
|
-
console.log(" About to render TextInput, type:", typeof TextInput);
|
|
5583
|
-
console.log(" About to render Toggle, type:", typeof Toggle);
|
|
5584
|
-
console.log(" About to render PhoneInput, type:", typeof PhoneInput);
|
|
5585
5539
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5586
5540
|
/* @__PURE__ */ jsxs(
|
|
5587
5541
|
Field.Root,
|
|
@@ -5811,14 +5765,7 @@ const useUserForm = (initialData = {}) => {
|
|
|
5811
5765
|
isSubmitDisabled
|
|
5812
5766
|
};
|
|
5813
5767
|
};
|
|
5814
|
-
console.log("🔷 CreateUserForm - Component Imports:");
|
|
5815
|
-
console.log(" UserFormFields:", UserFormFields);
|
|
5816
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
5817
|
-
console.log(" UserFormFields $$typeof:", UserFormFields?.$$typeof);
|
|
5818
|
-
console.log(" UserFormLayout:", UserFormLayout);
|
|
5819
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
5820
5768
|
const CreateUserForm = () => {
|
|
5821
|
-
console.log("🔷 CreateUserForm RENDERING");
|
|
5822
5769
|
const [isLoading, setIsLoading] = useState(false);
|
|
5823
5770
|
const { toggleNotification } = useNotification();
|
|
5824
5771
|
const navigate = useNavigate();
|
|
@@ -5862,25 +5809,20 @@ const CreateUserForm = () => {
|
|
|
5862
5809
|
isSubmitButtonDisabled: isSubmitDisabled
|
|
5863
5810
|
}
|
|
5864
5811
|
),
|
|
5865
|
-
/* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(UserFormLayout, { children:
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
isPasswordRequired: true,
|
|
5880
|
-
hasBeenTouched
|
|
5881
|
-
}
|
|
5882
|
-
);
|
|
5883
|
-
})() }) })
|
|
5812
|
+
/* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(UserFormLayout, { children: /* @__PURE__ */ jsx(
|
|
5813
|
+
UserFormFields,
|
|
5814
|
+
{
|
|
5815
|
+
userData,
|
|
5816
|
+
onTextInputChange: handlers.onTextInputChange,
|
|
5817
|
+
onPhoneChange: handlers.onPhoneChange,
|
|
5818
|
+
onToggleInputChange: handlers.onToggleInputChange,
|
|
5819
|
+
onEmailBlur: handlers.onEmailBlur,
|
|
5820
|
+
emailError,
|
|
5821
|
+
phoneError,
|
|
5822
|
+
isPasswordRequired: true,
|
|
5823
|
+
hasBeenTouched
|
|
5824
|
+
}
|
|
5825
|
+
) }) })
|
|
5884
5826
|
] });
|
|
5885
5827
|
};
|
|
5886
5828
|
const PasswordResetButton = ({
|
|
@@ -5914,7 +5856,6 @@ const PasswordResetButton = ({
|
|
|
5914
5856
|
}
|
|
5915
5857
|
return button;
|
|
5916
5858
|
};
|
|
5917
|
-
console.log("🔶 EditUserForm - UserFormFields import:", UserFormFields, "type:", typeof UserFormFields);
|
|
5918
5859
|
const MetaWrapper = styled(Box)`
|
|
5919
5860
|
width: 100%;
|
|
5920
5861
|
display: flex;
|
|
@@ -6212,11 +6153,6 @@ const EditUserForm = ({ data }) => {
|
|
|
6212
6153
|
)
|
|
6213
6154
|
] });
|
|
6214
6155
|
};
|
|
6215
|
-
console.log("📤 forms/index.ts Re-export Debug:");
|
|
6216
|
-
console.log(" UserFormFields from import:", UserFormFields);
|
|
6217
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
6218
|
-
console.log(" UserFormLayout from import:", UserFormLayout);
|
|
6219
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
6220
6156
|
const EditView = () => {
|
|
6221
6157
|
const { id } = useParams();
|
|
6222
6158
|
const { toggleNotification } = useNotification();
|
|
@@ -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-
|
|
10
|
+
const index = require("./index-DHMYqfl3.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-
|
|
16
|
+
const api = require("./api-DzbiYzK4.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");
|
|
@@ -5385,60 +5385,27 @@ const HomePage = () => {
|
|
|
5385
5385
|
] })
|
|
5386
5386
|
] });
|
|
5387
5387
|
};
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
console.log(
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
console.log("
|
|
5397
|
-
console.log("
|
|
5398
|
-
console.log("
|
|
5399
|
-
console.log(" Field.Label type:", typeof designSystem.Field.Label);
|
|
5400
|
-
console.log(" Field.Label $$typeof:", designSystem.Field.Label?.$$typeof);
|
|
5401
|
-
console.log(" Field.Error:", designSystem.Field.Error);
|
|
5402
|
-
console.log(" Field.Error type:", typeof designSystem.Field.Error);
|
|
5403
|
-
console.log(" Field.Error $$typeof:", designSystem.Field.Error?.$$typeof);
|
|
5404
|
-
console.log(" Field.Hint:", designSystem.Field.Hint);
|
|
5405
|
-
console.log(" Field.Hint type:", typeof designSystem.Field.Hint);
|
|
5406
|
-
console.log(" TextInput:", designSystem.TextInput);
|
|
5407
|
-
console.log(" TextInput type:", typeof designSystem.TextInput);
|
|
5408
|
-
console.log(" TextInput $$typeof:", designSystem.TextInput?.$$typeof);
|
|
5409
|
-
console.log(" Toggle:", designSystem.Toggle);
|
|
5410
|
-
console.log(" Toggle type:", typeof designSystem.Toggle);
|
|
5411
|
-
console.log(" Toggle $$typeof:", designSystem.Toggle?.$$typeof);
|
|
5412
|
-
console.log(" PhoneInput:", PhoneInput);
|
|
5388
|
+
let PhoneInputTemp = PhoneInputModule__namespace;
|
|
5389
|
+
let unwrapCount = 0;
|
|
5390
|
+
while (PhoneInputTemp && typeof PhoneInputTemp === "object" && PhoneInputTemp.default && unwrapCount < 5) {
|
|
5391
|
+
console.log(`🔧 Unwrapping PhoneInput layer ${unwrapCount}:`, PhoneInputTemp);
|
|
5392
|
+
PhoneInputTemp = PhoneInputTemp.default;
|
|
5393
|
+
unwrapCount++;
|
|
5394
|
+
}
|
|
5395
|
+
const PhoneInput = PhoneInputTemp;
|
|
5396
|
+
console.log("🔍 ==================== PhoneInput Final Check ====================");
|
|
5397
|
+
console.log(" Unwrap iterations:", unwrapCount);
|
|
5398
|
+
console.log(" PhoneInput FINAL:", PhoneInput);
|
|
5413
5399
|
console.log(" PhoneInput type:", typeof PhoneInput);
|
|
5414
5400
|
console.log(" PhoneInput $$typeof:", PhoneInput?.$$typeof);
|
|
5401
|
+
console.log(" PhoneInput name:", PhoneInput?.name);
|
|
5415
5402
|
console.log(" PhoneInput displayName:", PhoneInput?.displayName);
|
|
5416
|
-
console.log("
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
}
|
|
5423
|
-
try {
|
|
5424
|
-
const testLabel = React__default.default.createElement(designSystem.Field.Label, { children: "test" });
|
|
5425
|
-
console.log(" ✅ Field.Label createElement succeeded:", testLabel);
|
|
5426
|
-
} catch (e2) {
|
|
5427
|
-
console.error(" ❌ Field.Label createElement FAILED:", e2);
|
|
5428
|
-
}
|
|
5429
|
-
try {
|
|
5430
|
-
const testInput = React__default.default.createElement(designSystem.TextInput, { value: "test" });
|
|
5431
|
-
console.log(" ✅ TextInput createElement succeeded:", testInput);
|
|
5432
|
-
} catch (e2) {
|
|
5433
|
-
console.error(" ❌ TextInput createElement FAILED:", e2);
|
|
5434
|
-
}
|
|
5435
|
-
try {
|
|
5436
|
-
const testToggle = React__default.default.createElement(designSystem.Toggle, { checked: false });
|
|
5437
|
-
console.log(" ✅ Toggle createElement succeeded:", testToggle);
|
|
5438
|
-
} catch (e2) {
|
|
5439
|
-
console.error(" ❌ Toggle createElement FAILED:", e2);
|
|
5440
|
-
}
|
|
5441
|
-
console.log("🔍 ==================== UserFormFields Debug End ====================");
|
|
5403
|
+
console.log(" Is function?:", typeof PhoneInput === "function");
|
|
5404
|
+
console.log(
|
|
5405
|
+
" Is valid React component?:",
|
|
5406
|
+
typeof PhoneInput === "function" || PhoneInput && PhoneInput.$$typeof
|
|
5407
|
+
);
|
|
5408
|
+
console.log("🔍 ================================================================");
|
|
5442
5409
|
const StyledPhoneInputWrapper = styled__default.default.div`
|
|
5443
5410
|
width: 100%;
|
|
5444
5411
|
|
|
@@ -5593,19 +5560,6 @@ const UserFormFields = ({
|
|
|
5593
5560
|
isPasswordRequired = false,
|
|
5594
5561
|
hasBeenTouched = false
|
|
5595
5562
|
}) => {
|
|
5596
|
-
console.log("🎨 UserFormFields RENDER START");
|
|
5597
|
-
console.log(" Props received:", {
|
|
5598
|
-
userData,
|
|
5599
|
-
emailError,
|
|
5600
|
-
phoneError,
|
|
5601
|
-
showPasswordHint,
|
|
5602
|
-
isPasswordRequired,
|
|
5603
|
-
hasBeenTouched
|
|
5604
|
-
});
|
|
5605
|
-
console.log(" About to render Field.Root, type:", typeof designSystem.Field.Root);
|
|
5606
|
-
console.log(" About to render TextInput, type:", typeof designSystem.TextInput);
|
|
5607
|
-
console.log(" About to render Toggle, type:", typeof designSystem.Toggle);
|
|
5608
|
-
console.log(" About to render PhoneInput, type:", typeof PhoneInput);
|
|
5609
5563
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5610
5564
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5611
5565
|
designSystem.Field.Root,
|
|
@@ -5835,14 +5789,7 @@ const useUserForm = (initialData = {}) => {
|
|
|
5835
5789
|
isSubmitDisabled
|
|
5836
5790
|
};
|
|
5837
5791
|
};
|
|
5838
|
-
console.log("🔷 CreateUserForm - Component Imports:");
|
|
5839
|
-
console.log(" UserFormFields:", UserFormFields);
|
|
5840
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
5841
|
-
console.log(" UserFormFields $$typeof:", UserFormFields?.$$typeof);
|
|
5842
|
-
console.log(" UserFormLayout:", UserFormLayout);
|
|
5843
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
5844
5792
|
const CreateUserForm = () => {
|
|
5845
|
-
console.log("🔷 CreateUserForm RENDERING");
|
|
5846
5793
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
5847
5794
|
const { toggleNotification } = admin.useNotification();
|
|
5848
5795
|
const navigate = reactRouterDom.useNavigate();
|
|
@@ -5886,25 +5833,20 @@ const CreateUserForm = () => {
|
|
|
5886
5833
|
isSubmitButtonDisabled: isSubmitDisabled
|
|
5887
5834
|
}
|
|
5888
5835
|
),
|
|
5889
|
-
/* @__PURE__ */ jsxRuntime.jsx(admin.Layouts.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(UserFormLayout, { children:
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
isPasswordRequired: true,
|
|
5904
|
-
hasBeenTouched
|
|
5905
|
-
}
|
|
5906
|
-
);
|
|
5907
|
-
})() }) })
|
|
5836
|
+
/* @__PURE__ */ jsxRuntime.jsx(admin.Layouts.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(UserFormLayout, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5837
|
+
UserFormFields,
|
|
5838
|
+
{
|
|
5839
|
+
userData,
|
|
5840
|
+
onTextInputChange: handlers.onTextInputChange,
|
|
5841
|
+
onPhoneChange: handlers.onPhoneChange,
|
|
5842
|
+
onToggleInputChange: handlers.onToggleInputChange,
|
|
5843
|
+
onEmailBlur: handlers.onEmailBlur,
|
|
5844
|
+
emailError,
|
|
5845
|
+
phoneError,
|
|
5846
|
+
isPasswordRequired: true,
|
|
5847
|
+
hasBeenTouched
|
|
5848
|
+
}
|
|
5849
|
+
) }) })
|
|
5908
5850
|
] });
|
|
5909
5851
|
};
|
|
5910
5852
|
const PasswordResetButton = ({
|
|
@@ -5938,7 +5880,6 @@ const PasswordResetButton = ({
|
|
|
5938
5880
|
}
|
|
5939
5881
|
return button;
|
|
5940
5882
|
};
|
|
5941
|
-
console.log("🔶 EditUserForm - UserFormFields import:", UserFormFields, "type:", typeof UserFormFields);
|
|
5942
5883
|
const MetaWrapper = styled__default.default(designSystem.Box)`
|
|
5943
5884
|
width: 100%;
|
|
5944
5885
|
display: flex;
|
|
@@ -6236,11 +6177,6 @@ const EditUserForm = ({ data }) => {
|
|
|
6236
6177
|
)
|
|
6237
6178
|
] });
|
|
6238
6179
|
};
|
|
6239
|
-
console.log("📤 forms/index.ts Re-export Debug:");
|
|
6240
|
-
console.log(" UserFormFields from import:", UserFormFields);
|
|
6241
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
6242
|
-
console.log(" UserFormLayout from import:", UserFormLayout);
|
|
6243
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
6244
6180
|
const EditView = () => {
|
|
6245
6181
|
const { id } = reactRouterDom.useParams();
|
|
6246
6182
|
const { toggleNotification } = admin.useNotification();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getFetchClient } from "@strapi/strapi/admin";
|
|
2
|
-
import { P as PLUGIN_ID } from "./index-
|
|
2
|
+
import { P as PLUGIN_ID } from "./index-4s0RQKAx.mjs";
|
|
3
3
|
const saveFirebaseConfig = async (json, firebaseWebApiKey, passwordConfig) => {
|
|
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-
|
|
3
|
+
const index = require("./index-DHMYqfl3.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();
|
|
@@ -738,7 +738,7 @@ const index = {
|
|
|
738
738
|
id: `${PLUGIN_ID}.page.title`,
|
|
739
739
|
defaultMessage: PLUGIN_ID
|
|
740
740
|
},
|
|
741
|
-
Component: () => import("./App-
|
|
741
|
+
Component: () => import("./App-C0XJYDQh.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-
|
|
763
|
+
const component = await import("./index-B8sQntQh.mjs");
|
|
764
764
|
return component.default;
|
|
765
765
|
},
|
|
766
766
|
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-
|
|
5
|
+
import { g as getFirebaseConfig, s as saveFirebaseConfig, d as delFirebaseConfig, a as savePasswordSettings } from "./api-CM79I13t.mjs";
|
|
6
6
|
import { useNavigate } from "react-router-dom";
|
|
7
7
|
function SettingsPage() {
|
|
8
8
|
const { toggleNotification } = useNotification();
|
|
@@ -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-
|
|
742
|
+
Component: () => Promise.resolve().then(() => require("./App-COMAshYj.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-
|
|
764
|
+
const component = await Promise.resolve().then(() => require("./index-DyXjIUy8.js"));
|
|
765
765
|
return component.default;
|
|
766
766
|
},
|
|
767
767
|
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-
|
|
7
|
+
const api = require("./api-DzbiYzK4.js");
|
|
8
8
|
const reactRouterDom = require("react-router-dom");
|
|
9
9
|
function SettingsPage() {
|
|
10
10
|
const { toggleNotification } = admin.useNotification();
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { UserFormFields as UserFormFieldsImport } from "./shared/UserFormFields/UserFormFields";
|
|
2
|
-
import { UserFormLayout as UserFormLayoutImport } from "./shared/UserFormLayout/UserFormLayout";
|
|
3
1
|
export { default as CreateUserForm } from "./CreateUserForm/CreateUserForm";
|
|
4
2
|
export { default as EditUserForm } from "./EditUserForm/EditUserForm";
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
3
|
+
export { UserFormFields } from "./shared/UserFormFields/UserFormFields";
|
|
4
|
+
export { UserFormLayout } from "./shared/UserFormLayout/UserFormLayout";
|