@bettercms-ai/astro 0.8.0 → 0.8.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.
|
@@ -137,7 +137,7 @@ const needsTabs = !nested && containsType(blocks, "tabs");
|
|
|
137
137
|
const pass = { forms, components, turnstileSiteKey, nested: true };
|
|
138
138
|
---
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
{/*
|
|
141
141
|
`data-bcms-page` marks this subtree as ours to edit — the Astro equivalent of the hosted
|
|
142
142
|
renderer's `<main class="bcms-page">` and the Next adapter's container marker. The editor gates
|
|
143
143
|
the whole section lane on a CONTAINER marker rather than on the presence of blocks, so a page
|
|
@@ -145,7 +145,11 @@ const pass = { forms, components, turnstileSiteKey, nested: true };
|
|
|
145
145
|
|
|
146
146
|
Only on the outermost render: every self-recursion passes `nested: true`, and a marker on each
|
|
147
147
|
nested container would claim a column's interior is a page.
|
|
148
|
-
|
|
148
|
+
|
|
149
|
+
An expression comment, NOT `<!-- -->`: Astro emits HTML comments to the output, and this
|
|
150
|
+
component recurses into itself for columns/tabs/sliders/components, so an HTML comment here
|
|
151
|
+
shipped once per nesting level to every visitor (FLO-1161).
|
|
152
|
+
*/}
|
|
149
153
|
<div class={className} data-bcms-page={nested ? undefined : ""}>
|
|
150
154
|
{blocks.map((block) => {
|
|
151
155
|
const p = anyProps(block);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bettercms-ai/astro",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The BetterCMS adapter for Astro — a `bettercms()` integration, a `bettercms:client` virtual module, typed content loaders, draft preview, and native .astro rendering components.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"test:watch": "vitest"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@bettercms-ai/image-url": "^0.
|
|
51
|
-
"@bettercms-ai/sdk": "^1.12.
|
|
50
|
+
"@bettercms-ai/image-url": "^0.2.0",
|
|
51
|
+
"@bettercms-ai/sdk": "^1.12.1",
|
|
52
52
|
"@bettercms-ai/types": "^1.8.0",
|
|
53
53
|
"@bettercms-ai/ui": "^0.4.0"
|
|
54
54
|
},
|