@homepages/concrete 7.0.0 → 8.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.
- package/CHANGELOG.md +19 -0
- package/codemods/manifest.json +6 -0
- package/dist/artifact/playground/client/assets/{index-D8eepVr-.js → index-Dn_xT16-.js} +115 -115
- package/dist/artifact/playground/client/index.html +1 -1
- package/dist/artifact/playground/host.mjs +7 -7
- package/dist/packages/external/concrete/package.js +1 -1
- package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +5 -6
- package/dist/packages/internal/fill-vocabulary/dist/origination.js +2 -62
- package/dist/packages/internal/section-contracts/dist/catalog.js +2 -18
- package/dist/packages/internal/section-contracts/dist/fill-spec-view.js +1 -0
- package/dist/packages/internal/section-contracts/dist/index.js +0 -4
- package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +15 -6
- package/dist/packages/internal/section-contracts/dist/runners.js +3 -23
- package/dist/packages/internal/section-contracts/dist/source-contract.js +21 -24
- package/dist/packages/internal/section-contracts/dist/writer-reads-fact-contract.js +8 -4
- package/dist/packages/internal/source-resolution/dist/index.js +3 -49
- package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +2 -12
- package/dist/packages/internal/template-contracts/dist/facts-view.js +4 -11
- package/dist/packages/internal/template-contracts/dist/row-sources.js +1 -7
- package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1 -1
- package/dist/packages/internal/template-contracts/dist/slot-catalog.js +1 -5
- package/dist/schema/extract-fill-spec.js +2 -7
- package/dist/schema/fill-spec.js +9 -0
- package/dist/schema/property-facts.d.ts +4 -3
- package/dist/schema/slot-builders.d.ts +25 -5
- package/guide/reference/cli/INDEX.md +2 -2
- package/guide/reference/cli/build.md +1 -1
- package/guide/reference/cli/check.md +1 -1
- package/guide/reference/cli/dev.md +1 -1
- package/guide/reference/cli/property-add.md +1 -1
- package/guide/reference/cli/property-list.md +1 -1
- package/guide/reference/cli/publish.md +1 -1
- package/guide/reference/cli/upgrade.md +1 -1
- package/guide/reference/rules/INDEX.md +3 -7
- package/package.json +1 -1
- package/dist/packages/internal/section-contracts/dist/choose-select-contract.js +0 -20
- package/dist/packages/internal/section-contracts/dist/name-title-contract.js +0 -20
- package/dist/packages/internal/section-contracts/dist/pooling-field-contract.js +0 -22
- package/dist/packages/internal/section-contracts/dist/source-filter-contract.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @homepages/concrete
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 1e4e246: Manual: in a `compute()` that reads `fact.property.comparables`, read a comp's photo as `comp.photo` wherever it reads `comp.photo_upload_id` — `{ photo_id: comp.photo, url: "", alt: comp.address }`.
|
|
8
|
+
|
|
9
|
+
BREAKING: a comparable row handed to a `compute()` carries each member under its author name only. `photo_upload_id` no longer sits beside `photo` on those rows, so a compute that reads it gets nothing, and its type no longer declares it. `ComparableRow`, the row as the facts store it, still names the upload `photo_upload_id`; fixtures and anything else written against that type are unaffected.
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 66aec5e: A top-level `number` slot takes `source: fill({ brief, reads?, none? })` for a figure that is an estimate the user confirms — a suggested price, a price band — and extracts to a `kind: "number"` decision. The model answers a plain number, rounded to a whole one unless the slot declares `decimals`. A figure the platform holds is still a fact and is bound. `cap` and `count` on a number's fill do not compile, and a record row's `number` field still takes no fill.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 6fd1db6: `concrete check` no longer grades `concrete/contract/source-filter`. The slot schema already refuses `sourceFilter` on every slot, so the rule had nothing left to catch.
|
|
18
|
+
- c16d573: `concrete check` refuses a record list in the implicit form by name: a row field bound `direct`, or one declaring no origin its list's fill does not plan. Every row field declares its origin — a row member, a `compute()` or a `fill()` — as 7.0.0 already requires, so a section built with this version never meets the refusal.
|
|
19
|
+
- b933e53: Fixture resolution bakes a bound record list's rows as each row's identity plus the fields it declares, and nothing else — the implicit form's whole-row spread and its `unit_floorplans` list source are gone, as `concrete check` already refuses that form. A computed list declaring `fields` is always projected onto them. A section that passes `concrete check` resolves exactly as before.
|
|
20
|
+
- dd044d3: `concrete check` no longer runs `contract/choose-select`, `contract/name-title` or `contract/pooling-field`: a record list's rows come from the facts it is bound to or are filled field by field, so there is no row key or row-originating pool left to police, and a record list may hold any number of filled media fields, each picking from its own pool. A record list whose rows nothing originates — a filled list with no filled row field — is `contract/list-fill`'s, and names the row fields that carry no fill of their own.
|
|
21
|
+
|
|
3
22
|
## 7.0.0
|
|
4
23
|
|
|
5
24
|
### Major Changes
|
package/codemods/manifest.json
CHANGED
|
@@ -82,6 +82,12 @@
|
|
|
82
82
|
"where `concrete upgrade` hands back a `Manual:` line, finish it \u2014 replace each brief it generated for a record list's row field with the real one, add to a bound row's field fill the row members it uses, and give an origin to any row field it could not; then drop every `sourceFilter` from an `image`, binding a unit's floor plans from `fact.property.units` instead.",
|
|
83
83
|
"a section that reads a member of a bound record list's row it never declared \u2014 `comp.value.status`, `unit.value.sqft`, a unit's `floor_plans` off an `image` field \u2014 declares that member as a row field bound to it (`status: text.short({ label: \"Status\", source: comp.status, writeback: false })`, `floor_plans: list({ label: \"Floor plans\", source: unit.floor_plans, writeback: false, item: image({ label: \"Floor plan\" }) })`) and reads the field; a helper typed with `UnitRow`, `ContactRow`, `FloorplanAssignment`, `CollectionRowValues` or `BakedRowValue` types its parameter from the slot instead (`ItemBinding<typeof schema.slots.units>[\"value\"]`)."
|
|
84
84
|
]
|
|
85
|
+
},
|
|
86
|
+
"8.0.0": {
|
|
87
|
+
"codemods": [],
|
|
88
|
+
"manual": [
|
|
89
|
+
"in a `compute()` that reads `fact.property.comparables`, read a comp's photo as `comp.photo` wherever it reads `comp.photo_upload_id` \u2014 `{ photo_id: comp.photo, url: \"\", alt: comp.address }`."
|
|
90
|
+
]
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
93
|
}
|