@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.
- package/dist/components/FirebaseLoginView.d.ts +1 -1
- package/dist/components/RebaseFirebaseAppProps.d.ts +1 -1
- package/dist/hooks/useAppCheck.d.ts +1 -1
- package/dist/hooks/useFirebaseAuthController.d.ts +1 -1
- package/dist/hooks/useFirebaseRealTimeDBDelegate.d.ts +1 -1
- package/dist/hooks/useFirebaseStorageSource.d.ts +1 -1
- package/dist/hooks/useFirestoreDriver.d.ts +2 -2
- package/dist/hooks/useInitialiseFirebase.d.ts +1 -1
- package/dist/hooks/useRecaptcha.d.ts +1 -1
- package/dist/index.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/types/appcheck.d.ts +1 -1
- package/dist/types/auth.d.ts +1 -1
- package/dist/types/text_search.d.ts +2 -2
- package/dist/utils/collections_firestore.d.ts +1 -1
- package/dist/utils/database.d.ts +1 -1
- package/dist/utils/pinecone.d.ts +1 -1
- package/package.json +9 -8
- package/src/components/FirebaseLoginView.tsx +2 -2
- package/src/components/RebaseFirebaseApp.tsx +1 -1
- package/src/components/RebaseFirebaseAppProps.tsx +1 -1
- package/src/hooks/useAppCheck.ts +2 -2
- package/src/hooks/useFirebaseAuthController.ts +2 -2
- package/src/hooks/useFirebaseRealTimeDBDelegate.ts +2 -2
- package/src/hooks/useFirebaseStorageSource.ts +2 -2
- package/src/hooks/useFirestoreDriver.ts +5 -5
- package/src/hooks/useInitialiseFirebase.ts +1 -1
- package/src/hooks/useRecaptcha.tsx +1 -1
- package/src/types/appcheck.ts +1 -1
- package/src/types/auth.tsx +1 -1
- package/src/types/text_search.ts +2 -2
- package/src/utils/collections_firestore.ts +1 -1
- package/src/utils/database.ts +2 -2
- package/src/utils/local_text_search_controller.ts +2 -2
- package/src/utils/pinecone.ts +1 -1
- package/src/utils/rebase_search_controller.ts +2 -2
package/dist/types/appcheck.d.ts
CHANGED
package/dist/types/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationVerifier, ConfirmationResult, User as FirebaseUser } from "
|
|
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 "
|
|
2
|
-
import { FirebaseApp } from "
|
|
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 "
|
|
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[];
|
package/dist/utils/database.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FirebaseApp } from "
|
|
1
|
+
import { FirebaseApp } from "firebase/app";
|
|
2
2
|
export declare function getFirestoreDataInPath(firebaseApp: FirebaseApp, path: string, parentPaths: string[], limit: number): Promise<object[]>;
|
package/dist/utils/pinecone.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/firebase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
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
|
|
17
|
-
"@rebasepro/admin": "0.
|
|
18
|
-
"@rebasepro/app": "0.
|
|
19
|
-
"@rebasepro/
|
|
20
|
-
"@rebasepro/
|
|
21
|
-
"@rebasepro/
|
|
22
|
-
"@rebasepro/
|
|
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 "
|
|
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 "
|
|
28
|
+
} from "firebase/auth";
|
|
29
29
|
import type {
|
|
30
30
|
FirebaseAuthController,
|
|
31
31
|
FirebaseSignInOption,
|
|
@@ -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 "
|
|
7
|
+
import { FirebaseApp } from "firebase/app";
|
|
8
8
|
import { FirebaseLoginViewProps } from "./FirebaseLoginView";
|
|
9
9
|
import {
|
|
10
10
|
AppCheckOptions,
|
package/src/hooks/useAppCheck.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef } from "react";
|
|
2
2
|
|
|
3
|
-
import { AppCheck, getToken, initializeAppCheck } from "
|
|
4
|
-
import { FirebaseApp } from "
|
|
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 "
|
|
25
|
-
import { FirebaseApp } from "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
32
|
-
import type { FieldValue } from "
|
|
33
|
-
import { FirebaseApp } from "
|
|
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 "
|
|
37
|
+
import { getAuth } from "firebase/auth";
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* @group Firebase
|
package/src/types/appcheck.ts
CHANGED
package/src/types/auth.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationVerifier, ConfirmationResult, User as FirebaseUser } from "
|
|
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";
|
package/src/types/text_search.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { User as FirebaseUser } from "
|
|
2
|
-
import { FirebaseApp } from "
|
|
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 "
|
|
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
|
|
package/src/utils/database.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FirebaseApp } from "
|
|
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 "
|
|
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 "
|
|
1
|
+
import { collection, getFirestore, onSnapshot, query } from "firebase/firestore";
|
|
2
2
|
import Fuse from "fuse.js"
|
|
3
3
|
|
|
4
|
-
import { FirebaseApp } from "
|
|
4
|
+
import { FirebaseApp } from "firebase/app";
|
|
5
5
|
import { CollectionConfig } from "@rebasepro/types";
|
|
6
6
|
import { FirestoreTextSearchController, FirestoreTextSearchControllerBuilder } from "../types";
|
|
7
7
|
|
package/src/utils/pinecone.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FirestoreTextSearchController, FirestoreTextSearchControllerBuilder } from "../types";
|
|
2
|
-
import { FirebaseApp } from "
|
|
3
|
-
import { getFunctions, httpsCallable } from "
|
|
2
|
+
import { FirebaseApp } from "firebase/app";
|
|
3
|
+
import { getFunctions, httpsCallable } from "firebase/functions";
|
|
4
4
|
import { CollectionConfig } from "@rebasepro/types";
|
|
5
5
|
|
|
6
6
|
/**
|