@crossworks/share-ui 0.239.73 → 0.239.76
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/package.json +3 -3
- package/src/app-sandbox.tsx +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossworks/share-ui",
|
|
3
|
-
"version": "0.239.
|
|
3
|
+
"version": "0.239.76",
|
|
4
4
|
"description": "The server-rendered share surface — the /s/<token> presenters, view-payload contract, mini-app sandbox, and the few primitives they need. Lives in MANTLE (the server renders these), published for jackdaw to consume; may depend only on @mantle/{client-types,content-core} (the jackdaw-repo-split boundary).",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./app-presenter": "./src/app-presenter.tsx",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@dicebear/core": "^10.7.0",
|
|
40
40
|
"@dicebear/styles": "^10.6.0",
|
|
41
41
|
"@firecms/neat": "1.1.0",
|
|
42
|
-
"@mantle/client-types": "npm:@crossworks/client-types@0.239.
|
|
43
|
-
"@mantle/content-core": "npm:@crossworks/content-core@0.239.
|
|
42
|
+
"@mantle/client-types": "npm:@crossworks/client-types@0.239.76",
|
|
43
|
+
"@mantle/content-core": "npm:@crossworks/content-core@0.239.76",
|
|
44
44
|
"@radix-ui/react-label": "^2.1.16",
|
|
45
45
|
"@radix-ui/react-slot": "^1.4.0",
|
|
46
46
|
"class-variance-authority": "^0.7.1",
|
package/src/app-sandbox.tsx
CHANGED
|
@@ -281,8 +281,13 @@ export function AppSandbox({
|
|
|
281
281
|
// even if the app's own code swallows the rejection.
|
|
282
282
|
// An admin's test run of a member's app refuses tools that change
|
|
283
283
|
// data on purpose (workspace review pattern): say that instead.
|
|
284
|
+
// A declared tool the team rules refuse (the same test run, reason
|
|
285
|
+
// 'team-rules', access matrix T22): the rule's own words, since it
|
|
286
|
+
// fails for every member too.
|
|
284
287
|
if (r.status === 403 && data?.ok === false && data?.reason === 'review-test-read-only') {
|
|
285
288
|
cbRef.current.onError?.('Test mode blocks tools that change data.');
|
|
289
|
+
} else if (r.status === 403 && data?.ok === false && data?.reason === 'team-rules') {
|
|
290
|
+
cbRef.current.onError?.(String(data.error ?? 'The team rules refuse this tool.'));
|
|
286
291
|
} else if (r.status === 403 && data?.ok === false) {
|
|
287
292
|
cbRef.current.onError?.(
|
|
288
293
|
`This app tried to use the tool “${req.slug}”, which it hasn't declared. ` +
|