@stoker-platform/web-app 0.5.37 → 0.5.38

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,13 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.38
4
+
5
+ ### Patch Changes
6
+
7
+ - @stoker-platform/node-client@0.5.23
8
+ - @stoker-platform/utils@0.5.17
9
+ - @stoker-platform/web-client@0.5.19
10
+
3
11
  ## 0.5.37
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.37",
3
+ "version": "0.5.38",
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.38.0",
54
- "@stoker-platform/node-client": "0.5.22",
55
- "@stoker-platform/utils": "0.5.16",
56
- "@stoker-platform/web-client": "0.5.18",
54
+ "@stoker-platform/node-client": "0.5.23",
55
+ "@stoker-platform/utils": "0.5.17",
56
+ "@stoker-platform/web-client": "0.5.19",
57
57
  "@tanstack/react-table": "^8.21.3",
58
58
  "@types/react": "18.3.13",
59
59
  "@types/react-dom": "18.3.1",
@@ -18,6 +18,7 @@ export const getRelationFields = (collection: CollectionSchema) => {
18
18
  for (const field of fields) {
19
19
  const fieldCustomization = getFieldCustomization(field, customization)
20
20
  if (!isRelationField(field)) continue
21
+ const queryFullRecord = tryFunction(fieldCustomization.admin?.queryFullRecord)
21
22
  const condition = tryFunction(fieldCustomization.admin?.condition?.form, ["update"])
22
23
  const roleGroup = getRoleGroup(permissions.Role, collectionSchema, schema)
23
24
  if (!roleGroup) throw new Error("PERMISSION_DENIED")
@@ -27,7 +28,7 @@ export const getRelationFields = (collection: CollectionSchema) => {
27
28
  const titleField = field.titleField
28
29
  if (
29
30
  (!fieldCustomization.admin?.condition?.form || condition) &&
30
- !(titleField && field.includeFields?.includes(titleField))
31
+ (!(titleField && field.includeFields?.includes(titleField)) || queryFullRecord)
31
32
  ) {
32
33
  relationFields.push(field.name)
33
34
  }