@homepages/concrete 12.0.0 → 13.0.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.
Files changed (311) hide show
  1. package/CHANGELOG.md +192 -0
  2. package/README.md +8 -10
  3. package/codemods/fixtures-are-data.mjs +7 -0
  4. package/codemods/fixtures-list-properties.mjs +6 -0
  5. package/codemods/manifest.json +15 -0
  6. package/codemods/steps/fixtures-list-properties.mjs +16 -0
  7. package/codemods/steps/fixtures-to-data.mjs +41 -0
  8. package/dist/artifact/playground/client/assets/archivo-latin-ext-wght-normal-C4zznr8T.woff2 +0 -0
  9. package/dist/artifact/playground/client/assets/archivo-latin-wght-normal-E0tuGl4L.woff2 +0 -0
  10. package/dist/artifact/playground/client/assets/archivo-vietnamese-wght-normal-XAtsl5Q_.woff2 +0 -0
  11. package/dist/artifact/playground/client/assets/index-Bmvcss4B.js +1338 -0
  12. package/dist/artifact/playground/client/assets/index-C01UCAWD.css +1 -0
  13. package/dist/artifact/playground/client/index.html +2 -2
  14. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
  15. package/dist/artifact/playground/host.mjs +110 -59
  16. package/dist/base.css +2 -2
  17. package/dist/cli/build/icons.js +1 -1
  18. package/dist/cli/build/index.js +11 -10
  19. package/dist/cli/build/manifest.js +44 -0
  20. package/dist/cli/build/record.js +123 -0
  21. package/dist/cli/build/sections.js +28 -18
  22. package/dist/cli/build/source.js +1 -1
  23. package/dist/cli/build/static.js +8 -5
  24. package/dist/cli/build/template-build.js +614 -0
  25. package/dist/cli/check/analyze.js +18 -1
  26. package/dist/cli/check/load-workspace.js +2 -2
  27. package/dist/cli/check/portable-names.js +1 -1
  28. package/dist/cli/check/render/corpus.js +119 -0
  29. package/dist/cli/check/render/invariants.js +1 -0
  30. package/dist/cli/check/stages/bundles.js +15 -18
  31. package/dist/cli/check/stages/composition.js +8 -25
  32. package/dist/cli/check/stages/fixtures.js +14 -10
  33. package/dist/cli/check/stages/logic.js +7 -23
  34. package/dist/cli/check/stages/render.js +12 -14
  35. package/dist/cli/check/stages/sections.js +22 -66
  36. package/dist/cli/check/stages/stylesheet.js +4 -26
  37. package/dist/cli/check/stages/workspace.js +27 -22
  38. package/dist/cli/commands.js +51 -23
  39. package/dist/cli/currency/preamble.js +1 -1
  40. package/dist/cli/currency/resolve-latest.js +3 -2
  41. package/dist/cli/dev/capture-browser.js +26 -0
  42. package/dist/cli/dev/fixture-schema.js +441 -0
  43. package/dist/cli/dev/folder-files.js +244 -0
  44. package/dist/cli/dev/index.js +7 -3
  45. package/dist/cli/dev/playground-server.js +34 -0
  46. package/dist/cli/dev/section-ladders.js +76 -0
  47. package/dist/cli/dev/server.js +120 -304
  48. package/dist/cli/install/background.js +16 -0
  49. package/dist/cli/install/index.js +45 -0
  50. package/dist/cli/install/tools.js +27 -0
  51. package/dist/cli/media/derive.js +19 -13
  52. package/dist/cli/media/deriver-plugin.js +14 -3
  53. package/dist/cli/property/fixture-list.js +46 -0
  54. package/dist/cli/property/index.js +12 -9
  55. package/dist/cli/property/library.js +12 -10
  56. package/dist/cli/publish/artifact.js +90 -0
  57. package/dist/cli/publish/captures.js +61 -0
  58. package/dist/cli/publish/fixtures.js +17 -0
  59. package/dist/cli/publish/index.js +10 -18
  60. package/dist/cli/{build → publish}/playground.js +3 -3
  61. package/dist/cli/publish/report.js +15 -33
  62. package/dist/cli/upgrade/codemod.d.ts +14 -0
  63. package/dist/cli/upgrade/fixture-conversion.d.ts +11 -0
  64. package/dist/cli/upgrade/fixture-conversion.js +54 -0
  65. package/dist/cli/upgrade/fixture-modules.js +125 -0
  66. package/dist/cli/upgrade/fixtures-to-data.d.ts +40 -0
  67. package/dist/cli/upgrade/fixtures-to-data.js +498 -0
  68. package/dist/cli/upgrade/index.js +18 -2
  69. package/dist/cli/upgrade/legacy-fixtures.d.ts +34 -0
  70. package/dist/cli/upgrade/legacy-fixtures.js +22 -0
  71. package/dist/cli/upgrade/stage.js +1 -1
  72. package/dist/cli/workspace-fixtures.js +80 -0
  73. package/dist/cli.js +1 -0
  74. package/dist/css/compile.js +9 -3
  75. package/dist/fixtures/bundle-rule.js +16 -16
  76. package/dist/fixtures/media-plugin.js +12 -33
  77. package/dist/fixtures/synthesize-empties.js +3 -2
  78. package/dist/index.d.ts +7 -7
  79. package/dist/{playground-island-runtime.d.ts → island-runtime.d.ts} +1 -2
  80. package/dist/{playground-island-runtime.js → island-runtime.js} +1 -2
  81. package/dist/islands/client-module.js +1 -1
  82. package/dist/{cli/dev → islands}/tsconfig-paths.js +2 -14
  83. package/dist/islands/wrap.js +40 -0
  84. package/dist/node_modules/.pnpm/acorn@8.18.0/node_modules/acorn/dist/acorn.js +5119 -0
  85. package/dist/packages/external/concrete/package.js +1 -1
  86. package/dist/packages/internal/bundle-evaluation/dist/cache.js +36 -0
  87. package/dist/packages/internal/bundle-evaluation/dist/evaluate.js +174 -0
  88. package/dist/packages/internal/bundle-evaluation/dist/index.js +5 -0
  89. package/dist/packages/internal/bundle-evaluation/dist/section-code.js +10 -0
  90. package/dist/packages/internal/capture-settle/dist/index.js +2 -2
  91. package/dist/packages/internal/capture-settle/dist/settle.js +88 -13
  92. package/dist/packages/internal/code-fingerprint/dist/index.js +57 -0
  93. package/dist/packages/internal/content-doc-ops/dist/index.js +176 -0
  94. package/dist/packages/internal/content-doc-ops/dist/made-rows.js +15 -0
  95. package/dist/packages/internal/deliverable-reads/dist/bootstrap.js +81 -0
  96. package/dist/packages/internal/deliverable-reads/dist/display.js +21 -0
  97. package/dist/packages/internal/deliverable-reads/dist/format.js +15 -0
  98. package/dist/packages/internal/deliverable-reads/dist/index.js +7 -0
  99. package/dist/packages/internal/deliverable-reads/dist/pages.js +29 -0
  100. package/dist/packages/internal/deliverable-reads/dist/requirements.js +72 -0
  101. package/dist/{cli/capture → packages/internal/download-files/dist}/bundle.js +8 -4
  102. package/dist/packages/internal/download-files/dist/capture-origin.js +126 -0
  103. package/dist/packages/internal/download-files/dist/capture-routes.js +139 -0
  104. package/dist/packages/internal/download-files/dist/capture-shell.js +38 -0
  105. package/dist/packages/internal/download-files/dist/capture.js +74 -0
  106. package/dist/packages/internal/download-files/dist/egress-watch.js +38 -0
  107. package/dist/packages/internal/download-files/dist/files.js +7 -0
  108. package/dist/packages/internal/download-files/dist/finish.js +35 -0
  109. package/dist/packages/internal/download-files/dist/fleet.js +94 -0
  110. package/dist/packages/internal/download-files/dist/format.js +40 -0
  111. package/dist/packages/internal/download-files/dist/make.js +105 -0
  112. package/dist/packages/internal/download-files/dist/master-tally.js +32 -0
  113. package/dist/packages/internal/download-files/dist/names.js +24 -0
  114. package/dist/packages/internal/download-files/dist/pdf-boxes.js +33 -0
  115. package/dist/packages/internal/download-files/dist/pdf-image-placements.js +194 -0
  116. package/dist/packages/internal/download-files/dist/pdf-images.js +289 -0
  117. package/dist/packages/internal/file-store/dist/files.js +8 -0
  118. package/dist/packages/internal/file-store/dist/lru.js +40 -0
  119. package/dist/packages/internal/file-store/dist/refusal.js +12 -0
  120. package/dist/packages/internal/file-store/dist/trees.js +151 -0
  121. package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +1 -1
  122. package/dist/packages/internal/fill-bake/dist/compute-reads.js +47 -21
  123. package/dist/packages/internal/fill-bake/dist/index.js +5 -1
  124. package/dist/packages/internal/fill-bake/dist/item-merge.js +4 -3
  125. package/dist/packages/internal/fill-bake/dist/resolve-instance.js +9 -0
  126. package/dist/packages/internal/fill-bake/dist/resolve.js +3 -0
  127. package/dist/packages/internal/fill-bake/dist/round-trip.js +2 -0
  128. package/dist/packages/internal/fill-bake/dist/strip.js +6 -0
  129. package/dist/packages/internal/fill-vocabulary/dist/holder.js +1 -1
  130. package/dist/packages/internal/fill-vocabulary/dist/resolved-decision.js +1 -1
  131. package/dist/packages/internal/fill-vocabulary/dist/verbs.js +1 -1
  132. package/dist/packages/internal/island-runtime/dist/index.js +1 -10
  133. package/dist/packages/internal/island-runtime/dist/use-capture-ready.d.ts +5 -0
  134. package/dist/packages/internal/lead-fields/dist/ingest.js +72 -0
  135. package/dist/packages/internal/media-resolution/dist/video.js +6 -2
  136. package/dist/packages/internal/page-render/dist/addresses.js +57 -0
  137. package/dist/packages/internal/page-render/dist/index.js +6 -0
  138. package/dist/packages/internal/page-render/dist/kept.js +30 -0
  139. package/dist/packages/internal/page-render/dist/nav.js +42 -0
  140. package/dist/packages/internal/page-render/dist/render.js +152 -0
  141. package/dist/packages/internal/page-shell/dist/assemble.js +161 -0
  142. package/dist/packages/internal/page-shell/dist/escape.js +10 -0
  143. package/dist/packages/internal/page-shell/dist/frame.js +23 -0
  144. package/dist/packages/internal/page-shell/dist/index.js +26 -0
  145. package/dist/packages/internal/playground/dist/build-fingerprint.js +18 -0
  146. package/dist/packages/internal/playground/dist/fixture-conversions/list-names-properties.js +76 -0
  147. package/dist/packages/internal/playground/dist/fixture-formats.d.ts +37 -0
  148. package/dist/packages/internal/playground/dist/fixture-formats.js +20 -0
  149. package/dist/packages/internal/playground/dist/host/bootstrap.js +108 -0
  150. package/dist/packages/internal/playground/dist/host/built.js +202 -0
  151. package/dist/packages/internal/playground/dist/host/catalog-fixture.js +53 -0
  152. package/dist/packages/internal/playground/dist/host/download.js +34 -0
  153. package/dist/packages/internal/playground/dist/host/env.js +11 -0
  154. package/dist/packages/internal/playground/dist/host/everywhere-saves.js +353 -0
  155. package/dist/packages/internal/playground/dist/host/fixture-addresses.js +52 -0
  156. package/dist/packages/internal/playground/dist/host/fixture-documents.js +494 -0
  157. package/dist/packages/internal/playground/dist/host/fixture-operations.js +364 -0
  158. package/dist/packages/internal/playground/dist/host/fixture-units.js +93 -0
  159. package/dist/{fixtures → packages/internal/playground/dist/host}/image-dimensions.js +1 -1
  160. package/dist/packages/internal/playground/dist/host/leads.js +41 -0
  161. package/dist/packages/internal/playground/dist/host/media-saves.js +309 -0
  162. package/dist/{fixtures → packages/internal/playground/dist/host}/media-store.js +79 -26
  163. package/dist/packages/internal/playground/dist/host/overridable.js +9 -0
  164. package/dist/packages/internal/playground/dist/host/owned-saves.js +203 -0
  165. package/dist/{playground → packages/internal/playground/dist}/host/page-state.js +1 -1
  166. package/dist/packages/internal/playground/dist/host/program.js +54 -0
  167. package/dist/packages/internal/playground/dist/host/property-derive.js +216 -0
  168. package/dist/packages/internal/playground/dist/host/property-saves.js +74 -0
  169. package/dist/{fixtures → packages/internal/playground/dist/host}/property.js +88 -229
  170. package/dist/packages/internal/playground/dist/host/provenance.js +49 -0
  171. package/dist/packages/internal/playground/dist/host/resolve.js +553 -0
  172. package/dist/packages/internal/playground/dist/host/row-images.js +41 -0
  173. package/dist/{fixtures → packages/internal/playground/dist/host}/rows.js +1 -1
  174. package/dist/packages/internal/playground/dist/host/save.js +429 -0
  175. package/dist/packages/internal/playground/dist/host/serve.js +952 -0
  176. package/dist/packages/internal/playground/dist/host/site.js +79 -0
  177. package/dist/packages/internal/playground/dist/host/slots.js +202 -0
  178. package/dist/packages/internal/playground/dist/host/stated-content.js +93 -0
  179. package/dist/packages/internal/playground/dist/host/stored-fixtures.js +135 -0
  180. package/dist/packages/internal/playground/dist/host/violations.js +7 -0
  181. package/dist/packages/internal/playground/dist/jobs/lanes.js +24 -0
  182. package/dist/packages/internal/playground/dist/jobs/memory-queue.js +112 -0
  183. package/dist/packages/internal/playground/dist/jobs/probe.js +37 -0
  184. package/dist/packages/internal/playground/dist/jobs/queue.js +28 -0
  185. package/dist/packages/internal/playground/dist/jobs/runner.js +207 -0
  186. package/dist/packages/internal/playground/dist/layout.js +14 -0
  187. package/dist/packages/internal/playground/dist/platform.js +33 -0
  188. package/dist/packages/internal/playground/dist/server/changes.js +57 -0
  189. package/dist/packages/internal/playground/dist/server/crop.js +47 -0
  190. package/dist/packages/internal/playground/dist/server/derived-files.js +88 -0
  191. package/dist/packages/internal/playground/dist/server/download.js +158 -0
  192. package/dist/{cli/dev → packages/internal/playground/dist/server}/http.js +4 -12
  193. package/dist/packages/internal/playground/dist/server/jobs.js +29 -0
  194. package/dist/{cli/dev → packages/internal/playground/dist/server}/listen.js +4 -11
  195. package/dist/packages/internal/playground/dist/server/playground-server.js +424 -0
  196. package/dist/{cli/dev → packages/internal/playground/dist/server}/request-error.js +1 -1
  197. package/dist/packages/internal/playground/dist/server/size-ladders.js +170 -0
  198. package/dist/packages/internal/playground/dist/server/verification.js +75 -0
  199. package/dist/packages/internal/playground/dist/server/verify-build.js +139 -0
  200. package/dist/packages/internal/playground/dist/wire.js +78 -0
  201. package/dist/packages/internal/property-facts/dist/registry-facts.js +1 -1
  202. package/dist/packages/internal/section-contracts/dist/fill-verb-contract.js +1 -1
  203. package/dist/packages/internal/section-contracts/dist/reads-acyclic-contract.js +1 -1
  204. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +1 -1
  205. package/dist/packages/internal/site-files/dist/head.js +59 -0
  206. package/dist/packages/internal/site-files/dist/index.js +4 -0
  207. package/dist/packages/internal/site-files/dist/site.js +211 -0
  208. package/dist/packages/internal/static-assets-binding/dist/index.js +32 -0
  209. package/dist/packages/internal/static-assets-binding/dist/section-asset-url.js +38 -5
  210. package/dist/packages/internal/template-artifact/dist/asset-mime.js +8 -1
  211. package/dist/packages/internal/template-artifact/dist/build.js +148 -0
  212. package/dist/packages/internal/template-artifact/dist/composition.js +62 -0
  213. package/dist/packages/internal/template-artifact/dist/index.js +2 -2
  214. package/dist/packages/internal/template-artifact/dist/layout.js +48 -12
  215. package/dist/packages/internal/template-artifact/dist/manifest.js +3 -10
  216. package/dist/packages/internal/template-artifact/dist/verify.js +51 -31
  217. package/dist/packages/internal/template-contracts/dist/address-value.js +6 -1
  218. package/dist/packages/internal/template-contracts/dist/content-categories.js +10 -1
  219. package/dist/packages/internal/template-contracts/dist/fact-compute.d.ts +1 -1
  220. package/dist/packages/internal/template-contracts/dist/fact-keys.d.ts +1 -1
  221. package/dist/packages/internal/template-contracts/dist/fact-registry.d.ts +3 -3
  222. package/dist/packages/internal/template-contracts/dist/fact-registry.js +59 -32
  223. package/dist/packages/internal/template-contracts/dist/fill-spec.js +14 -1
  224. package/dist/packages/internal/template-contracts/dist/list.d.ts +3 -3
  225. package/dist/packages/internal/template-contracts/dist/media-candidates.js +67 -2
  226. package/dist/packages/internal/template-contracts/dist/media-offer.js +180 -0
  227. package/dist/packages/internal/template-contracts/dist/object.d.ts +2 -2
  228. package/dist/packages/internal/template-contracts/dist/primitive-descriptors.js +9 -2
  229. package/dist/packages/internal/template-contracts/dist/read-graph.js +36 -2
  230. package/dist/packages/internal/template-contracts/dist/ref-locate.js +16 -1
  231. package/dist/packages/internal/template-contracts/dist/registry-facts.d.ts +9 -10
  232. package/dist/packages/internal/template-contracts/dist/registry-facts.js +12 -1
  233. package/dist/packages/internal/template-contracts/dist/registry-graph.js +112 -0
  234. package/dist/packages/internal/template-contracts/dist/registry-shape.js +15 -2
  235. package/dist/packages/internal/template-contracts/dist/require-graph.js +300 -0
  236. package/dist/packages/internal/template-contracts/dist/row-ref.d.ts +3 -3
  237. package/dist/packages/internal/template-contracts/dist/row.d.ts +3 -3
  238. package/dist/packages/internal/template-contracts/dist/runtime-values.d.ts +1 -1
  239. package/dist/{schema → packages/internal/template-contracts/dist}/section-nav.d.ts +1 -1
  240. package/dist/packages/internal/template-contracts/dist/slot-builders.d.ts +4 -4
  241. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +3 -1
  242. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +24 -1
  243. package/dist/packages/internal/template-contracts/dist/slot-overrides.js +26 -1
  244. package/dist/packages/internal/template-contracts/dist/slot-ref.d.ts +1 -1
  245. package/dist/packages/internal/template-contracts/dist/slot-types.js +1 -1
  246. package/dist/packages/internal/template-contracts/dist/slot-value.d.ts +1 -1
  247. package/dist/packages/internal/template-contracts/dist/table-members.js +7 -2
  248. package/dist/packages/internal/template-contracts/dist/video-value.d.ts +1 -1
  249. package/dist/packages/internal/upload-formats/dist/heic.js +35 -0
  250. package/dist/packages/internal/upload-formats/dist/index.js +80 -0
  251. package/dist/packages/internal/upload-formats/dist/magic-bytes.js +293 -0
  252. package/dist/platform/paths.js +1 -0
  253. package/dist/platform/process.js +49 -1
  254. package/dist/rules/registry.js +27 -3
  255. package/dist/schema/fact.d.ts +2 -2
  256. package/dist/schema/facts-view.d.ts +1 -1
  257. package/dist/schema/section-props.d.ts +1 -1
  258. package/dist/schema/section-schema.d.ts +1 -1
  259. package/dist/schema/section-schema.js +1 -0
  260. package/dist/section/declare.d.ts +1 -1
  261. package/dist/section/discovery.js +6 -2
  262. package/dist/section/publish-shape.js +38 -0
  263. package/dist/section/section.d.ts +1 -1
  264. package/dist/template/define-template.d.ts +14 -4
  265. package/dist/template/define-template.js +2 -0
  266. package/dist/template/logic-shim.d.ts +1 -1
  267. package/dist/template/materialize.js +1 -1
  268. package/dist/template/running-copy.js +0 -1
  269. package/dist/template/section-reads.js +1 -1
  270. package/guide/reference/cli/INDEX.md +6 -5
  271. package/guide/reference/cli/build.md +10 -8
  272. package/guide/reference/cli/check.md +4 -2
  273. package/guide/reference/cli/dev.md +6 -2
  274. package/guide/reference/cli/install.md +41 -0
  275. package/guide/reference/cli/property-add.md +5 -4
  276. package/guide/reference/cli/property-list.md +2 -2
  277. package/guide/reference/cli/publish.md +5 -5
  278. package/guide/reference/cli/upgrade.md +1 -1
  279. package/guide/reference/rules/INDEX.md +8 -4
  280. package/package.json +14 -30
  281. package/dist/artifact/playground/client/assets/index-BcLGpWLR.js +0 -1266
  282. package/dist/artifact/playground/client/assets/index-CxWPYOH2.css +0 -1
  283. package/dist/cli/build/artifact.js +0 -220
  284. package/dist/cli/build/captures.js +0 -48
  285. package/dist/cli/build/fixtures.js +0 -92
  286. package/dist/cli/capture/capture-browser.js +0 -37
  287. package/dist/cli/capture/capture.js +0 -115
  288. package/dist/cli/check/render/inputs.js +0 -60
  289. package/dist/cli/check/render/nav.js +0 -31
  290. package/dist/cli/dev/crop.js +0 -20
  291. package/dist/cli/dev/fixture-ladders.js +0 -96
  292. package/dist/cli/dev/hmr.js +0 -26
  293. package/dist/cli/dev/islands.js +0 -234
  294. package/dist/cli/dev/load-template.js +0 -52
  295. package/dist/cli/dev/vite.js +0 -114
  296. package/dist/cli/dev/workspace-reader.js +0 -249
  297. package/dist/cli/publish/freshness.js +0 -64
  298. package/dist/fixtures/brand.d.ts +0 -4
  299. package/dist/fixtures/brand.js +0 -8
  300. package/dist/fixtures/load.js +0 -159
  301. package/dist/fixtures/resolve.js +0 -392
  302. package/dist/fixtures.d.ts +0 -429
  303. package/dist/fixtures.js +0 -23
  304. package/dist/packages/internal/canvas-core/dist/island-host.js +0 -62
  305. package/dist/packages/internal/canvas-core/dist/island-shields.js +0 -30
  306. package/dist/playground/canvas-island-host.d.ts +0 -11
  307. package/dist/playground/canvas-island-host.js +0 -29
  308. package/dist/playground/canvas-markers.js +0 -14
  309. package/dist/playground/host/paths.js +0 -8
  310. package/dist/playground/layout.js +0 -17
  311. package/dist/playground/wire.js +0 -28
package/CHANGELOG.md CHANGED
@@ -1,5 +1,197 @@
1
1
  # @homepages/concrete
2
2
 
3
+ ## 13.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f6faecc: `sharp` is exactly 0.35.5, the version the platform cuts images with. 0.35.3 carries two high-severity advisories in the libheif and librsvg it bundles (GHSA-rgj7-g3m4-5g8c, GHSA-wq5f-xc86-pv6w), so `npm audit` failed `concrete check` in every workspace on 13.0.0.
8
+
9
+ 0.35.5 reads a camera HEIC's header, though it still cannot decode HEVC, so an image derive now refuses such a HEIF as undecodable before its first decode instead of failing on it.
10
+
11
+ ## 13.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - 1aa860c: Manual: stop reading an artifact out of `.concrete/build/` — run `concrete publish` to publish, and drop `--rebuild` from any `concrete publish` invocation.
16
+
17
+ `concrete build` only builds. It writes the template's built files — each section's schema, fill spec, logic, renderer and island chunks, the template's composition and stylesheet, and the assets and shared bundles they name — with `build.json`, which records every file's hash, the template's and each section's content hash, and which sections the run built. It grades nothing and writes no artifact: no manifest, fixtures, playground or captures. It is incremental: a section is built again only when a file its bundles were made from changed, so an edit to one section rebuilds that section and the sections that import it. A step that cannot build fails the command and writes nothing.
18
+
19
+ `concrete check` runs the build and grades what it wrote. Its report is unchanged; a step that could not build is reported as the finding of its stage.
20
+
21
+ `concrete publish` builds, checks and assembles the artifact on every run, and never reuses one. The `--rebuild` flag is gone.
22
+
23
+ - 06c74f1: Manual: fix any section `concrete build` refuses before opening it in `concrete dev` — the playground now shows the build's failures instead of the template.
24
+
25
+ `concrete dev` runs on the build. It builds the template as `concrete build` does, into `.concrete/dev`, and serves the playground over the built files, the ones a published link reads. Every change to a source file builds again, keeping each section the change does not reach, and every open playground shows the new build; a change to a fixture document loads the fixtures again without building. An island is the build's own chunk, so an edit to one reloads its frames rather than keeping its state. An image whose responsive ladder is not derived yet serves as its own file, and the sections that import it build again once it lands. Download captures what the build renders, on demand, and `concrete publish` takes the artifact's captures the same way, over the build it checked.
26
+
27
+ The playground no longer opens a module-reload socket at `--port` + 100, so any `--port` works. Vite is no longer a dependency of the package.
28
+
29
+ - 3f4af33: Fixtures are data, only. `@homepages/concrete/fixtures` is gone — `defineFixture`, `content` and the `Property` and entry types with it — and nothing evaluates a TypeScript fixture module any more: `concrete dev`, `check` and `build` load the content fixtures and property documents the fixture list in `template.ts` names (`fixtures: "./fixtures/index.json"`), and a template with no list is a `fixtures/none` finding. `concrete upgrade` converts a workspace with this major's codemod, `fixtures-are-data`: it evaluates the old fixture modules one last time, supplying the retired subpath itself, writes each fixture as a content fixture and each property as a property document, adds the list to `template.ts`, and removes the modules. A property made by spreading another becomes a property of its own with a copy of its files; the codemod prints those with their size, so you can drop any whose state is one edit away in the playground.
30
+
31
+ `template.ts` is the only file Concrete finds by name. `fixtures/` is no longer a reserved directory: modules under it are discovered like any other, and `fixtures/reachable-from-bundle` now refuses a module `template.ts` reaches when it imports a file the fixture list reaches (the list, a document, a media file one names), wherever it sits. `concrete property add` copies a property document from the library's `documents` line into a `properties/` folder beside the fixture list, and prints the content fixture to make on it. Saving a fixture from the `concrete dev` playground is not available in this version: edit its document, and the playground reloads.
32
+
33
+ - 4ff9bdb: The fixture list names properties, and a fixture has one name. `fixtures/index.json` lists `properties` — every property, by its document, in the order the playground offers them — beside `fixtures`, and a property is listed whether or not a content fixture is on it; every property a listed content fixture is on must be listed. A content fixture's name is its file name and a property's is its folder's: a content fixture no longer states a `label`, and `concrete check` reports one (`fixtures/document-invalid`). A property's document sits in a folder of its own, holding no list, no content fixture and no other property, and property names are unique across the template like content fixture names. The fixture schemas `concrete dev` writes follow, and `concrete property add` prints the entry to add to `properties`.
34
+
35
+ This is fixture format 2. `concrete upgrade` converts a workspace with this major's codemod, `fixtures-list-properties`, after `fixtures-are-data`: it adds `properties` to the list, in the order the content fixtures first name them, removes every `label`, and renames and moves nothing. A removed label that said more than its file name is handed back, so you can rename the fixture if its name should say it.
36
+
37
+ - fdf8b83: Manual: republish every template once this version is the one you publish with; the platform refuses an artifact built by an earlier version.
38
+
39
+ A published template carries its fixtures as authored. `concrete publish` ships every file the fixture list reaches — the list, each content fixture, each property document and each media file it names — under the artifact's `fixtures/`, at the paths they have in the workspace, and the manifest names the list by its path (`fixture_list`). No fixture rides resolved any more: there is no `content-doc.json`, `settled-doc.json`, `property.json` or `meta.json` per fixture, and a fixture's media no longer joins `assets/`. This is artifact schema 5. A published link loads the same documents `concrete dev` loads, through the same loader, and saves into them.
40
+
41
+ The playground host module loads fixtures itself for a reader that resolves none: `HostReader.fixtures` is optional, and a host given a store and `HostEnv.fixtureList` (the list's path in the store) loads and resolves the fixtures there, over each section's published version and its `computes`. A `FixtureFileStore` may state a file's `size` and a `revision`, which the host keeps its loaded fixtures under until it moves, and `HostReader.captured` names the fixtures a reader holds a shipped capture of.
42
+
43
+ ### Minor Changes
44
+
45
+ - 38d0705: The playground's fact surfaces answer for a property on their own. A contact's headshot or logo, or a comparable's photo, uploaded in a table's row lands in the property's `media/` folder at once, and the save that follows names it in the row; no content fixture changes. A slot's upload on the canvas still stages in its content fixture until Update everywhere, as before. `api/requirements?property=<name>` answers the template's requirements over the property's facts, for a property with or without content on it, and the table modal reads it. The wire is version 6: `HostSaves` gains `served(path)`, what a media file serves as before any document names it.
46
+ - d34ccd5: `concrete build` writes the template's `manifest.json` with its built files, the same manifest `concrete publish` ships, and `concrete dev`'s playground reads it. The build's record moves out of the output directory and sits beside it: `.concrete/build.json` for the default `.concrete/build/`, `<dir>.json` for `--out <dir>`. The output directory holds the build and nothing else. A directory an earlier build wrote, record inside, is replaced whole by the next build.
47
+
48
+ The playground reads a template's files as its workspace, path for path, with the build as the one folder `.concrete/build/`: a fixture file has the same path in the workspace, in `concrete dev` and on the development console. A save never writes into the build folder. A published artifact is unchanged.
49
+
50
+ - e34ee9f: Captures run the Chromium build the platform renders with. Concrete now depends on `playwright-core` at the platform's exact version and launches it from itself, so the playground's Download and `concrete publish` no longer use whatever Playwright a workspace installed, and a workspace needs no `@playwright/test`: remove it from `devDependencies` if you added it for captures. On a machine without that build, a capture answers with the one command that installs it: `npx playwright-core@<version> install chromium`.
51
+ - 753c7f1: New command: `concrete install` installs the tools the playground runs, at the builds this release pins. Today that is the Chromium build captures use, which goes into Playwright's per-user cache. A tool already installed downloads nothing. `concrete upgrade` runs it after it moves the package's version. `concrete dev` starts the install of a missing tool in the background and says so in one line, and a capture asked for meanwhile waits for it. A capture on a machine without the browser now answers `npx concrete install`.
52
+ - 8627510: In `concrete dev`, the playground verifies the build as the development console does: `POST api/verify` loads every section's logic and renderer the way the platform loads them, renders each once with empty slots, and answers the verdict, naming each file that fails to load or throws. The first ask starts a job and answers it (`202`); once the job is done, an ask answers the verdict (`200`), kept under `.concrete/cache/derived` for that build and this framework version, so asking again starts no job.
53
+ - 5a5c4d7: The playground's Download is the platform's own download. A content fixture's download lives at its own address, `properties/<property>/content/<content>/download[?format=]`: a document template's PDF, now finished with its trim and bleed boxes and title, or an image template's zip of its enabled pages (one page left on downloads as that page's PNG), named as the platform names them. `download/<page>.png[?format=]` gives one page as an image, a document template's page too. It is made in a job by the code the platform makes downloads with, from the HTML the canvas shows, and kept under `.concrete/cache`, so asking again for an unchanged download answers at once and asking twice while one is made makes it once. Past about a minute the address answers `202`: ask again, which joins the same job. The `api/capture/…` routes, the `__capture/…` documents and `api/capture-probe` are removed with no redirect: a tool that read them reads the download address. `concrete publish` takes the artifact's captures from the same addresses.
54
+ - 54c908a: `concrete publish` states the format its fixtures are in when it sends a template to the development console, so the console can hold its stored fixtures in the same format, converting them when a release changes the files authors write under `fixtures/`, and refuse a send whose fixtures are older than the ones it holds (run `concrete upgrade`, then send again). A release that changes that format ships a codemod running the same conversion over your workspace.
55
+ - 7cba6ce: A fixture can state the user's override of a sourced slot. `content()`'s third argument takes `overrides` beside `instance`: a value slot bound to a fact, a row's member or a `compute()`, by slot id, and a top-level object's sourced fields, by field, typed by the section's sourced slots. Each override replaces what its source resolves to and is marked the user's (`slot_overrides`), exactly as the platform's editor marks the same edit, so nothing re-derives it and a slot reading it re-derives from the user's value. The playground shows an overridden slot as authored.
56
+ - f1a49df: Fixtures can be data documents. `defineTemplate` takes `fixtures: "./fixtures/index.json"`, a fixture list naming content fixtures, each a JSON document stating the property document it is on and what each placed instance holds (`slots`, `slot_overrides`, `enabled`, `variant`). A property document is a property's facts with each file named by a path relative to it and each pick written `{ "media": "<upload id>" }`. `concrete dev`, `check` and `build` load these beside the TypeScript fixtures, and a data fixture renders exactly as the same fixture written in TypeScript. A document that does not match the template, names a file outside its own folder or names one that is missing is reported with its file and the path inside it, and a reference to an upload or row its property no longer holds loads empty and is reported. `concrete dev` writes JSON Schemas for a template's content fixtures and fixture list under `.concrete/schema/`, so an editor completes instance ids and slot names. Saving a data fixture from the playground is not available yet.
57
+ - d982447: `concrete dev`'s playground makes, renames, duplicates and deletes fixtures from its floating control. Each entry of the Property and Content drop-downs has a menu (Rename, Duplicate, Delete), and each drop-down ends with New. A name is typed in place: lowercase letters, digits and dashes, a space becoming a dash, unique per kind across the template. Delete asks first, in place, and a property's delete names every content fixture that goes with it.
58
+
59
+ Each change is one request to `api/fixtures` and lands on the workspace's files at once:
60
+
61
+ - A new property is `properties/<name>/property.json` beside the fixture list, stating nothing yet, and opens on its facts page. A new content fixture is `<name>.json` beside the list, stating only its property.
62
+ - Renaming moves the content fixture's document and its own folder, or the property's whole folder (its media, sources and notes with it), and rewrites the list's entry and every content fixture that names the property.
63
+ - Duplicating copies under the new name beside the original; a property is copied without its content fixtures.
64
+ - Deleting removes the fixture's files and its entry; a property takes every content fixture on it. A folder the change empties is removed.
65
+
66
+ A taken or malformed name is refused in the playground's words and nothing is written. With the last fixture deleted, the page says there are no fixtures, and New property is in the control.
67
+
68
+ - df2acba: A codemod step converts a workspace's TypeScript fixtures to data documents: `codemods/steps/fixtures-to-data.mjs`, which a workspace runs by importing it from the installed package and calling its default export with the workspace root. It evaluates the fixture modules one last time and writes each fixture as a content fixture, each property it is on as a property document, and the fixture list, which it adds to `template.ts` as `fixtures: "./fixtures/index.json"`; the fixtures render as before. A property a folder's `property.ts` exports is written beside it; one made by spreading another, or stated inline, becomes a property of its own in a folder of its own, with a copy of every file it names and that file's `sources.json` row. The step prints those with their size, so you can drop any whose state is one edit away in the playground. A fixture's id becomes its file name, its export name in kebab case. The modules under `fixtures/` are removed, with every module elsewhere that only they import; a test module under `fixtures/` is handed back.
69
+ - e446b6d: `concrete dev`'s playground shows a website's live site as one of its own pages, at `properties/<property>/content/<content>/live[/<page path>]`: the site in a frame that fills the page, with the floating control over it. The control gains a Page switch (Canvas, and Live on a website template), and View live leads to this page. Following a link inside the site moves the playground's address, so Back and a reload open the same page; changing the content fixture keeps the site page and the scroll offset, or opens the site's first page when the fixture switches that page off. The site's own address, `fixtures/<content>/live/…`, still returns the site alone, and now refuses a page the fixture switches off, as publishing leaves it out.
70
+ - 9c6f76f: `concrete dev`'s playground renders every view of a content fixture under one address: its site, `properties/<property>/content/<content>/site/`, for a website template, and its download, `properties/<property>/content/<content>/download/`, for an image or a document template. A section's HTML is now the same on the canvas, on the live site and in a capture. Media in it is named the way a published site names it, `<that address>assets/img/<hash>.<ext>`, and the build's files sit under `<that address>assets/`; an image or a document template names nothing under a site's address. A crop is a file of its own under the same folder, cut once and kept. A page that has not changed is not rendered again. The live site's frame and its page links now use the site's address; `fixtures/<content>/live/…` still returns the same page.
71
+ - 76c762a: The playground's floating control is a white settings button drawn like the canvas's zoom and page bars: their surface, line, shadow and icon ink. It shows a pointer and sinks a little when pressed. Thrown, it settles in the corner it was thrown toward, not only the quarter it was let go in. A press anywhere outside the open control, the canvas included, closes it. The container lists its rows as one list, without dividers.
72
+ - 75e2cb0: The playground's floating control counts the problems an author or their agent has to fix. The closed button shows their count and nothing else; the container's first row, Problems, opens a page listing each one as plain text to copy. A fixture that loads with a fault (a media file that is missing, say) is a problem while every fixture still loads, as is a template that did not build or compose, and the playground answers the same list in one request at `api/problems`, so an agent reads it without the interface. A refused save raises the count without opening the container, and clears when the next save lands or the author dismisses it. Fixing the file clears its problem in `concrete dev` without a reload.
73
+ - c124480: `concrete dev`'s playground has a facts page at `properties/<property>/facts`: the property's facts on the same Details page the app shows, beneath the floating control. An edit autosaves into the property's document, and every content fixture on the property reads it. The control's Page switch lists Facts wherever a property is on view, and Canvas and Live only where the property has a content fixture to open; a new property, and one with no content fixture, open on their facts page. Going from the canvas to Facts or Live and back keeps the canvas open beneath, so no frame reloads and the selection, zoom and scroll stay; the facts page keeps its own scroll too. The control shows the facts page's save status, and a save the playground refuses is counted among its problems.
74
+ - 7fcc3ed: The playground answers two new reads: `api/bootstrap?fixture=` opens a fixture as the deliverable an editor opens — the template's pages, canvases and instances, each section as it would publish, the fixture's doc and facts, the opening canvas rendered, and the frame's island inputs and stylesheets beside it — and `api/requirements?fixture=` answers the fixture's required content. Both are computed by the same code the platform uses for a deliverable. A section `concrete check` would refuse opens no editor: both reads name it and point at `concrete check`.
75
+ - 8de00a6: The playground (`concrete dev` and a published playground link) has one floating control, on every page, its own messages included. It is a round button at the top left that drags to any corner and snaps there; it opens a container that stays open until the button or Escape closes it, and the browser remembers its corner and whether it is open. The fixture, the format and the trim and bleed guides are chosen there, and the save status reads there, so the editor's panel shows only what the app shows: the provenance chips on each card, and Download or View live at its foot.
76
+ - 706429d: The playground in `concrete dev` saves uploads, pasted links and the library's delete into the property document, and its catalog says `capabilities.upload: true` wherever the host saves. A file uploaded into a media list (a photo, a floor plan, a document or a hosted video) is checked on its bytes against the kinds and size cap the platform's upload accepts, written into the property's folder as `media/<id><ext>`, and added to the property document's `uploads` and the list it was dropped on; a refused file writes nothing. A pasted video or tour link adds an upload entry with its `url` and `provider`. Removing an item from the uploads removes it from the property document — its entry, its item in every list, every pick of it — and its file; removing it from a sorted list removes only that item and the picks that list feeds. A content fixture that still picks a removed upload loads with that slot empty. A row's own image and a slot that owns its media are not saved yet. `HostFileWrite` is a document's text, a media file's bytes, or a removal.
77
+ - 560add9: The playground (`concrete dev` and a published playground link) edits a fixture in the platform's own canvas editor: what a template author sees and does there is what a user of the app sees and does with the template. It gains undo and redo, zoom, required-content marks, page eyes, editing a mirrored slot through its source, field-level selection from the canvas, scrolling the canvas to a selection, and the table picker (Choose, with a row's add and edit). Every edit saves into the fixture as it is made; a host that does not save opens no editor and says so.
78
+
79
+ Each slot card shows its provenance chip in the card's header, and Download (or View live) sits at the panel's foot. An address field suggests from a fixed set of synthetic places and places its pin on a plain grid, since a playground reaches no geocoding provider.
80
+
81
+ - 71d41d7: The `concrete dev` playground addresses a property on its own. The floating control has a Property drop-down, which lists every property in the fixture list with its summary and how many content fixtures it has, and a Content drop-down, which lists only the chosen property's content fixtures. These replace the Fixture drop-down. Choosing a property opens its first content fixture. Each switch from the control adds a browser history entry, so Back returns to the fixture you were on.
82
+
83
+ The playground's addresses are now `properties/<property>` and `properties/<property>/content/<content>/canvas[/<canvas>][?format=<format>]`. `properties/<property>/facts` is reserved for the facts page. Opening a property's address opens its first content fixture. A property with no content fixtures shows a message instead. An address that puts a content fixture under the wrong property is corrected to the property the fixture is on. An address with a name that does not exist shows a message under the control that lists the names that do. The old `fixtures/<fixture>/canvas` addresses are gone, with no redirect. A live site page keeps its address, `fixtures/<content>/live/…`.
84
+
85
+ The playground's wire is now version 5. `api/catalog` lists `properties`, each with its `name`, its `summary` and its `content` fixtures in order, in place of a flat `fixtures` list. Each content fixture has one `name` and no `label`. An entry can carry `progress` for work under way. Requests about a property name it with `property`: `api/facts`, `api/media`, an Update everywhere save, an upload or a pasted link into one of its lists, and a library removal. An Update everywhere save also names the content `fixture` when it relinks slots or commits a staged image. A row image upload names its `property` and the content `fixture` it is staged in. Requests about content keep `fixture`: the bootstrap, a render, the requirements, a content save, an upload or link into a slot that owns its media, a capture and a live page. A content fixture's own files moved from `api/media`'s `owned` member to a separate `api/owned?fixture=` route. A save's answer also lists the `properties` whose entries it changed.
86
+
87
+ - 44e262d: The playground's host module reads a published template as its built files. A published link hands the host the build's files by their paths in the artifact — the manifest, the composition and static-assets binding, each section's schema, fill spec, logic and renderer — with a way to import a module and React, and the host composes the template, settles its fixtures and renders its sections from them, as `concrete dev` does over the workspace. A published playground link is `<play origin>/<template key>/<review token>/` and always opens the template's current build; an address naming a content hash, or `latest`, is not found. `concrete dev` is unchanged.
88
+ - fe993ae: `concrete dev`'s playground runs jobs: work that outlasts a request runs beside it and reports one way. `GET api/jobs` lists the template's jobs, `GET api/jobs/<id>` reads one (with `?wait=<seconds>` it answers once the job changes, for at most a minute) and `DELETE api/jobs/<id>` cancels it. Asking twice for the same thing while it waits or runs is one job. A job in progress shows as its fixture's mark in the playground, and a failed one as a problem. The first operation is a probe of the mechanism, started with `POST api/probe?fixture=<name>`. The playground's wire is version 6.
89
+ - 669bc53: A fixture can state a crop on a picked image: `{ image: hollis.lobbyShot, crop: { x, y, width, height } }`, with an optional `mobile: { crop }` for the slot's mobile frame. It resolves to the slot's own copy of the image cut at that region, as the platform stores a cropped pick. In `concrete dev`, a crop drawn in the playground now saves into the fixture source, and a pick of an entry that sits inside an exported list (a property's `floorPlans`) saves as that list's item, such as `hollis.floorPlans[3]!`, instead of being refused.
90
+ - 69239e6: The playground saves Update everywhere's row and list edits into the fixture's property document: adding, removing, picking, unpicking and reordering a row, setting a list nested in a row, and clearing a row's own image. A save that adds a row answers each added row's id by the temporary id the editor gave it.
91
+ - 95bdfba: The playground in `concrete dev` saves. An edit saves on its own after a short pause into the fixture's documents, so it survives a reload and reaches the live view and Download: a slot's value, an override of a sourced slot and handing it back to its source, a list item's field the user changed, a removed row and a list's order, a section's show/hide and case, a page switched off, and a fact written back by Update everywhere. A content edit rewrites the content fixture; a fact edit rewrites the property document, so every content fixture on that property shows it. A document holds only what was stated — a value a source or a compute derives is never written — and is written as stable JSON, so `git diff` shows the changed value.
92
+ - 796895e: A fixture with no file to download says so. A reader marks such a fixture with the new optional `HostFixture.capturable: false` (a published playground does, for a fixture saved since its publish), the catalog passes it on as the fixture's `capturable: false`, and the panel footer keeps Download in place, disabled, saying why; publishing again makes the file.
93
+ - 160a483: The playground host module saves through a file store. `HostEnv.store` (a `HostFileStore`: the loader's reads and a `write` of a save's files together) replaces `HostEnv.writer`, and `HostFixture` names its content fixture and property documents (`file`, `property`); the catalog's `capabilities.save` says whether a host saves, and a host given no store saves nothing. A content fixture may state `page_state` (`[{ "page_id", "enabled" }]`) for the pages the user toggled, and a table-sourced list of objects it marks per item (`slot_overrides.items`, `items_removed`, `order`) keeps the marked fields, leaves the removed rows out and holds its order. A fixture's `meta.json` carries no `origins`.
94
+ - c3076d6: A file uploaded into a slot that owns its media (one with no `from` and no source), and a video or tour link pasted into one, is saved as that content fixture's own file. It is not added to the property. The `concrete dev` playground writes the file beside the content fixture as `<fixture id>/media/<id><ext>` and records it in the content fixture's new `files` member, which is a list of upload entries like a property's `uploads`, with each path relative to the content fixture. The slot's value names it as `{ "media": <id> }`. The property document does not change, and no picker's library lists the file. When a save leaves the content fixture no longer naming one of its own files, because the slot got a new upload or was cleared, the save removes that file and its entry. A content fixture's `files` entry whose id is also a media id of its property, or whose file is missing or outside the fixture's folder, is reported, and the slot naming it loads empty. `api/library` takes a link aimed at an `instance` and `slot`, and `api/media` answers `owned`, which maps each of the fixture's own media ids to the URL it serves from.
95
+ - f0b179e: The playground's Update everywhere and pasted video and tour links now save, in `concrete dev` and on a published playground link alike. Update everywhere writes a slot's value to the property fact it reads and lets the slot follow that fact again: locally the property module and the content entry are rewritten, and published, the stored fixture is. A pasted link joins the property's uploads and the list it was pasted into, declared in source as an export of its own (`export const youtubeVideo: LinkVideoEntry = { … }`). Either change reaches every fixture holding the same property object, including a property that spreads it. The banner no longer shows its preview captions, and a host that does not save offers neither control.
96
+ - 3e58cf4: `concrete dev` writes `.concrete/schema/property.schema.json` beside the content fixture schema. Name it as a property document's `$schema` and your editor completes the facts (the address, units, contacts, comparables and uploads), each file as a path relative to the document and each pick as `{ "media": "<upload id>" }`, and flags a stray member as you type. The schema is derived from the platform's fact registry, so a new fact reaches it with the framework. A property document's pick that states a member beside `media` is now reported by `check` instead of loading as if the member were never written.
97
+ - 68c5e09: A row's new image waits for Update everywhere in the playground, as it does in the app. Uploading a contact's headshot or logo, or a comparable's photo, stages the file in the content fixture you made it in: it lands under that fixture's own `media/` folder, an entry in its `files` names it, and the slot's override shows it there alone; the property document does not change. Uploading again replaces the staged file. The Update everywhere banner offers the change, and applying it moves the file into the property's folder, names it in the row, drops the override and the entry, and removes the image it replaces, so every content fixture on the property shows the new one. Clearing a row's image, or removing its row, removes its file the same way. This works in `concrete dev` and on a published link: `HostFileWrite` gains a move, `{ path, from }`, which a store lands before any removal. A row's image field in the editor's panel now offers Upload when it reads a row's member at the top level, not only inside a list.
98
+ - 7c32877: `concrete dev`'s `api/catalog` names every address it answers. Each content fixture in it carries `addresses`: the canvas per canvas and format, a website's live view and site page per page, and an image's or a document's download per format with an image of each of its pages. A page the fixture switches off is in none of them, and a fixture with no download to give lists none. An agent reads this one list to find where a fixture's views and outputs are, and requests each address in it.
99
+ - 35d2fc5: `concrete dev`'s live site is now the page a publish makes. Each page answers at `properties/<property>/content/<content>/site/[<page>/]` with its full head (title, description, icons, share image), its stylesheets and scripts copied under `site/assets/`, and its icon at `site/favicon.ico`. A path without its trailing slash redirects, as on a published site. A lead form sends to the playground, which checks it as a published site's ingest does and keeps nothing, so the form shows its sent and its failed state. No analytics tag is emitted, and the page carries no reload script: the live view reloads the frame when your files change.
100
+
101
+ `fixtures/<content>/live/…` is removed with no redirect. Nothing is answered any longer at `/section-assets/<file>`: every address a page names sits under the playground.
102
+
103
+ ### Patch Changes
104
+
105
+ - b8e2193: In `concrete dev`, a compute that reads a slot never reads a stale value. A display entry whose compute throws, or answers outside its declared cases, shows its first declared case. A compute that reads itself through other slots holds an empty value, and so does every compute on that loop. Before, each kept the value it last held.
106
+ - 890ec6b: In `concrete dev`, a crop is cut once. The playground keeps the cut under `.concrete/cache/derived` and answers it from there after, across restarts. A cut no one asks for in thirty days is dropped. Nothing kept is written into the template's files.
107
+ - d90519e: In `concrete dev`, a fact is required only where nothing can hide what needs it: under a required section that declares no `display.visibility`, on a page that is not `optional`, and, in a section with a `display.variant`, when every declared case requires it. The canvas's count of empty required slots is unchanged.
108
+ - d1b3c17: A fixture photo is named at the same address in the playground's site and download wherever the playground runs, and a download is shot from each photo's full-size file whether or not its size ladder is cut yet.
109
+ - 04724a9: A download `concrete dev` kept is made again when the framework changes. It was kept under what it was made from and only a part of the code that makes it, so after an update that shoots pages differently, a workspace kept answering the images it shot before, and its copy without `.concrete/` answered new ones. A kept download now reads the whole framework's code, so every workspace answers what this version makes.
110
+ - 4d04934: The playground and `concrete check` render a page the way the platform does. A page the content fixture switches off is left out of every page's menu. A section's links point at the anchor it declares (`meta.anchor`, else its key). A section that declares a variant and has none stored renders its first case. A slot the fixture holds no value for is handed its type's empty value. On an image or a document template, `nav.anchors` is empty, as it is on the platform.
111
+ - 97708e7: A send to the development console states the commit and remote the workspace is at, so the version it makes records them.
112
+ - 9cf5742: A download's page image no longer depends on what `concrete dev` shot before it. A photo drawn smaller than its file could come out one or two levels apart across its box from one shot of a page to the next, and a lazy photo sized by `sizes="auto"` sometimes loaded a larger file than its box needs. The capture now leaves every image to be decoded by the draw that paints it, at the size it is drawn, and loads a lazy image by its own box's width, so the same page gives the same pixels every time. An image that fails to load still fails the download, naming the image.
113
+ - c11c711: A download's page image no longer depends on the order its page loaded in. The browser keeps some decisions it made while a page was still loading: a rounded photo card painted before its photo arrived kept painting its background under the photo's edge, and an inline SVG's edges could come out a few levels apart, so re-shooting the same page could give a different file. Before shooting, the capture now lays the settled page out again from scratch, so the same page gives the same pixels every time. A load animation still lands on its end state. `useCaptureReady` now also tells an island author to start an engine at the state it is captured in: a map built on its fitted `bounds`, not refit from a placeholder camera on load.
114
+ - 16c489a: No change in behavior: the bundled page render now lists the build files a section names as it fills their addresses, and a published page's shell may leave out the visit beacon. Nothing a template author writes or sees changes.
115
+ - f9ceda7: No change in behavior: `concrete publish` gathers a template's built files, its fixtures and its manifest in one step, and adds the playground and captures in the next, so the first step can be reused on its own. What a publish builds, checks and uploads is unchanged.
116
+ - bf2fcbd: The package's comments and documentation strings use "artifact" only for a built template. A page a capture shoots is a capture, and the file a customer gets from an image or document template is a download.
117
+ - ba51adc: The build reader's `BuildDeclarations` gains each section's `logic`, read when asked as on a whole read build, so a reader that plans a fill can resolve a deliverable's content through the same build. A whole read build is still one. Nothing a template author writes or runs changes.
118
+ - 7057370: The build reader's types gain `BuildDeclarations`, the part of a read build that planning a fill reads (its composition, read graph and each section's declarations), and `TemplateBuildOf`, a function from a template to those declarations. A whole read build is one. Nothing a template author writes or runs changes.
119
+ - 4a4821b: `concrete build` refuses a build where two browser files would have one filename (`workspace/duplicate-browser-file`): a stylesheet, a script or an imported image or font is now answered by its filename alone. In `concrete dev`, a build's files serve at `build/<filename>`, and a stylesheet or a script is answered with its author assets' addresses filled in. The canvas loads a section's images and fonts from the same place, and a menu link on the canvas switches to its page.
120
+ - e23522d: No change in behavior: the build layout the package carries gains a function that lists a built template's browser files, the files its static-assets binding names and everything under `assets/`. Nothing in `concrete` calls it; what a build writes and a publish uploads is unchanged.
121
+ - 8149dc4: `concrete dev`'s playground canvas starts at the top of the page again. A stray line of text above the editor pushed the whole canvas down and left a dark band across the top of the page.
122
+ - f1808c6: `concrete check` renders each section the way the platform does: through the same render, with the same HTML (`renderToString`'s, as the app makes it). Check no longer decides for itself what a section is handed, so a rule the platform's render follows is the rule check grades. A fixture media URL that the render did not name, and that no workspace module imported, now fails `render/unresolved-media` even when it names a real fixture file: state media by value, as an entry of the fixture's property.
123
+ - d33b6e4: No change in behavior: the bundled content document can carry an entry for each file uploaded onto one of its slots, which resolving and stripping content keep as stated, and a media read takes what it knows of such a file from that entry. Nothing a template author writes or sees changes.
124
+ - ed5187d: No change in behavior: the bundled content engine now includes the check that a section's stored content strips to what was stated and resolves back to the same content. Concrete does not call it.
125
+ - 83cfb68: The content library inlined into the playground now carries `contentValuesDiffer`, the compare that decides whether two resolved contents differ in what a site shows. Nothing the playground does changes.
126
+ - aa46b57: No change in behavior: the playground's floating control puts each icon's colour on the icon itself instead of on a wrapping span. The chevrons and the selected entry's check render in the same colours as before.
127
+ - 9390f7e: `fact.property.hero`'s pick takes a rendering of the property as readily as a photograph, ranked by what it shows (the front exterior first), so a new-construction property whose only images are renderings gets a cover. Covers already decided are not re-picked.
128
+ - 23b4adb: No change in behavior: the editor code bundled into `concrete dev`'s playground now includes the property facts page's frame (its section rail and scroll tracking), its body and the plan of which fact pages it draws. Nothing in the playground draws them yet.
129
+ - 64f0115: `concrete dev`'s playground facts page sets each section's subline at the size the app's Details page does (16px), not the page's 14px body size.
130
+ - 0694eb7: `concrete dev` no longer reloads the playground once per image ladder after a cold start. Ladders that land together are announced once, when the derivation queue drains, and at most every 10 seconds while it is still busy; a change that arrives while the playground is loading its catalog waits for that load instead of restarting it. The canvas renders at once and stays rendered while ladders derive.
131
+ - fe3ed5c: The `concrete dev` playground's stylesheet carries the colour and entry motion the platform's notice cards use, and its slot cards can draw marks in their header beside the chevron. Nothing the playground shows changes yet.
132
+ - 4b7a8c6: No change in behavior in `concrete dev`: the playground's editor reads the shared editor bootstrap and write answers in their new shape, where a content fingerprint replaces the platform's propagate watermark and a section entry may name what its content could not derive. The playground serves neither, so its editor opens and saves as before.
133
+ - 15101a8: The bundled fill engine now carries the job kinds it plans, the rollup that derives a media record's state, a media value's and a holder entry's grain, and the carry of a retired binding's memos. Nothing in `concrete dev` reads them yet. No behavior changes.
134
+ - 836691c: Internal comments in the bundled editor modules now point at the package that holds the fill's rules. No behavior changes.
135
+ - a41f978: In the `concrete dev` playground, Escape with a menu or popup open inside a modal (the media picker's Kind or Sort menu, a dropdown, a date calendar) now closes only that popup; the next Escape closes the modal.
136
+ - 157e1f9: The fact registry's briefs (the units, commercial spaces and comparables writes; the media, floor plan, document, cover photo, contact and per-row plan and photo picks) now follow the library brief standard: each says what the list is, who reads it, what belongs and when it is empty, with the honesty rule said once, in place of the rule lists they had grown into. No fact is re-filled by the change.
137
+ - 55faea5: The bundled fact edit also reports, for each home, the paths a person's edit left holding a value they stated, and the order a reorder set. Nothing in `concrete dev` reads either yet. No behavior changes.
138
+ - 8a72978: Internal: the sorted-list membership test reads a property's facts document. No change to how a template reads its facts.
139
+ - fd7b692: No change in behavior: the facts schemas the package carries name their crop, place rendition and select schemas for reuse. What `concrete` validates and accepts is unchanged.
140
+ - 36f9a21: No change in behavior: a source comment in the bundled facts schema now says the stored-value shape it describes is the one a property's old fact rows held, not where a media value lives today.
141
+ - 6516c15: A failed crop line now goes when the image no longer frames part of its original: resetting the crop to the whole image, or replacing the image with an uncropped one, clears it.
142
+ - 401ac60: A failed image cut now shows its line on the image's own tile. The deliverable and property fill reads name the failed cuts, and a slot editor host can bind `cropFailedAt` to show them.
143
+ - 8838646: A media file's `state` now reads `failed` only when a read of the file failed. An output that fails, such as a poster, a ladder or an encode, is named on the file's new `failed_outputs` member and leaves the file ready. A tile stops waiting on a poster that failed without showing the file as failed.
144
+ - 9ded204: The playground reads a template's files through one shared files interface, the same one the development console's store answers. Nothing changes in what `concrete dev` or `concrete publish` does.
145
+ - f03577d: A build no longer fails when a directory inside the framework's own folder is removed while the build reads it.
146
+ - 659cf1e: `concrete dev` cuts a fixture photo's size ladder as a playground job, with the same cut and the same rungs the hosted console uses, and keeps it among the workspace's derived files under `.concrete/cache/derived`. A photo shows whole until its ladder is kept, then takes it in without a reload. Images a section imports are still cut by the build.
147
+ - 4768ba7: The playground's save indicator shows its intended colours again: the saved check is green and the "Not saved" cross red, instead of both taking the indicator's grey.
148
+ - f6156fa: No change to what `concrete dev` or `concrete check` shows or makes. The shared render, site and download code it carries gains what the app's workers use to make only the pages and files that changed.
149
+ - 67de3e9: No change in behavior: two source comments in the playground's bundled slot editors now point at where the intake page renderer lives.
150
+ - 3fac624: In the playground, a headshot or logo uploaded for a contact the canvas is still adding is now saved as a file of the content fixture alone. Update everywhere then makes the contact with that image, moving the file into the property's folder, in `concrete dev` and on a published link.
151
+ - 35173c2: No change in behavior: the render a template's pages share addresses a media file of a type it does not know under its content base too, as a file of no known type, rather than handing it to a host to sign, and resolves what a section is handed apart from rendering it. Nothing a template author writes or sees changes.
152
+ - c2dffe3: No change in behavior: the bundled engine no longer plans a refresh of stored derived content, since content is resolved wherever it is read. A content edit's touched paths now include every path it moved that something reads, and a plan names the processing records of a media value a section no longer shows.
153
+ - 4d3c9dc: The playground's `api/save` no longer names `reorder_sections` among the content ops: a template fixes its section order, so the op is gone from the vocabulary and a batch carrying it is refused as an op no batch carries.
154
+ - 3035f98: `concrete dev`'s change channel is the one every playground host answers: an open page
155
+ hears when the template's files move to a new version, and what that changed, and when
156
+ one of its jobs changes. The playground always subscribes; the catalog no longer says
157
+ whether a channel exists.
158
+ - fdf8b83: An edit to a slot a fill writes now saves and loads in the playground. The editor saves it as the app does, the value marked the user's in `slot_overrides.scalar`, and a content fixture holding such a mark now loads with the value instead of refusing it as an override no source decides.
159
+ - 0d1cf04: Source comments in the platform modules inlined into the package name the platform's current page-raster reader and office-text converter instead of deleted modules. No code changes, and nothing a template declares, reads or renders changes.
160
+ - 922a8bd: A unit's and a commercial space's floor plan pick now says what a plan's `floor` is: the level or part of the unit the plan draws, as the plan's name or a title printed on it says, and nothing when neither does. The platform fills `floor` on the plans it assigns from that; an unlabelled plan's `floor` stays `null`, so keep naming one by its place in the list.
161
+ - d63fd12: The playground's floating control sinks about its own centre when pressed, so a press or a drag that starts in any corner keeps the button under the pointer instead of pulling it toward the top left of the page.
162
+ - 41285f5: The playground's floating control is tighter: its rows sit closer, and each drop-down entry is one line, its name alone. An entry's actions sit behind an arrow at the row's right edge: pressed, the arrow slides aside and turns, and Rename, Duplicate and Delete slide in from the edge as icon buttons with hover tooltips; pressed again, or when another entry's actions open, they slide back out.
163
+ - 10ff95c: The playground's floating control changes an entry where it stands. The actions sit behind a chevron. A rename is typed on the entry's own line and a duplicate or a new entry on a line of its own, in a field shaped like the drop-down's, confirmed or left with icon buttons. A delete is asked in the row itself: the actions slide out and Delete and Cancel slide in where they were, with what the delete takes with it on Delete's tooltip.
164
+ - 7a0291b: The files interface the playground reads and saves through gains a shared set of contract cases, which the workspace folder `concrete dev` answers from now passes. Nothing an author sees changes: `concrete dev` reads, saves and reloads as before.
165
+ - a5fa62d: `concrete dev` reads its build and its fixtures, and saves, through one interface over the workspace folder. Nothing an author sees changes: a save still writes the fixture's files in place, and the playground still reloads on every change.
166
+ - 6395816: The playground's floating control no longer scrolls sideways when a drop-down lists its entries: the tooltip of a button at a row's right edge sits within the row.
167
+ - d78a2df: The `concrete dev` playground's modals and menus render as the platform's editor does. The crop dialog draws its box, handles and dimmed surround over the centred image; the media picker, crop and menu titles, controls and menus render light, in Archivo, at the platform's sizes. The page keeps the browser's 16px root, so rem lengths are no longer scaled down. Archivo ships with the playground as a font file, so a hosted link requests no third-party font.
168
+ - b40f85a: The playground's server can be mounted under a path rather than only at the root of its own port, with every link and file it serves following that path. `concrete dev` still mounts it at the root, so nothing an author sees changes.
169
+ - a516187: The playground's Contacts dialog saves a new contact. A fixture's library is its property's contacts, so a library add is a contact of the property as soon as it is saved, last in its contacts, and every later edit to it saves, in `concrete dev` and on a published link alike. Before, the add was dropped unless the same save picked it, so the dialog's next edit was refused with "Couldn't save your contacts." A library remove now takes the contact off the property, as an unpick does, instead of being refused.
170
+ - 0baf88b: Every page of the playground stands on the canvas's own light, dotted ground. While the playground loads, a canvas opens or the live site loads, a spinner shows in its place; a message that something went wrong is a card on that ground.
171
+ - af2a5db: The playground `concrete dev` serves is built from its own source alongside the framework's rather than inside it. Nothing changes for a template: `concrete dev` serves the same playground, and a built artifact carries the same `playground/` files.
172
+ - 2198479: `concrete dev` and a published playground now read a template's build through the platform's own build reader, so they refuse a build the platform would refuse, with the same reason (for example, `template/composition.json: is not a valid union composition`). A build the platform accepts opens as before.
173
+ - 1f32718: The playground refuses a HEIC photo added to a fixture, by its name, its type or its bytes, and says to save it as a JPEG instead. Nothing on the platform can read a HEIC, so it was taken and then never displayed or processed.
174
+ - 9de174f: The `concrete dev` playground's editor bootstrap names each section's build by a render key (the section key) in place of a section version id, and its fixture deliverable carries no template or section version pins. Switching fixtures still re-renders every section. Nothing the playground shows changes.
175
+ - acc898c: A playground save's computed result now matches what the saved fixture's source resolves to. A value no source decides is no longer marked as the user's override, a picked image is stored as the reference a fixture's pick resolves to, the result carries the provenance of the slot it changed, and it lists every other fixture holding the object the save writes into, computed as the same save made there (`shared`), read off the fixtures' recorded origins (`HostFixture.origins`).
176
+ - f3b4874: The playground saves an edit in the platform editor's own terms: a slot's value and its override, handing an overridden slot back to its source, a section's eye and case, and a fact written back by Update everywhere, each saved the same way by `concrete dev` and by a published playground link. A change the playground cannot save yet is refused by name, before anything is written.
177
+ - 91852f9: `concrete dev` and a published playground now serve only a build's browser files: the stylesheets, scripts and other files the static-assets binding names, and the files under `assets/`. A request for a section's declarations, logic module or renderer, or for the manifest, is answered `404`. Every file a page or the editor canvas loads serves as before.
178
+ - 1dceff3: In the `concrete dev` playground, switching the content fixture or the property no longer reloads the canvas. The editor stays open and the page frames are not rebuilt; only the content inside them changes. The canvas on view, the zoom and the scroll position stay as they were. A selected section stays selected when the new content shows it. A selected slot that the new content does not show (it is empty, belongs to another variant, or is a list item that does not exist there) becomes a selection of its section. A section that is switched off in the new content ends the selection.
179
+
180
+ An edit made just before a switch is saved into the fixture it was made in, before the next fixture opens. Undo history starts over on each switch, so undo never brings back the previous fixture's values. Switching the format keeps the canvas on view and the selection, and scrolls the selection into view once the pages at the new size have loaded.
181
+
182
+ - 078906a: `build`, `check` and `publish` no longer import a workspace's root tooling config (`eslint.config.mjs`, `vite.config.ts`, …) as template code, so a one-shot command stops loading the linter's plugin graph before doing any work.
183
+ - 0f74be6: The playground's build fingerprint is computed by a module of its own, apart from the code that verifies a build. Nothing an author sees changes.
184
+ - 0547d26: `concrete publish` reports what the write did to each catalog row. An environment holds one build per template and per section, so a publish either creates the row, replaces its build (a revert included) or leaves it unchanged: the write line reads `template <hash> is new`, `template build <hash> replaces the previous one` or `already current`, and counts sections as new, changed and unchanged. A dry run says the same of the write it would make.
185
+ - edfa4d0: A failed crop line now goes from a picking place that reads its crop from its home, since no cut is planned for that place. The line stays where the place holds a crop of its own.
186
+ - 49bb3a2: No change in behavior: the bundled app wire shapes name a template by its team and its key. A template selection entry carries its team beside its key, and the shapes gain the helpers that spell a template as `<team>/<key>`. Nothing a template author writes or runs changes.
187
+ - dba0b06: The canvas selection pill no longer covers the page title. When the selected section starts the page, its pill stays on the section's top border but moves right, just past the page title and its visibility toggle. Sections lower on the page are unchanged.
188
+ - fb3c4be: `sharp` is a required dependency at exactly 0.35.3, the version the platform cuts images with, in place of an optional `^0.35.3`. An image `concrete dev` and `concrete build` derive is cut by the same build the app cuts it with. On a platform where `sharp` cannot load its native binary, images still serve as their masters, and the message now says `sharp` did not load.
189
+ - a74dea7: A property's site address is now an optional label plus a domain. The API contract carries it as `site_address` (`label`, `domain`, `method`, `hostname`) in place of `site_slug` and `site_domain_suffix`, and renders hostnames with `addressHostname`. Nothing a template author writes changes.
190
+ - e07ce5e: The wire to the development console spells its release request and answers, which the console now serves. No command makes the request yet.
191
+ - 08a5009: The `fill-reads-computed` and `mirror-type` rule texts say a sourced slot resolves wherever the content is read, rather than that it is re-derived when its inputs change. The editor's behaviour is unchanged.
192
+ - 331ada3: `concrete dev`: the playground's facts page stands on the same white as the app's Details page, not on the canvas's off-white ground.
193
+ - 30c4537: In `concrete dev`, the editor's footer is the platform's. A website template's footer shows View live alone. An image or a document template's footer shows Download: it says "Preparing…" while the file is made, then the browser saves it. A download that fails shows its reason beside the button and in the floating control's problems, until it is dismissed.
194
+
3
195
  ## 12.0.0
4
196
 
5
197
  ### Major Changes
package/README.md CHANGED
@@ -25,7 +25,7 @@ options (`@homepages/concrete/tsconfig`), the primitives' stylesheet
25
25
  (`@homepages/concrete/fixtures`), what a published page's island imports
26
26
  (`@homepages/concrete/browser`), and the `concrete` command.
27
27
 
28
- The package owns its whole toolchain. TypeScript, ESLint, esbuild, Vite and Tailwind
28
+ The package owns its whole toolchain. TypeScript, ESLint, esbuild and Tailwind
29
29
  are its dependencies, chosen and tested at the versions it ships; a workspace declares
30
30
  none of them. React is a peer: a workspace holds exactly one copy.
31
31
 
@@ -33,7 +33,8 @@ none of them. React is a peer: a workspace holds exactly one copy.
33
33
  and `publish`; each command's flags, arguments, exit codes and constraints are in
34
34
  [`guide/reference/cli/`](guide/reference/cli/INDEX.md), and every rule `check` grades is in
35
35
  [`guide/reference/rules/`](guide/reference/rules/INDEX.md). `build` writes the template's
36
- artifact once `check` passes, and `publish` sends it to HomePages. Breaking changes ship as
36
+ built files, rebuilding only what changed; `check` grades them; and `publish` builds,
37
+ checks and sends the template's artifact to HomePages. Breaking changes ship as
37
38
  majors, each with the codemod `concrete upgrade` runs to carry a workspace across it.
38
39
 
39
40
  ## Prerequisites
@@ -43,14 +44,11 @@ The same on macOS, Windows and Linux:
43
44
  - **Node** 22.13 or a later 22, or Node 24 or newer, with the **npm** that comes with it.
44
45
  - **git**, optionally. Nothing in the toolchain needs a repository; `npm create` makes a
45
46
  new workspace one when git is installed, and says so when it is not.
46
- - **Playwright's Chromium**, for an image or document template only (a deck, a social
47
- post, a print sheet): `npm run build` captures its pages with it. Install it once in
48
- the workspace, one command at a time:
49
-
50
- ```bash
51
- npm install --save-dev @playwright/test
52
- npx playwright install chromium
53
- ```
47
+ - **Chromium**, for an image or document template only (a deck, a social
48
+ post, a print sheet): the playground's Download and `concrete publish`
49
+ capture its pages with the build the platform renders with. Concrete carries the
50
+ Playwright that pins that build, so the workspace adds nothing for it; on a machine
51
+ without the build, the first capture answers with the one command that installs it.
54
52
 
55
53
  Every command here runs as written in bash, zsh, PowerShell and cmd.
56
54
 
@@ -0,0 +1,7 @@
1
+ // The codemod of the major that retired `@homepages/concrete/fixtures`: a workspace's
2
+ // TypeScript fixtures become the data documents `template.ts` names. `concrete upgrade`
3
+ // runs it after the major is installed; the step it calls evaluates the fixture modules
4
+ // one last time with its own copy of `defineFixture` and `content`, since the subpath they
5
+ // import no longer resolves.
6
+
7
+ export { default } from "./steps/fixtures-to-data.mjs";
@@ -0,0 +1,6 @@
1
+ // The codemod of the major whose fixtures are in format 2: the fixture list names
2
+ // properties, and a content fixture has one name, its file name. `concrete upgrade` runs it
3
+ // after the major is installed; the step it calls runs the conversion the development
4
+ // console also runs over the fixtures it stores.
5
+
6
+ export { default } from "./steps/fixtures-list-properties.mjs";
@@ -15,6 +15,21 @@
15
15
  "manual": [
16
16
  "a folded format's panels are sections of a row page (direction: \"row\"); declare the sheet as the format, one page per printed side"
17
17
  ]
18
+ },
19
+ "13.0.0": {
20
+ "codemods": [
21
+ "fixtures-are-data",
22
+ "fixtures-list-properties"
23
+ ],
24
+ "manual": [
25
+ "stop reading an artifact out of `.concrete/build/` \u2014 run `concrete publish` to publish, and drop `--rebuild` from any `concrete publish` invocation.",
26
+ "fix any section `concrete build` refuses before opening it in `concrete dev` \u2014 the playground now shows the build's failures instead of the template.",
27
+ "republish every template once this version is the one you publish with; the platform refuses an artifact built by an earlier version."
28
+ ]
29
+ },
30
+ "13.0.1": {
31
+ "codemods": [],
32
+ "manual": []
18
33
  }
19
34
  }
20
35
  }
@@ -0,0 +1,16 @@
1
+ // Fixture format 2: the fixture list names properties, and a content fixture has one name,
2
+ // its file name. Each fixture list gains `properties` — every property a listed content
3
+ // fixture is on, in the order first named — and every content fixture loses its `label`.
4
+ // Nothing is renamed or moved.
5
+ //
6
+ // This is a codemod STEP over the conversion registered in
7
+ // `@homepages/playground/fixture-formats`, the one the development console also runs over
8
+ // the fixtures it stores. It honors the release codemod contract: `(root) => {
9
+ // rewritten, notRewritten }`. A removed label that said more than its file name is
10
+ // handed back, so you can rename the fixture if its name should say it.
11
+
12
+ import { convertWorkspaceFixtures } from "../../dist/cli/upgrade/fixture-conversion.js";
13
+
14
+ export default function fixturesListPropertiesStep(root) {
15
+ return convertWorkspaceFixtures(root, "fixtures-list-properties");
16
+ }
@@ -0,0 +1,41 @@
1
+ // A template's fixtures become data: each TypeScript fixture a content fixture document,
2
+ // each property it is on a property document, listed in `fixtures/index.json`, which
3
+ // `template.ts` names. The TypeScript modules under `fixtures/` are removed.
4
+ //
5
+ // This is a codemod STEP: a workspace runs it by importing this file by path from the
6
+ // installed package and calling its default export with the workspace root, and the major
7
+ // that retires the TypeScript fixture surface runs it from its own codemod. It honors the
8
+ // release codemod contract: `(root) => { rewritten, notRewritten }`.
9
+ //
10
+ // The fixture modules are evaluated one last time by the conversion's own evaluator, from
11
+ // the package's `dist` beside this file. It runs after the major that retired
12
+ // `@homepages/concrete/fixtures` is installed, so it supplies that subpath itself:
13
+ // `defineFixture`, `content` and the brand it recognizes a fixture by.
14
+ //
15
+ // A property made by spreading another (or stated inline in a fixture) becomes a property
16
+ // of its own, with its own copy of every file it names; those are printed with their
17
+ // size, so you can drop the ones you no longer need — a state one edit away is tested by
18
+ // making the edit in the playground. A test module under `fixtures/` is handed back.
19
+ //
20
+ // What it does and why, in full: dist/cli/upgrade/fixtures-to-data.js.
21
+
22
+ import { fixturesToData } from "../../dist/cli/upgrade/fixtures-to-data.js";
23
+
24
+ function size(bytes) {
25
+ return bytes >= 1_000_000 ? `${(bytes / 1_000_000).toFixed(1)} MB` : `${Math.round(bytes / 1000)} kB`;
26
+ }
27
+
28
+ export default async function fixturesToDataStep(root) {
29
+ const { rewritten, notRewritten, made } = await fixturesToData(root);
30
+ if (made.length > 0) {
31
+ const total = made.reduce((sum, property) => sum + property.bytes, 0);
32
+ const lines = made.map(
33
+ (property) =>
34
+ ` ${property.document} (from ${property.from}; ${String(property.files)} files, ${size(property.bytes)}) — fixtures: ${property.fixtures.join(", ")}`,
35
+ );
36
+ process.stdout.write(
37
+ ` made ${String(made.length)} propert${made.length === 1 ? "y" : "ies"} with copies of their files (${size(total)} in all); drop any whose state is one edit away in the playground, with its fixtures:\n${lines.join("\n")}\n`,
38
+ );
39
+ }
40
+ return { rewritten, notRewritten };
41
+ }