@prenta/admin 2.14.7 → 2.14.8
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,11 @@
|
|
|
1
1
|
# @actuate-media/cms-admin
|
|
2
2
|
|
|
3
|
+
## 2.14.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b3ac028: Let an approved MCP connector pass CSRF, change SEO and redirects, and delete content after the person approves the call in chat. Content API keys stay admin-gated for SEO and redirects, and still cannot delete.
|
|
8
|
+
|
|
3
9
|
## 2.14.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/views/McpConsent.js
CHANGED
|
@@ -43,6 +43,6 @@ export function McpConsent({ currentPath }) {
|
|
|
43
43
|
}
|
|
44
44
|
window.location.assign(res.data.redirectUrl);
|
|
45
45
|
}
|
|
46
|
-
return (_jsx("div", { className: "mx-auto max-w-lg p-6", children: _jsxs("div", { className: "border-border bg-card rounded-lg border p-6", children: [_jsx("h1", { className: "text-foreground text-xl font-medium", children: "Connect an app" }), !details && !error && (_jsxs("p", { className: "text-muted-foreground mt-4 flex items-center gap-2 text-sm", children: [_jsx(Loader2, { className: "animate-spin", size: 16, "aria-hidden": "true" }), "Loading the request"] })), error && _jsx("p", { className: "text-destructive mt-4 text-sm", children: error }), details && (_jsxs("div", { className: "mt-4 space-y-4", children: [_jsxs("p", { className: "text-foreground text-base", children: [_jsx("span", { className: "font-medium", children: details.clientName }), " wants to edit content on this site. It will return to", ' ', _jsx("span", { className: "font-medium", children: details.redirectHost }), "."] }), _jsxs("p", { className: "text-muted-foreground text-sm", children: ["Scope: ", details.scope, ". This includes pages, posts, forms, and
|
|
46
|
+
return (_jsx("div", { className: "mx-auto max-w-lg p-6", children: _jsxs("div", { className: "border-border bg-card rounded-lg border p-6", children: [_jsx("h1", { className: "text-foreground text-xl font-medium", children: "Connect an app" }), !details && !error && (_jsxs("p", { className: "text-muted-foreground mt-4 flex items-center gap-2 text-sm", children: [_jsx(Loader2, { className: "animate-spin", size: 16, "aria-hidden": "true" }), "Loading the request"] })), error && _jsx("p", { className: "text-destructive mt-4 text-sm", children: error }), details && (_jsxs("div", { className: "mt-4 space-y-4", children: [_jsxs("p", { className: "text-foreground text-base", children: [_jsx("span", { className: "font-medium", children: details.clientName }), " wants to edit content on this site. It will return to", ' ', _jsx("span", { className: "font-medium", children: details.redirectHost }), "."] }), _jsxs("p", { className: "text-muted-foreground text-sm", children: ["Scope: ", details.scope, ". This includes pages, posts, forms, SEO, and redirects. Deleting content asks you to approve it in the chat. It does not include changing settings. If Protect health information is on, lead contents stay hidden."] }), _jsxs("div", { className: "flex gap-3", children: [_jsx("button", { type: "button", disabled: busy, onClick: () => void decide(true), className: "bg-primary text-primary-foreground rounded-md px-4 py-2 text-base font-medium hover:opacity-90 disabled:opacity-50", children: "Allow" }), _jsx("button", { type: "button", disabled: busy, onClick: () => void decide(false), className: "border-border text-foreground hover:bg-accent rounded-md border px-4 py-2 text-base font-medium disabled:opacity-50", children: "Deny" })] })] }))] }) }));
|
|
47
47
|
}
|
|
48
48
|
//# sourceMappingURL=McpConsent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpConsent.js","sourceRoot":"","sources":["../../src/views/McpConsent.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AASpD,MAAM,UAAU,UAAU,CAAC,EAAE,WAAW,EAA2B;IACjE,MAAM,GAAG,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;IAC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AQ,EACb,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,EACjC,SAAS,EAAC,qHAAqH,qBAGxH,IACL,IACF,CACP,IACG,GACF,CACP,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prenta/admin",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -99,16 +99,16 @@
|
|
|
99
99
|
"tailwindcss": "^4.0.0",
|
|
100
100
|
"typescript": "^5.7.0",
|
|
101
101
|
"vitest": "^4.1.12",
|
|
102
|
-
"@prenta/core": "8.18.2",
|
|
103
|
-
"@prenta/plugin-ai": "4.0.1",
|
|
104
102
|
"@prenta/component-blocks": "0.3.1",
|
|
105
|
-
"@prenta/
|
|
103
|
+
"@prenta/core": "8.18.4",
|
|
104
|
+
"@prenta/plugin-ai": "4.0.1",
|
|
106
105
|
"@prenta/plugin-blocks": "1.0.1",
|
|
106
|
+
"@prenta/plugin-commerce": "1.0.1",
|
|
107
107
|
"@prenta/plugin-forms": "1.0.2",
|
|
108
|
-
"@prenta/plugin-navigation": "1.1.0",
|
|
109
108
|
"@prenta/plugin-media": "1.0.1",
|
|
109
|
+
"@prenta/plugin-navigation": "1.1.0",
|
|
110
110
|
"@prenta/plugin-seo": "2.0.1",
|
|
111
|
-
"@prenta/sections-react": "0.20.
|
|
111
|
+
"@prenta/sections-react": "0.20.11"
|
|
112
112
|
},
|
|
113
113
|
"scripts": {
|
|
114
114
|
"build": "tsc --project tsconfig.json && npx @tailwindcss/cli -i src/styles/build-input.css -o dist/prenta-admin.css --minify && node scripts/copy-font-files.mjs",
|
package/src/views/McpConsent.tsx
CHANGED
|
@@ -71,9 +71,9 @@ export function McpConsent({ currentPath }: { currentPath: string }) {
|
|
|
71
71
|
<span className="font-medium">{details.redirectHost}</span>.
|
|
72
72
|
</p>
|
|
73
73
|
<p className="text-muted-foreground text-sm">
|
|
74
|
-
Scope: {details.scope}. This includes pages, posts, forms, and
|
|
75
|
-
|
|
76
|
-
lead contents stay hidden.
|
|
74
|
+
Scope: {details.scope}. This includes pages, posts, forms, SEO, and redirects.
|
|
75
|
+
Deleting content asks you to approve it in the chat. It does not include changing
|
|
76
|
+
settings. If Protect health information is on, lead contents stay hidden.
|
|
77
77
|
</p>
|
|
78
78
|
<div className="flex gap-3">
|
|
79
79
|
<button
|