@bettercms-ai/convert 0.5.0 → 0.6.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @bettercms-ai/convert
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5ad31fd: Astro SSR draft recipe now names `@astrojs/node` standalone, the auto-injected draft routes, and `loadPage` + `loadComponents`.
8
+
3
9
  ## 0.5.0
4
10
 
5
11
  ### Minor Changes
@@ -97,7 +103,7 @@ reject the checkout, which is what broke the migrator image on #616.
97
103
  has; a `bcmsField` the file demonstrably builds from our helper is left alone and only its
98
104
  bindings are wrapped; anything else is `SECTION_UNMIGRATABLE`.
99
105
 
100
- 🔴 A NAME IS NOT A PROVENANCE. Reusing anything *called* `bcmsFields` trusted an import from
106
+ 🔴 A NAME IS NOT A PROVENANCE. Reusing anything _called_ `bcmsFields` trusted an import from
101
107
  any module at all — `import { bcmsFields } from "./their-utils"` is a different function with
102
108
  the same name — and any coexisting `bcmsField` vouched for itself. The specifier must RESOLVE
103
109
  to the helper module this package writes (through the project's own aliases), and `bcmsField`
@@ -203,7 +209,7 @@ reject the checkout, which is what broke the migrator image on #616.
203
209
  catch, reached through the check itself. Two shapes are provable: a string literal and NOTHING
204
210
  else, and a template literal whose every interpolation is an INDEX (`[${i}]`, what a repeater
205
211
  writes, which cannot change the prefix). Everything else — `{computedPath}`, `{"a" + x}`,
206
- `` {`${prefix}.title`} `` — is opaque, and opaque is `PROP_MAP_INCONSISTENT`.
212
+ ``{`${prefix}.title`}`` — is opaque, and opaque is `PROP_MAP_INCONSISTENT`.
207
213
 
208
214
  - `COPY_MODE_MISMATCH` ignores sections the SERVER already refused.
209
215
 
@@ -224,7 +230,7 @@ reject the checkout, which is what broke the migrator image on #616.
224
230
 
225
231
  The in-place call site — `<Hero bind="hero" page={pageSnapshot("home")} />` — is written by
226
232
  the codemod from the plan and carries no `blockId` and no `overrides`; it never consults the
227
- CMS's blocks at all, which is exactly what makes the inline form componentisation *without*
233
+ CMS's blocks at all, which is exactly what makes the inline form componentisation _without_
228
234
  the page builder. Emitting it for a placement whose copy has MOVED rendered the page's field
229
235
  group and declared the page lane for an address that no longer holds anything. The component
230
236
  is still written; the page is left as its author wrote it.
@@ -294,7 +300,7 @@ reject the checkout, which is what broke the migrator image on #616.
294
300
  the dashboard renders. The committed helper needed nothing: `bcmsRows` already passes a
295
301
  nested array through untouched and `bcmsSection` hands a section its group whole.
296
302
 
297
- The bindings are `` data-bcms-field={`cards[${i}].items[${j}].label`} `` and the shape is
303
+ The bindings are ``data-bcms-field={`cards[${i}].items[${j}].label`}`` and the shape is
298
304
  `cards[*].items[*].label`; the loop now REPORTS the bindings it wrote, both loop variables
299
305
  included, instead of the caller re-deriving a literal the file does not contain. ONE level
300
306
  of nesting — what the plan mints and what the component prop validator accepts — so a leaf
package/dist/cli.js CHANGED
@@ -4794,7 +4794,7 @@ var parseFile4 = (dialect, content) => Promise.resolve(PARSE_FILE[dialect](conte
4794
4794
 
4795
4795
  // src/canvas.ts
4796
4796
  import MagicString3 from "magic-string";
4797
- var SSR_DRAFT_RECIPE = "Astro renders this site at build time, so there is no server to answer the editor's draft request. Either mount <BcmsLiveBlocks client:load> from @bettercms-ai/astro on the pages whose body is a block tree, or switch the preview routes to `output: 'server'` with the node adapter, mount @bettercms-ai/astro's draft routes, set BCMS_DRAFT_SECRET, redeploy, and switch the project to 'Run as a server app'.";
4797
+ var SSR_DRAFT_RECIPE = "Astro renders this site at build time, so there is no server to answer the editor's draft request. Either mount <BcmsLiveBlocks client:load> from @bettercms-ai/astro on the pages whose body is a block tree, or switch to `output: 'server'` with @astrojs/node (mode: 'standalone') \u2014 the bettercms() integration injects the draft routes for you \u2014 render pages from loadPage + loadComponents, mount <BcmsLive>, set BCMS_DRAFT_SECRET (BetterCMS hosting sets it for you), redeploy, and switch the project to 'Run as a server app'.";
4798
4798
  var isNode = (value) => !!value && typeof value === "object" && typeof value.type === "string";
4799
4799
  var FUNCTIONS3 = /* @__PURE__ */ new Set([
4800
4800
  "FunctionDeclaration",