@rebasepro/client-firebase 0.7.0 → 0.9.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/RebaseFirebaseAppProps.d.ts +2 -2
- package/dist/hooks/useBuildUserManagement.d.ts +1 -0
- package/dist/hooks/useFirestoreDriver.d.ts +3 -3
- package/dist/index.es.js +328 -313
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +326 -311
- package/dist/index.umd.js.map +1 -1
- package/dist/types/text_search.d.ts +3 -3
- package/dist/utils/collections_firestore.d.ts +3 -3
- package/package.json +19 -19
- package/src/components/RebaseFirebaseApp.tsx +10 -5
- package/src/components/RebaseFirebaseAppProps.tsx +2 -2
- package/src/hooks/useBuildUserManagement.tsx +27 -28
- package/src/hooks/useFirebaseRealTimeDBDelegate.ts +47 -52
- package/src/hooks/useFirebaseStorageSource.ts +2 -2
- package/src/hooks/useFirestoreDriver.ts +380 -355
- package/src/types/text_search.ts +3 -3
- package/src/utils/collections_firestore.ts +5 -5
- package/src/utils/database.ts +2 -2
- package/src/utils/local_text_search_controller.ts +6 -6
- package/src/utils/pinecone.ts +2 -2
- package/src/utils/rebase_search_controller.ts +3 -3
- package/src/utils/text_search_controller.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AnalyticsEvent, AppView, AppViewsBuilder,
|
|
2
|
+
import { AnalyticsEvent, AppView, AppViewsBuilder, CollectionConfig, CollectionConfigsBuilder, RebasePlugin, Locale, PropertyConfig } from "@rebasepro/types";
|
|
3
3
|
import { FirebaseAccessGate } from "../hooks/useFirebaseAccessGate";
|
|
4
4
|
import { FirebaseApp } from "@firebase/app";
|
|
5
5
|
import { FirebaseLoginViewProps } from "./FirebaseLoginView";
|
|
@@ -29,7 +29,7 @@ export type RebaseFirebaseAppProps = {
|
|
|
29
29
|
* Each of the navigation entries in this field
|
|
30
30
|
* generates an entry in the main menu.
|
|
31
31
|
*/
|
|
32
|
-
collections?:
|
|
32
|
+
collections?: CollectionConfig[] | CollectionConfigsBuilder;
|
|
33
33
|
/**
|
|
34
34
|
* Custom additional views created by the developer, added to the main
|
|
35
35
|
* navigation
|
|
@@ -70,6 +70,7 @@ export declare function useBuildUserManagement<CONTROLLER extends AuthController
|
|
|
70
70
|
photoURL: string | null;
|
|
71
71
|
providerId: string;
|
|
72
72
|
isAnonymous: boolean;
|
|
73
|
+
emailVerified?: boolean;
|
|
73
74
|
createdAt?: Date | string | null;
|
|
74
75
|
metadata?: Record<string, any>;
|
|
75
76
|
getIdToken?: (forceRefresh?: boolean) => Promise<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataDriver,
|
|
1
|
+
import { DataDriver, CollectionConfig, FilterCombination } from "@rebasepro/types";
|
|
2
2
|
import { Firestore } from "@firebase/firestore";
|
|
3
3
|
import { FirebaseApp } from "@firebase/app";
|
|
4
4
|
import { FirestoreTextSearchControllerBuilder } from "../types/text_search";
|
|
@@ -26,13 +26,13 @@ export interface FirestoreDataDriverProps {
|
|
|
26
26
|
}
|
|
27
27
|
export type FirestoreIndexesBuilder = (params: {
|
|
28
28
|
path: string;
|
|
29
|
-
collection:
|
|
29
|
+
collection: CollectionConfig<any>;
|
|
30
30
|
}) => FilterCombination<string>[] | undefined;
|
|
31
31
|
export type FirestoreDataDriver = DataDriver & {
|
|
32
32
|
initTextSearch: (props: {
|
|
33
33
|
path: string;
|
|
34
34
|
databaseId?: string;
|
|
35
|
-
collection?:
|
|
35
|
+
collection?: CollectionConfig;
|
|
36
36
|
}) => Promise<boolean>;
|
|
37
37
|
};
|
|
38
38
|
/**
|