@rebasepro/firebase 0.11.1-canary.gfd39654 → 0.12.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.
Files changed (36) hide show
  1. package/dist/components/FirebaseLoginView.d.ts +1 -1
  2. package/dist/components/RebaseFirebaseAppProps.d.ts +1 -1
  3. package/dist/hooks/useAppCheck.d.ts +1 -1
  4. package/dist/hooks/useFirebaseAuthController.d.ts +1 -1
  5. package/dist/hooks/useFirebaseRealTimeDBDelegate.d.ts +1 -1
  6. package/dist/hooks/useFirebaseStorageSource.d.ts +1 -1
  7. package/dist/hooks/useFirestoreDriver.d.ts +2 -2
  8. package/dist/hooks/useInitialiseFirebase.d.ts +1 -1
  9. package/dist/hooks/useRecaptcha.d.ts +1 -1
  10. package/dist/index.es.js +7 -7
  11. package/dist/index.es.js.map +1 -1
  12. package/dist/types/appcheck.d.ts +1 -1
  13. package/dist/types/auth.d.ts +1 -1
  14. package/dist/types/text_search.d.ts +2 -2
  15. package/dist/utils/collections_firestore.d.ts +1 -1
  16. package/dist/utils/database.d.ts +1 -1
  17. package/dist/utils/pinecone.d.ts +1 -1
  18. package/package.json +9 -8
  19. package/src/components/FirebaseLoginView.tsx +2 -2
  20. package/src/components/RebaseFirebaseApp.tsx +1 -1
  21. package/src/components/RebaseFirebaseAppProps.tsx +1 -1
  22. package/src/hooks/useAppCheck.ts +2 -2
  23. package/src/hooks/useFirebaseAuthController.ts +2 -2
  24. package/src/hooks/useFirebaseRealTimeDBDelegate.ts +2 -2
  25. package/src/hooks/useFirebaseStorageSource.ts +2 -2
  26. package/src/hooks/useFirestoreDriver.ts +5 -5
  27. package/src/hooks/useInitialiseFirebase.ts +1 -1
  28. package/src/hooks/useRecaptcha.tsx +1 -1
  29. package/src/types/appcheck.ts +1 -1
  30. package/src/types/auth.tsx +1 -1
  31. package/src/types/text_search.ts +2 -2
  32. package/src/utils/collections_firestore.ts +1 -1
  33. package/src/utils/database.ts +2 -2
  34. package/src/utils/local_text_search_controller.ts +2 -2
  35. package/src/utils/pinecone.ts +1 -1
  36. package/src/utils/rebase_search_controller.ts +2 -2
@@ -1,4 +1,4 @@
1
- import { CustomProvider, ReCaptchaEnterpriseProvider, ReCaptchaV3Provider } from "@firebase/app-check";
1
+ import { CustomProvider, ReCaptchaEnterpriseProvider, ReCaptchaV3Provider } from "firebase/app-check";
2
2
  /**
3
3
  * @group Firebase
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ApplicationVerifier, ConfirmationResult, User as FirebaseUser } from "@firebase/auth";
1
+ import { ApplicationVerifier, ConfirmationResult, User as FirebaseUser } from "firebase/auth";
2
2
  import type { User } from "@rebasepro/types";
3
3
  import type { AuthController } from "@rebasepro/admin-types";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { User as FirebaseUser } from "@firebase/auth";
2
- import { FirebaseApp } from "@firebase/app";
1
+ import { User as FirebaseUser } from "firebase/auth";
2
+ import { FirebaseApp } from "firebase/app";
3
3
  import { CollectionConfig } from "@rebasepro/types";
4
4
  export type FirestoreTextSearchControllerBuilder = (props: {
5
5
  firebaseApp: FirebaseApp;
@@ -1,4 +1,4 @@
1
- import { DocumentSnapshot } from "@firebase/firestore";
1
+ import { DocumentSnapshot } from "firebase/firestore";
2
2
  import { CollectionConfig } from "@rebasepro/types";
3
3
  export declare function buildCollectionId(idOrPath: string, parentCollectionSlugs?: string[], parentEntityIds?: string[]): string;
4
4
  export declare const docsToCollectionTree: (docs: DocumentSnapshot[]) => CollectionConfig[];
@@ -1,2 +1,2 @@
1
- import { FirebaseApp } from "@firebase/app";
1
+ import { FirebaseApp } from "firebase/app";
2
2
  export declare function getFirestoreDataInPath(firebaseApp: FirebaseApp, path: string, parentPaths: string[], limit: number): Promise<object[]>;
@@ -1,4 +1,4 @@
1
- import { User as FirebaseUser } from "@firebase/auth";
1
+ import { User as FirebaseUser } from "firebase/auth";
2
2
  import { FirestoreTextSearchControllerBuilder } from "../types";
3
3
  /**
4
4
  * Utility function to perform a text search in an algolia index,
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@rebasepro/firebase",
3
3
  "type": "module",
4
- "version": "0.11.1-canary.gfd39654",
4
+ "version": "0.12.0",
5
+ "license": "MIT",
5
6
  "publishConfig": {
6
7
  "access": "public"
7
8
  },
@@ -13,13 +14,13 @@
13
14
  "fast-equals": "6.0.0",
14
15
  "fuse.js": "^7.4.2",
15
16
  "react-router-dom": "^7.17.0",
16
- "@rebasepro/admin-types": "0.11.1-canary.gfd39654",
17
- "@rebasepro/admin": "0.11.1-canary.gfd39654",
18
- "@rebasepro/app": "0.11.1-canary.gfd39654",
19
- "@rebasepro/types": "0.11.1-canary.gfd39654",
20
- "@rebasepro/ui": "0.11.1-canary.gfd39654",
21
- "@rebasepro/common": "0.11.1-canary.gfd39654",
22
- "@rebasepro/utils": "0.11.1-canary.gfd39654"
17
+ "@rebasepro/admin": "0.12.0",
18
+ "@rebasepro/admin-types": "0.12.0",
19
+ "@rebasepro/app": "0.12.0",
20
+ "@rebasepro/common": "0.12.0",
21
+ "@rebasepro/types": "0.12.0",
22
+ "@rebasepro/utils": "0.12.0",
23
+ "@rebasepro/ui": "0.12.0"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "firebase": "^10.12.2 || ^11.0.0 || ^12.0.0",
@@ -1,7 +1,7 @@
1
1
 
2
2
  import React, { ReactNode, useCallback, useEffect, useRef, useState } from "react";
3
3
 
4
- import { FirebaseApp, FirebaseError } from "@firebase/app";
4
+ import { FirebaseApp, FirebaseError } from "firebase/app";
5
5
  import { ErrorView, RebaseLogo, useModeController, useSnackbarController } from "@rebasepro/app";
6
6
  import {
7
7
  ArrowLeftIcon,
@@ -25,7 +25,7 @@ import {
25
25
  PhoneAuthProvider,
26
26
  PhoneMultiFactorGenerator,
27
27
  RecaptchaVerifier
28
- } from "@firebase/auth";
28
+ } from "firebase/auth";
29
29
  import type {
30
30
  FirebaseAuthController,
31
31
  FirebaseSignInOption,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { GoogleAuthProvider } from "@firebase/auth";
2
+ import { GoogleAuthProvider } from "firebase/auth";
3
3
 
4
4
  import {
5
5
  Rebase,
@@ -4,7 +4,7 @@ import { CollectionConfig } from "@rebasepro/types";
4
4
  import { AnalyticsEvent, AppView, AppViewsBuilder, CollectionConfigsBuilder, RebasePlugin, Locale, PropertyConfig } from "@rebasepro/admin-types";
5
5
  import { FirebaseAccessGate } from "../hooks/useFirebaseAccessGate";
6
6
 
7
- import { FirebaseApp } from "@firebase/app";
7
+ import { FirebaseApp } from "firebase/app";
8
8
  import { FirebaseLoginViewProps } from "./FirebaseLoginView";
9
9
  import {
10
10
  AppCheckOptions,
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback, useEffect, useRef } from "react";
2
2
 
3
- import { AppCheck, getToken, initializeAppCheck } from "@firebase/app-check";
4
- import { FirebaseApp } from "@firebase/app";
3
+ import { AppCheck, getToken, initializeAppCheck } from "firebase/app-check";
4
+ import { FirebaseApp } from "firebase/app";
5
5
  import { AppCheckOptions } from "../types";
6
6
 
7
7
  /**
@@ -21,8 +21,8 @@ import {
21
21
  signOut,
22
22
  TwitterAuthProvider,
23
23
  User as FirebaseUser
24
- } from "@firebase/auth";
25
- import { FirebaseApp } from "@firebase/app";
24
+ } from "firebase/auth";
25
+ import { FirebaseApp } from "firebase/app";
26
26
  import { FirebaseAuthController, FirebaseSignInOption, FirebaseSignInProvider, FirebaseUserWrapper } from "../types";
27
27
  import type { User } from "@rebasepro/types";
28
28
 
@@ -1,4 +1,4 @@
1
- import { FirebaseApp } from "@firebase/app";
1
+ import { FirebaseApp } from "firebase/app";
2
2
  import {
3
3
  Database,
4
4
  get,
@@ -13,7 +13,7 @@ import {
13
13
  remove,
14
14
  set,
15
15
  startAt
16
- } from "@firebase/database";
16
+ } from "firebase/database";
17
17
  import { useCallback } from "react";
18
18
  import { DataDriver, DeleteProps, FetchCollectionProps, FetchOneProps, FilterValues, ListenCollectionProps, ListenOneProps, SaveProps } from "@rebasepro/types";
19
19
 
@@ -1,4 +1,4 @@
1
- import { FirebaseApp } from "@firebase/app";
1
+ import { FirebaseApp } from "firebase/app";
2
2
  import {
3
3
  deleteObject,
4
4
  getDownloadURL,
@@ -7,7 +7,7 @@ import {
7
7
  list,
8
8
  ref,
9
9
  uploadBytesResumable
10
- } from "@firebase/storage";
10
+ } from "firebase/storage";
11
11
  import { DownloadConfig, DownloadMetadata, StorageListResult, StorageSource, UploadFileProps } from "@rebasepro/types";
12
12
 
13
13
  /**
@@ -1,6 +1,6 @@
1
1
  import { DataDriver, DeleteProps, CollectionConfig, EntityReference, FetchCollectionProps, FetchOneProps, FilterValues, GeoPoint, ListenCollectionProps, ListenOneProps, SaveProps, WhereFilterOp } from "@rebasepro/types";
2
2
  import { FilterCombination } from "@rebasepro/admin-types";
3
- import { User } from "@firebase/auth";
3
+ import { User } from "firebase/auth";
4
4
  import {
5
5
  collection as collectionClause,
6
6
  CollectionReference,
@@ -28,13 +28,13 @@ import {
28
28
  VectorValue,
29
29
  vector,
30
30
  where as whereClause
31
- } from "@firebase/firestore";
32
- import type { FieldValue } from "@firebase/firestore";
33
- import { FirebaseApp } from "@firebase/app";
31
+ } from "firebase/firestore";
32
+ import type { FieldValue } from "firebase/firestore";
33
+ import { FirebaseApp } from "firebase/app";
34
34
  import { FirestoreTextSearchController, FirestoreTextSearchControllerBuilder } from "../types/text_search";
35
35
  import { useCallback, useEffect, useMemo, useRef } from "react";
36
36
  import { localSearchControllerBuilder } from "../utils";
37
- import { getAuth } from "@firebase/auth";
37
+ import { getAuth } from "firebase/auth";
38
38
 
39
39
  /**
40
40
  * @group Firebase
@@ -1,6 +1,6 @@
1
1
  import { useCallback, useEffect, useState } from "react";
2
2
 
3
- import { deleteApp, FirebaseApp, getApps, initializeApp } from "@firebase/app";
3
+ import { deleteApp, FirebaseApp, getApps, initializeApp } from "firebase/app";
4
4
 
5
5
  /**
6
6
  * @group Firebase
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from "react";
2
- import { getAuth, RecaptchaVerifier } from "@firebase/auth";
2
+ import { getAuth, RecaptchaVerifier } from "firebase/auth";
3
3
 
4
4
  declare global {
5
5
  interface Window {
@@ -1,4 +1,4 @@
1
- import { CustomProvider, ReCaptchaEnterpriseProvider, ReCaptchaV3Provider } from "@firebase/app-check";
1
+ import { CustomProvider, ReCaptchaEnterpriseProvider, ReCaptchaV3Provider } from "firebase/app-check";
2
2
 
3
3
  /**
4
4
  * @group Firebase
@@ -1,4 +1,4 @@
1
- import { ApplicationVerifier, ConfirmationResult, User as FirebaseUser } from "@firebase/auth";
1
+ import { ApplicationVerifier, ConfirmationResult, User as FirebaseUser } from "firebase/auth";
2
2
 
3
3
  import type { User } from "@rebasepro/types";
4
4
  import type { AuthController } from "@rebasepro/admin-types";
@@ -1,5 +1,5 @@
1
- import { User as FirebaseUser } from "@firebase/auth";
2
- import { FirebaseApp } from "@firebase/app";
1
+ import { User as FirebaseUser } from "firebase/auth";
2
+ import { FirebaseApp } from "firebase/app";
3
3
  import { CollectionConfig } from "@rebasepro/types";
4
4
 
5
5
  export type FirestoreTextSearchControllerBuilder = (props: {
@@ -1,4 +1,4 @@
1
- import { deleteField, DocumentSnapshot } from "@firebase/firestore";
1
+ import { deleteField, DocumentSnapshot } from "firebase/firestore";
2
2
  import { CollectionConfig, FirebaseCollectionConfig, Properties, Property } from "@rebasepro/types";
3
3
  import { COLLECTION_PATH_SEPARATOR, sortProperties, stripCollectionPath } from "@rebasepro/common";
4
4
 
@@ -1,4 +1,4 @@
1
- import { FirebaseApp } from "@firebase/app";
1
+ import { FirebaseApp } from "firebase/app";
2
2
  import {
3
3
  collection,
4
4
  getDocs,
@@ -6,7 +6,7 @@ import {
6
6
  limit as limitClause,
7
7
  query,
8
8
  QueryDocumentSnapshot
9
- } from "@firebase/firestore";
9
+ } from "firebase/firestore";
10
10
 
11
11
  export async function getFirestoreDataInPath(firebaseApp: FirebaseApp, path: string, parentPaths: string[], limit: number): Promise<object[]> {
12
12
  const firestore = getFirestore(firebaseApp);
@@ -1,7 +1,7 @@
1
- import { collection, getFirestore, onSnapshot, query } from "@firebase/firestore";
1
+ import { collection, getFirestore, onSnapshot, query } from "firebase/firestore";
2
2
  import Fuse from "fuse.js"
3
3
 
4
- import { FirebaseApp } from "@firebase/app";
4
+ import { FirebaseApp } from "firebase/app";
5
5
  import { CollectionConfig } from "@rebasepro/types";
6
6
  import { FirestoreTextSearchController, FirestoreTextSearchControllerBuilder } from "../types";
7
7
 
@@ -1,4 +1,4 @@
1
- import { User as FirebaseUser } from "@firebase/auth";
1
+ import { User as FirebaseUser } from "firebase/auth";
2
2
  import { FirestoreTextSearchController, FirestoreTextSearchControllerBuilder } from "../types";
3
3
  import { CollectionConfig } from "@rebasepro/types";
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { FirestoreTextSearchController, FirestoreTextSearchControllerBuilder } from "../types";
2
- import { FirebaseApp } from "@firebase/app";
3
- import { getFunctions, httpsCallable } from "@firebase/functions";
2
+ import { FirebaseApp } from "firebase/app";
3
+ import { getFunctions, httpsCallable } from "firebase/functions";
4
4
  import { CollectionConfig } from "@rebasepro/types";
5
5
 
6
6
  /**