@stoker-platform/web-app 0.5.250 → 0.5.252
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 +13 -0
- package/package.json +2 -2
- package/src/Form.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.252
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @stoker-platform/node-client@0.5.106
|
|
9
|
+
|
|
10
|
+
## 0.5.251
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- feat: provide record ID to form condition method
|
|
15
|
+
|
|
3
16
|
## 0.5.250
|
|
4
17
|
|
|
5
18
|
### 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.252",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
52
52
|
"@react-google-maps/api": "^2.20.8",
|
|
53
53
|
"@sentry/react": "^10.70.0",
|
|
54
|
-
"@stoker-platform/node-client": "0.5.
|
|
54
|
+
"@stoker-platform/node-client": "0.5.106",
|
|
55
55
|
"@stoker-platform/utils": "0.5.91",
|
|
56
56
|
"@stoker-platform/web-client": "0.5.108",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
package/src/Form.tsx
CHANGED
|
@@ -393,7 +393,7 @@ const RecordFormField = (props: FieldProps) => {
|
|
|
393
393
|
}, [])
|
|
394
394
|
|
|
395
395
|
useEffect(() => {
|
|
396
|
-
const condition = tryFunction(admin?.condition?.form, [operation, form.getValues()])
|
|
396
|
+
const condition = tryFunction(admin?.condition?.form, [operation, { ...form.getValues(), id: record?.id }])
|
|
397
397
|
if (condition === false) {
|
|
398
398
|
setCondition(false)
|
|
399
399
|
return
|