@stoker-platform/web-app 0.5.73 → 0.5.74
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 +1 -4
- package/src/List.tsx +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.74
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: improve soft delete authorisation
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @stoker-platform/utils@0.5.36
|
|
10
|
+
- @stoker-platform/node-client@0.5.42
|
|
11
|
+
- @stoker-platform/web-client@0.5.42
|
|
12
|
+
|
|
3
13
|
## 0.5.73
|
|
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.74",
|
|
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.47.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.42",
|
|
55
|
+
"@stoker-platform/utils": "0.5.36",
|
|
56
|
+
"@stoker-platform/web-client": "0.5.42",
|
|
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
|
@@ -2408,10 +2408,7 @@ function RecordForm({
|
|
|
2408
2408
|
return collectionAccess("Update", collectionPermissions)
|
|
2409
2409
|
}, [collection, permissions])
|
|
2410
2410
|
const hasDeleteAccess = useMemo(() => {
|
|
2411
|
-
return (
|
|
2412
|
-
(!softDelete && collectionAccess("Delete", collectionPermissions)) ||
|
|
2413
|
-
(softDelete && collectionAccess("Update", collectionPermissions))
|
|
2414
|
-
)
|
|
2411
|
+
return collectionAccess("Delete", collectionPermissions)
|
|
2415
2412
|
}, [collection, permissions])
|
|
2416
2413
|
|
|
2417
2414
|
const isPending = !!(id && isGlobalLoading.has(id))
|
package/src/List.tsx
CHANGED
|
@@ -1678,8 +1678,7 @@ export function List({
|
|
|
1678
1678
|
</div>,
|
|
1679
1679
|
document.body,
|
|
1680
1680
|
)}
|
|
1681
|
-
{
|
|
1682
|
-
(softDelete && collectionAccess("Update", collectionPermissions))) && (
|
|
1681
|
+
{collectionAccess("Delete", collectionPermissions) && (
|
|
1683
1682
|
<AlertDialog>
|
|
1684
1683
|
<AlertDialogTrigger asChild>
|
|
1685
1684
|
<Button
|