@rebasepro/client-firebase 0.0.1-canary.eae7889 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +4 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/utils/collections_firestore.d.ts +1 -1
- package/package.json +7 -8
- package/src/components/FirebaseLoginView.tsx +2 -2
- package/src/components/RebaseFirebaseApp.tsx +1 -1
- package/src/hooks/useBuildUserManagement.tsx +1 -1
- package/src/utils/collections_firestore.ts +3 -3
package/dist/index.es.js
CHANGED
|
@@ -11,7 +11,6 @@ import Fuse from "fuse.js";
|
|
|
11
11
|
import { getFunctions, httpsCallable } from "@firebase/functions";
|
|
12
12
|
import { c } from "react-compiler-runtime";
|
|
13
13
|
import { getDatabase, query as query$1, ref as ref$1, orderByKey, startAt, limitToFirst, get, onValue, push, set, remove, orderByChild } from "@firebase/database";
|
|
14
|
-
import equal from "react-fast-compare";
|
|
15
14
|
import { removeUndefined } from "@rebasepro/utils";
|
|
16
15
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
17
16
|
import { useModeController, ErrorView, useSnackbarController, RebaseLogo, useBrowserTitleAndIcon, useBuildModeController, useBuildAdminModeController, useBuildLocalConfigurationPersistence, useValidateAuthenticator, RebaseRoutes, Rebase, AdminModeControllerProvider, SnackbarProvider, ModeControllerProvider } from "@rebasepro/core";
|
|
@@ -548,9 +547,9 @@ function removeCurrentAppCheckDiv() {
|
|
|
548
547
|
div.remove();
|
|
549
548
|
}
|
|
550
549
|
}
|
|
551
|
-
function buildCollectionId(idOrPath,
|
|
552
|
-
if (!
|
|
553
|
-
return [...
|
|
550
|
+
function buildCollectionId(idOrPath, parentCollectionSlugs, parentEntityIds) {
|
|
551
|
+
if (!parentCollectionSlugs) return stripCollectionPath(idOrPath);
|
|
552
|
+
return [...parentCollectionSlugs.map(stripCollectionPath), stripCollectionPath(idOrPath)].join(COLLECTION_PATH_SEPARATOR);
|
|
554
553
|
}
|
|
555
554
|
const docsToCollectionTree = (docs) => {
|
|
556
555
|
const collectionsMap = docs.map((doc2) => {
|
|
@@ -1885,7 +1884,7 @@ function useBuildUserManagement({
|
|
|
1885
1884
|
console.debug("Updating roles", entities);
|
|
1886
1885
|
try {
|
|
1887
1886
|
const newRoles = entityToRoles(entities);
|
|
1888
|
-
if (!
|
|
1887
|
+
if (!deepEqual(newRoles, roles)) {
|
|
1889
1888
|
setRoles(newRoles);
|
|
1890
1889
|
}
|
|
1891
1890
|
} catch (e) {
|