@rebasepro/client-firebase 0.0.1-canary.eae7889 → 0.0.1-canary.f81da60

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 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, parentCollectionIds) {
552
- if (!parentCollectionIds) return stripCollectionPath(idOrPath);
553
- return [...parentCollectionIds.map(stripCollectionPath), stripCollectionPath(idOrPath)].join(COLLECTION_PATH_SEPARATOR);
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 (!equal(newRoles, roles)) {
1887
+ if (!deepEqual(newRoles, roles)) {
1889
1888
  setRoles(newRoles);
1890
1889
  }
1891
1890
  } catch (e) {