@homepages/concrete 9.1.0 → 11.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 +81 -0
- package/README.md +1 -1
- package/codemods/manifest.json +5 -148
- package/dist/artifact/playground/client/assets/index-ByeGGedv.js +1259 -0
- package/dist/artifact/playground/client/assets/index-CxWPYOH2.css +1 -0
- package/dist/artifact/playground/client/index.html +2 -2
- package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
- package/dist/artifact/playground/host.mjs +42 -42
- package/dist/base.css +1 -8
- package/dist/cli/build/artifact.js +3 -2
- package/dist/cli/build/fixtures.js +2 -0
- package/dist/cli/check/render/inputs.js +3 -3
- package/dist/cli/check/stages/sections.js +6 -7
- package/dist/cli/dev/workspace-reader.js +10 -2
- package/dist/css/compile.js +3 -6
- package/dist/css/rules.js +1 -51
- package/dist/design-system/format-variants.js +1 -1
- package/dist/fixtures/media-store.js +3 -3
- package/dist/fixtures/resolve.js +28 -16
- package/dist/fixtures/rows.js +2 -2
- package/dist/fixtures/synthesize-empties.js +3 -1
- package/dist/fixtures.d.ts +1 -1
- package/dist/index.d.ts +7 -8
- package/dist/packages/external/concrete/package.js +1 -1
- package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +8 -6
- package/dist/packages/internal/fill-bake/dist/compute-reads.js +8 -4
- package/dist/packages/internal/fill-bake/dist/index.js +1 -1
- package/dist/packages/internal/fill-bake/dist/item-merge.js +32 -6
- package/dist/packages/internal/fill-bake/dist/linked-merge.js +5 -5
- package/dist/packages/internal/fill-bake/dist/list-grammar.js +4 -26
- package/dist/packages/internal/fill-vocabulary/dist/holder.js +3 -14
- package/dist/packages/internal/fill-vocabulary/dist/resolved-decision.js +1 -1
- package/dist/packages/internal/media-resolution/dist/document.js +17 -16
- package/dist/packages/internal/media-resolution/dist/image.js +41 -95
- package/dist/packages/internal/media-resolution/dist/index.js +1 -1
- package/dist/packages/internal/media-resolution/dist/list.js +11 -11
- package/dist/packages/internal/media-resolution/dist/media.js +17 -16
- package/dist/packages/internal/media-resolution/dist/records.js +4 -2
- package/dist/packages/internal/media-resolution/dist/slot.js +5 -5
- package/dist/packages/internal/media-resolution/dist/tour.js +17 -16
- package/dist/packages/internal/media-resolution/dist/video.js +24 -24
- package/dist/packages/internal/property-facts/dist/registry-facts.js +8 -1
- package/dist/packages/internal/section-contracts/dist/catalog.js +1 -5
- package/dist/packages/internal/section-contracts/dist/directly-linked-list-contract.js +2 -3
- package/dist/packages/internal/section-contracts/dist/fill-verb-contract.js +6 -3
- package/dist/packages/internal/section-contracts/dist/index.js +0 -1
- package/dist/packages/internal/section-contracts/dist/object-contract.js +4 -2
- package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +1 -1
- package/dist/packages/internal/section-contracts/dist/row-rule-contract.js +4 -2
- package/dist/packages/internal/section-contracts/dist/row-source-contract.js +7 -8
- package/dist/packages/internal/section-contracts/dist/runners.js +2 -11
- package/dist/packages/internal/section-contracts/dist/select-contract.js +7 -1
- package/dist/packages/internal/section-contracts/dist/source-contract.js +14 -10
- package/dist/packages/internal/section-contracts/dist/sources-contract.js +0 -2
- package/dist/packages/internal/section-contracts/dist/table-member.js +5 -8
- package/dist/packages/internal/source-resolution/dist/index.js +21 -188
- package/dist/packages/internal/template-artifact/dist/index.js +1 -1
- package/dist/packages/internal/template-artifact/dist/layout.js +12 -10
- package/dist/packages/internal/template-artifact/dist/manifest.js +1 -1
- package/dist/packages/internal/template-artifact/dist/verify.js +26 -14
- package/dist/packages/internal/template-contracts/dist/content-pick.js +24 -1
- package/dist/packages/internal/template-contracts/dist/document-value.d.ts +4 -6
- package/dist/packages/internal/template-contracts/dist/fact-keys.d.ts +3 -2
- package/dist/packages/internal/template-contracts/dist/fact-keys.js +19 -43
- package/dist/packages/internal/template-contracts/dist/fact-registry.d.ts +24 -3
- package/dist/packages/internal/template-contracts/dist/fact-registry.js +10 -3
- package/dist/packages/internal/template-contracts/dist/fill-builders.d.ts +1 -1
- package/dist/packages/internal/template-contracts/dist/fill-builders.js +2 -6
- package/dist/packages/internal/template-contracts/dist/fill-spec-schema.js +4 -1
- package/dist/packages/internal/template-contracts/dist/fill-spec.js +7 -6
- package/dist/packages/internal/template-contracts/dist/list.d.ts +1 -1
- package/dist/packages/internal/template-contracts/dist/list.js +7 -29
- package/dist/packages/internal/template-contracts/dist/mirror-kind.js +2 -2
- package/dist/packages/internal/template-contracts/dist/object.js +3 -2
- package/dist/packages/internal/template-contracts/dist/primitive-descriptors.js +1 -1
- package/dist/packages/internal/template-contracts/dist/process-builders.d.ts +2 -2
- package/dist/packages/internal/template-contracts/dist/read-graph.js +5 -32
- package/dist/packages/internal/template-contracts/dist/ref-locate.js +10 -6
- package/dist/packages/internal/template-contracts/dist/registry-facts.d.ts +1 -1
- package/dist/packages/internal/template-contracts/dist/registry-facts.js +13 -24
- package/dist/packages/internal/template-contracts/dist/registry-shape.d.ts +20 -4
- package/dist/packages/internal/template-contracts/dist/registry-shape.js +69 -11
- package/dist/packages/internal/template-contracts/dist/row-planners.js +1 -1
- package/dist/packages/internal/template-contracts/dist/row-ref.d.ts +4 -7
- package/dist/packages/internal/template-contracts/dist/row-ref.js +7 -23
- package/dist/packages/internal/template-contracts/dist/row-sources.js +3 -3
- package/dist/packages/internal/template-contracts/dist/row.d.ts +1 -1
- package/dist/packages/internal/template-contracts/dist/row.js +6 -7
- package/dist/packages/internal/template-contracts/dist/runtime-values.d.ts +11 -27
- package/dist/packages/internal/template-contracts/dist/section-schema-types.d.ts +1 -0
- package/dist/packages/internal/template-contracts/dist/slot-builders.d.ts +29 -37
- package/dist/packages/internal/template-contracts/dist/slot-builders.js +3 -8
- package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +2 -702
- package/dist/packages/internal/template-contracts/dist/slot-catalog.js +2 -498
- package/dist/packages/internal/template-contracts/dist/slot-overrides.js +4 -1
- package/dist/packages/internal/template-contracts/dist/slot-ref.d.ts +10 -5
- package/dist/packages/internal/template-contracts/dist/slot-value.d.ts +2 -1
- package/dist/packages/internal/template-contracts/dist/table-members.d.ts +5 -12
- package/dist/packages/internal/template-contracts/dist/table-members.js +7 -37
- package/dist/packages/internal/template-contracts/dist/tour-value.d.ts +4 -6
- package/dist/packages/internal/template-contracts/dist/video-value.d.ts +3 -4
- package/dist/primitives/Image.d.ts +4 -4
- package/dist/primitives/Tour.d.ts +2 -2
- package/dist/primitives/Video.d.ts +2 -2
- package/dist/primitives/slot-bindings.js +6 -13
- package/dist/primitives/slot-document.d.ts +1 -1
- package/dist/primitives/slot-download.d.ts +4 -2
- package/dist/primitives/slot-media.d.ts +6 -3
- package/dist/primitives/slot-media.js +1 -1
- package/dist/rules/registry.js +0 -6
- package/dist/schema/fact.d.ts +19 -52
- package/dist/schema/fact.js +6 -25
- package/dist/schema/facts-view.d.ts +1 -2
- package/dist/schema/format-presets.d.ts +1 -1
- package/dist/schema/property-facts.d.ts +1 -62
- package/dist/schema/section-schema.d.ts +6 -6
- package/dist/schema/section-schema.js +1 -1
- package/dist/styles.css +4 -4
- package/dist/template/define-template.js +0 -1
- 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 +2 -4
- package/package.json +2 -2
- package/codemods/fill-is-a-source.mjs +0 -533
- package/codemods/framework-namespace.mjs +0 -107
- package/codemods/list-grammar.mjs +0 -923
- package/codemods/object-form-only.mjs +0 -39
- package/codemods/platform-namespace.mjs +0 -83
- package/codemods/process-builders.mjs +0 -198
- package/codemods/reads-replace-reconcile.mjs +0 -285
- package/codemods/slot-object.mjs +0 -1097
- package/codemods/steps/content-object-fields.mjs +0 -324
- package/codemods/steps/list-object-form.mjs +0 -687
- package/codemods/steps/select-object-form.mjs +0 -210
- package/codemods/table-rows.mjs +0 -568
- package/codemods/theme-collapse.mjs +0 -396
- package/codemods/unlayer-author-css.mjs +0 -194
- package/codemods/unwrap-object-fields.mjs +0 -310
- package/codemods/viewer-slot-document.mjs +0 -131
- package/codemods/write-property-as-facts-document.mjs +0 -716
- package/codemods/write-the-address-line.mjs +0 -255
- package/codemods/write-the-registry-members.mjs +0 -653
- package/codemods/write-the-select-from.mjs +0 -141
- package/codemods/write-the-sole-from.mjs +0 -369
- package/codemods/write-the-table-from.mjs +0 -267
- package/codemods/write-the-whole-item.mjs +0 -512
- package/codemods/writeback-drop.mjs +0 -168
- package/codemods/written-contact-address.mjs +0 -162
- package/codemods/written-media-category.mjs +0 -227
- package/codemods/written-ref-kinds-name-the-layer.mjs +0 -172
- package/codemods/written-uploads-replace-pool-reads.mjs +0 -454
- package/codemods/written-uploads-sort-into-lists.mjs +0 -405
- package/codemods/written-uploads-stated-in-sorted-lists.mjs +0 -295
- package/codemods/written-video-sources-drop.mjs +0 -144
- package/codemods/written-without-pick-none.mjs +0 -146
- package/codemods/written-without-retired-knowledge.mjs +0 -223
- package/codemods/written-without-the-media-key.mjs +0 -202
- package/codemods/written-without-the-property-type.mjs +0 -249
- package/dist/artifact/playground/client/assets/index-BOYbgBnP.js +0 -1259
- package/dist/artifact/playground/client/assets/index-DDOcM0zA.css +0 -1
- package/dist/packages/internal/section-contracts/dist/option-source-contract.js +0 -22
- package/dist/packages/internal/template-contracts/dist/comparable-address.js +0 -19
- package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +0 -62
- package/dist/packages/internal/template-contracts/dist/legacy-facts.js +0 -167
- package/dist/packages/internal/template-contracts/dist/registry-aliases.js +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,86 @@
|
|
|
1
1
|
# @homepages/concrete
|
|
2
2
|
|
|
3
|
+
## 11.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 1526cc4: Manual: build and publish every template again with this version; the platform reads only artifact schema 4, and refuses an artifact an earlier version built.
|
|
8
|
+
|
|
9
|
+
`concrete build` writes artifact schema 4. Every fixture carries its settled doc, the playground carries its canvas island host, and the static-assets binding always names its `masters` and `icons`. The playground host requires a reader's settled docs, computes and import map, so an edit in the playground always settles over the fixture's settled doc.
|
|
10
|
+
|
|
11
|
+
- e75a319: Manual: a workspace on a version below 11.0.0 takes its template from the current template library instead of upgrading in place; this release ships no codemod for any earlier major.
|
|
12
|
+
|
|
13
|
+
`concrete upgrade` keeps its install, manifest and runner, and ships no codemod or manifest entry for 10.0.0 or below. The `css/retired-layer` rule is gone, as are the refusals that named a key earlier majors used (`reconcile` on `defineTemplate`; `sources` and `category` on a media slot; `fields`, `title`, `unique` and `count` on `list()`; a hint for `none`, `count`, `cap` or `of` on a fill verb; a kind-less ref or a `type:` decision). The types still refuse every one of these keys, and a fill verb still refuses any option it does not take, naming the ones it does.
|
|
14
|
+
|
|
15
|
+
- 5bec6ff: Manual: rename every read of a resolved media value's id to `id`: `photo_id` on an image, `video_id` on a video, `tour_id` on a tour and `asset_id` on a document.
|
|
16
|
+
|
|
17
|
+
Every resolved media value (`ImageValue`, `VideoValue`, `TourValue`, `DocumentValue`, and an open-kind `media` value of each kind) names its media by one member, `id`. The blank video and tour values carry `id: ""`.
|
|
18
|
+
|
|
19
|
+
- 354620b: Manual: replace each `*CollectionValue` import with the array of its item's value type (`ImageCollectionValue` → `ImageValue[]`).
|
|
20
|
+
|
|
21
|
+
`ImageCollectionValue`, `VideoCollectionValue`, `TourCollectionValue` and `DocumentCollectionValue` are no longer exported. A list slot's value is an array of its item's value: write `ImageValue[]`, `VideoValue[]`, `TourValue[]` or `DocumentValue[]`.
|
|
22
|
+
|
|
23
|
+
The platform reads only what a Concrete 11 build emits: every section version carries its `anchor` and `slot_order`, a renderer receives no `variants` record, and a fill spec's pick never states `none`.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 1753705: Source comments in the platform modules inlined into the package no longer cite database migrations by number. No code changes, and nothing a template declares, reads or renders changes.
|
|
28
|
+
- 57e5cf4: Platform modules inlined into the package drop exports and comments nothing reads. No code a template declares, reads or renders changes.
|
|
29
|
+
- 3998744: A playground source comment names the shared static-asset binding type instead of a deleted alias. No code changes, and nothing a template declares, reads or renders changes.
|
|
30
|
+
- 7928850: The dev playground keeps an edited floor plan's floor under its declared key, `floor`, as the editor now writes it. A resolved document value is passed through as resolved: every resolver gives it a `poster` (empty when there is no preview), so the binding no longer fills one in.
|
|
31
|
+
|
|
32
|
+
## 10.0.0
|
|
33
|
+
|
|
34
|
+
### Major Changes
|
|
35
|
+
|
|
36
|
+
- 1851726: Manual: delete any read of an `ImageValue`'s `rect` or `ar`. A resolved image no longer carries either; a section reads `url`, `alt`, `mobile` and `responsive`, as it always should have.
|
|
37
|
+
|
|
38
|
+
A content document names a slot's media in one of two shapes, each meaning one thing: the slot's own copy `{ file, picked, crop, mobile: { crop }, alt, name, renditions }`, its `crop` a `{ x, y, width, height }` box over the original, or a reference `{ media }` to one of the property's items, beside the context its holder reads (a logo's `mask`, a floor plan's `floor_label`). A fixture's built content doc stores its media as `{ media }` references, the dev playground stores an edit as the slot's copy, and the resolvers read only these two shapes: a value still spelled `{ asset_id }`, or a crop stored as `rect`, names no media. Authored fixtures need no change; rebuild a template to publish it on this version.
|
|
39
|
+
|
|
40
|
+
- 6b4d431: Manual: a section reading `floor_label` off a floor plan's image value reads the plan's floor through a row declared from the unit's floor plans instead (`const plan = row({ label: "Plan", from: unit.floor_plans, source: el })`, then `plan.floor`); `ImageValue` no longer carries it. A `source:` typed as `{ kind: "home", key: "<flat name>" }` by hand is no longer a `SlotSource`: bind the fact through `fact.property.*`.
|
|
41
|
+
|
|
42
|
+
A fact is named by its registry key alone. A section whose slot, read or pick names a fact or a table by a flat name with no home (`description`, `beds`, `units`) fails `concrete check` as an unknown fact, and a row's `from` must name a table by its registry key (`fact.property.units`).
|
|
43
|
+
|
|
44
|
+
A select bound to a fact offers the choices the fact declares: `select({ source: fact.property.listing_intent })` offers "For sale" and "For rent", each with its icon and description, in the dev playground as on the platform. The `concrete/contract/option-source` rule folds into `concrete/contract/select`, which refuses a select naming its choices in two places or none, and one bound to a fact that declares no choices.
|
|
45
|
+
|
|
46
|
+
- 78cf304: Manual: after `concrete upgrade`, finish each read of `fact.contact.address` it reports (the contact row answers an address value, not one line of text), and fix each `compute()` the typecheck names over an address part, which reads `null` where its flat spelling read `""`. Then name what the removed types named: an address as `AddressValue`, a comparable a `compute()` reads as `FactsComparable`, and a `Narrative` as the text `fact.property.description` reads.
|
|
47
|
+
|
|
48
|
+
A section reads a property's facts by their registry keys alone: `fact` is the one branch `fact.property`, spelled as the fact registry declares it. The flat spellings no longer exist, so a section reading one fails to typecheck, and the `sections/legacy-fact-key` hint is gone with them. `concrete upgrade` rewrites each:
|
|
49
|
+
|
|
50
|
+
- `fact.description` becomes `fact.property.description`.
|
|
51
|
+
- A contact's or a unit's member, `fact.contact.<member>` or `fact.unit.<member>`, is read through a locked row of its table, declared once per section (`const contact = row({ label: "Contact", from: fact.property.contacts, locked: true })`, then `contact.phone`).
|
|
52
|
+
- An address part is read off the address: `fact.property.address_street` becomes `fact.property.address.street`, and likewise `address_unit`, `address_city`, `address_state` and `address_postal`; `fact.property.latitude` and `fact.property.longitude` become `fact.property.address.latitude` and `.longitude`.
|
|
53
|
+
|
|
54
|
+
Four exported types are removed, since nothing reads the values they describe: `FactsAddress` (`fact.property.address` reads as `AddressValue | null`), `ComparableRow` (a `compute()` over `fact.property.comparables` receives `FactsComparable` rows), `Narrative` (a `compute()` reads `fact.property.description` as its text) and `DirectFactRef` (a fact ref is typed by its registry key; a scalar fact's is a `RegistryFactRef`).
|
|
55
|
+
|
|
56
|
+
In `concrete dev`, a floor plan in the media picker is an image tile like any other photo, as on the platform.
|
|
57
|
+
|
|
58
|
+
### Minor Changes
|
|
59
|
+
|
|
60
|
+
- 64aec58: `concrete check` hints at a section reading `fact.description`, `fact.contact.<member>` or `fact.unit.<member>` (`sections/legacy-fact-key`): flat spellings a later major removes. Read the description as `fact.property.description`, and a contact's or a unit's member through a locked row of its table, declared as a slot: `const contact = row({ label: "Contact", from: fact.property.contacts, locked: true })`, then `contact.phone`. The hint never fails `check`. A new codemod step rewrites a workspace in one pass: import `codemods/steps/registry-key-reads.mjs` from the installed package and call its default export with the workspace root. It hands back each read of `fact.contact.address` it rewrote, since the row answers an address value rather than one line of text.
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- 9177b60: Internal platform bookkeeping the package carries inline: the artifact verifier can hold a file under `assets/` or `captures/` by its SHA-256 rather than its bytes, so the platform's publish no longer keeps an artifact's media in memory. `concrete build` verifies its output exactly as before; nothing a template declares, builds or publishes changes.
|
|
65
|
+
- 7b7ae6e: In `concrete dev`, a sidebar edit now settles every compute that reads the edited slot, as the platform does after a user's edit: a display variant or visibility computed from a slot follows the edit (a locked variant included), and the canvas and the section's card follow the new case. A compute reading a sibling slot or another section's slot follows it too, and a computed slot you edited keeps your value.
|
|
66
|
+
- 691327d: The media vocabulary the framework inlines follows the platform's facts API: a home image's crop and an upload's name are fact writes at the place's `crop` and the media's `name`, and the list-noun helpers the slot editors title rows with ("Unit 3") live in the shared registry contracts. Nothing a template author writes changes, and the dev playground behaves as before.
|
|
67
|
+
- fb4d1c0: `concrete build` now writes each fixture's settled doc into the artifact (`fixtures/<id>/settled-doc.json`), so a published template's hosted playground settles a sidebar edit as `concrete dev` does: a display variant, visibility or compute reading the edited slot follows the edit, and the canvas and the section's card follow the new case. An artifact built without the file still publishes; its hosted playground lays an edit over the fixture as before.
|
|
68
|
+
- d7eade8: A content image value is read in its two shapes alone: its cut is its `crop` rendition, never a baked `crop_key`, and a value naming no media (a bare `{ url, alt }`) resolves as an empty image rather than serving its URL. The dev playground's media library answers an upload or a pasted link with the new media's `{ id }`.
|
|
69
|
+
- 974d09a: Internal platform bookkeeping the package carries inline: the job-kind table names seventeen kinds, two of them runs over a whole deliverable, and a status comment names the read it describes. Nothing a template declares, reads or renders changes.
|
|
70
|
+
- 2fdeb47: Internal platform bookkeeping the package carries inline: the job-kind table names fifteen kinds with a lane and a tier each, and a fact registry refuses a fill a home cannot run. Nothing a template declares, reads or renders changes.
|
|
71
|
+
- d5bdfff: The bundled slot vocabulary no longer carries the retired flat fact catalog that nothing in the framework read any more. Authoring is unchanged: every fact is still named by its registry key through `fact.property.*`.
|
|
72
|
+
- ac3181a: In the dev playground's sidebar, a list item's field that declares `when` shows only in the cases it names, at any list depth, and a case switch re-filters it at once. A hidden field's stored value is kept through every edit, add and reorder.
|
|
73
|
+
- a6cb2f9: The sidebar's list editors report a list's order to their host as the user's while a drag leaves it out of its source's order. The dev playground keeps no override markers, so it behaves as before.
|
|
74
|
+
- 50e81d4: The word _asset_ leaves the media vocabulary the framework inlines. The slot editors in the dev playground name an upload's answer `media_id` (was `asset_id`) and call the owned-media routes `…/facts/media/*` and `…/content/media/*`; the playground's own dev host answers in that shape. `concrete check`'s fill-spec messages say media where they said asset ("a write composes, it does not birth media"). Nothing a template author writes changes: author and static assets keep their name, and a template reads none of this wire.
|
|
75
|
+
- 239ab8a: The sidebar's list editors compare a list-valued item field (a unit's floor plans) to its source element by element and field by field, so a reorder or an edit inside it reports the field as the user's to the host. The dev playground keeps no override markers, so it behaves as before.
|
|
76
|
+
- 208ae19: Internal: the platform's property list and detail responses carry the property's facts in place of copied address, pin, listing-intent and contact columns. No authoring or CLI behavior changes.
|
|
77
|
+
- 56b97ee: In the dev playground sidebar, the places search's results now draw over their card's edge instead of being cut off by it, and every sidebar dropdown stays within the sidebar's scroll area, opening upward when the room below is short.
|
|
78
|
+
- 028de23: A section slot's own document reads its name from the slot's content value, so a renamed document shows the name it was given wherever the slot renders. A fact holding media stores it in the place that holds it: an owning value `{ id, file, crop, name, renditions }`, or a reference `{ media }` where the declaration picks.
|
|
79
|
+
- 8d04a2d: Internal platform bookkeeping the package carries inline: the platform's stored fact values are now encoded in one place outside the facts schema module the package inlines, so two unused helpers leave it. Nothing a template declares, builds, checks or publishes changes.
|
|
80
|
+
- c2d0ccb: A table's name, home and membership bounds are read off the fact registry's list declarations rather than a hand-kept list. One visible effect: a list sourced by `fact.property.comparables` now inherits the registry's `max: 50` when it declares none, as a list of contacts already inherits `min: 1` and `max: 12`; an authored `max` on it must be lower than 50. Nothing else a template declares, builds or publishes changes.
|
|
81
|
+
- 81e1622: Internal platform bookkeeping the package carries inline: the test helpers that build a facts document now take it in the document's own spelling (owning values, `{ media }` references and a `files` map) instead of translating a retired per-record spelling. Nothing a template declares, builds or publishes changes.
|
|
82
|
+
- 5ca2be5: Internal: the platform's editor writes a section's "Update everywhere" changes as one all-or-nothing batch, and the separate content-media adopt request goes. No authoring or CLI behavior changes.
|
|
83
|
+
|
|
3
84
|
## 9.1.0
|
|
4
85
|
|
|
5
86
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -84,7 +84,7 @@ export const Hero = section(
|
|
|
84
84
|
headline: text.medium({
|
|
85
85
|
cap: 60,
|
|
86
86
|
label: "Headline",
|
|
87
|
-
source: fill.write({ reads: [fact.description], brief: "A confident one-line headline." }),
|
|
87
|
+
source: fill.write({ reads: [fact.property.description], brief: "A confident one-line headline." }),
|
|
88
88
|
}),
|
|
89
89
|
address: object({
|
|
90
90
|
label: "Property address",
|
package/codemods/manifest.json
CHANGED
|
@@ -1,157 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"versions": {
|
|
4
|
-
"
|
|
4
|
+
"11.0.0": {
|
|
5
5
|
"codemods": [],
|
|
6
|
-
"manual": []
|
|
7
|
-
},
|
|
8
|
-
"1.0.1": {
|
|
9
|
-
"codemods": [],
|
|
10
|
-
"manual": []
|
|
11
|
-
},
|
|
12
|
-
"1.0.2": {
|
|
13
|
-
"codemods": [],
|
|
14
|
-
"manual": []
|
|
15
|
-
},
|
|
16
|
-
"1.0.3": {
|
|
17
|
-
"codemods": [],
|
|
18
|
-
"manual": []
|
|
19
|
-
},
|
|
20
|
-
"2.0.0": {
|
|
21
|
-
"codemods": [
|
|
22
|
-
"unlayer-author-css"
|
|
23
|
-
],
|
|
24
6
|
"manual": [
|
|
25
|
-
"
|
|
7
|
+
"build and publish every template again with this version; the platform reads only artifact schema 4, and refuses an artifact an earlier version built.",
|
|
8
|
+
"a workspace on a version below 11.0.0 takes its template from the current template library instead of upgrading in place; this release ships no codemod for any earlier major.",
|
|
9
|
+
"rename every read of a resolved media value's id to `id`: `photo_id` on an image, `video_id` on a video, `tour_id` on a tour and `asset_id` on a document.",
|
|
10
|
+
"replace each `*CollectionValue` import with the array of its item's value type (`ImageCollectionValue` \u2192 `ImageValue[]`)."
|
|
26
11
|
]
|
|
27
|
-
},
|
|
28
|
-
"3.0.0": {
|
|
29
|
-
"codemods": [
|
|
30
|
-
"framework-namespace",
|
|
31
|
-
"theme-collapse"
|
|
32
|
-
],
|
|
33
|
-
"manual": [
|
|
34
|
-
"name the layout tokens the report lists in the Tailwind namespace whose utility spends them, then respell their uses as utilities."
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"4.0.0": {
|
|
38
|
-
"codemods": [
|
|
39
|
-
"platform-namespace"
|
|
40
|
-
],
|
|
41
|
-
"manual": []
|
|
42
|
-
},
|
|
43
|
-
"5.0.0": {
|
|
44
|
-
"codemods": [],
|
|
45
|
-
"manual": [
|
|
46
|
-
"declare each contact field a section reads on its `fact.property.contacts` list, then read it under the key you declared it with."
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"6.0.0": {
|
|
50
|
-
"codemods": [
|
|
51
|
-
"fill-is-a-source",
|
|
52
|
-
"reads-replace-reconcile"
|
|
53
|
-
],
|
|
54
|
-
"manual": [
|
|
55
|
-
"rebuild and publish again \u2014 no source changes; an artifact built by an earlier version is refused, and one built by this version is not.",
|
|
56
|
-
"where `concrete upgrade` reports a fill as yours \u2014 a walkthrough gallery, a photo pick with a contact fallback, a `contactAssign`, a brief interpolating `${facts.\u2026}`, or a builder whose options are not an object literal \u2014 finish that fill by the line it prints; then drop from each fill's `reads` whatever its brief does not use.",
|
|
57
|
-
"where `concrete upgrade` reports a `none` bar it folded into a brief, rewrite that brief's last paragraph (`Produce nothing when: \u2026`) as the brief's own sentence saying when producing nothing is right.",
|
|
58
|
-
"where `concrete upgrade` reports a `reconcile` that holds rules, move each rule onto the slot it sets \u2014 `source: Section.slots.<slot>` where it copied a value, `compute({ reads }, \u2026)` where it derived one; where it reports a `compute((f) => \u2026)`, declare what the callback reads and take each value as a parameter."
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
"6.0.1": {
|
|
62
|
-
"codemods": [],
|
|
63
|
-
"manual": []
|
|
64
|
-
},
|
|
65
|
-
"6.1.0": {
|
|
66
|
-
"codemods": [],
|
|
67
|
-
"manual": []
|
|
68
|
-
},
|
|
69
|
-
"6.2.0": {
|
|
70
|
-
"codemods": [],
|
|
71
|
-
"manual": []
|
|
72
|
-
},
|
|
73
|
-
"7.0.0": {
|
|
74
|
-
"codemods": [
|
|
75
|
-
"object-form-only"
|
|
76
|
-
],
|
|
77
|
-
"manual": [
|
|
78
|
-
"where a section reads a comparable's `photo_url`, read `photo_upload_id` and draw it as an `image` value \u2014 `{ photo_id: comp.photo_upload_id, url: \"\", alt: comp.address }`, declared as an `image()` row field or slot (locked, when nothing on the canvas picks it) and rendered with `<Image>`; in a fixture property, replace each comp's `photo_url` with `photo: <an imported file>`, or drop it.",
|
|
79
|
-
"stop reading `days_on_market` from a comparable row; count it from `listed_date` instead \u2014 to the sale date on a sold comp, to the day the page is viewed on a live one \u2014 and drop the member from any fixture comp that states it.",
|
|
80
|
-
"stop reading `source_url` and `source_name` from a comparable row; the platform no longer stores either, so a section that printed a comp's listing link or its source's name drops that line.",
|
|
81
|
-
"delete `layout` from every `list.of(\u2026)` record options object. Declare the record's fields in the order the editor should show them, and give a field that must keep a row of its own a size that never pairs \u2014 a row title that sat alone above a `[beds, baths]` pair becomes `text.medium`. Write each `group(\u2026)` card's members as bare slot keys, with no `[a, b]` tuples.",
|
|
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
|
-
"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
|
-
]
|
|
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
|
-
]
|
|
91
|
-
},
|
|
92
|
-
"9.0.0": {
|
|
93
|
-
"codemods": [
|
|
94
|
-
"list-grammar",
|
|
95
|
-
"process-builders",
|
|
96
|
-
"slot-object",
|
|
97
|
-
"table-rows",
|
|
98
|
-
"unwrap-object-fields",
|
|
99
|
-
"viewer-slot-document",
|
|
100
|
-
"write-property-as-facts-document",
|
|
101
|
-
"write-the-address-line",
|
|
102
|
-
"write-the-registry-members",
|
|
103
|
-
"write-the-select-from",
|
|
104
|
-
"write-the-sole-from",
|
|
105
|
-
"write-the-table-from",
|
|
106
|
-
"write-the-whole-item",
|
|
107
|
-
"writeback-drop",
|
|
108
|
-
"written-contact-address",
|
|
109
|
-
"written-media-category",
|
|
110
|
-
"written-ref-kinds-name-the-layer",
|
|
111
|
-
"written-uploads-replace-pool-reads",
|
|
112
|
-
"written-uploads-sort-into-lists",
|
|
113
|
-
"written-uploads-stated-in-sorted-lists",
|
|
114
|
-
"written-video-sources-drop",
|
|
115
|
-
"written-without-pick-none",
|
|
116
|
-
"written-without-retired-knowledge",
|
|
117
|
-
"written-without-the-media-key",
|
|
118
|
-
"written-without-the-property-type"
|
|
119
|
-
],
|
|
120
|
-
"manual": [
|
|
121
|
-
"a compute that reads an asset record's `caption`, `description`, `tags` or `notes` reads a member the record no longer has \u2014 show the asset's `name`, or make the words a slot the user or a declared write fills. An `alt` on a media slot's value is the text a render uses; nothing fills it from the asset.",
|
|
122
|
-
"after `concrete upgrade`, add `none: true` to each list of places that may rightly come back empty for some homes, such as transit stops on a rural listing. Without it, finding nothing is now a failed fill.",
|
|
123
|
-
"a compute that reads an asset record's `author`, `rooms` or `address` reads a member the record no longer has \u2014 the words are in the asset's `account`, for fills to judge from; show the asset's `name`, or make the words a slot the user or a declared write fills.",
|
|
124
|
-
"after `concrete upgrade`, fold each `Manual:` line it reports into the section it names \u2014 a fill's dropped `cap` (lower the kind's own `cap`, or say it in the brief), the first field of a filled `fields` list whose own brief is gone (fold it into the list's brief), an item field reading an earlier field by its const (read what that field read).",
|
|
125
|
-
"add `from` to each media slot `concrete check` names as bound to no fact \u2014 `from: [pool.photos, pool.floor_plans]` keeps an image slot's picker as it was, bar the account's contact media, and `pool.videos`, `pool.tours` and `pool.documents` a video's, a tour's and a document's \u2014 and remove `from` from each one it names as bound.",
|
|
126
|
-
"rename each `Asset`, `ImageAsset`, `VideoAsset`, `TourAsset` or `DocumentAsset` you import from `@homepages/concrete` to `Media`, `ImageMedia`, `VideoMedia`, `TourMedia` or `DocumentMedia` \u2014 for example `(uploads: readonly Media[]) => \u2026` in a `compute()`.",
|
|
127
|
-
"delete `prefix` and `suffix` from every `number({ \u2026 })` call (each one fails to compile, naming the option); where the page should show a unit such as `$` or `sq ft`, write it in the section's markup around `Slot.Number`.",
|
|
128
|
-
"after `concrete upgrade`, settle each line it hands back: a `process` spelled through a variable \u2014 build each entry with its builder (`process.cutout()`) \u2014 and a string naming no process, which no builder constructs.",
|
|
129
|
-
"after `concrete upgrade`, rewrite each list `concrete check` refuses under `sections/row-projection-list` as a list of rows: an item holding a row `from` the table (`row({ from: fact.property.units, source: el })`), its other fields reading members off that row, and a `compute({ reads: [fact.property.units] }, (units) => \u2026)` returning the rows the list starts with. A list that is vocabulary nobody arranges takes `locked: true` instead.",
|
|
130
|
-
"a section that read `crop_key` off an image value reads `url`, which serves the slot's cut whenever the slot is cropped.",
|
|
131
|
-
"after `concrete upgrade`, finish each card it hands back by its file and line \u2014 a card whose `id` or `label` is not a plain string (one card per item of an array), or whose slots it cannot trace to a section (a context value, `{children}`), becomes an `object({ label: compute(() => \"<the card's label>\"), fields })` in the section's `slots`, with its binding passed down to a `<Slot.Object>`; a slot marked in two cards, neither holding the other, stays in one object; a card whose id names another slot takes a new name; a list of objects carded beside other slots stays at the top level \u2014 and wherever another section reads a slot that moved into an object (`Hero.slots.street`), read what that field reads instead, or keep the slot out of the object.",
|
|
132
|
-
"where `concrete upgrade` reports slots that now read a top-level row, group them with the row into an object if they are one card \u2014 `contact: object({ label: compute(() => \"Contact\"), fields: { contact, name, phone } })`, rendered in a `<Slot.Object slot={slot.contact}>` \u2014 and declare by hand any table it reports read by a position other than the first.",
|
|
133
|
-
"after `concrete upgrade`, finish each line it hands back \u2014 rename an object field named `id`, `slot`, `index`, `def`, `value` or `present` for what it holds (`value` \u2192 `figure`), in the section, its fixtures and every read of it, then read it straight off the binding \u2014 keep the field's type and label, and add no other new field of that type and label to the object in the same version, so publishing carries every site's stored value, and the edit pinning it, to the new name; and where an object's fields were enumerated, spread or handed to a library whole (`Object.keys(item.fields)`), name the fields you need instead, since the binding carries its own keys beside them.",
|
|
134
|
-
"after `concrete upgrade`, finish each line it hands back \u2014 where a `compute()` read `display` or `street_no_type` off `fact.property.address`, write the one-line address or the short street from its parts there; where it took the address whole or destructured it, handle the address value and `null`; and give any slot other than a text slot bound to the whole address a `compute()` returning what it shows.",
|
|
135
|
-
"after `concrete upgrade`, finish each line it hands back \u2014 read a contact's `primary` as the table's first row and a unit's `position` as its index where the list renders; draw a unit's floor plans through a row declared from each plan (`const plan = row({ label: \"Plan\", source: el })`, then `plan.image` and `plan.floor`) where a list drew each as a bare image; and wherever a `compute()` hands a table's rows to a helper of your own, read them there by the registry's names.",
|
|
136
|
-
"after `concrete upgrade`, settle each pick it hands back. Most are a media slot offering the user `from: [pool.photos, pool.floor_plans]` whose pick read `of: fact.photos`: the model now picks from every pool in `from`, so keep `from` wide and say in the brief what the model should prefer, or narrow `from` to the pools the model may pick \u2014 then remove `of`. A select whose pick named fewer choices than its `from` is settled the same way.",
|
|
137
|
-
"after `concrete upgrade`, settle each row it hands back. A row mirroring another section's row or list (`source: Hero.slots.agent.fields.contact`), a sibling's, or a `compute()` names the table it holds a row of in `from`, keeping its source. A row over a `compute()`'s own values \u2014 `row({ source: el, locked: true })` inside a list of constants \u2014 references no fact data and is no longer declared: read each item value with a per-field `compute({ reads: [el] }, (value) => value.title)` and drop the row.",
|
|
138
|
-
"after `concrete upgrade`, settle each picked list it hands back. A pick `of` a list slot, a sibling list or a `compute()` chooses only from its item's `from` now: picking a table's rows, name the table on a row field (`row({ label, from: fact.property.comparables })`) and say in the brief which to prefer. An item function whose element no one declaration holds declares the field holding the pick with `from` and no source, and its siblings read that field's const.",
|
|
139
|
-
"after `concrete upgrade`, settle each slot it names by line: a `writeback: false` it removed from a slot reading a stored value \u2014 a fact, a row's member, another slot. That slot now writes its source. Where it should only be seeded from it, free to diverge, source it by `compute({ reads: [contact.name] }, (name) => name)`.",
|
|
140
|
-
"after `concrete upgrade`, state the parts of each fixture contact address it hands back by line \u2014 one it could not read as \"street, [line 2,] city, ST 12345\" \u2014 and, where a section reads a contact row's `address` into a text slot, bind it with `address({ label, source: contact.address })` and print its lines in `Slot.Address`.",
|
|
141
|
-
"after `concrete upgrade`, settle each pool it names by line \u2014 a `from` spelled through a variable, a pool of another kind, or any other read of `pool` \u2014 by stating the media slot's `category`, or none.",
|
|
142
|
-
"after `concrete upgrade`, settle each line it hands back: code comparing a ref's `kind` to `\"direct\"`, `\"fact\"` or `\"slot\"` reads `\"home\"` or `\"section\"` now, and an object tagged with one of those kinds that holds other members is left for you to decide whether it is a ref.",
|
|
143
|
-
"after `concrete upgrade`, settle each line it hands back: a slot or a list sourced by a media pool picks from the uploads instead (`source: fill.pick({ brief })`, `item: image({ category: \"property\" })`), a compute taking a pool by a destructured parameter filters `fact.property.uploads` itself, and a compute reading a member the asset record spells otherwise reads the record's \u2014 a video's `source` is `provider === null ? \"upload\" : \"link\"`, a document's `filename` is `name`, a note's `upload_id` is `id`, and a floor plan's `unit_assignments` is a compute over `fact.property.units`.",
|
|
144
|
-
"after `concrete upgrade`, settle each line it hands back: a media slot narrowed by `category: \"logo\"` or `\"headshot\"` picks from every upload of its kind now \u2014 narrow it by its brief, or bind it to the contact's image (`source: agent.logo_dark`); and any other read of an asset's `category` reads `fact.property.media` or `fact.property.floor_plans` for its subset instead.",
|
|
145
|
-
"after `concrete upgrade`, settle each line it hands back: name an upload entry written inline and state it in the property's `media` or `floor_plans` where it belongs; state `media` and `floor_plans` beside uploads that are not written as an array; and wherever a fixture read an entry's `category`, read the property's `media` or `floor_plans` for that subset.",
|
|
146
|
-
"after `concrete upgrade`, settle each line it hands back: a `sources` it removed through a variable \u2014 the variable may now feed nothing, and a compute counting the videos the slot accepts counts every video, uploaded or linked \u2014 and any type reading a slot definition's `[\"sources\"]`, which no longer exists.",
|
|
147
|
-
"after `concrete upgrade`, remove `none` from each `fill.pick` it hands back by line \u2014 a pick whose options are a variable rather than an object written in the call.",
|
|
148
|
-
"after `concrete upgrade`, write an `account` for each upload it names whose tags were the only statement of what it is, and settle each entry it left because its `caption` and `description` could not be joined as text or it already states an `account`.",
|
|
149
|
-
"where `concrete upgrade` reports a `compute()` that read `fact.property.property_type`, read `fact.property.units` in its place and decide by the count (`units.length === 1` is a single home); where it reports a slot bound to the property type, its registry key as a string, or a read of `property_type` off a fixture `Property`, remove it."
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
"9.1.0": {
|
|
153
|
-
"codemods": [],
|
|
154
|
-
"manual": []
|
|
155
12
|
}
|
|
156
13
|
}
|
|
157
14
|
}
|