@stoker-platform/web-app 0.5.169 → 0.5.171

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.171
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @stoker-platform/node-client@0.5.69
9
+ - @stoker-platform/utils@0.5.60
10
+ - @stoker-platform/web-client@0.5.70
11
+
12
+ ## 0.5.170
13
+
14
+ ### Patch Changes
15
+
16
+ - feat: add Firestore Enterprise Edition support
17
+ - Updated dependencies
18
+ - @stoker-platform/node-client@0.5.68
19
+ - @stoker-platform/web-client@0.5.69
20
+ - @stoker-platform/utils@0.5.59
21
+
3
22
  ## 0.5.169
4
23
 
5
24
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.169",
3
+ "version": "0.5.171",
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.67",
55
- "@stoker-platform/utils": "0.5.58",
56
- "@stoker-platform/web-client": "0.5.68",
54
+ "@stoker-platform/node-client": "0.5.69",
55
+ "@stoker-platform/utils": "0.5.60",
56
+ "@stoker-platform/web-client": "0.5.70",
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 = getFirestore()
2422
+ const db = getStokerFirestore()
2423
2423
  const storage = getStorage()
2424
2424
  const firebaseAuth = getAuth()
2425
2425
  const currentUser = firebaseAuth.currentUser
@@ -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)