@homepages/concrete 9.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 (67) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +2 -2
  3. package/codemods/manifest.json +4 -0
  4. package/dist/artifact/playground/client/assets/index-BOYbgBnP.js +1259 -0
  5. package/dist/artifact/playground/client/index.html +1 -1
  6. package/dist/artifact/playground/host.mjs +24 -24
  7. package/dist/cli/check/stages/workspace.js +2 -0
  8. package/dist/cli/check/template-key.js +16 -0
  9. package/dist/fixtures/resolve.js +4 -7
  10. package/dist/packages/external/concrete/package.js +1 -1
  11. package/dist/packages/internal/capture-settle/dist/island-markers.d.ts +1 -1
  12. package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +8 -22
  13. package/dist/packages/internal/fill-bake/dist/compute-reads.js +4 -8
  14. package/dist/packages/internal/fill-bake/dist/derive-source.js +7 -14
  15. package/dist/packages/internal/fill-bake/dist/index.js +3 -2
  16. package/dist/packages/internal/fill-bake/dist/item-merge.js +4 -10
  17. package/dist/packages/internal/fill-bake/dist/item-overrides.js +1 -28
  18. package/dist/packages/internal/fill-bake/dist/linked-merge.js +1 -3
  19. package/dist/packages/internal/fill-bake/dist/list-grammar.js +10 -11
  20. package/dist/packages/internal/fill-bake/dist/stored-row-reader.js +1 -0
  21. package/dist/packages/internal/fill-vocabulary/dist/resolved-decision.js +11 -38
  22. package/dist/packages/internal/fill-vocabulary/dist/verbs.js +2 -17
  23. package/dist/packages/internal/media-resolution/dist/image.js +6 -8
  24. package/dist/packages/internal/media-resolution/dist/list.js +1 -1
  25. package/dist/packages/internal/media-resolution/dist/slot.js +4 -1
  26. package/dist/packages/internal/media-resolution/dist/tour.js +1 -1
  27. package/dist/packages/internal/media-resolution/dist/video.js +1 -1
  28. package/dist/packages/internal/property-facts/dist/registry-facts.js +2 -1
  29. package/dist/packages/internal/section-contracts/dist/catalog.js +1 -5
  30. package/dist/packages/internal/section-contracts/dist/directly-linked-list-contract.js +4 -10
  31. package/dist/packages/internal/section-contracts/dist/fill-spec-view.js +1 -5
  32. package/dist/packages/internal/section-contracts/dist/fill-verb-contract.js +2 -2
  33. package/dist/packages/internal/section-contracts/dist/grammar-scope.js +1 -1
  34. package/dist/packages/internal/section-contracts/dist/index.js +0 -1
  35. package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +0 -29
  36. package/dist/packages/internal/section-contracts/dist/list-scalar-contract.js +2 -16
  37. package/dist/packages/internal/section-contracts/dist/nested-slot-contract.js +6 -6
  38. package/dist/packages/internal/section-contracts/dist/poi-curation-contract.js +6 -2
  39. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +0 -14
  40. package/dist/packages/internal/section-contracts/dist/row-rule-contract.js +3 -6
  41. package/dist/packages/internal/section-contracts/dist/runners.js +4 -9
  42. package/dist/packages/internal/section-contracts/dist/source-contract.js +10 -73
  43. package/dist/packages/internal/section-contracts/dist/writer-reads-fact-contract.js +5 -10
  44. package/dist/packages/internal/source-resolution/dist/index.js +7 -8
  45. package/dist/packages/internal/template-contracts/dist/decision-fills.js +2 -6
  46. package/dist/packages/internal/template-contracts/dist/fact-registry.js +4 -4
  47. package/dist/packages/internal/template-contracts/dist/fill-spec-schema.js +3 -68
  48. package/dist/packages/internal/template-contracts/dist/list-editing.js +0 -1
  49. package/dist/packages/internal/template-contracts/dist/media-candidates.js +1 -1
  50. package/dist/packages/internal/template-contracts/dist/primitive-descriptors.js +2 -2
  51. package/dist/packages/internal/template-contracts/dist/read-graph.js +9 -19
  52. package/dist/packages/internal/template-contracts/dist/ref-locate.js +8 -24
  53. package/dist/packages/internal/template-contracts/dist/registry-facts.d.ts +2 -0
  54. package/dist/packages/internal/template-contracts/dist/row-ref.d.ts +2 -8
  55. package/dist/packages/internal/template-contracts/dist/row-sources.js +3 -13
  56. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1 -32
  57. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +0 -4
  58. package/dist/packages/internal/template-contracts/dist/slot-types.js +1 -2
  59. package/dist/packages/internal/template-contracts/dist/slot-value.d.ts +7 -9
  60. package/dist/primitives/slot-bindings.js +2 -2
  61. package/dist/rules/registry.js +6 -0
  62. package/dist/section/section.d.ts +2 -2
  63. package/guide/reference/rules/INDEX.md +2 -2
  64. package/package.json +1 -1
  65. package/dist/artifact/playground/client/assets/index-BUmdDDX5.js +0 -1259
  66. package/dist/packages/internal/fill-vocabulary/dist/row-reads.js +0 -15
  67. package/dist/packages/internal/section-contracts/dist/group-contract.js +0 -19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @homepages/concrete
2
2
 
3
+ ## 9.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7e9064e: `concrete check` refuses a template whose `key` is not its `name` in lowercase kebab-case (`Block Website` → `block-website`), under the new rule `workspace/key-not-name`. `concrete dev` and `concrete build` do not grade it, so a template midway through a rename keeps running. A published template's key is its identity: renaming one publishes a second template, so pick a name that spells the published key, or move the stored key before publishing under the new one.
8
+
9
+ ### Patch Changes
10
+
11
+ - 72c366c: A collapsed card in the dev playground's sidebar is inert: Tab passes over its fields, and text pasted or filled into a field now saves whole up to its cap instead of being cut short.
12
+ - 31d8f75: The comparables write's brief counts a property as a comparable only where an upload compares it with the subject, and reads the subject as the building with every unit the uploads market in it, so a building's own unit listing sheets no longer come back as its comparables.
13
+ - 57af6dd: The README's and `section()`'s example binds the address's typed members (`fact.property.address.street`, `fact.property.address.city`) instead of the flat `address_street` / `address_city` aliases.
14
+ - c8fccc6: Concrete reads only what a 9.0.0 build writes. A list item's identity is its `id` (`ItemIdentity` is `{ id }`), so a fixture or binding no longer answers a unit's `unit_id`. A stored media value names its media by `asset_id`. `check` refuses the shapes only an earlier build stored: a list declaring its item as `fields`, a slot's `writeback` key, an object label or a process given as a string, a row with no `from`, the flat fill spelling, a decision or item field with no `fills`, a `count`, the verb `curate`, a media `of` naming one list as a string, a row pick's `of` as one ref, and a row member read with no `slot`. The `group` contract rule is gone with section `groups`, which no 9.0.0 section declares.
15
+ - 0efd102: A place rendition's `over` may carry the `version` of the pass that cut it (the cut-out's), and a fact document's media values keep it when they are read.
16
+ - c514a08: Internal: the reader that resolves a row slot's member off a section's stored rows is now shared by the fill and the editor. Fixtures resolve as before.
17
+ - 6754822: A unit's or a commercial space's `amenities` are what sets it apart from the others in its building: a feature the uploads state for it and not for them. A feature printed for two of them or for the building is the building's and lands on none, however a sheet praises it, so a building's shared deck, its standard fittings and the rooms every unit has no longer pad each unit's list.
18
+ - 781dbef: The units write's brief says a commercial space is never a dwelling, as the commercial spaces' brief says a dwelling is never one.
19
+
3
20
  ## 9.0.0
4
21
 
5
22
  ### Major Changes
package/README.md CHANGED
@@ -89,8 +89,8 @@ export const Hero = section(
89
89
  address: object({
90
90
  label: "Property address",
91
91
  fields: {
92
- street: text.short({ source: fact.property.address_street, label: "Street" }),
93
- city: text.short({ source: fact.property.address_city, label: "City" }),
92
+ street: text.short({ source: fact.property.address.street, label: "Street" }),
93
+ city: text.short({ source: fact.property.address.city, label: "City" }),
94
94
  },
95
95
  }),
96
96
  },
@@ -148,6 +148,10 @@
148
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
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
150
  ]
151
+ },
152
+ "9.1.0": {
153
+ "codemods": [],
154
+ "manual": []
151
155
  }
152
156
  }
153
157
  }