@utopia-studio-design/design-system-cli 0.6.0 → 0.6.2
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 +13 -0
- package/bin/utopia-ds.mjs +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,3 +40,16 @@ Use `npm run build` before deployment. The generated project pins a compatible
|
|
|
40
40
|
Ceramic package range and splits the optional Puck editor dependencies into
|
|
41
41
|
separate production chunks; the validated Layout JSON and registry renderer
|
|
42
42
|
remain usable without opening the visual editor.
|
|
43
|
+
|
|
44
|
+
## 0.6.1 patch
|
|
45
|
+
|
|
46
|
+
Copied templates resolve their own navigation at the standalone project root.
|
|
47
|
+
Dashboard Composer opens `/visual-editor/` and returns to `/`; links to another
|
|
48
|
+
template use the hosted Ceramic preview. The seven-template catalog and Ceramic
|
|
49
|
+
0.8.x dependency range are unchanged. Official starter verification uses
|
|
50
|
+
`npm run build` and runtime checks. `template validate` remains a community
|
|
51
|
+
submission check requiring a separately authored `ceramic.template.json`.
|
|
52
|
+
|
|
53
|
+
## 0.6.2 patch
|
|
54
|
+
|
|
55
|
+
Generated projects now install Ceramic design-system ^0.9.0, including the Round 7 shared component fixes. The seven-template catalog and 0.6.1 generator link fixes are unchanged.
|
package/bin/utopia-ds.mjs
CHANGED
|
@@ -239,7 +239,12 @@ function copyTemplateProject(entry) {
|
|
|
239
239
|
const path = join(directory, name)
|
|
240
240
|
if (statSync(path).isDirectory()) replaceTheme(path)
|
|
241
241
|
else if (/\.(html|tsx|md)$/.test(name)) {
|
|
242
|
+
// Local links follow the copied template root; other templates stay hosted.
|
|
243
|
+
const templateSlug = entry.id.replace(/^template-/, '')
|
|
242
244
|
const content = readFileSync(path, 'utf8')
|
|
245
|
+
.replace(/(["'`])\/templates\/([a-z0-9-]+)\//g, (_match, quote, slug) =>
|
|
246
|
+
slug === templateSlug ? `${quote}/` : `${quote}https://design.utopia-studio.co/templates/${slug}/`)
|
|
247
|
+
.replace('Open live composer</a>', 'Open live composer (hosted preview)</a>')
|
|
243
248
|
.replaceAll('/themes/utopia-default.css', `/themes/${theme}.css`)
|
|
244
249
|
.replaceAll('data-theme="utopia-default"', `data-theme="${theme}"`)
|
|
245
250
|
.replaceAll("const activeTheme = 'utopia-default'", `const activeTheme = '${theme}'`)
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utopia-studio-design/design-system-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "AI-readable CLI and MCP server for Ceramic Design System",
|
|
5
5
|
"ceramic": {
|
|
6
|
-
"designSystem": "^0.
|
|
6
|
+
"designSystem": "^0.9.0"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
9
|
"license": "MIT",
|