@homepages/concrete 1.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 (327) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +174 -0
  3. package/codemods/manifest.json +9 -0
  4. package/dist/artifact/playground/client/assets/index-BSA1yutg.css +1 -0
  5. package/dist/artifact/playground/client/assets/index-JloQyj8h.js +1101 -0
  6. package/dist/artifact/playground/client/index.html +13 -0
  7. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -0
  8. package/dist/artifact/playground/host.mjs +127 -0
  9. package/dist/asset-modules.d.ts +99 -0
  10. package/dist/base.css +220 -0
  11. package/dist/browser/site-config.d.ts +18 -0
  12. package/dist/browser/site-config.js +56 -0
  13. package/dist/browser/submit-lead.d.ts +98 -0
  14. package/dist/browser/submit-lead.js +188 -0
  15. package/dist/browser.d.ts +3 -0
  16. package/dist/browser.js +4 -0
  17. package/dist/cli/build/artifact.js +225 -0
  18. package/dist/cli/build/captures.js +67 -0
  19. package/dist/cli/build/esbuild.js +127 -0
  20. package/dist/cli/build/fixtures.js +96 -0
  21. package/dist/cli/build/icons.js +76 -0
  22. package/dist/cli/build/index.js +38 -0
  23. package/dist/cli/build/playground.js +31 -0
  24. package/dist/cli/build/sections.js +236 -0
  25. package/dist/cli/build/source.js +62 -0
  26. package/dist/cli/build/static.js +156 -0
  27. package/dist/cli/capture/bundle.js +37 -0
  28. package/dist/cli/capture/capture-browser.js +51 -0
  29. package/dist/cli/capture/capture.js +121 -0
  30. package/dist/cli/check/analyze.js +95 -0
  31. package/dist/cli/check/index.js +19 -0
  32. package/dist/cli/check/load-workspace.js +119 -0
  33. package/dist/cli/check/messages.js +16 -0
  34. package/dist/cli/check/render/class-conflicts.js +39 -0
  35. package/dist/cli/check/render/html.js +86 -0
  36. package/dist/cli/check/render/inputs.js +53 -0
  37. package/dist/cli/check/render/invariants.js +58 -0
  38. package/dist/cli/check/render/island-frames.js +72 -0
  39. package/dist/cli/check/render/marker-coverage.js +102 -0
  40. package/dist/cli/check/render/nav.js +64 -0
  41. package/dist/cli/check/report.js +73 -0
  42. package/dist/cli/check/stages/bundles.js +129 -0
  43. package/dist/cli/check/stages/composition.js +67 -0
  44. package/dist/cli/check/stages/contracts.js +22 -0
  45. package/dist/cli/check/stages/dependencies.js +261 -0
  46. package/dist/cli/check/stages/fixtures.js +74 -0
  47. package/dist/cli/check/stages/lint.js +41 -0
  48. package/dist/cli/check/stages/logic.js +63 -0
  49. package/dist/cli/check/stages/render.js +144 -0
  50. package/dist/cli/check/stages/sections.js +83 -0
  51. package/dist/cli/check/stages/stylesheet.js +31 -0
  52. package/dist/cli/check/stages/typecheck.js +68 -0
  53. package/dist/cli/check/stages/workspace.js +26 -0
  54. package/dist/cli/commands.js +342 -0
  55. package/dist/cli/currency/cache.js +89 -0
  56. package/dist/cli/currency/decide.js +65 -0
  57. package/dist/cli/currency/opt-out.js +16 -0
  58. package/dist/cli/currency/preamble.js +183 -0
  59. package/dist/cli/currency/prompt.js +28 -0
  60. package/dist/cli/currency/refresh.js +44 -0
  61. package/dist/cli/currency/resolve-latest.js +185 -0
  62. package/dist/cli/currency/version-order.js +38 -0
  63. package/dist/cli/dev/crop.js +22 -0
  64. package/dist/cli/dev/hmr.js +26 -0
  65. package/dist/cli/dev/http.js +129 -0
  66. package/dist/cli/dev/index.js +70 -0
  67. package/dist/cli/dev/islands.js +390 -0
  68. package/dist/cli/dev/load-template.js +46 -0
  69. package/dist/cli/dev/request-error.js +22 -0
  70. package/dist/cli/dev/server.js +307 -0
  71. package/dist/cli/dev/tsconfig-paths.js +95 -0
  72. package/dist/cli/dev/vite.js +85 -0
  73. package/dist/cli/dev/workspace-reader.js +274 -0
  74. package/dist/cli/io.d.ts +14 -0
  75. package/dist/cli/media/cache.js +125 -0
  76. package/dist/cli/media/derive.js +252 -0
  77. package/dist/cli/media/deriver-plugin.js +71 -0
  78. package/dist/cli/property/index.js +180 -0
  79. package/dist/cli/property/library.js +137 -0
  80. package/dist/cli/publish/client.js +119 -0
  81. package/dist/cli/publish/freshness.js +66 -0
  82. package/dist/cli/publish/git.js +43 -0
  83. package/dist/cli/publish/index.js +207 -0
  84. package/dist/cli/publish/pack.js +78 -0
  85. package/dist/cli/publish/report.js +98 -0
  86. package/dist/cli/publish/target.js +87 -0
  87. package/dist/cli/publish/wire.js +29 -0
  88. package/dist/cli/tar.js +87 -0
  89. package/dist/cli/upgrade/codemod.js +56 -0
  90. package/dist/cli/upgrade/index.js +263 -0
  91. package/dist/cli/upgrade/manifest.js +72 -0
  92. package/dist/cli/upgrade/plan.js +68 -0
  93. package/dist/cli/upgrade/stage.js +71 -0
  94. package/dist/cli/version.d.ts +12 -0
  95. package/dist/cli/version.js +15 -0
  96. package/dist/cli/workspace.js +108 -0
  97. package/dist/cli.d.ts +6 -0
  98. package/dist/cli.js +94 -0
  99. package/dist/css/compile.js +77 -0
  100. package/dist/css/graph.js +109 -0
  101. package/dist/css/inline.js +132 -0
  102. package/dist/css/rules.js +65 -0
  103. package/dist/design-system/format-variants.js +127 -0
  104. package/dist/eslint/authoring.js +46 -0
  105. package/dist/eslint/correctness.js +42 -0
  106. package/dist/eslint/rules/editor-declaration.js +103 -0
  107. package/dist/eslint/rules/editor-reason.js +135 -0
  108. package/dist/eslint/rules/island-imports.js +20 -0
  109. package/dist/eslint/rules/jsx-visitor.js +20 -0
  110. package/dist/eslint/rules/no-client-runtime.js +88 -0
  111. package/dist/eslint/rules/no-editor-globals.js +60 -0
  112. package/dist/eslint/rules/no-hard-coded-color.js +183 -0
  113. package/dist/eslint/rules/no-inline-style.js +24 -0
  114. package/dist/eslint/rules/no-marker-literal.js +37 -0
  115. package/dist/eslint/rules/no-nondeterminism.js +44 -0
  116. package/dist/eslint/rules/no-px-breakpoint.js +44 -0
  117. package/dist/eslint/rules/no-raw-values.js +45 -0
  118. package/dist/eslint/rules/serializable-props.js +95 -0
  119. package/dist/eslint.d.ts +6 -0
  120. package/dist/eslint.js +26 -0
  121. package/dist/fixtures/brand.d.ts +4 -0
  122. package/dist/fixtures/brand.js +9 -0
  123. package/dist/fixtures/bundle-rule.js +67 -0
  124. package/dist/fixtures/canonical.d.ts +149 -0
  125. package/dist/fixtures/image-dimensions.js +59 -0
  126. package/dist/fixtures/load.js +154 -0
  127. package/dist/fixtures/media-plugin.js +141 -0
  128. package/dist/fixtures/media.js +165 -0
  129. package/dist/fixtures/property.js +210 -0
  130. package/dist/fixtures/resolve.js +202 -0
  131. package/dist/fixtures/rows.js +108 -0
  132. package/dist/fixtures/synthesize-empties.js +42 -0
  133. package/dist/fixtures.d.ts +213 -0
  134. package/dist/fixtures.js +37 -0
  135. package/dist/index.d.ts +53 -0
  136. package/dist/index.js +37 -0
  137. package/dist/islands/client-module.js +97 -0
  138. package/dist/islands/marker.d.ts +43 -0
  139. package/dist/islands/marker.js +44 -0
  140. package/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/browser.js +687 -0
  141. package/dist/packages/external/concrete/package.js +5 -0
  142. package/dist/packages/internal/fact-interpolation/dist/index.js +22 -0
  143. package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +111 -0
  144. package/dist/packages/internal/fill-bake/dist/display.js +9 -0
  145. package/dist/packages/internal/fill-bake/dist/index.js +6 -0
  146. package/dist/packages/internal/fill-bake/dist/reconcile-cross-section.js +170 -0
  147. package/dist/packages/internal/fill-vocabulary/dist/facts.d.ts +32 -0
  148. package/dist/packages/internal/fill-vocabulary/dist/facts.js +131 -0
  149. package/dist/packages/internal/fill-vocabulary/dist/row-planners.js +73 -0
  150. package/dist/packages/internal/format-geometry/dist/capture.js +404 -0
  151. package/dist/packages/internal/format-geometry/dist/format.d.ts +41 -0
  152. package/dist/packages/internal/format-geometry/dist/geometry.js +58 -0
  153. package/dist/packages/internal/format-geometry/dist/index.js +4 -0
  154. package/dist/packages/internal/image-descriptor/dist/index.d.ts +35 -0
  155. package/dist/packages/internal/image-ladder/dist/crop.js +82 -0
  156. package/dist/packages/internal/image-ladder/dist/encode.js +23 -0
  157. package/dist/packages/internal/image-ladder/dist/index.js +4 -0
  158. package/dist/packages/internal/image-ladder/dist/policy.js +102 -0
  159. package/dist/packages/internal/island-runtime/dist/capture-holds.d.ts +13 -0
  160. package/dist/packages/internal/island-runtime/dist/capture-holds.js +45 -0
  161. package/dist/packages/internal/island-runtime/dist/contract.d.ts +176 -0
  162. package/dist/packages/internal/island-runtime/dist/contract.js +94 -0
  163. package/dist/packages/internal/island-runtime/dist/editor-instance-context.js +15 -0
  164. package/dist/packages/internal/island-runtime/dist/index.d.ts +103 -0
  165. package/dist/packages/internal/island-runtime/dist/index.js +163 -0
  166. package/dist/packages/internal/island-runtime/dist/use-capture-ready.d.ts +19 -0
  167. package/dist/packages/internal/island-runtime/dist/use-capture-ready.js +39 -0
  168. package/dist/packages/internal/island-runtime/dist/use-editor.d.ts +22 -0
  169. package/dist/packages/internal/island-runtime/dist/use-editor.js +54 -0
  170. package/dist/packages/internal/island-runtime/dist/viewport-schedule.js +105 -0
  171. package/dist/packages/internal/property-facts/dist/derive-facts-view.js +25 -0
  172. package/dist/packages/internal/property-facts/dist/index.js +3 -0
  173. package/dist/packages/internal/property-facts/dist/property-facts-CSdkSuD7.js +181 -0
  174. package/dist/packages/internal/section-contracts/dist/cap-contract.js +59 -0
  175. package/dist/packages/internal/section-contracts/dist/catalog.js +102 -0
  176. package/dist/packages/internal/section-contracts/dist/choose-select-contract.js +24 -0
  177. package/dist/packages/internal/section-contracts/dist/count-bounds-contract.js +48 -0
  178. package/dist/packages/internal/section-contracts/dist/display-contract.js +30 -0
  179. package/dist/packages/internal/section-contracts/dist/display-evidence-contract.js +17 -0
  180. package/dist/packages/internal/section-contracts/dist/group-contract.js +21 -0
  181. package/dist/packages/internal/section-contracts/dist/index.js +26 -0
  182. package/dist/packages/internal/section-contracts/dist/interpolation-contract.js +48 -0
  183. package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +53 -0
  184. package/dist/packages/internal/section-contracts/dist/list-scalar-contract.js +70 -0
  185. package/dist/packages/internal/section-contracts/dist/name-title-contract.js +27 -0
  186. package/dist/packages/internal/section-contracts/dist/nested-slot-contract.js +12 -0
  187. package/dist/packages/internal/section-contracts/dist/option-source-contract.js +22 -0
  188. package/dist/packages/internal/section-contracts/dist/poi-curation-contract.js +18 -0
  189. package/dist/packages/internal/section-contracts/dist/pooling-field-contract.js +30 -0
  190. package/dist/packages/internal/section-contracts/dist/record-collection-contract.js +24 -0
  191. package/dist/packages/internal/section-contracts/dist/row-contract.js +37 -0
  192. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +38 -0
  193. package/dist/packages/internal/section-contracts/dist/runners.js +181 -0
  194. package/dist/packages/internal/section-contracts/dist/select-contract.js +28 -0
  195. package/dist/packages/internal/section-contracts/dist/source-contract.js +48 -0
  196. package/dist/packages/internal/section-contracts/dist/source-filter-contract.js +15 -0
  197. package/dist/packages/internal/section-contracts/dist/sources-contract.js +28 -0
  198. package/dist/packages/internal/section-contracts/dist/url-contract.js +20 -0
  199. package/dist/packages/internal/source-resolution/dist/index.js +222 -0
  200. package/dist/packages/internal/template-artifact/dist/hash.js +50 -0
  201. package/dist/packages/internal/template-artifact/dist/index.js +7 -0
  202. package/dist/packages/internal/template-artifact/dist/layout.js +165 -0
  203. package/dist/packages/internal/template-artifact/dist/manifest.js +73 -0
  204. package/dist/packages/internal/template-artifact/dist/sha256.js +138 -0
  205. package/dist/packages/internal/template-artifact/dist/verify.js +275 -0
  206. package/dist/packages/internal/template-contracts/dist/collection-editing.js +38 -0
  207. package/dist/packages/internal/template-contracts/dist/content-categories.d.ts +10 -0
  208. package/dist/packages/internal/template-contracts/dist/content-categories.js +17 -0
  209. package/dist/packages/internal/template-contracts/dist/document-value.d.ts +33 -0
  210. package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +81 -0
  211. package/dist/packages/internal/template-contracts/dist/facts-view.js +136 -0
  212. package/dist/packages/internal/template-contracts/dist/layout.js +17 -0
  213. package/dist/packages/internal/template-contracts/dist/markers.d.ts +40 -0
  214. package/dist/packages/internal/template-contracts/dist/markers.js +41 -0
  215. package/dist/packages/internal/template-contracts/dist/poi-row.d.ts +63 -0
  216. package/dist/packages/internal/template-contracts/dist/select-key.js +13 -0
  217. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1112 -0
  218. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +1109 -0
  219. package/dist/packages/internal/template-contracts/dist/slot-overrides.js +11 -0
  220. package/dist/packages/internal/template-contracts/dist/tour-value.d.ts +45 -0
  221. package/dist/packages/internal/template-contracts/dist/video-value.d.ts +63 -0
  222. package/dist/playground/host/page-state.js +12 -0
  223. package/dist/playground/host/paths.js +9 -0
  224. package/dist/playground/layout.js +24 -0
  225. package/dist/playground/wire.js +36 -0
  226. package/dist/playground-island-runtime.d.ts +3 -0
  227. package/dist/playground-island-runtime.js +4 -0
  228. package/dist/primitives/FrameShell.d.ts +29 -0
  229. package/dist/primitives/FrameShell.js +34 -0
  230. package/dist/primitives/Image.d.ts +119 -0
  231. package/dist/primitives/Image.js +173 -0
  232. package/dist/primitives/Section.d.ts +22 -0
  233. package/dist/primitives/Section.js +26 -0
  234. package/dist/primitives/Tour.d.ts +43 -0
  235. package/dist/primitives/Tour.js +72 -0
  236. package/dist/primitives/Video.d.ts +57 -0
  237. package/dist/primitives/Video.js +116 -0
  238. package/dist/primitives/embed-playback.js +50 -0
  239. package/dist/primitives/index.d.ts +11 -0
  240. package/dist/primitives/marker-attrs.js +44 -0
  241. package/dist/primitives/object-fit.js +11 -0
  242. package/dist/primitives/picture-sources.d.ts +24 -0
  243. package/dist/primitives/picture-sources.js +52 -0
  244. package/dist/primitives/probe-context.js +24 -0
  245. package/dist/primitives/slot-bindings.d.ts +96 -0
  246. package/dist/primitives/slot-bindings.js +226 -0
  247. package/dist/primitives/slot-document.d.ts +35 -0
  248. package/dist/primitives/slot-document.js +37 -0
  249. package/dist/primitives/slot-group.d.ts +40 -0
  250. package/dist/primitives/slot-group.js +45 -0
  251. package/dist/primitives/slot-list.d.ts +21 -0
  252. package/dist/primitives/slot-list.js +23 -0
  253. package/dist/primitives/slot-media.d.ts +71 -0
  254. package/dist/primitives/slot-media.js +98 -0
  255. package/dist/primitives/slot-scalar.d.ts +53 -0
  256. package/dist/primitives/slot-scalar.js +98 -0
  257. package/dist/primitives/slot.d.ts +26 -0
  258. package/dist/primitives/slot.js +28 -0
  259. package/dist/rules/registry.js +479 -0
  260. package/dist/schema/compute.d.ts +22 -0
  261. package/dist/schema/compute.js +30 -0
  262. package/dist/schema/define-schema.d.ts +27 -0
  263. package/dist/schema/define-schema.js +73 -0
  264. package/dist/schema/extract-fill-spec.js +246 -0
  265. package/dist/schema/extract-used-facts.js +176 -0
  266. package/dist/schema/fact.d.ts +65 -0
  267. package/dist/schema/fact.js +33 -0
  268. package/dist/schema/fill-builders.d.ts +387 -0
  269. package/dist/schema/fill-builders.js +263 -0
  270. package/dist/schema/fill-declaration.d.ts +76 -0
  271. package/dist/schema/fill-declaration.js +43 -0
  272. package/dist/schema/fill-spec.d.ts +18 -0
  273. package/dist/schema/fill-spec.js +170 -0
  274. package/dist/schema/format-presets.d.ts +27 -0
  275. package/dist/schema/format-presets.js +76 -0
  276. package/dist/schema/format.d.ts +22 -0
  277. package/dist/schema/format.js +40 -0
  278. package/dist/schema/formats.d.ts +6 -0
  279. package/dist/schema/formats.js +7 -0
  280. package/dist/schema/layout.d.ts +32 -0
  281. package/dist/schema/layout.js +30 -0
  282. package/dist/schema/manifest.js +300 -0
  283. package/dist/schema/property-facts.d.ts +83 -0
  284. package/dist/schema/runtime-values.d.ts +88 -0
  285. package/dist/schema/section-nav.d.ts +38 -0
  286. package/dist/schema/section-nav.js +29 -0
  287. package/dist/schema/section-props.d.ts +98 -0
  288. package/dist/schema/section-schema.d.ts +53 -0
  289. package/dist/schema/section-schema.js +54 -0
  290. package/dist/schema/slot-builders.d.ts +497 -0
  291. package/dist/schema/slot-builders.js +331 -0
  292. package/dist/schema/slot-types.d.ts +110 -0
  293. package/dist/schema/slot-types.js +187 -0
  294. package/dist/section/declare.d.ts +44 -0
  295. package/dist/section/declare.js +27 -0
  296. package/dist/section/discovery.js +76 -0
  297. package/dist/section/groups.js +74 -0
  298. package/dist/section/materialize.js +28 -0
  299. package/dist/section/placements.js +28 -0
  300. package/dist/section/section.d.ts +69 -0
  301. package/dist/section/section.js +101 -0
  302. package/dist/site-analytics.d.ts +1 -0
  303. package/dist/site-analytics.js +15 -0
  304. package/dist/site-runtime/analytics.js +97 -0
  305. package/dist/site-runtime/site-integrations.js +97 -0
  306. package/dist/styles.css +60 -0
  307. package/dist/template/define-template.d.ts +139 -0
  308. package/dist/template/define-template.js +98 -0
  309. package/dist/template/logic-build.js +191 -0
  310. package/dist/template/logic-shim.d.ts +43 -0
  311. package/dist/template/logic-shim.js +52 -0
  312. package/dist/template/logic-transform.js +92 -0
  313. package/dist/template/materialize.js +107 -0
  314. package/dist/template/reconcile.d.ts +67 -0
  315. package/dist/template/reconcile.js +25 -0
  316. package/dist/template/running-copy.js +58 -0
  317. package/guide/reference/cli/INDEX.md +79 -0
  318. package/guide/reference/cli/build.md +48 -0
  319. package/guide/reference/cli/check.md +49 -0
  320. package/guide/reference/cli/dev.md +46 -0
  321. package/guide/reference/cli/property-add.md +53 -0
  322. package/guide/reference/cli/property-list.md +46 -0
  323. package/guide/reference/cli/publish.md +54 -0
  324. package/guide/reference/cli/upgrade.md +48 -0
  325. package/guide/reference/rules/INDEX.md +190 -0
  326. package/package.json +137 -0
  327. package/tsconfig.base.json +16 -0
@@ -0,0 +1,48 @@
1
+ ---
2
+ purpose: The `concrete upgrade` command — its flags, exit codes and constraints.
3
+ mode: reference
4
+ status: generated
5
+ generated_from: the concrete command table
6
+ applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
7
+ related: [reference/cli/INDEX.md]
8
+ ---
9
+ # concrete upgrade
10
+
11
+ Move the workspace to a newer @homepages/concrete and run its codemods.
12
+
13
+ ## Synopsis
14
+
15
+ ```bash
16
+ concrete upgrade [--dry-run] [--to <version>]
17
+ ```
18
+
19
+ ## Flags
20
+
21
+ | Flag | Type | Default | What it does |
22
+ |---|---|---|---|
23
+ | `--dry-run` | boolean | `false` | Print the plan and change nothing |
24
+ | `--to <version>` | string | — | Move to this exact version instead of the published latest |
25
+
26
+ ## Exit codes
27
+
28
+ | Code | When |
29
+ |---|---|
30
+ | `0` | the workspace was moved and every codemod ran, it was already on the target, or it says why nothing could be changed (no lockfile, nothing installed, an unreachable registry) |
31
+ | `1` | the install fails, a codemod fails, `--to` names a version the registry does not carry, or it runs outside a workspace |
32
+
33
+ ## Constraints
34
+
35
+ - Installs the target first, then runs every codemod the installed release lists above the version the workspace was on, oldest release first.
36
+ - Prints each codemod as it runs, with every file it rewrote and every file it could not rewrite and why.
37
+ - A file no codemod could rewrite, and a step no codemod could take, is printed for you to do by hand; the upgrade still exits 0.
38
+ - A codemod that fails stops the chain: the ones after it do not run.
39
+ - Codemods run forward only. Moving to an older version moves the package and runs none.
40
+ - `--dry-run` reads the target's codemods out of its published tarball without installing anything.
41
+ - Reads the registry fresh, never the currency preamble's cache.
42
+ - A release version is stamped as a caret; a prerelease is pinned exactly.
43
+ - Needs no terminal — it runs the same in CI, down a pipe, and in a container.
44
+ - A failed install puts package.json back the way it was, and no codemod runs.
45
+
46
+ ## See also
47
+
48
+ - [Every command](INDEX.md) — the rest of the command's surface.
@@ -0,0 +1,190 @@
1
+ ---
2
+ purpose: Every rule `concrete check` grades, by the stage that grades it, in the order the stages run.
3
+ mode: reference
4
+ status: generated
5
+ generated_from: the concrete rule registry
6
+ applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
7
+ related: [reference/cli/check.md]
8
+ ---
9
+ # Rule reference
10
+
11
+ Every requirement a template must satisfy, one entry each, generated from the rule
12
+ registry `concrete check` runs from. A violation names its rule as `concrete/<id>` and
13
+ the file it failed at. The venue says what kind of check found it: `lint` a rule of the
14
+ ESLint preset, `tree` a property of the workspace's files, `probe` a render under the page
15
+ or groups probe, `render` a render over the fixture corpus, `build` a measurement of the
16
+ bundles `concrete build` writes, and `contract` an assertion
17
+ that publishing re-runs over the built artifact. A `lint (warning)` rule is reported in
18
+ your editor and never fails `concrete check`.
19
+
20
+ No stage stops the run. A stage whose input an earlier stage could not produce is
21
+ reported as skipped, and a skipped stage is never a pass.
22
+
23
+ ## workspace
24
+
25
+ The workspace loads: `template.ts` default-exports a `defineTemplate` value and every module builds and evaluates.
26
+
27
+ | Rule | Venue | What it requires |
28
+ |---|---|---|
29
+ | `concrete/workspace/template-missing` | tree | The workspace root has no `template.ts`. |
30
+ | `concrete/workspace/template-invalid` | tree | `template.ts` does not default-export a `defineTemplate` value. |
31
+ | `concrete/workspace/module-invalid` | tree | A workspace module fails to build or throws when it is evaluated. |
32
+ | `concrete/workspace/duplicate-section-key` | tree | Two different exported sections declare the same key. |
33
+
34
+ ## typecheck
35
+
36
+ This package's TypeScript compiles the workspace against its own `tsconfig.json`.
37
+
38
+ | Rule | Venue | What it requires |
39
+ |---|---|---|
40
+ | `concrete/typecheck/error` | tree | TypeScript reports an error in a workspace module or its `tsconfig.json`. |
41
+
42
+ ## lint
43
+
44
+ This package's ESLint preset lints every module in the workspace.
45
+
46
+ | Rule | Venue | What it requires |
47
+ |---|---|---|
48
+ | `concrete/lint/parse-error` | lint | A workspace module cannot be parsed, so no lint rule could grade it. |
49
+ | `concrete/correctness/no-base-to-string` | lint | No value stringifies to `[object Object]` or `[object File]`. |
50
+ | `concrete/correctness/restrict-template-expressions` | lint | A template literal interpolates only strings, numbers and booleans. |
51
+ | `concrete/correctness/restrict-plus-operands` | lint | `+` never mixes a string with a number. |
52
+ | `concrete/correctness/no-misused-promises` | lint | No async function is passed where a void return is expected. |
53
+ | `concrete/correctness/no-floating-promises` | lint | Every promise is awaited, returned or caught. |
54
+ | `concrete/correctness/await-thenable` | lint | `await` is applied only to a thenable. |
55
+ | `concrete/correctness/no-for-in-array` | lint | No `for...in` loop walks an array. |
56
+ | `concrete/correctness/no-implied-eval` | lint | No string is evaluated as code at runtime. |
57
+ | `concrete/server/no-nondeterminism` | lint | Server-rendered code reads no clock and no random source. |
58
+ | `concrete/server/no-client-runtime` | lint | Server-rendered code uses no effect, state, event handler, network call or browser global. |
59
+ | `concrete/server/no-inline-style` | lint | Server-rendered JSX carries no inline `style` prop. |
60
+ | `concrete/islands/serializable-props` | lint | Every prop written to an island is JSON-serializable. |
61
+ | `concrete/islands/editor-declaration` | lint | Every island exports a literal `editor = { live }`, and a literal `serverFrame` when it declares one. |
62
+ | `concrete/islands/editor-reason` | lint | Every read of `inCanvas` that changes behavior carries an `editor-reason:` comment directly above it. |
63
+ | `concrete/islands/no-editor-globals` | lint | No code reads the editor canvas's internal `__tr` globals. |
64
+ | `concrete/slots/no-marker-literal` | lint | No code writes or reads a `data-slot-*` marker; the slot primitives emit them. |
65
+ | `concrete/slots/no-raw-values` | lint | Slot values are read through bindings, never off a raw `slots` object. |
66
+ | `concrete/style/no-hard-coded-color` | lint (warning) | Colors come from the theme, not from a hex value or a color function in a class or inline style. |
67
+ | `concrete/style/no-px-breakpoint` | lint | An arbitrary `min-[…]:` or `max-[…]:` breakpoint is written in `rem`, never `px`. |
68
+
69
+ ## composition
70
+
71
+ Each page is rendered once under the page probe, and the composition it places parses.
72
+
73
+ | Rule | Venue | What it requires |
74
+ |---|---|---|
75
+ | `concrete/pages/non-section-markup` | probe | A page emits markup that is not a section; a page may contain only sections. |
76
+ | `concrete/pages/section-not-exported` | probe | A page places a section no module exports, so the build cannot bundle it alone. |
77
+ | `concrete/pages/composition-invalid` | probe | The composition the pages place breaks a page, canvas, instance or reconcile rule. |
78
+
79
+ ## stylesheet
80
+
81
+ The CSS import graph of `template.ts` compiles into the template stylesheet exactly as `build` compiles it.
82
+
83
+ | Rule | Venue | What it requires |
84
+ |---|---|---|
85
+ | `concrete/css/tailwind-import` | tree | The CSS import graph of template.ts carries no `@import "tailwindcss"`, or more than one. |
86
+ | `concrete/css/external-url` | tree | A rendered template's compiled stylesheet references an external URL, which the renderer cannot reach. |
87
+ | `concrete/css/compile-failed` | tree | A stylesheet reachable from template.ts fails to resolve or compile, so no stylesheet rule could grade it. |
88
+
89
+ ## logic
90
+
91
+ Every placed section's logic bundle and the template's build exactly as `build` builds them, and the template's carries every reconcile rule.
92
+
93
+ | Rule | Venue | What it requires |
94
+ |---|---|---|
95
+ | `concrete/logic/section-build-failed` | tree | A placed section's logic bundle fails to build, as when React reaches it through a compute closure. |
96
+ | `concrete/logic/template-build-failed` | tree | The template's logic bundle fails to build or to evaluate. |
97
+ | `concrete/logic/reconcile-not-exported` | tree | `defineTemplate` is handed reconcile rules `template.ts` does not export as `reconcile`, so the logic bundle drops them. |
98
+
99
+ ## fixtures
100
+
101
+ The fixtures under `fixtures/` load, resolve over the composition, and stay out of the bundle.
102
+
103
+ | Rule | Venue | What it requires |
104
+ |---|---|---|
105
+ | `concrete/fixtures/none` | tree | The workspace exports no fixture; group derivation and marker coverage have no input. |
106
+ | `concrete/fixtures/property-invalid` | tree | A property fails the platform schema, references a missing file, or repeats an id within a pool. |
107
+ | `concrete/fixtures/media-not-in-property` | tree | A content entry references a media entry its property does not carry. |
108
+ | `concrete/fixtures/instance-not-placed` | tree | A content entry names an instance the composition does not place. |
109
+ | `concrete/fixtures/reachable-from-bundle` | tree | A module reachable from template.ts imports fixtures/, the fixtures subpath as a value, or the sample library. |
110
+
111
+ ## sections
112
+
113
+ Every placed section materializes: groups derived over the fixture corpus, the schema and fill spec parsed.
114
+
115
+ | Rule | Venue | What it requires |
116
+ |---|---|---|
117
+ | `concrete/groups/slot-in-two-groups` | probe | A slot is rendered inside two different `SlotGroup` cards. |
118
+ | `concrete/groups/label-conflict` | probe | One `SlotGroup` id is rendered under two different labels. |
119
+ | `concrete/groups/empty` | probe | A `SlotGroup` holds no slot in any fixture state. |
120
+ | `concrete/groups/probe-failed` | probe | A section throws while it is rendered under the groups probe. |
121
+ | `concrete/sections/schema-invalid` | probe | A section's materialized schema or fill spec fails to parse. |
122
+
123
+ ## contracts
124
+
125
+ Every placed section's schema and fill spec satisfy the contract assertions publishing re-runs.
126
+
127
+ | Rule | Venue | What it requires |
128
+ |---|---|---|
129
+ | `concrete/contract/reads-readable` | contract | Every fact bucket a section reads is one an author may declare. |
130
+ | `concrete/contract/produces-known-slot` | contract | Every fill decision produces only slots the section declares. |
131
+ | `concrete/contract/poi-curation` | contract | A points-of-interest curation decision produces exactly one slot, a list of points of interest. |
132
+ | `concrete/contract/list-fill` | contract | A list fill declares what its origination mode needs, such as a count, a pick brief or an iterable facts array. |
133
+ | `concrete/contract/choose-select` | contract | A choose list fill over a record list needs exactly one select field with declared values on the row. |
134
+ | `concrete/contract/name-title` | contract | A name list fill needs its slot's title to name a capped text field that carries no fill of its own. |
135
+ | `concrete/contract/pooling-field` | contract | A list fill's item declares at most one unbound pooled asset field, and pool origination needs one. |
136
+ | `concrete/contract/row-fill` | contract | A list fill plans only unbound fields its record item declares, each with the decision type that field takes. |
137
+ | `concrete/contract/count-bounds` | contract | Every item count a decision requests fits the bounds of the slot or row field that holds the items. |
138
+ | `concrete/contract/cap` | contract | Every generated text value has one character budget, declared on its slot, and a fill cap may only be lower. |
139
+ | `concrete/contract/display` | contract | Display entries declare one origin and legal cases, and every slot variant gate names a declared case. |
140
+ | `concrete/contract/display-evidence` | contract | A filled display entry's pick references only real facts and has evidence to judge from. |
141
+ | `concrete/contract/source` | contract | Every slot and row field source names a known fact or its own compute binding, with a legal writeback. |
142
+ | `concrete/contract/record-collection` | contract | A fact-bound record list binds a registry collection and may only narrow its membership bounds. |
143
+ | `concrete/contract/nested-slot-types` | contract | Every field of a record item carries a known slot type. |
144
+ | `concrete/contract/list-scalar` | contract | A list declares exactly one legal item, a value element or a flat record of fields, with satisfiable bounds. |
145
+ | `concrete/contract/select` | contract | A select declares exactly one of values or options, and a creatable select's keys are normalized. |
146
+ | `concrete/contract/option-source` | contract | A select with an option source names a source the platform provides. |
147
+ | `concrete/contract/url` | contract | A url slot's accepts names a link kind or provider that a registered provider implements. |
148
+ | `concrete/contract/source-filter` | contract | A media slot's source filter names a filter the platform supports. |
149
+ | `concrete/contract/sources` | contract | Only a video slot declares sources, as a non-empty list of distinct known video sources. |
150
+ | `concrete/contract/interpolation` | contract | Every fact interpolated into fill prose names a fact path that exists. |
151
+ | `concrete/contract/group` | contract | Group ids are unique, every group names real slots, and no slot sits in two groups. |
152
+ | `concrete/contract/row` | contract | Every two-up row pairs adjacent short slots, and a record item's layout lists each field exactly once. |
153
+
154
+ ## render
155
+
156
+ Every placed instance renders over every fixture and synthesized empty: deterministic, free of defects, and fully marked for the editor.
157
+
158
+ | Rule | Venue | What it requires |
159
+ |---|---|---|
160
+ | `concrete/render/unrenderable` | render | A placed instance throws when it is rendered over a fixture. |
161
+ | `concrete/render/determinism-drift` | render | An instance renders different markup twice from the same input. |
162
+ | `concrete/render/sentinel-text` | render | Rendered text is `[object Object]` or a bare `null`, `undefined` or `NaN`. |
163
+ | `concrete/render/broken-image` | render | An `<img>` renders with no source. |
164
+ | `concrete/render/unresolved-media` | render | A rendered fixture media URL names no file the fixture load produced. |
165
+ | `concrete/render/missing-slot-marker` | render | An editable slot, row or row field is never rendered as a selectable marker the editor can reach. |
166
+ | `concrete/render/unit-collection-item-marker` | render | A list edited as one card renders per-row item markers the editor never uses. |
167
+ | `concrete/render/group-ancestry` | render | A grouped slot is marked outside its group's element. |
168
+ | `concrete/render/section-root-margin` | render | The section root carries a margin utility, opening a gap between sections. |
169
+
170
+ ## bundles
171
+
172
+ Every placed section bundles exactly as `build` bundles it, its weights are reported, its renderer and island chunks stay under their ceilings, and each frameless island renders no content.
173
+
174
+ | Rule | Venue | What it requires |
175
+ |---|---|---|
176
+ | `concrete/bundles/build-failed` | build | A placed section's renderer or one of its island chunks fails to bundle, so `build` could not write it. |
177
+ | `concrete/bundles/renderer-size` | build | A section's renderer bundle is over 300 KB gzip. |
178
+ | `concrete/bundles/island-size` | build | An island chunk is over 1 MB gzip. |
179
+ | `concrete/islands/server-frame` | render | An island declaring `serverFrame = false` renders content on the server, which the build would delete from every published page. |
180
+
181
+ ## dependencies
182
+
183
+ The workspace's lockfile is current, installs one React, and carries no high-severity advisory.
184
+
185
+ | Rule | Venue | What it requires |
186
+ |---|---|---|
187
+ | `concrete/dependencies/lockfile-missing` | tree | The workspace has no `package-lock.json`, so no dependency gate can be measured. |
188
+ | `concrete/dependencies/lockfile-stale` | tree | The lockfile does not satisfy `package.json`. |
189
+ | `concrete/dependencies/single-react` | tree | More than one copy of React is installed. |
190
+ | `concrete/dependencies/audit-severity` | tree | `npm audit` reports a high or critical advisory. |
package/package.json ADDED
@@ -0,0 +1,137 @@
1
+ {
2
+ "name": "@homepages/concrete",
3
+ "version": "1.0.0",
4
+ "description": "Concrete, the HomePages template framework: the authoring API, the contract primitives, the styles, the lint preset and the `concrete` command in one package that owns its whole toolchain.",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": "^22.13.0 || >=24"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/falktravis/homepages.git",
13
+ "directory": "packages/external/concrete"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "$comment:files": "`guide/` is committed build output: the command reference is generated from src/cli/commands.ts by `npm run docs:build`, graded against a fresh generation on every `npm test` (src/cli/reference.test.ts), and ships in the tarball for an outside reader. `codemods/` ships the codemods `concrete upgrade` runs and `codemods/manifest.json`, the release-written list of which versions introduced which; the command imports them by file path from the installed package, so they are files, never an export.",
19
+ "files": [
20
+ "dist",
21
+ "guide",
22
+ "codemods",
23
+ "tsconfig.base.json",
24
+ "CHANGELOG.md"
25
+ ],
26
+ "bin": {
27
+ "concrete": "dist/cli.js"
28
+ },
29
+ "$comment:exports": "The subpaths a template workspace imports, and nothing else. `.` is the authoring API and the primitives; `./eslint` the flat-config preset a workspace's eslint.config.mjs re-exports; `./tsconfig` the compiler options its tsconfig.json extends; `./styles.css` the primitives' utilities its globals.css imports; `./fixtures` the fixture declarations (`defineFixture`, `content`, the `Property` and `Fixture` types); `./browser` what a published page's island imports to reach the ingest endpoints. Not exported: base.css (a page-level asset the build ships), the dev client, the codemods and the command modules.",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ },
35
+ "./eslint": {
36
+ "types": "./dist/eslint.d.ts",
37
+ "default": "./dist/eslint.js"
38
+ },
39
+ "./fixtures": {
40
+ "types": "./dist/fixtures.d.ts",
41
+ "default": "./dist/fixtures.js"
42
+ },
43
+ "./browser": {
44
+ "types": "./dist/browser.d.ts",
45
+ "default": "./dist/browser.js"
46
+ },
47
+ "./styles.css": "./dist/styles.css",
48
+ "./tsconfig": "./tsconfig.base.json",
49
+ "./package.json": "./package.json"
50
+ },
51
+ "sideEffects": [
52
+ "*.css"
53
+ ],
54
+ "scripts": {
55
+ "prepack": "npm run build",
56
+ "build": "tsdown && node --import tsx scripts/build-playground.mjs",
57
+ "typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
58
+ "lint": "eslint .",
59
+ "test": "node --import tsx --test 'src/**/*.test.ts' 'src/**/*.test.tsx'",
60
+ "docs:build": "node --import tsx scripts/build-cli-reference.mjs",
61
+ "docs:check": "node --import tsx scripts/build-cli-reference.mjs --check",
62
+ "lint:pkg": "publint --strict && attw --pack . --profile esm-only --exclude-entrypoints styles.css",
63
+ "verify:consumer": "node scripts/verify-consumer.mjs",
64
+ "check": "npm run typecheck && npm run lint && npm run build && npm run test && npm run lint:pkg && npm run verify:consumer"
65
+ },
66
+ "$comment:dependencies": "The toolchain and the runtime are real dependencies, on purpose. This package owns the whole toolchain a template workspace runs: TypeScript, ESLint and the rules the preset needs, esbuild, Vite and its React plugin, Tailwind, its Vite plugin, and the compiler and source scanner the template stylesheet builds with (`@tailwindcss/node`, `@tailwindcss/oxide`). The package chooses and tests these versions, a framework update moves them with it, and `check` grades every workspace with the versions we shipped; a workspace declares none of them, and an editor extension finds TypeScript and ESLint hoisted beside the framework. zod is the runtime dependency the authoring API's schemas are written in. tsdown auto-externalizes every entry here, so the shipped modules import each of them by bare specifier.",
67
+ "dependencies": {
68
+ "@tailwindcss/node": "^4.3.3",
69
+ "@tailwindcss/oxide": "^4.3.3",
70
+ "@tailwindcss/vite": "^4.3.3",
71
+ "@typescript-eslint/eslint-plugin": "^8.60.1",
72
+ "@typescript-eslint/parser": "^8.60.1",
73
+ "@vitejs/plugin-react": "^4.3.4",
74
+ "esbuild": "^0.28.1",
75
+ "eslint": "^10.8.0",
76
+ "tailwindcss": "^4.3.0",
77
+ "typescript": "^5.7.2",
78
+ "vite": "^6.0.5",
79
+ "zod": "^4.4.3"
80
+ },
81
+ "$comment:peerDependencies": "React is a PEER, never a dependency. Renderer bundles externalize React and the platform supplies its own copy, so the workspace must hold exactly one, and only a peer makes that structural. scripts/verify-consumer.mjs asserts a consumer's tree carries one React.",
82
+ "peerDependencies": {
83
+ "react": "^19.0.0",
84
+ "react-dom": "^19.0.0"
85
+ },
86
+ "$comment:optionalDependencies": "sharp is optional, on a caret: it drives the image ladder in `dev` and `build`, its native binaries must never fail an install, and a caret clears a libvips advisory for every consumer at once through a lockfile refresh. When sharp is absent the ladder degrades to passing the master through, so a failed install passes `npm audit` and `check` while silently disabling responsive images; verify a real derivation, never the audit count.",
87
+ "optionalDependencies": {
88
+ "sharp": "^0.35.3"
89
+ },
90
+ "$comment:devDependencies": "Every `@homepages/*` entry is a private workspace package compiled INTO dist by tsdown, which externalizes only dependencies, peerDependencies and optionalDependencies: nothing about them survives into a consumer's dependency graph, and the packed tarball declares no `workspace:*` edge in any block a consumer installs (src/package-boundary.test.ts). The set is every internal package the old kit and CLI inline, declared here once so the command, check, dev and build modules that follow reach them without a manifest change; a module the shipped entries do not reach today is simply not in dist yet.",
91
+ "devDependencies": {
92
+ "@arethetypeswrong/cli": "^0.18.5",
93
+ "@eslint/js": "^10.0.1",
94
+ "@homepages/api-contracts": "workspace:*",
95
+ "@homepages/canvas-core": "workspace:*",
96
+ "@homepages/editor-tokens": "workspace:*",
97
+ "@homepages/effective-version": "workspace:*",
98
+ "@homepages/fill-bake": "workspace:*",
99
+ "@homepages/fill-vocabulary": "workspace:*",
100
+ "@homepages/format-geometry": "workspace:*",
101
+ "@homepages/html-escape": "workspace:*",
102
+ "@homepages/icon": "workspace:*",
103
+ "@homepages/image-crop": "workspace:*",
104
+ "@homepages/image-descriptor": "workspace:*",
105
+ "@homepages/image-ladder": "workspace:*",
106
+ "@homepages/internal-refs": "workspace:*",
107
+ "@homepages/island-runtime": "workspace:*",
108
+ "@homepages/media-library": "workspace:*",
109
+ "@homepages/modal": "workspace:*",
110
+ "@homepages/page-shell": "workspace:*",
111
+ "@homepages/property-facts": "workspace:*",
112
+ "@homepages/section-contracts": "workspace:*",
113
+ "@homepages/slot-editors": "workspace:*",
114
+ "@homepages/source-resolution": "workspace:*",
115
+ "@homepages/static-assets-binding": "workspace:*",
116
+ "@homepages/template-artifact": "workspace:*",
117
+ "@homepages/template-contracts": "workspace:*",
118
+ "@homepages/template-rule-registry": "workspace:*",
119
+ "@playwright/test": "^1.62.1",
120
+ "@tailwindcss/cli": "^4.3.0",
121
+ "@tanstack/react-query": "^5.101.4",
122
+ "@types/jsdom": "^21.1.7",
123
+ "@types/node": "^20.17.10",
124
+ "@types/react": "^19.0.0",
125
+ "@types/react-dom": "^19.0.0",
126
+ "fflate": "^0.8.3",
127
+ "jsdom": "^26.1.0",
128
+ "lucide-react": "^1.28.0",
129
+ "publint": "^0.3.21",
130
+ "react": "^19.0.0",
131
+ "react-dom": "^19.0.0",
132
+ "tsdown": "0.22.7",
133
+ "tsx": "^4.19.2",
134
+ "typescript-eslint": "^8.60.1",
135
+ "zustand": "^5.0.14"
136
+ }
137
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "lib": ["ES2022", "DOM"],
7
+ "jsx": "react-jsx",
8
+ "strict": true,
9
+ "noUncheckedIndexedAccess": true,
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true,
12
+ "isolatedModules": true,
13
+ "resolveJsonModule": true,
14
+ "forceConsistentCasingInFileNames": true
15
+ }
16
+ }