@homepages/concrete 11.0.0 → 13.0.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.
Files changed (322) hide show
  1. package/CHANGELOG.md +203 -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 +17 -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 -60
  16. package/dist/base.css +19 -59
  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 +48 -22
  123. package/dist/packages/internal/fill-bake/dist/held-rows.js +2 -0
  124. package/dist/packages/internal/fill-bake/dist/index.js +6 -1
  125. package/dist/packages/internal/fill-bake/dist/item-merge.js +4 -3
  126. package/dist/packages/internal/fill-bake/dist/resolve-instance.js +9 -0
  127. package/dist/packages/internal/fill-bake/dist/resolve.js +3 -0
  128. package/dist/packages/internal/fill-bake/dist/round-trip.js +2 -0
  129. package/dist/packages/internal/fill-bake/dist/strip.js +6 -0
  130. package/dist/packages/internal/fill-vocabulary/dist/holder.js +1 -1
  131. package/dist/packages/internal/fill-vocabulary/dist/resolved-decision.js +1 -1
  132. package/dist/packages/internal/fill-vocabulary/dist/verbs.js +1 -1
  133. package/dist/packages/internal/format-geometry/dist/capture.js +3 -11
  134. package/dist/packages/internal/format-geometry/dist/format.d.ts +2 -8
  135. package/dist/packages/internal/format-geometry/dist/geometry.js +2 -13
  136. package/dist/packages/internal/island-runtime/dist/index.js +1 -10
  137. package/dist/packages/internal/island-runtime/dist/use-capture-ready.d.ts +5 -0
  138. package/dist/packages/internal/lead-fields/dist/ingest.js +72 -0
  139. package/dist/packages/internal/media-resolution/dist/video.js +6 -2
  140. package/dist/packages/internal/page-render/dist/addresses.js +57 -0
  141. package/dist/packages/internal/page-render/dist/index.js +6 -0
  142. package/dist/packages/internal/page-render/dist/kept.js +30 -0
  143. package/dist/packages/internal/page-render/dist/nav.js +42 -0
  144. package/dist/packages/internal/page-render/dist/render.js +152 -0
  145. package/dist/packages/internal/page-shell/dist/assemble.js +161 -0
  146. package/dist/packages/internal/page-shell/dist/escape.js +10 -0
  147. package/dist/packages/internal/page-shell/dist/frame.js +23 -0
  148. package/dist/packages/internal/page-shell/dist/index.js +26 -0
  149. package/dist/packages/internal/playground/dist/build-fingerprint.js +18 -0
  150. package/dist/packages/internal/playground/dist/fixture-conversions/list-names-properties.js +76 -0
  151. package/dist/packages/internal/playground/dist/fixture-formats.d.ts +37 -0
  152. package/dist/packages/internal/playground/dist/fixture-formats.js +20 -0
  153. package/dist/packages/internal/playground/dist/host/bootstrap.js +108 -0
  154. package/dist/packages/internal/playground/dist/host/built.js +202 -0
  155. package/dist/packages/internal/playground/dist/host/catalog-fixture.js +53 -0
  156. package/dist/packages/internal/playground/dist/host/download.js +34 -0
  157. package/dist/packages/internal/playground/dist/host/env.js +11 -0
  158. package/dist/packages/internal/playground/dist/host/everywhere-saves.js +353 -0
  159. package/dist/packages/internal/playground/dist/host/fixture-addresses.js +52 -0
  160. package/dist/packages/internal/playground/dist/host/fixture-documents.js +494 -0
  161. package/dist/packages/internal/playground/dist/host/fixture-operations.js +364 -0
  162. package/dist/packages/internal/playground/dist/host/fixture-units.js +93 -0
  163. package/dist/{fixtures → packages/internal/playground/dist/host}/image-dimensions.js +1 -1
  164. package/dist/packages/internal/playground/dist/host/leads.js +41 -0
  165. package/dist/packages/internal/playground/dist/host/media-saves.js +309 -0
  166. package/dist/{fixtures → packages/internal/playground/dist/host}/media-store.js +79 -26
  167. package/dist/packages/internal/playground/dist/host/overridable.js +9 -0
  168. package/dist/packages/internal/playground/dist/host/owned-saves.js +203 -0
  169. package/dist/{playground → packages/internal/playground/dist}/host/page-state.js +1 -1
  170. package/dist/packages/internal/playground/dist/host/program.js +54 -0
  171. package/dist/packages/internal/playground/dist/host/property-derive.js +216 -0
  172. package/dist/packages/internal/playground/dist/host/property-saves.js +74 -0
  173. package/dist/{fixtures → packages/internal/playground/dist/host}/property.js +88 -229
  174. package/dist/packages/internal/playground/dist/host/provenance.js +49 -0
  175. package/dist/packages/internal/playground/dist/host/resolve.js +553 -0
  176. package/dist/packages/internal/playground/dist/host/row-images.js +41 -0
  177. package/dist/{fixtures → packages/internal/playground/dist/host}/rows.js +1 -1
  178. package/dist/packages/internal/playground/dist/host/save.js +429 -0
  179. package/dist/packages/internal/playground/dist/host/serve.js +952 -0
  180. package/dist/packages/internal/playground/dist/host/site.js +79 -0
  181. package/dist/packages/internal/playground/dist/host/slots.js +202 -0
  182. package/dist/packages/internal/playground/dist/host/stated-content.js +93 -0
  183. package/dist/packages/internal/playground/dist/host/stored-fixtures.js +135 -0
  184. package/dist/packages/internal/playground/dist/host/violations.js +7 -0
  185. package/dist/packages/internal/playground/dist/jobs/lanes.js +24 -0
  186. package/dist/packages/internal/playground/dist/jobs/memory-queue.js +112 -0
  187. package/dist/packages/internal/playground/dist/jobs/probe.js +37 -0
  188. package/dist/packages/internal/playground/dist/jobs/queue.js +28 -0
  189. package/dist/packages/internal/playground/dist/jobs/runner.js +207 -0
  190. package/dist/packages/internal/playground/dist/layout.js +14 -0
  191. package/dist/packages/internal/playground/dist/platform.js +33 -0
  192. package/dist/packages/internal/playground/dist/server/changes.js +57 -0
  193. package/dist/packages/internal/playground/dist/server/crop.js +47 -0
  194. package/dist/packages/internal/playground/dist/server/derived-files.js +88 -0
  195. package/dist/packages/internal/playground/dist/server/download.js +158 -0
  196. package/dist/{cli/dev → packages/internal/playground/dist/server}/http.js +4 -12
  197. package/dist/packages/internal/playground/dist/server/jobs.js +29 -0
  198. package/dist/{cli/dev → packages/internal/playground/dist/server}/listen.js +4 -11
  199. package/dist/packages/internal/playground/dist/server/playground-server.js +424 -0
  200. package/dist/{cli/dev → packages/internal/playground/dist/server}/request-error.js +1 -1
  201. package/dist/packages/internal/playground/dist/server/size-ladders.js +170 -0
  202. package/dist/packages/internal/playground/dist/server/verification.js +75 -0
  203. package/dist/packages/internal/playground/dist/server/verify-build.js +139 -0
  204. package/dist/packages/internal/playground/dist/wire.js +78 -0
  205. package/dist/packages/internal/property-facts/dist/registry-facts.js +1 -1
  206. package/dist/packages/internal/section-contracts/dist/fill-verb-contract.js +1 -1
  207. package/dist/packages/internal/section-contracts/dist/reads-acyclic-contract.js +1 -1
  208. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +1 -1
  209. package/dist/packages/internal/site-files/dist/head.js +59 -0
  210. package/dist/packages/internal/site-files/dist/index.js +4 -0
  211. package/dist/packages/internal/site-files/dist/site.js +211 -0
  212. package/dist/packages/internal/static-assets-binding/dist/index.js +32 -0
  213. package/dist/packages/internal/static-assets-binding/dist/section-asset-url.js +38 -5
  214. package/dist/packages/internal/template-artifact/dist/asset-mime.js +8 -1
  215. package/dist/packages/internal/template-artifact/dist/build.js +148 -0
  216. package/dist/packages/internal/template-artifact/dist/composition.js +62 -0
  217. package/dist/packages/internal/template-artifact/dist/index.js +2 -2
  218. package/dist/packages/internal/template-artifact/dist/layout.js +48 -12
  219. package/dist/packages/internal/template-artifact/dist/manifest.js +3 -10
  220. package/dist/packages/internal/template-artifact/dist/verify.js +51 -31
  221. package/dist/packages/internal/template-contracts/dist/address-value.js +6 -1
  222. package/dist/packages/internal/template-contracts/dist/content-categories.js +10 -1
  223. package/dist/packages/internal/template-contracts/dist/fact-compute.d.ts +1 -1
  224. package/dist/packages/internal/template-contracts/dist/fact-keys.d.ts +1 -1
  225. package/dist/packages/internal/template-contracts/dist/fact-registry.d.ts +3 -3
  226. package/dist/packages/internal/template-contracts/dist/fact-registry.js +59 -32
  227. package/dist/packages/internal/template-contracts/dist/fill-spec.js +14 -1
  228. package/dist/packages/internal/template-contracts/dist/list.d.ts +3 -3
  229. package/dist/packages/internal/template-contracts/dist/media-candidates.js +67 -2
  230. package/dist/packages/internal/template-contracts/dist/media-offer.js +180 -0
  231. package/dist/packages/internal/template-contracts/dist/object.d.ts +2 -2
  232. package/dist/packages/internal/template-contracts/dist/primitive-descriptors.js +9 -2
  233. package/dist/packages/internal/template-contracts/dist/read-graph.js +36 -2
  234. package/dist/packages/internal/template-contracts/dist/ref-locate.js +16 -1
  235. package/dist/packages/internal/template-contracts/dist/registry-facts.d.ts +9 -10
  236. package/dist/packages/internal/template-contracts/dist/registry-facts.js +12 -1
  237. package/dist/packages/internal/template-contracts/dist/registry-graph.js +112 -0
  238. package/dist/packages/internal/template-contracts/dist/registry-shape.js +15 -2
  239. package/dist/packages/internal/template-contracts/dist/require-graph.js +300 -0
  240. package/dist/packages/internal/template-contracts/dist/row-ref.d.ts +3 -3
  241. package/dist/packages/internal/template-contracts/dist/row.d.ts +3 -3
  242. package/dist/packages/internal/template-contracts/dist/runtime-values.d.ts +1 -1
  243. package/dist/{schema → packages/internal/template-contracts/dist}/section-nav.d.ts +1 -1
  244. package/dist/packages/internal/template-contracts/dist/slot-builders.d.ts +4 -4
  245. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +3 -1
  246. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +24 -1
  247. package/dist/packages/internal/template-contracts/dist/slot-overrides.js +26 -1
  248. package/dist/packages/internal/template-contracts/dist/slot-ref.d.ts +1 -1
  249. package/dist/packages/internal/template-contracts/dist/slot-types.js +1 -1
  250. package/dist/packages/internal/template-contracts/dist/slot-value.d.ts +1 -1
  251. package/dist/packages/internal/template-contracts/dist/table-members.js +7 -2
  252. package/dist/packages/internal/template-contracts/dist/video-value.d.ts +1 -1
  253. package/dist/packages/internal/upload-formats/dist/heic.js +35 -0
  254. package/dist/packages/internal/upload-formats/dist/index.js +80 -0
  255. package/dist/packages/internal/upload-formats/dist/magic-bytes.js +293 -0
  256. package/dist/platform/paths.js +1 -0
  257. package/dist/platform/process.js +49 -1
  258. package/dist/primitives/FrameShell.d.ts +5 -2
  259. package/dist/primitives/FrameShell.js +2 -1
  260. package/dist/rules/registry.js +28 -4
  261. package/dist/schema/fact.d.ts +2 -2
  262. package/dist/schema/facts-view.d.ts +1 -1
  263. package/dist/schema/format.d.ts +0 -1
  264. package/dist/schema/format.js +1 -2
  265. package/dist/schema/manifest.js +18 -24
  266. package/dist/schema/section-props.d.ts +1 -1
  267. package/dist/schema/section-schema.d.ts +1 -1
  268. package/dist/schema/section-schema.js +1 -0
  269. package/dist/section/declare.d.ts +1 -1
  270. package/dist/section/discovery.js +6 -2
  271. package/dist/section/publish-shape.js +38 -0
  272. package/dist/section/section.d.ts +1 -1
  273. package/dist/site-analytics.js +6 -1
  274. package/dist/site-runtime/window-height.js +19 -0
  275. package/dist/template/define-template.d.ts +25 -4
  276. package/dist/template/define-template.js +3 -0
  277. package/dist/template/logic-shim.d.ts +1 -1
  278. package/dist/template/materialize.js +3 -1
  279. package/dist/template/running-copy.js +0 -1
  280. package/dist/template/section-reads.js +1 -1
  281. package/guide/reference/cli/INDEX.md +6 -5
  282. package/guide/reference/cli/build.md +10 -8
  283. package/guide/reference/cli/check.md +4 -2
  284. package/guide/reference/cli/dev.md +6 -2
  285. package/guide/reference/cli/install.md +41 -0
  286. package/guide/reference/cli/property-add.md +5 -4
  287. package/guide/reference/cli/property-list.md +2 -2
  288. package/guide/reference/cli/publish.md +5 -5
  289. package/guide/reference/cli/upgrade.md +1 -1
  290. package/guide/reference/rules/INDEX.md +9 -5
  291. package/package.json +14 -30
  292. package/dist/artifact/playground/client/assets/index-ByeGGedv.js +0 -1259
  293. package/dist/artifact/playground/client/assets/index-CxWPYOH2.css +0 -1
  294. package/dist/cli/build/artifact.js +0 -220
  295. package/dist/cli/build/captures.js +0 -48
  296. package/dist/cli/build/fixtures.js +0 -92
  297. package/dist/cli/capture/capture-browser.js +0 -37
  298. package/dist/cli/capture/capture.js +0 -113
  299. package/dist/cli/check/render/inputs.js +0 -60
  300. package/dist/cli/check/render/nav.js +0 -31
  301. package/dist/cli/dev/crop.js +0 -20
  302. package/dist/cli/dev/fixture-ladders.js +0 -96
  303. package/dist/cli/dev/hmr.js +0 -26
  304. package/dist/cli/dev/islands.js +0 -234
  305. package/dist/cli/dev/load-template.js +0 -52
  306. package/dist/cli/dev/vite.js +0 -114
  307. package/dist/cli/dev/workspace-reader.js +0 -248
  308. package/dist/cli/publish/freshness.js +0 -64
  309. package/dist/fixtures/brand.d.ts +0 -4
  310. package/dist/fixtures/brand.js +0 -8
  311. package/dist/fixtures/load.js +0 -159
  312. package/dist/fixtures/resolve.js +0 -392
  313. package/dist/fixtures.d.ts +0 -429
  314. package/dist/fixtures.js +0 -23
  315. package/dist/packages/internal/canvas-core/dist/island-host.js +0 -62
  316. package/dist/packages/internal/canvas-core/dist/island-shields.js +0 -30
  317. package/dist/playground/canvas-island-host.d.ts +0 -11
  318. package/dist/playground/canvas-island-host.js +0 -29
  319. package/dist/playground/canvas-markers.js +0 -14
  320. package/dist/playground/host/paths.js +0 -8
  321. package/dist/playground/layout.js +0 -17
  322. package/dist/playground/wire.js +0 -28
@@ -32,7 +32,7 @@ const CHECK_STAGES = [
32
32
  },
33
33
  {
34
34
  id: "fixtures",
35
- summary: "The fixtures under `fixtures/` load, resolve over the composition, and stay out of the bundle."
35
+ summary: "The fixtures the fixture list names load, resolve over the composition, and stay out of the bundle."
36
36
  },
37
37
  {
38
38
  id: "sections",
@@ -98,6 +98,12 @@ const AUTHORED_RULES = [
98
98
  stage: "workspace",
99
99
  summary: "A source file name, the template key, a section key or a fixture id would not name the same file on Windows and macOS: two differ only by case or Unicode form, or one is a reserved device name (`con`, `nul`, `com1`…), ends in a dot or a space, or carries a character Windows refuses in a file name (`:`, `\\`, `?`, `*`, a control character…). A key or id must also be NFC."
100
100
  },
101
+ {
102
+ id: "workspace/duplicate-browser-file",
103
+ venue: "tree",
104
+ stage: "workspace",
105
+ summary: "Two of the build's browser files (a stylesheet, a script, an imported image or font) would have one filename. A host answers them by filename alone, and a published site keeps them in one folder."
106
+ },
101
107
  {
102
108
  id: "typecheck/error",
103
109
  venue: "tree",
@@ -267,7 +273,7 @@ const AUTHORED_RULES = [
267
273
  id: "pages/composition-invalid",
268
274
  venue: "probe",
269
275
  stage: "composition",
270
- summary: "The composition the pages place breaks a page, canvas, fold or instance rule."
276
+ summary: "The composition the pages place breaks a page, canvas or instance rule."
271
277
  },
272
278
  {
273
279
  id: "relations/section-cycle",
@@ -297,7 +303,7 @@ const AUTHORED_RULES = [
297
303
  id: "fixtures/none",
298
304
  venue: "tree",
299
305
  stage: "fixtures",
300
- summary: "The workspace exports no fixture; marker coverage has no input."
306
+ summary: "The workspace has no fixture: template.ts names no fixture list, or the list names no content fixture; marker coverage has no input."
301
307
  },
302
308
  {
303
309
  id: "fixtures/property-invalid",
@@ -323,6 +329,24 @@ const AUTHORED_RULES = [
323
329
  stage: "fixtures",
324
330
  summary: "A content entry states a malformed date, email or phone value."
325
331
  },
332
+ {
333
+ id: "fixtures/held-row-not-in-property",
334
+ venue: "tree",
335
+ stage: "fixtures",
336
+ summary: "A content entry holds a row its property does not carry; the slot loads empty, as a deleted row does."
337
+ },
338
+ {
339
+ id: "fixtures/document-invalid",
340
+ venue: "tree",
341
+ stage: "fixtures",
342
+ summary: "A fixture document does not parse, or does not match the template: an unknown key, slot or field, a value of the wrong kind, a sourced slot stated without its override mark, or one instance stated twice."
343
+ },
344
+ {
345
+ id: "fixtures/reference-invalid",
346
+ venue: "tree",
347
+ stage: "fixtures",
348
+ summary: "A fixture document names a file outside its own folder, or one that does not exist."
349
+ },
326
350
  {
327
351
  id: "fixtures/instance-not-placed",
328
352
  venue: "tree",
@@ -333,7 +357,7 @@ const AUTHORED_RULES = [
333
357
  id: "fixtures/reachable-from-bundle",
334
358
  venue: "tree",
335
359
  stage: "fixtures",
336
- summary: "A module reachable from template.ts imports fixtures/, the fixtures subpath as a value, or the sample library."
360
+ summary: "A module reachable from template.ts imports a file the fixture list reaches, or the sample library."
337
361
  },
338
362
  {
339
363
  id: "sections/whole-table-read",
@@ -1,9 +1,9 @@
1
1
  import { AddressMember, AddressValue } from "../packages/internal/template-contracts/dist/address-value.js";
2
- import { RegistryTable } from "../packages/internal/template-contracts/dist/registry-shape.js";
3
- import { RegistryTableRow } from "../packages/internal/template-contracts/dist/table-members.js";
4
2
  import { FactRef } from "../packages/internal/template-contracts/dist/slot-ref.js";
3
+ import { RegistryTable } from "../packages/internal/template-contracts/dist/registry-shape.js";
5
4
  import { PropertyFactRegistry } from "../packages/internal/template-contracts/dist/fact-registry.js";
6
5
  import { DocumentMediaValue } from "../packages/internal/template-contracts/dist/registry-facts.js";
6
+ import { RegistryTableRow } from "../packages/internal/template-contracts/dist/table-members.js";
7
7
  import { MediaListKey, RegistryFactKey, RegistryFactValue } from "../packages/internal/template-contracts/dist/fact-keys.js";
8
8
  //#region src/schema/fact.d.ts
9
9
  /**
@@ -1,5 +1,5 @@
1
- import { RegistryTableRow } from "../packages/internal/template-contracts/dist/table-members.js";
2
1
  import { AsRead } from "../packages/internal/template-contracts/dist/slot-ref.js";
2
+ import { RegistryTableRow } from "../packages/internal/template-contracts/dist/table-members.js";
3
3
  //#region src/schema/facts-view.d.ts
4
4
  /** One unit of `fact.property.units`, as a `compute()` reading the table receives it. */
5
5
  type FactsUnit = AsRead<RegistryTableRow<"units">>;
@@ -16,7 +16,6 @@ interface WebsiteFormat {
16
16
  readonly height?: never;
17
17
  readonly dpi?: never;
18
18
  readonly bleed?: never;
19
- readonly panels?: never;
20
19
  readonly preset?: never;
21
20
  }
22
21
  //#endregion
@@ -25,8 +25,7 @@ const DocumentFormatSchema = z.union([z.object({
25
25
  width: physicalLength("positive"),
26
26
  height: physicalLength("positive"),
27
27
  dpi: z.number().min(72).max(600),
28
- bleed: physicalLength("non-negative").optional(),
29
- panels: z.number().int().min(2).optional()
28
+ bleed: physicalLength("non-negative").optional()
30
29
  }).strict()]);
31
30
  const WebsiteFormatSchema = z.object(identityFields).omit({ preset: true }).strict();
32
31
 
@@ -32,6 +32,7 @@ const RenderedPage = z.object({
32
32
  id: z.string().min(1),
33
33
  label: z.string().min(1),
34
34
  optional: z.boolean().default(false),
35
+ direction: z.enum(["column", "row"]).default("column"),
35
36
  sections: z.array(SectionInstance).min(1)
36
37
  }).strict();
37
38
  const TemplateCanvas = z.object({
@@ -213,6 +214,23 @@ function refineRenderedRules(manifest, ctx) {
213
214
  path: ["pages"],
214
215
  message: `A rendered template needs at least one non-optional page; every page of "${manifest.key}" is optional.`
215
216
  });
217
+ manifest.pages.forEach((page, pageIdx) => {
218
+ if (page.direction !== "row") return;
219
+ page.sections.forEach((instance, sectionIdx) => {
220
+ if (instance.required) return;
221
+ ctx.addIssue({
222
+ code: z.ZodIssueCode.custom,
223
+ path: [
224
+ "pages",
225
+ pageIdx,
226
+ "sections",
227
+ sectionIdx,
228
+ "required"
229
+ ],
230
+ message: `Page "${page.id}" lays its sections out in a row, but section "${instance.section}" is not required: a row page's sections are its panels and every one prints, so declare the section \`required: true\`.`
231
+ });
232
+ });
233
+ });
216
234
  const seenFormatIds = /* @__PURE__ */ new Set();
217
235
  manifest.formats.forEach((format, formatIdx) => {
218
236
  const variantError = formatVariantNameError(format.id);
@@ -235,30 +253,6 @@ function refineRenderedRules(manifest, ctx) {
235
253
  message: `Duplicate format id "${format.id}".`
236
254
  });
237
255
  seenFormatIds.add(format.id);
238
- const panels = "panels" in format ? format.panels : void 0;
239
- if (panels !== void 0) {
240
- if (manifest.pages.length % panels !== 0) ctx.addIssue({
241
- code: z.ZodIssueCode.custom,
242
- path: [
243
- "formats",
244
- formatIdx,
245
- "panels"
246
- ],
247
- message: `Format "${format.id}" folds ${panels} panels to a sheet, so the template's page count must be a multiple of ${panels}; "${manifest.key}" declares ${manifest.pages.length}. Each page is one panel, listed in the order the sheets print.`
248
- });
249
- manifest.pages.forEach((page, pageIdx) => {
250
- if (!page.optional) return;
251
- ctx.addIssue({
252
- code: z.ZodIssueCode.custom,
253
- path: [
254
- "pages",
255
- pageIdx,
256
- "optional"
257
- ],
258
- message: `Page "${page.id}" is optional, but format "${format.id}" folds ${panels} panels to a sheet: every panel prints, so no page of a folded format may be optional.`
259
- });
260
- });
261
- }
262
256
  if (!presetGeometryMatches(format)) ctx.addIssue({
263
257
  code: z.ZodIssueCode.custom,
264
258
  path: [
@@ -1,5 +1,5 @@
1
+ import { SectionNav } from "../packages/internal/template-contracts/dist/section-nav.js";
1
2
  import { ItemIdentity, ObjectValue, SlotValue } from "../packages/internal/template-contracts/dist/slot-value.js";
2
- import { SectionNav } from "./section-nav.js";
3
3
  import { SectionSchemaShape } from "./section-schema.js";
4
4
  //#region src/schema/section-props.d.ts
5
5
  type VariantOf<S extends SectionSchemaShape> = S["meta"] extends {
@@ -4,8 +4,8 @@ import { TourValue } from "../packages/internal/template-contracts/dist/tour-val
4
4
  import { VideoValue } from "../packages/internal/template-contracts/dist/video-value.js";
5
5
  import { PoiPhoto, PoiRow } from "../packages/internal/template-contracts/dist/poi-row.js";
6
6
  import { AuthorImage, ImageValue, MediaValue, PlaybackConfig } from "../packages/internal/template-contracts/dist/runtime-values.js";
7
- import { ItemIdentity, ObjectValue, SlotValue } from "../packages/internal/template-contracts/dist/slot-value.js";
8
7
  import { Slot } from "../packages/internal/template-contracts/dist/slot-types.js";
8
+ import { ItemIdentity, ObjectValue, SlotValue } from "../packages/internal/template-contracts/dist/slot-value.js";
9
9
  import { Coordinates } from "./property-facts.js";
10
10
  import { SectionProps } from "./section-props.js";
11
11
  import { z } from "zod";
@@ -1,4 +1,5 @@
1
1
  import { CONTENT_SLOT_TYPES, REF_SLOT_TYPES, SLOT_TYPES } from "../packages/internal/template-contracts/dist/slot-catalog.js";
2
+ import { defaultForSlotType } from "../packages/internal/template-contracts/dist/primitive-descriptors.js";
2
3
  import { SerializedReads, SlotDef } from "../packages/internal/template-contracts/dist/slot-types.js";
3
4
  import { z } from "zod";
4
5
 
@@ -1,6 +1,6 @@
1
- import { SlotValue } from "../packages/internal/template-contracts/dist/slot-value.js";
2
1
  import { Slot } from "../packages/internal/template-contracts/dist/slot-types.js";
3
2
  import { DISPLAY_REF_PREFIX, DisplayEntryName, SlotRef } from "../packages/internal/template-contracts/dist/slot-ref.js";
3
+ import { SlotValue } from "../packages/internal/template-contracts/dist/slot-value.js";
4
4
  import "../schema/section-props.js";
5
5
  import { DefinedSchema, DisplayInput } from "../schema/define-schema.js";
6
6
  //#region src/section/declare.d.ts
@@ -12,6 +12,7 @@ const SKIPPED_DIRS = /* @__PURE__ */ new Set([
12
12
  "dist",
13
13
  ".concrete"
14
14
  ]);
15
+ const ROOT_TOOL_CONFIG = /^[^/.]+\.config\.[cm]?[jt]s$/;
15
16
  var DuplicateSectionKeyError = class extends Error {
16
17
  key;
17
18
  first;
@@ -31,9 +32,12 @@ function listModules(root) {
31
32
  if (entry.name.startsWith(".")) continue;
32
33
  const path = entry.path;
33
34
  if (entry.isDirectory()) {
34
- if (SKIPPED_DIRS.has(entry.name) || depth === 0 && entry.name === "fixtures") continue;
35
+ if (SKIPPED_DIRS.has(entry.name)) continue;
35
36
  walk(path, depth + 1);
36
- } else if (entry.isFile() && MODULE_FILE.test(entry.name) && !SKIPPED_FILE.test(entry.name)) out.push(path);
37
+ } else if (entry.isFile() && MODULE_FILE.test(entry.name) && !SKIPPED_FILE.test(entry.name)) {
38
+ if (depth === 0 && ROOT_TOOL_CONFIG.test(entry.name)) continue;
39
+ out.push(path);
40
+ }
37
41
  }
38
42
  };
39
43
  walk(root, 0);
@@ -0,0 +1,38 @@
1
+ import { fillSpecFromSchema } from "../schema/extract-fill-spec.js";
2
+ import { FillSpec } from "../packages/internal/template-contracts/dist/fill-spec-schema.js";
3
+ import { SectionSchema } from "../schema/section-schema.js";
4
+ import { materializeSection } from "./materialize.js";
5
+
6
+ //#region src/section/publish-shape.ts
7
+ function flatten(parsed, key) {
8
+ const { meta, ...rest } = parsed;
9
+ return {
10
+ ...rest,
11
+ slot_order: Object.keys(rest.slots),
12
+ anchor: meta.anchor ?? key,
13
+ ...meta.display ? { display: meta.display } : {}
14
+ };
15
+ }
16
+ function stampItemOrder(object) {
17
+ object.item_order = Object.keys(object.fields);
18
+ for (const field of Object.values(object.fields)) {
19
+ const element = field.element;
20
+ if (field.type === "list" && element?.type === "object") stampItemOrder(element);
21
+ }
22
+ }
23
+ function publishShape(key, section) {
24
+ const materialized = materializeSection(section);
25
+ const parsed = SectionSchema.parse(materialized);
26
+ for (const slot of Object.values(parsed.slots)) {
27
+ if (slot.type === "object") stampItemOrder(slot);
28
+ if (slot.type === "list" && slot.element?.type === "object") stampItemOrder(slot.element);
29
+ }
30
+ const fillSpec = FillSpec.parse(fillSpecFromSchema(materialized));
31
+ return {
32
+ schema: flatten(parsed, key),
33
+ fillSpec
34
+ };
35
+ }
36
+
37
+ //#endregion
38
+ export { publishShape };
@@ -1,6 +1,6 @@
1
+ import { SectionNav } from "../packages/internal/template-contracts/dist/section-nav.js";
1
2
  import { Slot } from "../packages/internal/template-contracts/dist/slot-types.js";
2
3
  import { SlotRef } from "../packages/internal/template-contracts/dist/slot-ref.js";
3
- import { SectionNav } from "../schema/section-nav.js";
4
4
  import "../schema/section-schema.js";
5
5
  import { SectionProps } from "../schema/section-props.js";
6
6
  import { SlotBindingMap } from "../primitives/slot-bindings.js";
@@ -1,10 +1,15 @@
1
1
  import { initAnalytics } from "./site-runtime/analytics.js";
2
2
  import { initSiteIntegrations } from "./site-runtime/site-integrations.js";
3
+ import { initWindowHeight } from "./site-runtime/window-height.js";
3
4
 
4
5
  //#region src/site-runtime/analytics-entry.ts
5
6
  if (typeof window !== "undefined") {
6
7
  const run = () => {
7
- for (const init of [initAnalytics, initSiteIntegrations]) try {
8
+ for (const init of [
9
+ initWindowHeight,
10
+ initAnalytics,
11
+ initSiteIntegrations
12
+ ]) try {
8
13
  init();
9
14
  } catch {}
10
15
  };
@@ -0,0 +1,19 @@
1
+ //#region src/site-runtime/window-height.ts
2
+ const WINDOW_HEIGHT_PROPERTY = "--concrete-window-h";
3
+ function initWindowHeight() {
4
+ const root = document.documentElement;
5
+ let pinnedWidth = window.innerWidth;
6
+ const pin = () => {
7
+ const height = window.innerHeight;
8
+ if (height > 0) root.style.setProperty(WINDOW_HEIGHT_PROPERTY, `${String(height)}px`);
9
+ };
10
+ pin();
11
+ window.addEventListener("resize", () => {
12
+ if (window.innerWidth === pinnedWidth) return;
13
+ pinnedWidth = window.innerWidth;
14
+ pin();
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ export { WINDOW_HEIGHT_PROPERTY, initWindowHeight };
@@ -35,10 +35,19 @@ interface PageBase {
35
35
  /** A website page: addressed by a URL path — `"/"` for the root, else one lowercase-kebab segment. */
36
36
  interface WebsitePage extends PageBase {
37
37
  readonly path: string;
38
+ readonly direction?: never;
38
39
  }
39
40
  /** A rendered class's page — a sheet, a slide, a frame — is not addressed by URL. */
40
41
  interface RenderedPage extends PageBase {
41
42
  readonly path?: never;
43
+ /**
44
+ * How the page's frame lays its sections out: `"column"` (the default) stacks them,
45
+ * `"row"` sets them side by side, each section setting its own width. A folded print
46
+ * piece declares one row page per printed side, one section per panel; every section
47
+ * of a row page must be `required` and declare no `visibility` rule, since a panel
48
+ * that dropped out would shift every later one onto the wrong fold.
49
+ */
50
+ readonly direction?: "column" | "row";
42
51
  }
43
52
  /** One editing canvas: its canvas-bar label and the page ids it presents, in display order. */
44
53
  interface CanvasInput<PageId extends string> {
@@ -54,7 +63,7 @@ interface TemplatePreview {
54
63
  readonly types: readonly ("single_family" | "condo_townhome" | "multi_family" | "investment")[];
55
64
  readonly demoUrl?: string | null;
56
65
  }
57
- /** What every artifact class shares: identity, the icon, scope, rules, intake chrome. */
66
+ /** What every output class shares: identity, the icon, scope, rules, intake chrome. */
58
67
  interface DefineTemplateCommon {
59
68
  readonly key: string;
60
69
  /** The display name — two words at most; the picker, the editor and the dashboard show it on one line. */
@@ -63,6 +72,13 @@ interface DefineTemplateCommon {
63
72
  readonly icon: string;
64
73
  readonly scope: TemplateScope;
65
74
  readonly preview?: TemplatePreview;
75
+ /**
76
+ * The template's fixture list, as a path relative to `template.ts`:
77
+ * `fixtures: "./fixtures/index.json"`. The list names the content fixtures the playground
78
+ * offers, each a document naming the property it is on. Dev data: it enters no bundle and
79
+ * no content hash, so changing a fixture re-versions nothing.
80
+ */
81
+ readonly fixtures?: string;
66
82
  }
67
83
  /** One rendered format, or a non-empty list of one class. */
68
84
  type FormatList<F> = F | readonly [F, ...F[]];
@@ -85,7 +101,7 @@ type DefineTemplateInput<PageId extends string> = DefineTemplateCommon & ({
85
101
  readonly pages: Readonly<Record<PageId, RenderedPage>>;
86
102
  readonly canvases?: CanvasesInput<NoInfer<PageId>>;
87
103
  });
88
- /** The artifact class a template's formats declare. */
104
+ /** The output class a template's formats declare. */
89
105
  type OutputClass = "website" | "image" | "document";
90
106
  /** One page as the template value carries it: the authored entry with its id stamped from the key. */
91
107
  interface TemplatePage {
@@ -93,6 +109,8 @@ interface TemplatePage {
93
109
  readonly label: string;
94
110
  readonly path?: string;
95
111
  readonly optional: boolean;
112
+ /** Rendered pages only, as authored; absent is a column. */
113
+ readonly direction?: "column" | "row";
96
114
  readonly page: PageComponent;
97
115
  }
98
116
  /** One canvas as the template value carries it — declared, or the stamped class default. */
@@ -115,11 +133,13 @@ interface TemplateValue {
115
133
  readonly formats: readonly (WebsiteFormat | ImageFormat | DocumentFormat)[];
116
134
  readonly icon: string;
117
135
  readonly scope: TemplateScope;
118
- /** In artifact order. */
136
+ /** In output order. */
119
137
  readonly pages: readonly TemplatePage[];
120
138
  /** In canvas-bar order; always explicit. */
121
139
  readonly canvases: readonly TemplateCanvas[];
122
140
  readonly preview?: TemplatePreview;
141
+ /** The fixture list's path, relative to `template.ts`, as authored. */
142
+ readonly fixtures?: string;
123
143
  readonly [TEMPLATE]: true;
124
144
  }
125
145
  /**
@@ -127,7 +147,8 @@ interface TemplateValue {
127
147
  * class, the canvases naming real pages — and returns the value the probe reads.
128
148
  *
129
149
  * @throws when the scope names no org, names one twice, or names one that is not a
130
- * UUID; when `format` is an empty list or mixes classes; when `pages` is empty; when
150
+ * UUID; when `fixtures` is not a `./`-relative path to a `.json` file; when `format` is
151
+ * an empty list or mixes classes; when `pages` is empty; when
131
152
  * a declared canvas names a page the site map lacks.
132
153
  */
133
154
  declare function defineTemplate<const PageId extends string>(input: DefineTemplateInput<PageId>): TemplateValue;
@@ -11,6 +11,7 @@ const CLASS_BY_CATEGORY = {
11
11
  };
12
12
  function defineTemplate(input) {
13
13
  assertScope(input.scope);
14
+ if (input.fixtures !== void 0 && (typeof input.fixtures !== "string" || !/^\.\/.+\.json$/.test(input.fixtures))) throw new Error(`Template "${input.key}": \`fixtures\` is the fixture list's path relative to template.ts, written "./fixtures/index.json".`);
14
15
  const formats = Array.isArray(input.format) ? [...input.format] : [input.format];
15
16
  const output = outputClassOf(input.key, formats);
16
17
  const authoredPages = input.pages;
@@ -19,6 +20,7 @@ function defineTemplate(input) {
19
20
  label: page.label,
20
21
  ...page.path === void 0 ? {} : { path: page.path },
21
22
  optional: page.optional ?? false,
23
+ ...page.direction === void 0 ? {} : { direction: page.direction },
22
24
  page: page.page
23
25
  }));
24
26
  if (pages.length === 0) throw new Error(`Template "${input.key}" declares no pages. \`pages\` is the site map — declare at least one.`);
@@ -48,6 +50,7 @@ function defineTemplate(input) {
48
50
  pages,
49
51
  canvases,
50
52
  ...input.preview === void 0 ? {} : { preview: input.preview },
53
+ ...input.fixtures === void 0 ? {} : { fixtures: input.fixtures },
51
54
  [TEMPLATE]: true
52
55
  };
53
56
  return Object.freeze(value);
@@ -1,8 +1,8 @@
1
1
  import { ATTR_ISLAND_KEY, ISLAND_CAPTURE_HOLDS_GLOBAL } from "../packages/internal/capture-settle/dist/island-markers.js";
2
2
  import { ATTR_ISLAND_FRAMELESS, ATTR_ISLAND_ID, ATTR_ISLAND_PROPS, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, EditorBridge, EditorBridgeSelection, EditorSelection, ISLAND_ELEMENT, IslandComponent, IslandEditor, IslandEditorOptions, IslandModule, IslandProps, IslandPropsError, IslandServerFrame, deserializeIslandProps, islandId, serializeIslandProps } from "../packages/internal/island-runtime/dist/contract.js";
3
- import { compute, getComputed } from "../packages/internal/template-contracts/dist/compute.js";
4
3
  import { Slot as Slot$1 } from "../packages/internal/template-contracts/dist/slot-types.js";
5
4
  import { fill } from "../packages/internal/template-contracts/dist/fill-builders.js";
5
+ import { compute, getComputed } from "../packages/internal/template-contracts/dist/compute.js";
6
6
  import { holderProcess } from "../packages/internal/template-contracts/dist/process-builders.js";
7
7
  import { address, date, document, email, image, media, number, phone, poi, select, text, tour, url, video } from "../packages/internal/template-contracts/dist/slot-builders.js";
8
8
  import { object } from "../packages/internal/template-contracts/dist/object.js";
@@ -1,6 +1,6 @@
1
1
  import { placementOf } from "../packages/internal/template-contracts/dist/ref-locate.js";
2
- import { recordPlacements } from "../section/placements.js";
3
2
  import { TemplateManifest } from "../schema/manifest.js";
3
+ import { recordPlacements } from "../section/placements.js";
4
4
  import { buildReadGraph, isSourcedTarget } from "./section-reads.js";
5
5
  import { createElement } from "react";
6
6
 
@@ -17,6 +17,7 @@ function materializeTemplate(template, options = {}) {
17
17
  throw new Error(`Page "${page.id}"${where === "" ? "" : ` (${where})`} emits markup that is not a section: ${excerpt(recorded.markup)}. A page may contain only sections and components that contain only sections — the platform has nowhere to put page markup.`);
18
18
  }
19
19
  for (const placement of recorded.placements) {
20
+ if (page.direction === "row" && "visibility" in placement.section.display) throw new Error(`Page "${page.id}" lays its sections out in a row, but section "${placement.key}" declares a \`display.visibility\` rule: a row page's sections are its panels and every one prints, so a section placed on one may not switch itself off. Draw an empty panel instead of hiding it.`);
20
21
  placements.push(placement);
21
22
  const prior = sectionOfInstance.get(placement.instance);
22
23
  if (prior !== void 0 && prior !== placement.key) throw new Error(`Instance "${placement.instance}" names two sections: "${prior}" and "${placement.key}" (on page "${page.id}"). An instance id is one section's; name the second placement with \`instance\`.`);
@@ -34,6 +35,7 @@ function materializeTemplate(template, options = {}) {
34
35
  label: page.label,
35
36
  ...page.path === void 0 ? {} : { path: page.path },
36
37
  optional: page.optional,
38
+ ...page.direction === void 0 ? {} : { direction: page.direction },
37
39
  sections: recorded.placements.map((placement) => ({
38
40
  section: placement.key,
39
41
  instance_id: placement.instance,
@@ -6,7 +6,6 @@ import { join } from "node:path";
6
6
  const PACKAGE = "@homepages/concrete";
7
7
  const SOURCE_ENTRIES = {
8
8
  ".": "src/index.ts",
9
- "./fixtures": "src/fixtures/index.ts",
10
9
  "./browser": "src/browser/index.ts",
11
10
  "./eslint": "src/eslint/index.ts"
12
11
  };
@@ -1,7 +1,7 @@
1
1
  import { DISPLAY_REF_PREFIX, serializedSectionRefs } from "../packages/internal/template-contracts/dist/slot-ref.js";
2
2
  import { holderOf, mirrorRefOf, sectionSlotAt } from "../packages/internal/template-contracts/dist/ref-locate.js";
3
- import { fillSpecFromSchema } from "../schema/extract-fill-spec.js";
4
3
  import { memberSourceOf } from "../packages/internal/template-contracts/dist/row-sources.js";
4
+ import { fillSpecFromSchema } from "../schema/extract-fill-spec.js";
5
5
 
6
6
  //#region src/template/section-reads.ts
7
7
  function isSourcedTarget(schema, slot) {
@@ -3,7 +3,7 @@ purpose: Every `concrete` command, with its full flag surface, exit codes and co
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=11.0.0 <12.0.0"
6
+ applies_to: "@homepages/concrete >=13.0.0 <14.0.0"
7
7
  related: [INDEX.md]
8
8
  ---
9
9
  # Command reference
@@ -18,11 +18,12 @@ page. Run `concrete --help` for the same list at the terminal.
18
18
  |---|---|---|
19
19
  | [`dev`](dev.md) | Serve this workspace's template in the local editor | `concrete dev [--port <n>] [--no-auto-update]` |
20
20
  | [`check`](check.md) | Grade the template against every requirement the platform accepts it on | `concrete check [--json] [--no-auto-update]` |
21
- | [`build`](build.md) | Run check, then write the template's artifact | `concrete build [--out <dir>] [--no-auto-update]` |
21
+ | [`build`](build.md) | Write the template's built files, building only what changed | `concrete build [--out <dir>] [--no-auto-update]` |
22
22
  | [`upgrade`](upgrade.md) | Move the workspace to a newer @homepages/concrete and run its codemods | `concrete upgrade [--dry-run] [--to <version>]` |
23
+ | [`install`](install.md) | Install the tools the playground runs, at the builds this release pins | `concrete install` |
23
24
  | [`property list`](property-list.md) | List the sample properties a workspace can copy in | `concrete property list [--no-auto-update]` |
24
- | [`property add`](property-add.md) | Copy a sample property into this workspace's fixtures/properties/ | `concrete property add <slug> [--no-auto-update]` |
25
- | [`publish`](publish.md) | Publish the template to HomePages | `concrete publish [--rebuild] [--dry-run] [--json] [--env-file <path>] [--no-auto-update]` |
25
+ | [`property add`](property-add.md) | Copy a sample property beside this workspace's fixture list | `concrete property add <slug> [--no-auto-update]` |
26
+ | [`publish`](publish.md) | Publish the template to HomePages | `concrete publish [--dry-run] [--json] [--env-file <path>] [--no-auto-update]` |
26
27
 
27
28
  ## Global options
28
29
 
@@ -79,7 +80,7 @@ of its flags.
79
80
 
80
81
  ## Versions
81
82
 
82
- These pages describe `@homepages/concrete` **>=11.0.0 <12.0.0**. The range, rather than
83
+ These pages describe `@homepages/concrete` **>=13.0.0 <14.0.0**. The range, rather than
83
84
  the exact version they were generated from: this reference is committed build output,
84
85
  so a page stamped with a patch version would be stale the day it shipped.
85
86
  `concrete --version` prints the installed one.
@@ -3,12 +3,12 @@ purpose: The `concrete build` command — its flags, exit codes and constraints.
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=11.0.0 <12.0.0"
6
+ applies_to: "@homepages/concrete >=13.0.0 <14.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete build
10
10
 
11
- Run check, then write the template's artifact.
11
+ Write the template's built files, building only what changed.
12
12
 
13
13
  ## Synopsis
14
14
 
@@ -20,21 +20,23 @@ concrete build [--out <dir>] [--no-auto-update]
20
20
 
21
21
  | Flag | Type | Default | What it does |
22
22
  |---|---|---|---|
23
- | `--out <dir>` | string | `.concrete/build` | Directory to write the artifact into, relative to the workspace root |
23
+ | `--out <dir>` | string | `.concrete/build` | Directory to write the built files into, relative to the workspace root |
24
24
  | `--no-auto-update` | boolean | `false` | Skip the package refresh this command runs first when the workspace is behind the published release |
25
25
 
26
26
  ## Exit codes
27
27
 
28
28
  | Code | When |
29
29
  |---|---|
30
- | `0` | the artifact was written |
31
- | `1` | `check` is not green, a capture failed, or the artifact cannot be written |
30
+ | `0` | the built files were written |
31
+ | `1` | a step could not build — a module that does not load, a section that does not bundle, a stylesheet that does not compile — or the files cannot be written |
32
32
 
33
33
  ## Constraints
34
34
 
35
- - The only producer of an artifact. Nothing else — no bare bundler — writes one.
36
- - Deterministic: the same tree builds to the same artifact hash.
37
- - An image or document template also carries `captures/`: every authored fixture at every declared format, taken exactly as `dev`'s *Download* takes it — the enabled pages and their zip, or the PDF. Captures sit outside the artifact hash, and need Playwright: without it, build refuses with the install line.
35
+ - Builds and grades nothing: `check` grades what it writes, and `publish` builds, checks and publishes. It writes no artifact.
36
+ - Writes the template's manifest, 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. Beside the directory, never in it, it writes the build's record, `<dir>.json` (`.concrete/build.json` by default): every file's hash, the template's and each section's content hash, and which sections this run built.
37
+ - Incremental: a section is built again only when a file its bundles were made from changed since the last build in the same directory. The workspace, the schemas and the stylesheet are read on every run.
38
+ - Deterministic: the same tree builds to the same content hashes.
39
+ - A failure writes nothing, so the previous build stays whole.
38
40
  - The default output directory, `.concrete/build/`, is gitignored by the scaffold.
39
41
 
40
42
  ## Before it runs
@@ -3,7 +3,7 @@ purpose: The `concrete check` command — its flags, exit codes and constraints.
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=11.0.0 <12.0.0"
6
+ applies_to: "@homepages/concrete >=13.0.0 <14.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete check
@@ -35,8 +35,10 @@ concrete check [--json] [--no-auto-update]
35
35
  - Under `--json` the report is the only thing written to stdout; every notice goes to stderr.
36
36
  - Grades with the toolchain this package ships — TypeScript, ESLint, esbuild — never with a version the workspace declares.
37
37
  - Every threshold is a platform acceptance criterion, not a preference. No flag or config file raises one.
38
+ - Runs `build` first and grades the files it wrote; a step that could not build is a finding of the stage it belongs to.
38
39
  - Every run reports what each placed section's built bundles weigh: the renderer, each island chunk and each asset, in the human output and as `weights` under `--json`.
39
- - `build` runs this first and refuses on red: an artifact exists only because check passed.
40
+ - `publish` runs this on every publish and refuses on red: an artifact exists only because check passed.
41
+ - `template.ts` is the only file it finds by name. Pages, sections, the stylesheet and the icon are reached from it by import, and the fixtures by the fixture list it names (`fixtures: "./fixtures/index.json"`): a JSON list of the property documents and the content fixtures, each content fixture a JSON document naming its property document, every path relative to the file that states it.
40
42
 
41
43
  ## Before it runs
42
44
 
@@ -3,7 +3,7 @@ purpose: The `concrete dev` command — its flags, exit codes and constraints.
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=11.0.0 <12.0.0"
6
+ applies_to: "@homepages/concrete >=13.0.0 <14.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete dev
@@ -20,7 +20,7 @@ concrete dev [--port <n>] [--no-auto-update]
20
20
 
21
21
  | Flag | Type | Default | What it does |
22
22
  |---|---|---|---|
23
- | `--port <n>` | string | `5180` | Port to serve on. A non-integer or non-positive value falls back to the default. The editor also opens its module-reload socket at this port + 100, so at most 65435 |
23
+ | `--port <n>` | string | `5180` | Port to serve on. A non-integer or non-positive value falls back to the default |
24
24
  | `--no-auto-update` | boolean | `false` | Skip the package refresh this command runs first when the workspace is behind the published release |
25
25
 
26
26
  ## Exit codes
@@ -34,6 +34,10 @@ concrete dev [--port <n>] [--no-auto-update]
34
34
 
35
35
  - Runs until interrupted — it is a server, not a one-shot command.
36
36
  - Serves this one workspace: its template over its fixtures, in the platform's own editor.
37
+ - Builds the template as `concrete build` does, into `.concrete/dev`, and again on every change to a source file, building only the sections the change reaches; every open editor then shows the new build. An image whose responsive ladder is not derived yet serves as its own file meanwhile, and the sections that import it build again once it lands.
38
+ - The fixtures are the content fixtures the fixture list in `template.ts` names, each on a property document; an edit to one of those files reloads every open editor.
39
+ - An edit made in the editor saves into the fixture's documents after a short pause, as stable JSON: a content edit into the content fixture, a fact edit into the property document every fixture on that property reads. An upload into a media list, a pasted link and a library removal save into the property document, an uploaded file into the property's own folder.
40
+ - `api/catalog` is the list of every address it answers: under each content fixture, each view (the canvas per canvas and format, and a website's live view per page) and each output (a website's site per page, or an image's or a document's download per format with its page images), every address relative to the server's root. A page the fixture switches off is in none of them.
37
41
 
38
42
  ## Before it runs
39
43