@homepages/concrete 8.0.0 → 9.1.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 (331) hide show
  1. package/CHANGELOG.md +1005 -0
  2. package/README.md +20 -9
  3. package/codemods/list-grammar.mjs +923 -0
  4. package/codemods/manifest.json +64 -0
  5. package/codemods/process-builders.mjs +198 -0
  6. package/codemods/slot-object.mjs +1097 -0
  7. package/codemods/steps/content-object-fields.mjs +324 -0
  8. package/codemods/steps/list-object-form.mjs +6 -7
  9. package/codemods/table-rows.mjs +568 -0
  10. package/codemods/unwrap-object-fields.mjs +310 -0
  11. package/codemods/viewer-slot-document.mjs +131 -0
  12. package/codemods/write-property-as-facts-document.mjs +716 -0
  13. package/codemods/write-the-address-line.mjs +255 -0
  14. package/codemods/write-the-registry-members.mjs +653 -0
  15. package/codemods/write-the-select-from.mjs +141 -0
  16. package/codemods/write-the-sole-from.mjs +369 -0
  17. package/codemods/write-the-table-from.mjs +267 -0
  18. package/codemods/write-the-whole-item.mjs +512 -0
  19. package/codemods/writeback-drop.mjs +168 -0
  20. package/codemods/written-contact-address.mjs +162 -0
  21. package/codemods/written-media-category.mjs +227 -0
  22. package/codemods/written-ref-kinds-name-the-layer.mjs +172 -0
  23. package/codemods/written-uploads-replace-pool-reads.mjs +454 -0
  24. package/codemods/written-uploads-sort-into-lists.mjs +405 -0
  25. package/codemods/written-uploads-stated-in-sorted-lists.mjs +295 -0
  26. package/codemods/written-video-sources-drop.mjs +144 -0
  27. package/codemods/written-without-pick-none.mjs +146 -0
  28. package/codemods/written-without-retired-knowledge.mjs +223 -0
  29. package/codemods/written-without-the-media-key.mjs +202 -0
  30. package/codemods/written-without-the-property-type.mjs +249 -0
  31. package/dist/artifact/playground/client/assets/index-BOYbgBnP.js +1259 -0
  32. package/dist/artifact/playground/client/assets/index-DDOcM0zA.css +1 -0
  33. package/dist/artifact/playground/client/index.html +2 -2
  34. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
  35. package/dist/artifact/playground/host.mjs +61 -27
  36. package/dist/base.css +58 -1
  37. package/dist/cli/build/artifact.js +6 -9
  38. package/dist/cli/build/captures.js +2 -12
  39. package/dist/cli/build/esbuild.js +1 -25
  40. package/dist/cli/build/fixtures.js +2 -1
  41. package/dist/cli/build/icons.js +1 -1
  42. package/dist/cli/build/static.js +2 -2
  43. package/dist/cli/capture/capture.js +8 -9
  44. package/dist/cli/check/analyze.js +8 -1
  45. package/dist/cli/check/load-outdir.js +47 -0
  46. package/dist/cli/check/load-workspace.js +4 -4
  47. package/dist/cli/check/render/html.js +1 -2
  48. package/dist/cli/check/render/inputs.js +10 -3
  49. package/dist/cli/check/render/island-frames.js +2 -1
  50. package/dist/cli/check/render/marker-coverage.js +23 -15
  51. package/dist/cli/check/report.js +5 -0
  52. package/dist/cli/check/stages/bundles.js +1 -1
  53. package/dist/cli/check/stages/relations.js +1 -1
  54. package/dist/cli/check/stages/render.js +48 -33
  55. package/dist/cli/check/stages/sections.js +83 -31
  56. package/dist/cli/check/stages/workspace.js +2 -0
  57. package/dist/cli/check/template-key.js +16 -0
  58. package/dist/cli/commands.js +1 -1
  59. package/dist/cli/dev/crop.js +1 -1
  60. package/dist/cli/dev/fixture-ladders.js +96 -0
  61. package/dist/cli/dev/islands.js +12 -123
  62. package/dist/cli/dev/listen.js +20 -1
  63. package/dist/cli/dev/load-template.js +1 -1
  64. package/dist/cli/dev/server.js +35 -10
  65. package/dist/cli/dev/vite.js +9 -7
  66. package/dist/cli/dev/workspace-reader.js +16 -16
  67. package/dist/cli/media/derive.js +43 -57
  68. package/dist/cli/media/frame-rung-floor.js +0 -1
  69. package/dist/cli/property/index.js +1 -6
  70. package/dist/css/inline.js +1 -22
  71. package/dist/eslint/rules/no-marker-literal.js +1 -1
  72. package/dist/fixtures/load.js +16 -7
  73. package/dist/fixtures/media-plugin.js +17 -12
  74. package/dist/fixtures/media-store.js +115 -0
  75. package/dist/fixtures/property.js +345 -126
  76. package/dist/fixtures/resolve.js +260 -251
  77. package/dist/fixtures/rows.js +4 -11
  78. package/dist/fixtures.d.ts +234 -109
  79. package/dist/index.d.ts +25 -16
  80. package/dist/index.js +10 -6
  81. package/dist/islands/marker.js +2 -1
  82. package/dist/packages/external/concrete/package.js +1 -1
  83. package/dist/packages/internal/canvas-core/dist/island-host.js +62 -0
  84. package/dist/packages/internal/canvas-core/dist/island-shields.js +30 -0
  85. package/dist/packages/internal/capture-settle/dist/index.js +3 -0
  86. package/dist/packages/internal/capture-settle/dist/island-markers.d.ts +13 -0
  87. package/dist/packages/internal/capture-settle/dist/island-markers.js +6 -0
  88. package/dist/packages/internal/capture-settle/dist/settle.js +150 -0
  89. package/dist/packages/internal/{image-ladder/dist/crop.js → crop-region/dist/index.js} +21 -20
  90. package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +250 -46
  91. package/dist/packages/internal/fill-bake/dist/compute-reads.js +361 -4
  92. package/dist/packages/internal/fill-bake/dist/derive-source.js +25 -18
  93. package/dist/packages/internal/fill-bake/dist/index.js +9 -3
  94. package/dist/packages/internal/fill-bake/dist/item-merge.js +113 -0
  95. package/dist/packages/internal/fill-bake/dist/item-overrides.js +1 -0
  96. package/dist/packages/internal/fill-bake/dist/linked-merge.js +38 -0
  97. package/dist/packages/internal/fill-bake/dist/list-grammar.js +174 -0
  98. package/dist/packages/internal/fill-bake/dist/stored-row-reader.js +1 -0
  99. package/dist/packages/internal/fill-vocabulary/dist/holder.js +51 -0
  100. package/dist/packages/internal/fill-vocabulary/dist/resolved-decision.js +363 -0
  101. package/dist/packages/internal/fill-vocabulary/dist/row-planners.js +1 -23
  102. package/dist/packages/internal/fill-vocabulary/dist/verbs.js +60 -0
  103. package/dist/packages/internal/format-geometry/dist/capture.js +11 -147
  104. package/dist/packages/internal/format-geometry/dist/format.d.ts +8 -2
  105. package/dist/packages/internal/format-geometry/dist/geometry.js +13 -2
  106. package/dist/packages/internal/image-ladder/dist/encode.js +27 -14
  107. package/dist/packages/internal/image-ladder/dist/index.js +3 -3
  108. package/dist/packages/internal/image-ladder/dist/policy.js +28 -53
  109. package/dist/packages/internal/island-runtime/dist/capture-holds.js +1 -1
  110. package/dist/packages/internal/island-runtime/dist/contract.d.ts +3 -12
  111. package/dist/packages/internal/island-runtime/dist/contract.js +2 -2
  112. package/dist/packages/internal/island-runtime/dist/index.d.ts +3 -7
  113. package/dist/packages/internal/island-runtime/dist/index.js +2 -1
  114. package/dist/packages/internal/island-runtime/dist/viewport-schedule.js +1 -1
  115. package/dist/packages/internal/media-resolution/dist/crop-key.js +7 -0
  116. package/dist/packages/internal/media-resolution/dist/document.js +63 -0
  117. package/dist/packages/internal/media-resolution/dist/image.js +226 -0
  118. package/dist/packages/internal/media-resolution/dist/index.js +11 -0
  119. package/dist/packages/internal/media-resolution/dist/list.js +112 -0
  120. package/dist/packages/internal/media-resolution/dist/media.js +59 -0
  121. package/dist/packages/internal/media-resolution/dist/records.js +7 -0
  122. package/dist/packages/internal/media-resolution/dist/slot.js +37 -0
  123. package/dist/packages/internal/media-resolution/dist/store.js +19 -0
  124. package/dist/packages/internal/media-resolution/dist/tour.js +59 -0
  125. package/dist/packages/internal/media-resolution/dist/video.js +93 -0
  126. package/dist/packages/internal/property-facts/dist/registry-facts.js +245 -0
  127. package/dist/packages/internal/section-contracts/dist/cap-contract.js +8 -17
  128. package/dist/packages/internal/section-contracts/dist/catalog.js +34 -14
  129. package/dist/packages/internal/section-contracts/dist/count-bounds-contract.js +11 -2
  130. package/dist/packages/internal/section-contracts/dist/directly-linked-list-contract.js +21 -0
  131. package/dist/packages/internal/section-contracts/dist/fill-options.js +12 -0
  132. package/dist/packages/internal/section-contracts/dist/fill-spec-view.js +1 -5
  133. package/dist/packages/internal/section-contracts/dist/fill-verb-contract.js +95 -0
  134. package/dist/packages/internal/section-contracts/dist/grammar-scope.js +154 -0
  135. package/dist/packages/internal/section-contracts/dist/index.js +7 -2
  136. package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +2 -36
  137. package/dist/packages/internal/section-contracts/dist/list-scalar-contract.js +12 -21
  138. package/dist/packages/internal/section-contracts/dist/list-source-contract.js +46 -0
  139. package/dist/packages/internal/section-contracts/dist/nested-slot-contract.js +11 -2
  140. package/dist/packages/internal/section-contracts/dist/object-contract.js +92 -0
  141. package/dist/packages/internal/section-contracts/dist/poi-curation-contract.js +9 -5
  142. package/dist/packages/internal/section-contracts/dist/reads-acyclic-contract.js +63 -0
  143. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +6 -17
  144. package/dist/packages/internal/section-contracts/dist/row-rule-contract.js +80 -0
  145. package/dist/packages/internal/section-contracts/dist/row-source-contract.js +67 -0
  146. package/dist/packages/internal/section-contracts/dist/runners.js +77 -18
  147. package/dist/packages/internal/section-contracts/dist/select-contract.js +0 -8
  148. package/dist/packages/internal/section-contracts/dist/source-contract.js +89 -95
  149. package/dist/packages/internal/section-contracts/dist/sources-contract.js +47 -17
  150. package/dist/packages/internal/section-contracts/dist/table-member.js +16 -0
  151. package/dist/packages/internal/section-contracts/dist/writer-reads-fact-contract.js +39 -23
  152. package/dist/packages/internal/source-resolution/dist/index.js +113 -73
  153. package/dist/packages/internal/static-assets-binding/dist/section-asset-url.js +16 -0
  154. package/dist/packages/internal/street-address/dist/index.js +72 -0
  155. package/dist/packages/internal/template-artifact/dist/asset-mime.js +30 -0
  156. package/dist/packages/internal/template-artifact/dist/layout.js +1 -2
  157. package/dist/packages/internal/template-artifact/dist/manifest.js +1 -1
  158. package/dist/packages/internal/template-artifact/dist/verify.js +12 -29
  159. package/dist/packages/internal/template-contracts/dist/address-value.d.ts +52 -0
  160. package/dist/packages/internal/template-contracts/dist/address-value.js +90 -0
  161. package/dist/packages/internal/template-contracts/dist/comparable-address.js +19 -0
  162. package/dist/{schema → packages/internal/template-contracts/dist}/compute.d.ts +29 -6
  163. package/dist/{schema → packages/internal/template-contracts/dist}/compute.js +11 -13
  164. package/dist/packages/internal/template-contracts/dist/content-pick.js +51 -0
  165. package/dist/packages/internal/template-contracts/dist/decision-fills.js +81 -0
  166. package/dist/packages/internal/template-contracts/dist/display-overrides.js +7 -0
  167. package/dist/packages/internal/template-contracts/dist/document-value.d.ts +16 -5
  168. package/dist/packages/internal/template-contracts/dist/fact-compute.d.ts +24 -0
  169. package/dist/packages/internal/template-contracts/dist/fact-compute.js +30 -0
  170. package/dist/packages/internal/template-contracts/dist/fact-keys.d.ts +44 -0
  171. package/dist/packages/internal/template-contracts/dist/fact-keys.js +88 -0
  172. package/dist/packages/internal/template-contracts/dist/fact-registry.d.ts +290 -0
  173. package/dist/packages/internal/template-contracts/dist/fact-registry.js +598 -0
  174. package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +10 -24
  175. package/dist/packages/internal/template-contracts/dist/fill-builders.d.ts +157 -0
  176. package/dist/packages/internal/template-contracts/dist/fill-builders.js +79 -0
  177. package/dist/packages/internal/template-contracts/dist/fill-declaration.d.ts +14 -0
  178. package/dist/{schema → packages/internal/template-contracts/dist}/fill-declaration.js +6 -5
  179. package/dist/packages/internal/template-contracts/dist/fill-spec-schema.js +93 -0
  180. package/dist/packages/internal/template-contracts/dist/fill-spec.js +291 -0
  181. package/dist/packages/internal/template-contracts/dist/findable.js +8 -0
  182. package/dist/packages/internal/template-contracts/dist/floor-presets.js +13 -0
  183. package/dist/packages/internal/template-contracts/dist/icon-names.d.ts +5 -0
  184. package/dist/packages/internal/template-contracts/dist/icon-names.js +70 -0
  185. package/dist/packages/internal/template-contracts/dist/legacy-facts.js +167 -0
  186. package/dist/packages/internal/template-contracts/dist/list-editing.js +93 -0
  187. package/dist/packages/internal/template-contracts/dist/list.d.ts +215 -0
  188. package/dist/packages/internal/template-contracts/dist/list.js +258 -0
  189. package/dist/packages/internal/template-contracts/dist/markers.d.ts +2 -2
  190. package/dist/packages/internal/template-contracts/dist/media-candidates.js +38 -0
  191. package/dist/packages/internal/template-contracts/dist/mirror-kind.js +48 -0
  192. package/dist/packages/internal/template-contracts/dist/number-display.js +10 -0
  193. package/dist/packages/internal/template-contracts/dist/object.d.ts +89 -0
  194. package/dist/packages/internal/template-contracts/dist/object.js +131 -0
  195. package/dist/packages/internal/template-contracts/dist/poi-row.d.ts +1 -1
  196. package/dist/packages/internal/template-contracts/dist/primitive-descriptors.d.ts +1 -0
  197. package/dist/packages/internal/template-contracts/dist/primitive-descriptors.js +162 -0
  198. package/dist/packages/internal/template-contracts/dist/process-builders.d.ts +77 -0
  199. package/dist/packages/internal/template-contracts/dist/process-builders.js +73 -0
  200. package/dist/packages/internal/template-contracts/dist/read-graph.js +240 -0
  201. package/dist/packages/internal/template-contracts/dist/ref-locate.js +176 -0
  202. package/dist/packages/internal/template-contracts/dist/registry-aliases.js +77 -0
  203. package/dist/packages/internal/template-contracts/dist/registry-facts.d.ts +270 -0
  204. package/dist/packages/internal/template-contracts/dist/registry-facts.js +202 -0
  205. package/dist/packages/internal/template-contracts/dist/registry-shape.d.ts +41 -0
  206. package/dist/packages/internal/template-contracts/dist/registry-shape.js +135 -0
  207. package/dist/packages/internal/template-contracts/dist/resolve-scope.js +103 -0
  208. package/dist/packages/internal/{image-descriptor/dist/index.d.ts → template-contracts/dist/responsive-image.d.ts} +1 -1
  209. package/dist/packages/internal/template-contracts/dist/row-planners.js +29 -0
  210. package/dist/packages/internal/template-contracts/dist/row-ref.d.ts +127 -0
  211. package/dist/packages/internal/template-contracts/dist/row-ref.js +101 -0
  212. package/dist/packages/internal/template-contracts/dist/row-sources.js +41 -5
  213. package/dist/packages/internal/template-contracts/dist/row.d.ts +155 -0
  214. package/dist/packages/internal/template-contracts/dist/row.js +84 -0
  215. package/dist/packages/internal/template-contracts/dist/runtime-values.d.ts +97 -0
  216. package/dist/packages/internal/template-contracts/dist/slot-builders.d.ts +782 -0
  217. package/dist/packages/internal/template-contracts/dist/slot-builders.js +233 -0
  218. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +233 -405
  219. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +331 -227
  220. package/dist/packages/internal/template-contracts/dist/slot-overrides.js +21 -0
  221. package/dist/packages/internal/template-contracts/dist/slot-ref.d.ts +155 -0
  222. package/dist/packages/internal/template-contracts/dist/slot-ref.js +76 -0
  223. package/dist/packages/internal/template-contracts/dist/slot-types.d.ts +163 -0
  224. package/dist/packages/internal/template-contracts/dist/slot-types.js +139 -0
  225. package/dist/packages/internal/template-contracts/dist/slot-value.d.ts +95 -0
  226. package/dist/packages/internal/template-contracts/dist/table-members.d.ts +25 -0
  227. package/dist/packages/internal/template-contracts/dist/table-members.js +90 -0
  228. package/dist/packages/internal/template-contracts/dist/tour-value.d.ts +5 -5
  229. package/dist/packages/internal/template-contracts/dist/value-contracts.js +15 -0
  230. package/dist/packages/internal/template-contracts/dist/video-value.d.ts +2 -2
  231. package/dist/platform/fs.js +5 -2
  232. package/dist/playground/canvas-island-host.d.ts +11 -0
  233. package/dist/playground/canvas-island-host.js +29 -0
  234. package/dist/playground/canvas-markers.js +14 -0
  235. package/dist/playground-island-runtime.d.ts +3 -2
  236. package/dist/playground-island-runtime.js +3 -2
  237. package/dist/primitives/FrameShell.js +0 -1
  238. package/dist/primitives/Image.d.ts +5 -4
  239. package/dist/primitives/Tour.d.ts +1 -1
  240. package/dist/primitives/Video.d.ts +2 -2
  241. package/dist/primitives/index.d.ts +2 -3
  242. package/dist/primitives/picture-sources.js +2 -2
  243. package/dist/primitives/probe-context.js +2 -12
  244. package/dist/primitives/slot-address.d.ts +44 -0
  245. package/dist/primitives/slot-address.js +19 -0
  246. package/dist/primitives/slot-bindings.d.ts +65 -26
  247. package/dist/primitives/slot-bindings.js +104 -46
  248. package/dist/primitives/slot-document.d.ts +23 -18
  249. package/dist/primitives/slot-document.js +39 -14
  250. package/dist/primitives/slot-download.d.ts +39 -0
  251. package/dist/primitives/slot-download.js +39 -0
  252. package/dist/primitives/slot-list.d.ts +3 -3
  253. package/dist/primitives/slot-list.js +0 -2
  254. package/dist/primitives/slot-media.d.ts +24 -5
  255. package/dist/primitives/slot-media.js +6 -9
  256. package/dist/primitives/slot-object.d.ts +49 -0
  257. package/dist/primitives/slot-object.js +20 -0
  258. package/dist/primitives/slot-scalar.d.ts +27 -2
  259. package/dist/primitives/slot-scalar.js +50 -7
  260. package/dist/primitives/slot.d.ts +13 -6
  261. package/dist/primitives/slot.js +10 -3
  262. package/dist/rules/registry.js +25 -30
  263. package/dist/schema/define-schema.d.ts +4 -8
  264. package/dist/schema/define-schema.js +178 -79
  265. package/dist/schema/extract-fill-spec.js +2 -153
  266. package/dist/schema/fact.d.ts +57 -15
  267. package/dist/schema/fact.js +42 -7
  268. package/dist/schema/facts-view.d.ts +14 -0
  269. package/dist/schema/format.d.ts +1 -0
  270. package/dist/schema/format.js +2 -1
  271. package/dist/schema/manifest.js +24 -0
  272. package/dist/schema/property-facts.d.ts +8 -12
  273. package/dist/schema/section-props.d.ts +2 -66
  274. package/dist/schema/section-schema.d.ts +8 -11
  275. package/dist/schema/section-schema.js +27 -10
  276. package/dist/section/declare.d.ts +18 -7
  277. package/dist/section/declare.js +18 -5
  278. package/dist/section/materialize.js +3 -8
  279. package/dist/section/section.d.ts +12 -8
  280. package/dist/section/section.js +1 -1
  281. package/dist/template/logic-shim.d.ts +14 -7
  282. package/dist/template/logic-shim.js +14 -7
  283. package/dist/template/materialize.js +17 -18
  284. package/dist/template/mirror-types.js +30 -31
  285. package/dist/template/section-reads.js +85 -9
  286. package/guide/reference/cli/INDEX.md +2 -2
  287. package/guide/reference/cli/build.md +1 -1
  288. package/guide/reference/cli/check.md +1 -1
  289. package/guide/reference/cli/dev.md +1 -1
  290. package/guide/reference/cli/property-add.md +1 -1
  291. package/guide/reference/cli/property-list.md +2 -2
  292. package/guide/reference/cli/publish.md +1 -1
  293. package/guide/reference/cli/upgrade.md +1 -1
  294. package/guide/reference/rules/INDEX.md +29 -25
  295. package/package.json +9 -8
  296. package/dist/artifact/playground/client/assets/index-CckS2ONm.css +0 -1
  297. package/dist/artifact/playground/client/assets/index-Dn_xT16-.js +0 -1101
  298. package/dist/fixtures/canonical.d.ts +0 -166
  299. package/dist/fixtures/media.js +0 -163
  300. package/dist/packages/internal/fill-vocabulary/dist/origination.js +0 -51
  301. package/dist/packages/internal/fill-vocabulary/dist/row-reads.js +0 -15
  302. package/dist/packages/internal/format-geometry/dist/index.js +0 -4
  303. package/dist/packages/internal/property-facts/dist/derive-facts-view.js +0 -10
  304. package/dist/packages/internal/property-facts/dist/index.js +0 -3
  305. package/dist/packages/internal/property-facts/dist/property-facts-Cy7-O4p0.js +0 -189
  306. package/dist/packages/internal/section-contracts/dist/group-contract.js +0 -19
  307. package/dist/packages/internal/section-contracts/dist/record-collection-contract.js +0 -24
  308. package/dist/packages/internal/template-contracts/dist/collection-editing.js +0 -22
  309. package/dist/packages/internal/template-contracts/dist/facts-view.js +0 -104
  310. package/dist/packages/internal/template-contracts/dist/select-key.js +0 -7
  311. package/dist/primitives/slot-group.d.ts +0 -40
  312. package/dist/primitives/slot-group.js +0 -36
  313. package/dist/schema/extract-used-facts.js +0 -34
  314. package/dist/schema/fill-builders.d.ts +0 -115
  315. package/dist/schema/fill-builders.js +0 -25
  316. package/dist/schema/fill-declaration.d.ts +0 -14
  317. package/dist/schema/fill-spec.js +0 -98
  318. package/dist/schema/layout.d.ts +0 -30
  319. package/dist/schema/layout.js +0 -14
  320. package/dist/schema/row-fields.js +0 -88
  321. package/dist/schema/row-ref.d.ts +0 -59
  322. package/dist/schema/row-ref.js +0 -28
  323. package/dist/schema/runtime-values.d.ts +0 -71
  324. package/dist/schema/section-nav.js +0 -14
  325. package/dist/schema/slot-builders.d.ts +0 -633
  326. package/dist/schema/slot-builders.js +0 -177
  327. package/dist/schema/slot-ref.d.ts +0 -79
  328. package/dist/schema/slot-ref.js +0 -41
  329. package/dist/schema/slot-types.d.ts +0 -111
  330. package/dist/schema/slot-types.js +0 -214
  331. package/dist/section/groups.js +0 -68
@@ -1,166 +0,0 @@
1
- //#region src/fixtures/canonical.d.ts
2
- interface CanonicalAddress {
3
- display: string;
4
- street: string;
5
- /** Street number + name without the type suffix ("1112 Commonwealth"). */
6
- street_no_type: string;
7
- city: string;
8
- state: string;
9
- postal: string;
10
- /** Address line 2 (apt/suite/unit); absent when none. */
11
- unit?: string;
12
- }
13
- type CanonicalPropertyType = "single_family" | "condo_townhome" | "multi_family" | "investment";
14
- type CanonicalListingIntent = "for_sale" | "for_rent";
15
- interface CanonicalNarrative {
16
- description: string;
17
- }
18
- /** One 3D tour link. `provider` is a link-provider key, typed loosely on purpose. */
19
- interface CanonicalTourLink {
20
- id: string;
21
- url: string;
22
- provider: string;
23
- }
24
- /** One per-unit floor-plan reference; `upload_id` is a derived plan's source document. */
25
- interface CanonicalUnitFloorPlanRef {
26
- id: string;
27
- upload_id?: string;
28
- floor_label: string | null;
29
- position: number;
30
- }
31
- interface CanonicalUnit {
32
- unit_id: string;
33
- unit_label: string | null;
34
- beds: number;
35
- baths: number;
36
- sqft: number | null;
37
- /** Dollars as bare digits when numeric, the verbatim text override otherwise, or null. */
38
- price: string | null;
39
- position: number;
40
- floor_plans: CanonicalUnitFloorPlanRef[];
41
- }
42
- interface CanonicalPhoto {
43
- id: string;
44
- tags: string[];
45
- caption: string | null;
46
- }
47
- /** One video candidate — a hosted upload or a pasted provider link; `source` is the discriminant. */
48
- interface CanonicalVideo {
49
- id: string;
50
- source: "upload" | "link";
51
- tags: string[];
52
- caption: string | null;
53
- description: string | null;
54
- /** Null means unknown, never short. */
55
- duration_ms: number | null;
56
- /** Link only — the raw pasted URL. */
57
- url: string | null;
58
- /** Link only — a video-provider key. */
59
- provider: string | null;
60
- }
61
- interface CanonicalDocument {
62
- id: string;
63
- filename: string;
64
- mime: string;
65
- /** The notes distilled from the file; '' where there are none. */
66
- notes: string;
67
- }
68
- interface CanonicalFloorPlanUnitAssignment {
69
- unit_label: string | null;
70
- floor_label: string | null;
71
- position: number;
72
- }
73
- interface CanonicalFloorPlan {
74
- id: string;
75
- upload_id?: string;
76
- page_index?: number;
77
- unit_assignments: CanonicalFloorPlanUnitAssignment[];
78
- /** The served image key. */
79
- processed_s3_key: string | null;
80
- }
81
- interface CanonicalContactCard {
82
- id: string;
83
- primary: boolean;
84
- name: string | null;
85
- title: string | null;
86
- org_name: string | null;
87
- bio: string | null;
88
- email: string | null;
89
- phone: string | null;
90
- address: string | null;
91
- website_url: string | null;
92
- avatar_upload_id: string | null;
93
- logo_dark_upload_id: string | null;
94
- logo_light_upload_id: string | null;
95
- instagram_url: string | null;
96
- linkedin_url: string | null;
97
- x_url: string | null;
98
- facebook_url: string | null;
99
- }
100
- type CanonicalComparableStatus = "sold" | "active";
101
- type CanonicalComparablePricePeriod = "total" | "monthly";
102
- interface CanonicalComparable {
103
- id: string;
104
- address_street: string | null;
105
- address_city: string | null;
106
- address_state: string | null;
107
- address_postal: string | null;
108
- /** The display line, '' when no address part is set. */
109
- address: string;
110
- lat: number | null;
111
- lng: number | null;
112
- distance_m: number | null;
113
- status: CanonicalComparableStatus | null;
114
- /** One integer in dollars; `status` and `price_period` say what it means. */
115
- price: number | null;
116
- price_period: CanonicalComparablePricePeriod;
117
- /** ISO `YYYY-MM-DD`; null unless sold. */
118
- sale_date: string | null;
119
- beds: number | null;
120
- baths: number | null;
121
- sqft: number | null;
122
- /** The id of the comp's own photo upload — in no media pool; null when none was uploaded. */
123
- photo_upload_id: string | null;
124
- /** The year the comparable was built. */
125
- year_built: number | null;
126
- /** Lot size in square feet. */
127
- lot_sqft: number | null;
128
- stories: number | null;
129
- /** Units in the comparable's building — a multifamily figure, unrelated to the subject's units. */
130
- units: number | null;
131
- /** Monthly HOA dues in dollars. */
132
- hoa_monthly: number | null;
133
- /** The asking price in dollars, beside `price`. */
134
- list_price: number | null;
135
- /** ISO `YYYY-MM-DD` — when the listing went live, not when it closed. */
136
- listed_date: string | null;
137
- mls_number: string | null;
138
- /** The listing remarks, verbatim from the source. */
139
- description: string | null;
140
- /** The comparable's type in the platform's own vocabulary; null when the source states none. */
141
- property_type: CanonicalPropertyType | null;
142
- }
143
- interface CanonicalDocumentNote {
144
- upload_id: string;
145
- notes: string;
146
- }
147
- /** The platform's property facts, as the platform projects them. */
148
- interface CanonicalProperty {
149
- address: CanonicalAddress;
150
- lat: number | null;
151
- lon: number | null;
152
- property_type: CanonicalPropertyType;
153
- listing_intent: CanonicalListingIntent;
154
- units: CanonicalUnit[];
155
- narrative: CanonicalNarrative;
156
- photos: CanonicalPhoto[];
157
- videos: CanonicalVideo[];
158
- floor_plans: CanonicalFloorPlan[];
159
- tours: CanonicalTourLink[];
160
- document_notes: CanonicalDocumentNote[];
161
- documents: CanonicalDocument[];
162
- contacts: CanonicalContactCard[];
163
- comparables: CanonicalComparable[];
164
- }
165
- //#endregion
166
- export { CanonicalAddress, CanonicalComparable, CanonicalComparablePricePeriod, CanonicalComparableStatus, CanonicalContactCard, CanonicalDocument, CanonicalDocumentNote, CanonicalFloorPlan, CanonicalFloorPlanUnitAssignment, CanonicalListingIntent, CanonicalNarrative, CanonicalPhoto, CanonicalProperty, CanonicalPropertyType, CanonicalTourLink, CanonicalUnit, CanonicalUnitFloorPlanRef, CanonicalVideo };
@@ -1,163 +0,0 @@
1
- import { tourEmbedUrl, videoEmbedUrl } from "../packages/internal/template-contracts/dist/slot-catalog.js";
2
-
3
- //#region src/fixtures/media.ts
4
- const clamp01 = (n) => n < 0 ? 0 : n > 1 ? 1 : n;
5
- function cropRectOf(value) {
6
- if (typeof value !== "object" || value === null) return null;
7
- const { nx = 0, ny = 0, nw = 1, nh = 1 } = value;
8
- if (![
9
- nx,
10
- ny,
11
- nw,
12
- nh
13
- ].every((n) => typeof n === "number" && Number.isFinite(n))) return null;
14
- const x = clamp01(nx);
15
- const y = clamp01(ny);
16
- const rect = {
17
- nx: x,
18
- ny: y,
19
- nw: Math.min(clamp01(nw), 1 - x),
20
- nh: Math.min(clamp01(nh), 1 - y)
21
- };
22
- if (rect.nw <= 0 || rect.nh <= 0) return null;
23
- return rect.nx === 0 && rect.ny === 0 && rect.nw === 1 && rect.nh === 1 ? null : rect;
24
- }
25
- const servedMedia = { file(file) {
26
- return typeof file === "string" ? {
27
- url: file,
28
- responsive: null
29
- } : {
30
- url: file.url,
31
- responsive: file.responsive
32
- };
33
- } };
34
- function refId(kind, value) {
35
- if (typeof value !== "object" || value === null) return null;
36
- const { asset_id: assetId, photo_id: photoId } = value;
37
- if (typeof assetId === "string" && assetId !== "") return assetId;
38
- return kind === "image" && typeof photoId === "string" && photoId !== "" ? photoId : null;
39
- }
40
- function imageValue(entry, ref, resolver) {
41
- if (entry.file === null) return null;
42
- const rect = resolver.crop === void 0 ? null : cropRectOf(ref.rect);
43
- const mobileRect = resolver.crop === void 0 ? null : cropRectOf(ref.mobile_rect);
44
- const served = resolver.file(entry.file);
45
- const value = rect === null ? {
46
- photo_id: entry.id,
47
- url: served.url,
48
- alt: entry.alt,
49
- responsive: served.responsive
50
- } : {
51
- photo_id: entry.id,
52
- url: resolver.crop(entry.file, rect),
53
- alt: entry.alt,
54
- responsive: null,
55
- rect
56
- };
57
- if (mobileRect !== null) value.mobile = {
58
- url: resolver.crop(entry.file, mobileRect),
59
- responsive: null
60
- };
61
- if ("floor_label" in ref) {
62
- const floorLabel = typeof ref.floor_label === "string" ? ref.floor_label : null;
63
- value.floor_label = floorLabel;
64
- if (value.alt === "") value.alt = floorLabel ?? "Floor plan";
65
- }
66
- return value;
67
- }
68
- function posterOf(entry, resolver) {
69
- if (entry.posterFile !== void 0) {
70
- const served = resolver.file(entry.posterFile);
71
- return served.responsive === null ? { poster: served.url } : {
72
- poster: served.url,
73
- poster_responsive: served.responsive
74
- };
75
- }
76
- return { poster: entry.posterUrl ?? "" };
77
- }
78
- function videoValue(entry, resolver) {
79
- const poster = posterOf(entry, resolver);
80
- if (entry.file === null) return {
81
- video_id: entry.id,
82
- url: videoEmbedUrl(entry.url ?? "") ?? "",
83
- ...poster,
84
- alt: entry.alt,
85
- source: "link",
86
- ...entry.provider === null ? {} : { provider: entry.provider }
87
- };
88
- return {
89
- video_id: entry.id,
90
- url: resolver.file(entry.file).url,
91
- ...poster,
92
- alt: entry.alt,
93
- source: "upload"
94
- };
95
- }
96
- function tourValue(entry, resolver) {
97
- return {
98
- tour_id: entry.id,
99
- url: tourEmbedUrl(entry.url ?? "") ?? "",
100
- ...posterOf(entry, resolver),
101
- alt: entry.alt,
102
- ...entry.provider === null ? {} : { provider: entry.provider }
103
- };
104
- }
105
- function documentValue(entry, resolver) {
106
- if (entry.file === null) return null;
107
- return {
108
- asset_id: entry.id,
109
- url: resolver.file(entry.file).url,
110
- filename: entry.filename,
111
- content_type: entry.mime,
112
- size_bytes: 0
113
- };
114
- }
115
- function renderMediaRef(kind, value, media, resolver) {
116
- const id = refId(kind, value);
117
- const entry = id === null ? void 0 : media.get(id);
118
- if (entry === void 0 || entry.kind !== kind) return null;
119
- switch (kind) {
120
- case "image": return imageValue(entry, value, resolver);
121
- case "video": return videoValue(entry, resolver);
122
- case "tour": return tourValue(entry, resolver);
123
- case "document": return documentValue(entry, resolver);
124
- default: return null;
125
- }
126
- }
127
- const MEDIA_KINDS = /* @__PURE__ */ new Set([
128
- "image",
129
- "video",
130
- "tour",
131
- "document"
132
- ]);
133
- function renderValue(def, value, media, resolver) {
134
- if (value === null || value === void 0) return value;
135
- if (MEDIA_KINDS.has(def.type)) return renderMediaRef(def.type, value, media, resolver);
136
- if (def.type !== "list" || !Array.isArray(value)) return value;
137
- const items = value;
138
- if (def.fields !== void 0) {
139
- const fields = def.fields;
140
- return items.map((row) => {
141
- if (typeof row !== "object" || row === null) return row;
142
- const out = { ...row };
143
- for (const [field, fieldDef] of Object.entries(fields)) out[field] = renderValue(fieldDef, out[field], media, resolver);
144
- return out;
145
- });
146
- }
147
- if (def.element !== void 0) {
148
- const element = def.element;
149
- return items.map((item) => renderValue(element, item, media, resolver));
150
- }
151
- return items;
152
- }
153
- function renderInstanceSlots(instance, section, media, resolver = servedMedia) {
154
- const out = {};
155
- for (const [id, value] of Object.entries(instance.slots)) {
156
- const def = section.schema.slots[id];
157
- out[id] = def === void 0 ? value : renderValue(def, value, media, resolver);
158
- }
159
- return out;
160
- }
161
-
162
- //#endregion
163
- export { cropRectOf, renderInstanceSlots, renderMediaRef, servedMedia };
@@ -1,51 +0,0 @@
1
- import { poolingPrimitiveOf } from "./row-planners.js";
2
-
3
- //#region ../../internal/fill-vocabulary/dist/origination.js
4
- const LEGACY_COLLECTION_ITEM = {
5
- image_collection: "image",
6
- video_collection: "video",
7
- poi_list: "poi"
8
- };
9
- function isListSlot(slot) {
10
- return slot.type === "list" || slot.type !== void 0 && slot.type in LEGACY_COLLECTION_ITEM;
11
- }
12
- function everyFieldFilled(fields, filled) {
13
- if (filled.size === 0) return false;
14
- return Object.entries(fields).every(([name, def]) => def.source !== void 0 || filled.has(name));
15
- }
16
- function originationFor(slot, filled = []) {
17
- if (isListSlot(slot)) {
18
- const fields = slot.fields;
19
- if (fields !== void 0) {
20
- const bound = slot.source;
21
- if (bound?.kind === "direct" && bound.field !== void 0) return {
22
- kind: "bound-rows",
23
- iterate: bound.field
24
- };
25
- return everyFieldFilled(fields, new Set(filled)) ? { kind: "filled-rows" } : void 0;
26
- }
27
- const item = slot.element?.type ?? LEGACY_COLLECTION_ITEM[slot.type ?? ""];
28
- if (item === "poi") return { kind: "curate" };
29
- const pool = poolingPrimitiveOf({ type: item });
30
- if (pool !== void 0) return {
31
- kind: "pick-assets",
32
- pool
33
- };
34
- if (item === "select") return { kind: "pick-keys" };
35
- return { kind: "write-items" };
36
- }
37
- if (slot.type === "text") return { kind: "write" };
38
- if (slot.type === "number") return { kind: "estimate" };
39
- if (slot.type === "select") return {
40
- kind: "pick-one",
41
- from: "values"
42
- };
43
- const pool = poolingPrimitiveOf(slot);
44
- if (pool !== void 0) return {
45
- kind: "pick-one",
46
- from: pool
47
- };
48
- }
49
-
50
- //#endregion
51
- export { isListSlot, originationFor };
@@ -1,15 +0,0 @@
1
- //#region ../../internal/fill-vocabulary/dist/row-reads.js
2
- function isRowRead(entry) {
3
- if (entry === null || typeof entry !== "object") return false;
4
- const { kind, field } = entry;
5
- return kind === "row" && typeof field === "string" && field !== "";
6
- }
7
- function rowReadFields(reads) {
8
- if (!Array.isArray(reads)) return [];
9
- const out = [];
10
- for (const entry of reads) if (isRowRead(entry) && !out.includes(entry.field)) out.push(entry.field);
11
- return out;
12
- }
13
-
14
- //#endregion
15
- export { isRowRead, rowReadFields };
@@ -1,4 +0,0 @@
1
- import { resolveFormatGeometry } from "./geometry.js";
2
- import { CAPTURE_ANIMATIONS_SETTLED_EXPRESSION, CAPTURE_HAS_ISLANDS_EXPRESSION, CAPTURE_ISLANDS_READY_EXPRESSION, CAPTURE_ISLANDS_READY_GLOBAL, CAPTURE_ISLAND_PAINT_GRACE_EXPRESSION, CAPTURE_ISLAND_SETTLE_TIMEOUT_MS, CAPTURE_READY_EXPRESSION, CAPTURE_WAIT_UNTIL, FRAME_ROOT_CLASS, captureViewport, frameTokens, printPageSize, settleCapture } from "./capture.js";
3
-
4
- export { CAPTURE_ISLANDS_READY_GLOBAL, CAPTURE_WAIT_UNTIL, FRAME_ROOT_CLASS, captureViewport, frameTokens, printPageSize, settleCapture };
@@ -1,10 +0,0 @@
1
- import { projectFactsView } from "../../template-contracts/dist/facts-view.js";
2
- import "../../source-resolution/dist/index.js";
3
-
4
- //#region ../../internal/property-facts/dist/derive-facts-view.js
5
- function buildDeriveFactsView(facts) {
6
- return projectFactsView(facts);
7
- }
8
-
9
- //#endregion
10
- export { buildDeriveFactsView };
@@ -1,3 +0,0 @@
1
- import { C as VideoSchema, S as UnitSchema, _ as PropertyFactsSchema, a as ComparableSchema, b as TourLinkSchema, c as DocumentSchema, f as ListingIntentSchema, h as PlannerUnitSchema, i as ComparablePricePeriodSchema, l as FloorPlanSchema, m as PhotoSchema, n as COMPARABLE_PRICE_PERIODS, o as ComparableStatusSchema, p as NarrativeSchema, r as COMPARABLE_STATUSES, s as ContactCardSchema, t as AddressSchema, u as FloorPlanUnitAssignmentSchema, v as PropertyTypeSchema, x as UnitFloorPlanRefSchema } from "./property-facts-Cy7-O4p0.js";
2
-
3
- export { PropertyFactsSchema };
@@ -1,189 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region ../../internal/property-facts/dist/property-facts-Cy7-O4p0.js
4
- const AddressSchema = z.object({
5
- display: z.string(),
6
- street: z.string(),
7
- street_no_type: z.string(),
8
- city: z.string(),
9
- state: z.string(),
10
- postal: z.string(),
11
- unit: z.string().optional()
12
- });
13
- const PropertyTypeSchema = z.enum([
14
- "single_family",
15
- "condo_townhome",
16
- "multi_family",
17
- "investment"
18
- ]);
19
- const ListingIntentSchema = z.enum(["for_sale", "for_rent"]);
20
- const NarrativeSchema = z.object({ description: z.string() });
21
- const TourLinkSchema = z.object({
22
- id: z.string(),
23
- url: z.string(),
24
- provider: z.string()
25
- });
26
- const UnitFloorPlanRefSchema = z.object({
27
- id: z.string(),
28
- upload_id: z.string().optional(),
29
- floor_label: z.string().nullable(),
30
- position: z.number().int()
31
- });
32
- const UnitSchema = z.object({
33
- unit_id: z.string(),
34
- unit_label: z.string().nullable(),
35
- beds: z.number().int(),
36
- baths: z.number(),
37
- sqft: z.number().int().nullable(),
38
- price: z.string().max(40).nullable().default(null),
39
- position: z.number().int(),
40
- floor_plans: z.array(UnitFloorPlanRefSchema)
41
- });
42
- const PhotoSchema = z.object({
43
- id: z.string(),
44
- tags: z.array(z.string()),
45
- caption: z.string().nullable()
46
- });
47
- const VideoSchema = z.object({
48
- id: z.string(),
49
- source: z.enum(["upload", "link"]),
50
- tags: z.array(z.string()),
51
- caption: z.string().nullable(),
52
- description: z.string().nullable(),
53
- duration_ms: z.number().int().nullable(),
54
- url: z.string().nullable(),
55
- provider: z.string().nullable()
56
- });
57
- const DocumentSchema = z.object({
58
- id: z.string(),
59
- filename: z.string(),
60
- mime: z.string(),
61
- notes: z.string()
62
- });
63
- const LinkMetadataCoreSchema = z.object({
64
- via: z.enum([
65
- "oembed",
66
- "api",
67
- "opengraph",
68
- "none"
69
- ]).nullable(),
70
- title: z.string().nullable(),
71
- description: z.string().nullable(),
72
- author_name: z.string().nullable(),
73
- captured_at: z.string().nullable(),
74
- duration_ms: z.number().int().nullable(),
75
- thumbnail_source_url: z.string().nullable()
76
- });
77
- const FloorPlanUnitAssignmentSchema = z.object({
78
- unit_label: z.string().nullable(),
79
- floor_label: z.string().nullable(),
80
- position: z.number().int()
81
- });
82
- const FloorPlanSchema = z.object({
83
- id: z.string(),
84
- upload_id: z.string().optional(),
85
- page_index: z.number().int().optional(),
86
- unit_assignments: z.array(FloorPlanUnitAssignmentSchema),
87
- processed_s3_key: z.string().nullable()
88
- });
89
- const ContactCardSchema = z.object({
90
- id: z.string(),
91
- primary: z.boolean(),
92
- name: z.string().nullable(),
93
- title: z.string().nullable(),
94
- org_name: z.string().nullable(),
95
- bio: z.string().nullable(),
96
- email: z.string().nullable(),
97
- phone: z.string().nullable(),
98
- address: z.string().nullable(),
99
- website_url: z.string().nullable(),
100
- avatar_upload_id: z.string().nullable(),
101
- logo_dark_upload_id: z.string().nullable(),
102
- logo_light_upload_id: z.string().nullable(),
103
- instagram_url: z.string().nullable(),
104
- linkedin_url: z.string().nullable(),
105
- x_url: z.string().nullable(),
106
- facebook_url: z.string().nullable()
107
- });
108
- const COMPARABLE_STATUSES = ["sold", "active"];
109
- const ComparableStatusSchema = z.enum(COMPARABLE_STATUSES);
110
- const COMPARABLE_PRICE_PERIODS = ["total", "monthly"];
111
- const ComparablePricePeriodSchema = z.enum(COMPARABLE_PRICE_PERIODS);
112
- const ComparableSchema = z.object({
113
- id: z.string(),
114
- address_street: z.string().nullable(),
115
- address_city: z.string().nullable(),
116
- address_state: z.string().nullable(),
117
- address_postal: z.string().nullable(),
118
- address: z.string(),
119
- lat: z.number().nullable(),
120
- lng: z.number().nullable(),
121
- distance_m: z.number().nullable(),
122
- status: ComparableStatusSchema.nullable(),
123
- price: z.number().int().nullable(),
124
- price_period: ComparablePricePeriodSchema,
125
- sale_date: z.string().nullable(),
126
- beds: z.number().int().nullable(),
127
- baths: z.number().nullable(),
128
- sqft: z.number().int().nullable(),
129
- photo_upload_id: z.string().nullable(),
130
- year_built: z.number().int().nullable(),
131
- lot_sqft: z.number().int().nullable(),
132
- stories: z.number().nullable(),
133
- units: z.number().int().nullable(),
134
- hoa_monthly: z.number().int().nullable(),
135
- list_price: z.number().int().nullable(),
136
- listed_date: z.string().nullable(),
137
- mls_number: z.string().nullable(),
138
- description: z.string().nullable(),
139
- property_type: PropertyTypeSchema.nullable()
140
- });
141
- const PropertyFactsSchema = z.object({
142
- address: AddressSchema,
143
- lat: z.number().nullable(),
144
- lon: z.number().nullable(),
145
- property_type: PropertyTypeSchema,
146
- listing_intent: ListingIntentSchema,
147
- units: z.array(UnitSchema),
148
- narrative: NarrativeSchema,
149
- photos: z.array(PhotoSchema),
150
- videos: z.array(VideoSchema),
151
- floor_plans: z.array(FloorPlanSchema),
152
- tours: z.array(TourLinkSchema),
153
- document_notes: z.array(z.object({
154
- upload_id: z.string(),
155
- notes: z.string()
156
- })),
157
- documents: z.array(DocumentSchema),
158
- contacts: z.array(ContactCardSchema),
159
- comparables: z.array(ComparableSchema)
160
- });
161
- const PlannerUnitSchema = z.object({
162
- label: z.string().nullable(),
163
- beds: z.number().int(),
164
- baths: z.number(),
165
- sqft: z.number().int().nullable(),
166
- price: z.string().nullable().default(null)
167
- });
168
- const PlannerViewSchema = z.object({
169
- address: AddressSchema,
170
- lat: z.number().nullable(),
171
- lon: z.number().nullable(),
172
- property_type: PropertyTypeSchema,
173
- listing_intent: ListingIntentSchema,
174
- units: z.array(PlannerUnitSchema),
175
- narrative: NarrativeSchema,
176
- document_notes: z.array(z.object({
177
- upload_id: z.string(),
178
- notes: z.string()
179
- })),
180
- photo_count: z.number().int(),
181
- floor_plan_count: z.number().int(),
182
- units_with_floor_plans_count: z.number().int(),
183
- has_tour_3d: z.boolean(),
184
- has_video: z.boolean(),
185
- comparable_count: z.number().int()
186
- });
187
-
188
- //#endregion
189
- export { VideoSchema as C, UnitSchema as S, PropertyFactsSchema as _, ComparableSchema as a, TourLinkSchema as b, DocumentSchema as c, ListingIntentSchema as f, PlannerUnitSchema as h, ComparablePricePeriodSchema as i, FloorPlanSchema as l, PhotoSchema as m, COMPARABLE_PRICE_PERIODS as n, ComparableStatusSchema as o, NarrativeSchema as p, COMPARABLE_STATUSES as r, ContactCardSchema as s, AddressSchema as t, FloorPlanUnitAssignmentSchema as u, PropertyTypeSchema as v, UnitFloorPlanRefSchema as x };
@@ -1,19 +0,0 @@
1
- //#region ../../internal/section-contracts/dist/group-contract.js
2
- function assertGroupContract(schema, sectionKey) {
3
- const groups = schema.groups;
4
- if (!groups || groups.length === 0) return;
5
- const seenIds = /* @__PURE__ */ new Set();
6
- const seenSlots = /* @__PURE__ */ new Set();
7
- for (const group of groups) {
8
- if (seenIds.has(group.id)) throw new Error(`Section "${sectionKey}": duplicate group id "${group.id}".`);
9
- seenIds.add(group.id);
10
- for (const member of group.members) {
11
- if (!(member in schema.slots)) throw new Error(`Section "${sectionKey}": group "${group.id}" names unknown slot "${member}".`);
12
- if (seenSlots.has(member)) throw new Error(`Section "${sectionKey}": slot "${member}" appears in more than one group.`);
13
- seenSlots.add(member);
14
- }
15
- }
16
- }
17
-
18
- //#endregion
19
- export { assertGroupContract };
@@ -1,24 +0,0 @@
1
- import { COLLECTIONS, collectionBounds, collectionForSlot } from "../../template-contracts/dist/slot-catalog.js";
2
-
3
- //#region ../../internal/section-contracts/dist/record-collection-contract.js
4
- function assertRecordCollectionContract(schema, sectionKey) {
5
- for (const [slotId, slotUnknown] of Object.entries(schema.slots)) {
6
- const slot = slotUnknown;
7
- if (slot.type !== "list" || slot.fields == null) continue;
8
- const label = `list "${slotId}"`;
9
- const source = slot.source;
10
- if (source?.kind !== "direct") continue;
11
- const collection = collectionForSlot(slot);
12
- if (collection === null) {
13
- const legal = Object.keys(COLLECTIONS).map((field) => `fact.property.${field}`).join(" / ");
14
- throw new Error(`Section "${sectionKey}": ${label} source.field "${source.field ?? "?"}" is not a known collection. COLLECTIONS is a closed registry owned by @homepages/concrete — a workspace cannot add to it. A direct-sourced collection may only bind a registry array (${legal}); for any other repeating data, drop \`source\` and give the slot a fill decision instead.`);
15
- }
16
- if (!COLLECTIONS[collection].ownership) throw new Error(`Section "${sectionKey}": ${label} collection "${collection}" declares no ownership in COLLECTIONS. COLLECTIONS is a closed registry owned by @homepages/concrete — this is a framework defect, not something a workspace can fix.`);
17
- const inherited = collectionBounds(collection);
18
- if (inherited.max !== void 0 && slot.max !== void 0 && slot.max >= inherited.max) throw new Error(`Section "${sectionKey}": ${label} declares max ${slot.max}, but collection "${collection}" already caps membership at ${inherited.max}. An explicit max is legal only if it is strictly lower; drop it to inherit ${inherited.max}.`);
19
- if (inherited.min !== void 0 && slot.min !== void 0 && slot.min <= inherited.min) throw new Error(`Section "${sectionKey}": ${label} declares min ${slot.min}, but collection "${collection}" already requires at least ${inherited.min}. An explicit min is legal only if it is strictly higher; drop it to inherit ${inherited.min}.`);
20
- }
21
- }
22
-
23
- //#endregion
24
- export { assertRecordCollectionContract };
@@ -1,22 +0,0 @@
1
- //#region ../../internal/template-contracts/dist/collection-editing.js
2
- function editorOf(def) {
3
- if (def.fields != null) return "row-editor";
4
- const element = def.element?.type;
5
- if (element === "image" || element === "video" || element === "tour") return "gallery";
6
- if (element === "poi") return "poi-curation";
7
- if (element === "document") return "document-list";
8
- return "scalar-list";
9
- }
10
- function collectionEditorState(def) {
11
- const editor = editorOf(def);
12
- return {
13
- editor,
14
- granularity: editor === "row-editor" ? "item" : "unit"
15
- };
16
- }
17
- function collectionEditing(def) {
18
- return collectionEditorState(def).granularity;
19
- }
20
-
21
- //#endregion
22
- export { collectionEditing, collectionEditorState };