@stoker-platform/web-app 0.5.169 → 0.5.170
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/CHANGELOG.md +10 -0
- package/package.json +4 -4
- package/src/Form.tsx +2 -2
- package/src/utils/goToRecord.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.170
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: add Firestore Enterprise Edition support
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @stoker-platform/node-client@0.5.68
|
|
10
|
+
- @stoker-platform/web-client@0.5.69
|
|
11
|
+
- @stoker-platform/utils@0.5.59
|
|
12
|
+
|
|
3
13
|
## 0.5.169
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/web-app",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.170",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"scripts": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
52
|
"@react-google-maps/api": "^2.20.8",
|
|
53
53
|
"@sentry/react": "^10.56.0",
|
|
54
|
-
"@stoker-platform/node-client": "0.5.
|
|
55
|
-
"@stoker-platform/utils": "0.5.
|
|
56
|
-
"@stoker-platform/web-client": "0.5.
|
|
54
|
+
"@stoker-platform/node-client": "0.5.68",
|
|
55
|
+
"@stoker-platform/utils": "0.5.59",
|
|
56
|
+
"@stoker-platform/web-client": "0.5.69",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
|
58
58
|
"@types/react": "18.3.13",
|
|
59
59
|
"@types/react-dom": "18.3.1",
|
package/src/Form.tsx
CHANGED
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
serializeTimestamps,
|
|
56
56
|
getFiles,
|
|
57
57
|
getTenant,
|
|
58
|
+
getStokerFirestore,
|
|
58
59
|
} from "@stoker-platform/web-client"
|
|
59
60
|
import {
|
|
60
61
|
createElement,
|
|
@@ -77,7 +78,6 @@ import {
|
|
|
77
78
|
deleteField,
|
|
78
79
|
doc,
|
|
79
80
|
collection as dbCollection,
|
|
80
|
-
getFirestore,
|
|
81
81
|
Timestamp,
|
|
82
82
|
QueryConstraint,
|
|
83
83
|
where,
|
|
@@ -2419,7 +2419,7 @@ function RecordForm({
|
|
|
2419
2419
|
if (operation === "update" && !id) {
|
|
2420
2420
|
throw new Error("ID param is required for update operation")
|
|
2421
2421
|
}
|
|
2422
|
-
const db =
|
|
2422
|
+
const db = getStokerFirestore()
|
|
2423
2423
|
const storage = getStorage()
|
|
2424
2424
|
const firebaseAuth = getAuth()
|
|
2425
2425
|
const currentUser = firebaseAuth.currentUser
|
package/src/utils/goToRecord.ts
CHANGED
|
@@ -11,6 +11,7 @@ export const useGoToRecord = () => {
|
|
|
11
11
|
|
|
12
12
|
const goToRecord = (collection: CollectionSchema, record: StokerRecord, relationField?: RelationField) => {
|
|
13
13
|
const customization = getCollectionConfigModule(collection.labels.collection)
|
|
14
|
+
if (!customization) return
|
|
14
15
|
let route = "edit"
|
|
15
16
|
if (customization.admin?.defaultRoute) {
|
|
16
17
|
route = tryFunction(customization.admin.defaultRoute)
|