@rebasepro/client-firebase 0.1.2 → 0.2.3
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/components/FirebaseLoginView.d.ts +1 -1
- package/dist/index.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +31 -16
- package/src/components/FirebaseLoginView.tsx +26 -14
- package/src/components/RebaseFirebaseApp.tsx +2 -2
- package/src/hooks/useBuildUserManagement.tsx +6 -5
- package/src/utils/local_text_search_controller.ts +1 -1
package/dist/index.es.js
CHANGED
|
@@ -15,9 +15,8 @@ import { removeUndefined } from "@rebasepro/utils";
|
|
|
15
15
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { useModeController, ErrorView, useSnackbarController, RebaseLogo, useBrowserTitleAndIcon, useBuildModeController, useBuildAdminModeController, useBuildLocalConfigurationPersistence, useValidateAuthenticator, RebaseRoutes, Rebase, AdminModeControllerProvider, SnackbarProvider, ModeControllerProvider } from "@rebasepro/core";
|
|
17
17
|
import { useBuildCollectionRegistryController, useBuildUrlController, useBuildNavigationStateController, NavigationStateContext, UrlContext, CollectionRegistryContext, SideEntityProvider, RebaseRoute, Scaffold, AppBar, Drawer, SideDialogs } from "@rebasepro/admin";
|
|
18
|
-
import { iconSize, Button, cls, IconButton, Typography, TextField, CircularProgress, LoadingButton, CircularProgressCenter, CenteredView } from "@rebasepro/ui";
|
|
18
|
+
import { MailIcon, iconSize, PhoneIcon, UserIcon, Button, cls, IconButton, ArrowLeftIcon, Typography, TextField, CircularProgress, LoadingButton, CircularProgressCenter, CenteredView } from "@rebasepro/ui";
|
|
19
19
|
import { Navigate, Route, Outlet } from "react-router-dom";
|
|
20
|
-
import { MailIcon, PhoneIcon, UserIcon, ArrowLeftIcon } from "lucide-react";
|
|
21
20
|
const useFirebaseAuthController = ({
|
|
22
21
|
loading,
|
|
23
22
|
firebaseApp,
|
|
@@ -754,7 +753,7 @@ const localSearchControllerBuilder = ({
|
|
|
754
753
|
destroyListener(currentPath);
|
|
755
754
|
}
|
|
756
755
|
currentPath = path;
|
|
757
|
-
return new Promise(
|
|
756
|
+
return new Promise((resolve, reject) => {
|
|
758
757
|
if (collectionProp) {
|
|
759
758
|
console.debug("Init local search controller", path);
|
|
760
759
|
const firestore = databaseId ? getFirestore(firebaseApp, databaseId) : getFirestore(firebaseApp);
|
|
@@ -2106,11 +2105,12 @@ function useBuildUserManagement({
|
|
|
2106
2105
|
const entitiesToUsers = (docs) => {
|
|
2107
2106
|
return docs.map((doc2) => {
|
|
2108
2107
|
const data = doc2.values;
|
|
2108
|
+
const record = data;
|
|
2109
2109
|
const newVar = {
|
|
2110
2110
|
uid: doc2.id,
|
|
2111
2111
|
...data,
|
|
2112
|
-
created_on:
|
|
2113
|
-
updated_on:
|
|
2112
|
+
created_on: record.created_on,
|
|
2113
|
+
updated_on: record.updated_on
|
|
2114
2114
|
};
|
|
2115
2115
|
return newVar;
|
|
2116
2116
|
});
|
|
@@ -2533,7 +2533,7 @@ function LoginForm({
|
|
|
2533
2533
|
useEffect(() => {
|
|
2534
2534
|
if (!document) return;
|
|
2535
2535
|
const escFunction = (event) => {
|
|
2536
|
-
if (event.
|
|
2536
|
+
if (event.key === "Escape") {
|
|
2537
2537
|
onClose();
|
|
2538
2538
|
}
|
|
2539
2539
|
};
|
|
@@ -2599,7 +2599,7 @@ function LoginForm({
|
|
|
2599
2599
|
});
|
|
2600
2600
|
} catch (e) {
|
|
2601
2601
|
snackbarController.open({
|
|
2602
|
-
message: e.message,
|
|
2602
|
+
message: e instanceof Error ? e.message : String(e),
|
|
2603
2603
|
type: "error"
|
|
2604
2604
|
});
|
|
2605
2605
|
}
|