@vedyua/cms 0.1.0 → 0.1.1
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/README.md +12 -24
- package/dist/admin-bar.d.ts +2 -2
- package/dist/admin-entry.d.ts +2 -3
- package/dist/admin-entry.js +1 -29
- package/dist/admin-entry.js.map +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/editable-text.d.ts +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/page-settings.d.ts +2 -2
- package/dist/styles.css +3 -43
- package/package.json +3 -8
package/README.md
CHANGED
|
@@ -7,17 +7,9 @@ Universal inline editor for static JSON content.
|
|
|
7
7
|
- Save drafts to JSON files
|
|
8
8
|
- Publish via pluggable adapters (safe background rebuild)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## Install (private npm)
|
|
13
|
-
|
|
14
|
-
Create the `@vedy` org on npm (once), then:
|
|
10
|
+
## Install
|
|
15
11
|
|
|
16
12
|
```bash
|
|
17
|
-
# .npmrc
|
|
18
|
-
@vedyua:registry=https://registry.npmjs.org/
|
|
19
|
-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
|
|
20
|
-
|
|
21
13
|
npm i @vedyua/cms
|
|
22
14
|
```
|
|
23
15
|
|
|
@@ -30,13 +22,19 @@ npm i @vedyua/cms
|
|
|
30
22
|
| `@vedyua/cms/next` | `createContentApi` for App Router |
|
|
31
23
|
| `@vedyua/cms/styles.css` | Admin UI styles |
|
|
32
24
|
|
|
25
|
+
## Develop
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install
|
|
29
|
+
npm run build
|
|
30
|
+
npm run dev
|
|
31
|
+
```
|
|
32
|
+
|
|
33
33
|
## Publish (maintainers)
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
36
|
npm login
|
|
37
|
-
|
|
38
|
-
cd packages/vedy-cms
|
|
39
|
-
npm publish --access restricted
|
|
37
|
+
npm publish --access public
|
|
40
38
|
```
|
|
41
39
|
|
|
42
40
|
## Minimal wiring
|
|
@@ -48,21 +46,11 @@ import { commandPublish, passwordAuth } from "@vedyua/cms/server";
|
|
|
48
46
|
export const api = createContentApi({
|
|
49
47
|
config,
|
|
50
48
|
sessionSecret: process.env.CONTENT_CMS_SESSION_SECRET!,
|
|
51
|
-
publicOrigin: "https://example.com",
|
|
52
49
|
auth: passwordAuth({
|
|
53
|
-
|
|
50
|
+
password: process.env.CONTENT_CMS_PASSWORD!,
|
|
54
51
|
}),
|
|
55
52
|
publish: commandPublish({
|
|
56
|
-
|
|
57
|
-
command: "npm run build",
|
|
58
|
-
detached: true,
|
|
53
|
+
command: process.env.CONTENT_CMS_PUBLISH_COMMAND!,
|
|
59
54
|
}),
|
|
60
55
|
});
|
|
61
56
|
```
|
|
62
|
-
|
|
63
|
-
## Edit flow
|
|
64
|
-
|
|
65
|
-
1. `/admin` → sign in with username/password
|
|
66
|
-
2. Open the site for editing
|
|
67
|
-
3. Click highlighted text → **Save draft**
|
|
68
|
-
4. **Publish** → rebuild the live site
|
package/dist/admin-bar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
|
|
3
3
|
type AdminBarProps = {
|
|
4
4
|
/** Optional brand label shown on the left. */
|
|
@@ -7,6 +7,6 @@ type AdminBarProps = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Floating toolbar for edit mode. Hides itself when `editMode` is false.
|
|
9
9
|
*/
|
|
10
|
-
declare function AdminBar({ title }: AdminBarProps):
|
|
10
|
+
declare function AdminBar({ title }: AdminBarProps): react.JSX.Element | null;
|
|
11
11
|
|
|
12
12
|
export { AdminBar, type AdminBarProps };
|
package/dist/admin-entry.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { ContentEditorSession } from './context.js';
|
|
3
3
|
import { ContentConfig } from './types.js';
|
|
4
|
-
import 'react';
|
|
5
4
|
|
|
6
5
|
type AdminEntryProps = {
|
|
7
6
|
config: ContentConfig;
|
|
@@ -19,6 +18,6 @@ type AdminEntryProps = {
|
|
|
19
18
|
/**
|
|
20
19
|
* `/admin` landing page: login (if needed), then enter visual edit mode.
|
|
21
20
|
*/
|
|
22
|
-
declare function AdminEntry({ config, session, authLabel, authKind, publishEnabled, configured, siteHref, title, }: AdminEntryProps):
|
|
21
|
+
declare function AdminEntry({ config, session, authLabel, authKind, publishEnabled, configured, siteHref, title, }: AdminEntryProps): react.JSX.Element;
|
|
23
22
|
|
|
24
23
|
export { AdminEntry, type AdminEntryProps };
|
package/dist/admin-entry.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { writeBrowserCookie } from "./cookies";
|
|
5
|
-
import { listTextFields } from "./define";
|
|
6
5
|
function AdminEntry({
|
|
7
6
|
config,
|
|
8
7
|
session = null,
|
|
@@ -14,11 +13,6 @@ function AdminEntry({
|
|
|
14
13
|
title = "Content editor"
|
|
15
14
|
}) {
|
|
16
15
|
const cookieName = config.editCookie ?? "scms_edit";
|
|
17
|
-
const seoDocument = config.seoDocument ?? "seo";
|
|
18
|
-
const fields = listTextFields(config).filter(
|
|
19
|
-
(item) => !(item.document === seoDocument && item.field.startsWith("pages."))
|
|
20
|
-
);
|
|
21
|
-
const pageCount = config.pages?.length ?? 0;
|
|
22
16
|
const loginPath = config.loginPath ?? "/api/content/auth/login";
|
|
23
17
|
const logoutPath = config.logoutPath ?? "/api/content/auth/logout";
|
|
24
18
|
const [username, setUsername] = useState("");
|
|
@@ -50,11 +44,6 @@ function AdminEntry({
|
|
|
50
44
|
return /* @__PURE__ */ jsx("main", { className: "scms-admin-entry", children: /* @__PURE__ */ jsxs("div", { className: "scms-admin-entry__card", children: [
|
|
51
45
|
/* @__PURE__ */ jsx("p", { className: "scms-admin-entry__eyebrow", children: "Content CMS" }),
|
|
52
46
|
/* @__PURE__ */ jsx("h1", { children: title }),
|
|
53
|
-
/* @__PURE__ */ jsxs("p", { children: [
|
|
54
|
-
"Edit marked text fields on the live site. Use ",
|
|
55
|
-
/* @__PURE__ */ jsx("strong", { children: "Page settings" }),
|
|
56
|
-
" in the top bar for title, description, favicon and SEO. Save writes JSON on disk; Publish rebuilds the site safely in the background."
|
|
57
|
-
] }),
|
|
58
47
|
/* @__PURE__ */ jsx("div", { className: "scms-admin-entry__actions", children: !configured ? null : session ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
48
|
/* @__PURE__ */ jsx(
|
|
60
49
|
"a",
|
|
@@ -114,24 +103,7 @@ function AdminEntry({
|
|
|
114
103
|
/* @__PURE__ */ jsx("strong", { children: session.name }),
|
|
115
104
|
session.email ? ` (${session.email})` : "",
|
|
116
105
|
publishEnabled ? " \xB7 publish enabled" : " \xB7 publish adapter not configured"
|
|
117
|
-
] }) :
|
|
118
|
-
/* @__PURE__ */ jsxs("section", { className: "scms-admin-entry__fields", children: [
|
|
119
|
-
/* @__PURE__ */ jsx("h2", { children: "Registered fields" }),
|
|
120
|
-
pageCount > 0 ? /* @__PURE__ */ jsxs("p", { style: { marginBottom: 12, fontSize: 13, color: "var(--scms-muted)" }, children: [
|
|
121
|
-
pageCount,
|
|
122
|
-
" pages with editable SEO (title / description / OG image)"
|
|
123
|
-
] }) : null,
|
|
124
|
-
/* @__PURE__ */ jsx("ul", { children: fields.map((item) => /* @__PURE__ */ jsxs("li", { children: [
|
|
125
|
-
/* @__PURE__ */ jsx("strong", { children: item.label }),
|
|
126
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
127
|
-
item.documentLabel,
|
|
128
|
-
" \xB7 ",
|
|
129
|
-
item.document,
|
|
130
|
-
".",
|
|
131
|
-
item.field
|
|
132
|
-
] })
|
|
133
|
-
] }, `${item.document}.${item.field}`)) })
|
|
134
|
-
] })
|
|
106
|
+
] }) : null
|
|
135
107
|
] }) });
|
|
136
108
|
}
|
|
137
109
|
export {
|
package/dist/admin-entry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/admin-entry.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type FormEvent } from \"react\";\n\nimport { writeBrowserCookie } from \"./cookies\";\nimport type { ContentEditorSession } from \"./context\";\nimport
|
|
1
|
+
{"version":3,"sources":["../src/admin-entry.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type FormEvent } from \"react\";\n\nimport { writeBrowserCookie } from \"./cookies\";\nimport type { ContentEditorSession } from \"./context\";\nimport type { ContentConfig } from \"./types\";\n\nexport type AdminEntryProps = {\n config: ContentConfig;\n session?: ContentEditorSession | null;\n authLabel?: string;\n /** @default \"password\" */\n authKind?: \"password\" | \"oauth\" | \"instant\";\n publishEnabled?: boolean;\n /** When false, login is disabled and a setup hint is shown. @default true */\n configured?: boolean;\n /** Site URL opened after enabling edit mode. @default \"/\" */\n siteHref?: string;\n title?: string;\n};\n\n/**\n * `/admin` landing page: login (if needed), then enter visual edit mode.\n */\nexport function AdminEntry({\n config,\n session = null,\n authLabel = \"Sign in\",\n authKind = \"password\",\n publishEnabled = false,\n configured = true,\n siteHref = \"/\",\n title = \"Content editor\",\n}: AdminEntryProps) {\n const cookieName = config.editCookie ?? \"scms_edit\";\n const loginPath = config.loginPath ?? \"/api/content/auth/login\";\n const logoutPath = config.logoutPath ?? \"/api/content/auth/logout\";\n\n const [username, setUsername] = useState(\"\");\n const [password, setPassword] = useState(\"\");\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n async function onPasswordLogin(event: FormEvent) {\n event.preventDefault();\n setBusy(true);\n setError(null);\n try {\n const response = await fetch(loginPath, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ username, password, returnTo: \"/admin\" }),\n });\n const payload = (await response.json().catch(() => null)) as\n | { ok?: boolean; error?: string }\n | null;\n if (!response.ok || !payload?.ok) {\n throw new Error(payload?.error ?? `Login failed (${response.status})`);\n }\n writeBrowserCookie(cookieName, \"1\");\n window.location.href = \"/admin\";\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Login failed\");\n } finally {\n setBusy(false);\n }\n }\n\n return (\n <main className=\"scms-admin-entry\">\n <div className=\"scms-admin-entry__card\">\n <p className=\"scms-admin-entry__eyebrow\">Content CMS</p>\n <h1>{title}</h1>\n\n <div className=\"scms-admin-entry__actions\">\n {!configured ? null : session ? (\n <>\n <a\n className=\"scms-btn scms-btn--primary\"\n href={siteHref}\n onClick={() => writeBrowserCookie(cookieName, \"1\")}\n >\n Open site for editing\n </a>\n <a className=\"scms-btn scms-btn--ghost\" href={logoutPath}>\n Log out\n </a>\n </>\n ) : authKind === \"password\" ? (\n <form className=\"scms-login-form\" onSubmit={(event) => void onPasswordLogin(event)}>\n <label>\n <span>Username</span>\n <input\n name=\"username\"\n autoComplete=\"username\"\n value={username}\n onChange={(event) => setUsername(event.target.value)}\n required\n />\n </label>\n <label>\n <span>Password</span>\n <input\n name=\"password\"\n type=\"password\"\n autoComplete=\"current-password\"\n value={password}\n onChange={(event) => setPassword(event.target.value)}\n required\n />\n </label>\n {error ? <p className=\"scms-login-form__error\">{error}</p> : null}\n <button className=\"scms-btn scms-btn--primary\" type=\"submit\" disabled={busy}>\n {busy ? \"Signing in…\" : authLabel}\n </button>\n </form>\n ) : (\n <a\n className=\"scms-btn scms-btn--primary\"\n href={`${loginPath}?returnTo=${encodeURIComponent(\"/admin\")}`}\n >\n {authLabel}\n </a>\n )}\n </div>\n\n {!configured ? (\n <p className=\"scms-admin-entry__session\">\n CMS env is not configured on this server yet. Public site still works; set{\" \"}\n <code>CONTENT_CMS_SESSION_SECRET</code> and editor password to enable editing.\n </p>\n ) : session ? (\n <p className=\"scms-admin-entry__session\">\n Signed in as <strong>{session.name}</strong>\n {session.email ? ` (${session.email})` : \"\"}\n {publishEnabled ? \" · publish enabled\" : \" · publish ad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,IACH,GAEJ;AAAA,IAEC,CAAC,aACA,qBAAC,OAAE,WAAU,6BAA4B;AAAA;AAAA,MACoC;AAAA,MAC3E,oBAAC,UAAK,wCAA0B;AAAA,MAAO;AAAA,OACzC,IACE,UACF,qBAAC,OAAE,WAAU,6BAA4B;AAAA;AAAA,MAC1B,oBAAC,YAAQ,kBAAQ,MAAK;AAAA,MAClC,QAAQ,QAAQ,KAAK,QAAQ,KAAK,MAAM;AAAA,MACxC,iBAAiB,0BAAuB;AAAA,OAC3C,IACE;AAAA,KACN,GACF;AAEJ;","names":[]}
|
package/dist/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentConfig, ContentDocuments, TextFieldType } from './types.js';
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
type ContentEditorSession = {
|
|
@@ -35,7 +35,7 @@ type ContentCmsProviderProps = {
|
|
|
35
35
|
publishEnabled?: boolean;
|
|
36
36
|
children: ReactNode;
|
|
37
37
|
};
|
|
38
|
-
declare function ContentCmsProvider({ config, documents: initialDocuments, editMode, session, publishEnabled, children, }: ContentCmsProviderProps):
|
|
38
|
+
declare function ContentCmsProvider({ config, documents: initialDocuments, editMode, session, publishEnabled, children, }: ContentCmsProviderProps): react.JSX.Element;
|
|
39
39
|
declare function useContentCms(): ContentCmsContextValue;
|
|
40
40
|
declare function useContentCmsOptional(): ContentCmsContextValue | null;
|
|
41
41
|
declare function useEditableField(document: string, field: string): {
|
package/dist/editable-text.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { ElementType, CSSProperties, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
type EditableTextProps = {
|
|
@@ -15,6 +15,6 @@ type EditableTextProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
};
|
|
18
|
-
declare function EditableText({ document: documentName, field, as: Tag, className, style, id, children, }: EditableTextProps):
|
|
18
|
+
declare function EditableText({ document: documentName, field, as: Tag, className, style, id, children, }: EditableTextProps): react.JSX.Element;
|
|
19
19
|
|
|
20
20
|
export { EditableText, type EditableTextProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,5 +7,4 @@ export { EditableText, EditableTextProps } from './editable-text.js';
|
|
|
7
7
|
export { PageSettingsPanel, PageSettingsPanelProps } from './page-settings.js';
|
|
8
8
|
export { asString, getPathValue, setPathValue } from './path.js';
|
|
9
9
|
export { ContentConfig, ContentDocumentDef, ContentDocuments, ContentFieldDef, ContentFieldRef, ContentPageDef, ContentPatch, TextFieldType } from './types.js';
|
|
10
|
-
import 'react/jsx-runtime';
|
|
11
10
|
import 'react';
|
package/dist/page-settings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
|
|
3
3
|
type PageSettingsPanelProps = {
|
|
4
4
|
open: boolean;
|
|
@@ -7,6 +7,6 @@ type PageSettingsPanelProps = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Top panel for editing favicon + SEO fields for the current (or selected) page.
|
|
9
9
|
*/
|
|
10
|
-
declare function PageSettingsPanel({ open, onClose }: PageSettingsPanelProps):
|
|
10
|
+
declare function PageSettingsPanel({ open, onClose }: PageSettingsPanelProps): react.JSX.Element | null;
|
|
11
11
|
|
|
12
12
|
export { PageSettingsPanel, type PageSettingsPanelProps };
|
package/dist/styles.css
CHANGED
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.scms-admin-entry__card {
|
|
153
|
-
max-width:
|
|
153
|
+
max-width: 400px;
|
|
154
154
|
margin: 0 auto;
|
|
155
155
|
background: rgba(17, 24, 39, 0.88);
|
|
156
156
|
border: 1px solid #374151;
|
|
@@ -222,7 +222,8 @@
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
.scms-login-form .scms-btn {
|
|
225
|
-
|
|
225
|
+
width: 100%;
|
|
226
|
+
justify-content: center;
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
.scms-admin-entry__session {
|
|
@@ -230,47 +231,6 @@
|
|
|
230
231
|
font-size: 13px;
|
|
231
232
|
}
|
|
232
233
|
|
|
233
|
-
.scms-admin-entry__fields {
|
|
234
|
-
margin-top: 28px;
|
|
235
|
-
padding-top: 20px;
|
|
236
|
-
border-top: 1px solid #374151;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.scms-admin-entry__fields h2 {
|
|
240
|
-
margin: 0 0 12px;
|
|
241
|
-
font-size: 14px;
|
|
242
|
-
text-transform: uppercase;
|
|
243
|
-
letter-spacing: 0.08em;
|
|
244
|
-
color: var(--scms-muted);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.scms-admin-entry__fields ul {
|
|
248
|
-
list-style: none;
|
|
249
|
-
margin: 0;
|
|
250
|
-
padding: 0;
|
|
251
|
-
display: grid;
|
|
252
|
-
gap: 10px;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.scms-admin-entry__fields li {
|
|
256
|
-
display: flex;
|
|
257
|
-
flex-direction: column;
|
|
258
|
-
gap: 2px;
|
|
259
|
-
padding: 10px 12px;
|
|
260
|
-
border-radius: 10px;
|
|
261
|
-
background: #0b1220;
|
|
262
|
-
border: 1px solid #1f2937;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.scms-admin-entry__fields li strong {
|
|
266
|
-
font-size: 14px;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.scms-admin-entry__fields li span {
|
|
270
|
-
font-size: 12px;
|
|
271
|
-
color: var(--scms-muted);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
234
|
body:has(.scms-admin-bar) {
|
|
275
235
|
scroll-padding-top: 88px;
|
|
276
236
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vedyua/cms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Universal inline content editor for static JSON sites (Next.js)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prepublishOnly": "npm run typecheck && npm run build"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
|
-
"access": "
|
|
41
|
+
"access": "public",
|
|
42
42
|
"registry": "https://registry.npmjs.org/"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -60,10 +60,5 @@
|
|
|
60
60
|
"nextjs",
|
|
61
61
|
"inline-editor",
|
|
62
62
|
"vedy"
|
|
63
|
-
]
|
|
64
|
-
"repository": {
|
|
65
|
-
"type": "git",
|
|
66
|
-
"url": "git+https://github.com/sourfanta/ququ-monorepo.git",
|
|
67
|
-
"directory": "packages/vedy-cms"
|
|
68
|
-
}
|
|
63
|
+
]
|
|
69
64
|
}
|