@crossworks/share-ui 0.239.57 → 0.239.60

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/share-ui",
3
- "version": "0.239.57",
3
+ "version": "0.239.60",
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.57",
43
- "@mantle/content-core": "npm:@crossworks/content-core@0.239.57",
42
+ "@mantle/client-types": "npm:@crossworks/client-types@0.239.60",
43
+ "@mantle/content-core": "npm:@crossworks/content-core@0.239.60",
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",
@@ -279,10 +279,14 @@ export function AppSandbox({
279
279
  // 403 == the slug isn't in the app's declared tools. That's a wiring
280
280
  // bug, not a transient failure — surface it plainly to the builder
281
281
  // even if the app's own code swallows the rejection.
282
- if (r.status === 403 && data?.ok === false) {
282
+ // An admin's test run of a member's app refuses tools that change
283
+ // data on purpose (workspace review pattern): say that instead.
284
+ if (r.status === 403 && data?.ok === false && data?.reason === 'review-test-read-only') {
285
+ cbRef.current.onError?.('Test mode blocks tools that change data.');
286
+ } else if (r.status === 403 && data?.ok === false) {
283
287
  cbRef.current.onError?.(
284
288
  `This app tried to use the tool “${req.slug}”, which it hasn't declared. ` +
285
- `Add it to the app's tools (app_tools_set) — or ask Appsmith to — before it can run.`,
289
+ `Add it to the app's tools (app_tools_set), or ask Appsmith to, before it can run.`,
286
290
  );
287
291
  }
288
292
  reply(data);