@rebasepro/firebase 0.30.0 → 0.31.0-canary.g59cd6fd
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/README.md +13 -0
- package/dist/capabilities.d.ts +31 -0
- package/dist/collections/defineFirestoreCollection.d.ts +87 -0
- package/dist/collections/fields.d.ts +159 -0
- package/dist/collections/index.d.ts +2 -0
- package/dist/components/RebaseFirebaseAppProps.d.ts +1 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useFirebaseAccessGate.d.ts +2 -2
- package/dist/hooks/useFirestoreDataSource.d.ts +69 -0
- package/dist/hooks/useFirestoreDriver.d.ts +72 -7
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +348 -55
- package/dist/index.es.js.map +1 -1
- package/dist/types/text_search.d.ts +1 -1
- package/dist/utils/collections_firestore.d.ts +1 -1
- package/package.json +11 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { User as FirebaseUser } from "firebase/auth";
|
|
2
2
|
import { FirebaseApp } from "firebase/app";
|
|
3
|
-
import { CollectionConfig } from "@rebasepro/types";
|
|
3
|
+
import { CollectionConfig } from "@rebasepro/cms-types";
|
|
4
4
|
export type FirestoreTextSearchControllerBuilder = (props: {
|
|
5
5
|
firebaseApp: FirebaseApp;
|
|
6
6
|
}) => FirestoreTextSearchController;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentSnapshot } from "firebase/firestore";
|
|
2
|
-
import { CollectionConfig } from "@rebasepro/types";
|
|
2
|
+
import { CollectionConfig } from "@rebasepro/cms-types";
|
|
3
3
|
export declare function buildCollectionId(idOrPath: string, parentCollectionSlugs?: string[], parentEntityIds?: string[]): string;
|
|
4
4
|
export declare const docsToCollectionTree: (docs: DocumentSnapshot[]) => CollectionConfig[];
|
|
5
5
|
export declare const docToCollection: (doc: DocumentSnapshot) => CollectionConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/firebase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0-canary.g59cd6fd",
|
|
4
4
|
"description": "Firebase data source for Rebase — run the Rebase admin panel and SDK against Firestore.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rebase",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"fast-equals": "6.0.2",
|
|
34
34
|
"fuse.js": "^7.5.0",
|
|
35
35
|
"react-router": "^8.3.0",
|
|
36
|
-
"@rebasepro/
|
|
37
|
-
"@rebasepro/
|
|
38
|
-
"@rebasepro/
|
|
39
|
-
"@rebasepro/
|
|
40
|
-
"@rebasepro/
|
|
41
|
-
"@rebasepro/
|
|
42
|
-
"@rebasepro/
|
|
36
|
+
"@rebasepro/cms-types": "0.31.0-canary.g59cd6fd",
|
|
37
|
+
"@rebasepro/cms": "0.31.0-canary.g59cd6fd",
|
|
38
|
+
"@rebasepro/common": "0.31.0-canary.g59cd6fd",
|
|
39
|
+
"@rebasepro/utils": "0.31.0-canary.g59cd6fd",
|
|
40
|
+
"@rebasepro/ui": "0.31.0-canary.g59cd6fd",
|
|
41
|
+
"@rebasepro/types": "0.31.0-canary.g59cd6fd",
|
|
42
|
+
"@rebasepro/app": "0.31.0-canary.g59cd6fd"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"firebase": "^10.12.2 || ^11.0.0 || ^12.0.0",
|
|
@@ -107,8 +107,10 @@
|
|
|
107
107
|
],
|
|
108
108
|
"testEnvironment": "node",
|
|
109
109
|
"moduleNameMapper": {
|
|
110
|
+
"^@rebasepro/common/migrate$": "<rootDir>/../common/src/migrate/index.ts",
|
|
110
111
|
"^@rebasepro/([a-z0-9-]+)$": "<rootDir>/../$1/src/index.ts"
|
|
111
|
-
}
|
|
112
|
+
},
|
|
113
|
+
"maxWorkers": 4
|
|
112
114
|
},
|
|
113
115
|
"scripts": {
|
|
114
116
|
"dev": "vite",
|