@prenta/admin 2.16.3 → 2.16.4
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.16.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5230917: Point repository links at github.com/Prenta-dev/prenta, where the source now lives. The `repository` field on npm, the importer adapters' docs links, the section editor's help link and the docs link `create-prenta` prints all moved from `actuate-media/prenta`. No behaviour changes.
|
|
8
|
+
|
|
3
9
|
## 2.16.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @prenta/admin
|
|
2
2
|
|
|
3
|
-
The React admin UI for [Prenta CMS](https://github.com/
|
|
3
|
+
The React admin UI for [Prenta CMS](https://github.com/Prenta-dev/prenta):
|
|
4
4
|
page/post section editors, media library, forms inbox, SEO tools, settings, and
|
|
5
5
|
the setup wizard — mounted in your app via a single component.
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ site's CSS.
|
|
|
28
28
|
## Release notes
|
|
29
29
|
|
|
30
30
|
See [CHANGELOG.md](./CHANGELOG.md) (shipped with the package) or the
|
|
31
|
-
[GitHub releases](https://github.com/
|
|
31
|
+
[GitHub releases](https://github.com/Prenta-dev/prenta/releases).
|
|
32
32
|
|
|
33
33
|
## License
|
|
34
34
|
|
|
@@ -48,6 +48,6 @@ export function SectionEditForm({ section, canEdit, onContentChange, onMetaChang
|
|
|
48
48
|
// The validator reads the same helper, so it can never require a field the
|
|
49
49
|
// editor is not drawing.
|
|
50
50
|
const contentFields = visibleFields(def?.fields ?? [], section.content).filter((f) => !(editPostBodyField && f.key === 'body')) ?? [];
|
|
51
|
-
return (_jsxs("div", { className: "border-border bg-muted/40 border-t px-3 py-3.5", children: [_jsxs("fieldset", { disabled: !canEdit, className: "space-y-3", children: [editPostBodyField && (_jsx(RichTextField, { label: "Post body field", value: postBody ?? '', onChange: onPostBodyChange, className: "[&_.ProseMirror]:min-h-[240px]", helpText: "Shared with post settings. Edits here change the post's Body field, which the canvas and the live site both render." })), contentFields.map((field) => (_jsx(ContentField, { id: `sec-${section.id}-${field.key}`, field: field, value: section.content[field.key], onChange: (v) => onContentChange({ [field.key]: v }), onPatch: (patch) => onContentChange(patch) }, field.key))), contentFields.length === 0 && !editPostBodyField && (_jsx("p", { className: "text-muted-foreground text-xs", children: "This section has no editable content \u2014 it is rendered entirely from the template." })), _jsxs("details", { className: "group", children: [_jsx("summary", { className: "text-muted-foreground hover:text-foreground cursor-pointer list-none text-[11px] font-medium tracking-wider uppercase", children: "Section settings" }), _jsxs("div", { className: "mt-2.5 space-y-3", children: [_jsxs("div", { children: [_jsx("label", { className: FIELD_LABEL, htmlFor: `sec-${section.id}-name`, children: "Section name" }), _jsx("input", { id: `sec-${section.id}-name`, className: FIELD_INPUT, value: section.name, onChange: (e) => onMetaChange({ name: e.target.value }) })] }), _jsxs("div", { children: [_jsx("label", { className: FIELD_LABEL, htmlFor: `sec-${section.id}-internal`, children: "Internal label" }), _jsx("input", { id: `sec-${section.id}-internal`, className: FIELD_INPUT, placeholder: "Team-only note (optional)", value: section.internalLabel ?? '', onChange: (e) => onMetaChange({ internalLabel: e.target.value }) })] })] })] })] }), _jsxs("p", { className: "text-muted-foreground mt-3 flex items-start gap-1.5 text-[11px] leading-relaxed", children: [_jsx(Lock, { className: "mt-0.5 h-3 w-3 shrink-0", "aria-hidden": true }), _jsxs("span", { children: ["Background, spacing and layout come from the template.", ' ', _jsxs("a", { href: "https://github.com/
|
|
51
|
+
return (_jsxs("div", { className: "border-border bg-muted/40 border-t px-3 py-3.5", children: [_jsxs("fieldset", { disabled: !canEdit, className: "space-y-3", children: [editPostBodyField && (_jsx(RichTextField, { label: "Post body field", value: postBody ?? '', onChange: onPostBodyChange, className: "[&_.ProseMirror]:min-h-[240px]", helpText: "Shared with post settings. Edits here change the post's Body field, which the canvas and the live site both render." })), contentFields.map((field) => (_jsx(ContentField, { id: `sec-${section.id}-${field.key}`, field: field, value: section.content[field.key], onChange: (v) => onContentChange({ [field.key]: v }), onPatch: (patch) => onContentChange(patch) }, field.key))), contentFields.length === 0 && !editPostBodyField && (_jsx("p", { className: "text-muted-foreground text-xs", children: "This section has no editable content \u2014 it is rendered entirely from the template." })), _jsxs("details", { className: "group", children: [_jsx("summary", { className: "text-muted-foreground hover:text-foreground cursor-pointer list-none text-[11px] font-medium tracking-wider uppercase", children: "Section settings" }), _jsxs("div", { className: "mt-2.5 space-y-3", children: [_jsxs("div", { children: [_jsx("label", { className: FIELD_LABEL, htmlFor: `sec-${section.id}-name`, children: "Section name" }), _jsx("input", { id: `sec-${section.id}-name`, className: FIELD_INPUT, value: section.name, onChange: (e) => onMetaChange({ name: e.target.value }) })] }), _jsxs("div", { children: [_jsx("label", { className: FIELD_LABEL, htmlFor: `sec-${section.id}-internal`, children: "Internal label" }), _jsx("input", { id: `sec-${section.id}-internal`, className: FIELD_INPUT, placeholder: "Team-only note (optional)", value: section.internalLabel ?? '', onChange: (e) => onMetaChange({ internalLabel: e.target.value }) })] })] })] })] }), _jsxs("p", { className: "text-muted-foreground mt-3 flex items-start gap-1.5 text-[11px] leading-relaxed", children: [_jsx(Lock, { className: "mt-0.5 h-3 w-3 shrink-0", "aria-hidden": true }), _jsxs("span", { children: ["Background, spacing and layout come from the template.", ' ', _jsxs("a", { href: "https://github.com/Prenta-dev/prenta/blob/main/docs/design-owned-sections.md", target: "_blank", rel: "noopener noreferrer", className: "text-brand inline-flex items-center gap-0.5 hover:underline", children: ["Why", _jsx(ExternalLink, { className: "h-2.5 w-2.5", "aria-hidden": true })] })] })] })] }));
|
|
52
52
|
}
|
|
53
53
|
//# sourceMappingURL=SectionEditForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionEditFor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AC,EAAE,WAAW,+BAE5D,EACR,gBACE,EAAE,EAAE,OAAO,OAAO,CAAC,EAAE,WAAW,EAChC,SAAS,EAAE,WAAW,EACtB,WAAW,EAAC,2BAA2B,EACvC,KAAK,EAAE,OAAO,CAAC,aAAa,IAAI,EAAE,EAClC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,GAChE,IACE,IACF,IACE,IACD,EAIX,aAAG,SAAS,EAAC,iFAAiF,aAC5F,KAAC,IAAI,IAAC,SAAS,EAAC,yBAAyB,wBAAe,EACxD,qFACyD,GAAG,EAC1D,aACE,IAAI,EAAC,8EAA8E,EACnF,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,SAAS,EAAC,6DAA6D,oBAGvE,KAAC,YAAY,IAAC,SAAS,EAAC,aAAa,wBAAe,IAClD,IACC,IACL,IACA,CACP,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prenta/admin",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/Prenta-dev/prenta.git",
|
|
8
8
|
"directory": "packages/cms-admin"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
@@ -99,16 +99,16 @@
|
|
|
99
99
|
"tailwindcss": "^4.0.0",
|
|
100
100
|
"typescript": "^5.7.0",
|
|
101
101
|
"vitest": "^4.1.12",
|
|
102
|
-
"@prenta/
|
|
103
|
-
"@prenta/
|
|
104
|
-
"@prenta/plugin-ai": "4.0.
|
|
105
|
-
"@prenta/plugin-blocks": "1.0.
|
|
106
|
-
"@prenta/
|
|
107
|
-
"@prenta/plugin-forms": "1.0.
|
|
108
|
-
"@prenta/plugin-media": "1.0.
|
|
109
|
-
"@prenta/plugin-
|
|
110
|
-
"@prenta/plugin-
|
|
111
|
-
"@prenta/sections-react": "0.20.
|
|
102
|
+
"@prenta/component-blocks": "0.3.2",
|
|
103
|
+
"@prenta/core": "8.21.11",
|
|
104
|
+
"@prenta/plugin-ai": "4.0.2",
|
|
105
|
+
"@prenta/plugin-blocks": "1.0.2",
|
|
106
|
+
"@prenta/plugin-commerce": "1.0.2",
|
|
107
|
+
"@prenta/plugin-forms": "1.0.3",
|
|
108
|
+
"@prenta/plugin-media": "1.0.2",
|
|
109
|
+
"@prenta/plugin-navigation": "1.1.1",
|
|
110
|
+
"@prenta/plugin-seo": "2.0.2",
|
|
111
|
+
"@prenta/sections-react": "0.20.27"
|
|
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",
|
|
@@ -154,7 +154,7 @@ export function SectionEditForm({
|
|
|
154
154
|
<span>
|
|
155
155
|
Background, spacing and layout come from the template.{' '}
|
|
156
156
|
<a
|
|
157
|
-
href="https://github.com/
|
|
157
|
+
href="https://github.com/Prenta-dev/prenta/blob/main/docs/design-owned-sections.md"
|
|
158
158
|
target="_blank"
|
|
159
159
|
rel="noopener noreferrer"
|
|
160
160
|
className="text-brand inline-flex items-center gap-0.5 hover:underline"
|