@soloworks/smking-next 0.20.3 → 0.21.0
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 +11 -0
- package/package.json +1 -1
- package/src/components/smking-runtime.tsx +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @soloworks/smking-next
|
|
2
2
|
|
|
3
|
+
## 0.21.0 — 2026-06-09
|
|
4
|
+
|
|
5
|
+
**Per-site CMS theme — `<SmkingRuntime>` now mounts a `theme.css` stylesheet.**
|
|
6
|
+
|
|
7
|
+
`SmkingRuntime` gains an optional `apiKey` prop (auto-resolved from
|
|
8
|
+
`SMKING_API_KEY`); when set, it injects `<link rel="stylesheet"
|
|
9
|
+
href="…/api/v1/public/theme.css?key=…">` right after `runtime.css` so the
|
|
10
|
+
site's shadcn theme variables override the neutral defaults inside the
|
|
11
|
+
`[data-smking="cms"]` container. No customer code change — the env var is
|
|
12
|
+
already required; the link is omitted when no key is configured.
|
|
13
|
+
|
|
3
14
|
## 0.20.3 — 2026-06-08
|
|
4
15
|
|
|
5
16
|
**CMS draft preview URL now carries a visible `?smking_preview=1` marker.**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soloworks/smking-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "AI-native SEO (AEO) for Next.js — auto-inject JSON-LD, FAQ, AI summary, and SEO metadata so AI crawlers (ChatGPT, Perplexity, Google AI) can cite your pages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sillyleo/smking/tree/main/packages/smking-next",
|
|
@@ -15,8 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export function SmkingRuntime({
|
|
17
17
|
baseUrl,
|
|
18
|
+
apiKey,
|
|
18
19
|
}: {
|
|
19
20
|
baseUrl?: string;
|
|
21
|
+
apiKey?: string;
|
|
20
22
|
}) {
|
|
21
23
|
const url = (
|
|
22
24
|
baseUrl ?? process.env.SMKING_BASE_URL ?? "https://smking.app"
|
|
@@ -24,6 +26,9 @@ export function SmkingRuntime({
|
|
|
24
26
|
return (
|
|
25
27
|
<>
|
|
26
28
|
<link rel="stylesheet" href={`${url}/api/v1/public/runtime.css`} />
|
|
29
|
+
{apiKey && (
|
|
30
|
+
<link rel="stylesheet" href={`${url}/api/v1/public/theme.css?key=${apiKey}`} />
|
|
31
|
+
)}
|
|
27
32
|
<script src={`${url}/api/v1/public/runtime.js`} async />
|
|
28
33
|
</>
|
|
29
34
|
);
|