@homepages/concrete 6.0.1 → 6.2.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 CHANGED
@@ -1,5 +1,78 @@
1
1
  # @homepages/concrete
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d048e5b: A section's `display.visibility` and `display.variant` can read the section's own slots, computed or filled. Name the slot's const in `reads`, as a sibling-reading `fill()` or `compute()` already does.
8
+
9
+ ```ts
10
+ const photos = list.of(image({ label: "Photo" }), {
11
+ label: "Photos",
12
+ source: fill({ brief: "Every photo of the property." }),
13
+ });
14
+
15
+ export const Gallery = section(
16
+ {
17
+ key: "gallery",
18
+ label: "Gallery",
19
+ display: {
20
+ visibility: select(["visible", "hidden"], {
21
+ source: compute({ reads: [photos] }, (rows) =>
22
+ (rows ?? []).length >= 3 ? "visible" : "hidden"
23
+ ),
24
+ }),
25
+ },
26
+ slots: { photos },
27
+ },
28
+ ({ slot }) => null
29
+ );
30
+ ```
31
+
32
+ A computed entry settles once the section's fills have run, and again when an edit changes a slot it reads, unless the user has set that entry themselves. A filled entry is the section's last decision and is shown the values its sibling fills wrote. A variant may read a slot it gates: every declared slot is filled whatever case the variant takes. In the dev playground, a display entry reads the section's slots before the variant gates them.
33
+
34
+ A filled entry reading a sourced sibling (a fact, a `compute()` or a mirror) is still refused when the section is declared, as it is for any `fill()`: that value settles only after every fill has run.
35
+
36
+ ## 6.1.0
37
+
38
+ ### Minor Changes
39
+
40
+ - 4a43d56: A `fill()` reads a sibling slot of its own section, the way a `compute()` already does: name the slot's own const in `reads`.
41
+
42
+ ```ts
43
+ const cover = image({
44
+ label: "Cover",
45
+ source: fill({ brief: "The best exterior photo." }),
46
+ });
47
+ const second = image({
48
+ label: "Second",
49
+ source: fill({
50
+ brief: "The best interior photo — never the cover's.",
51
+ reads: [cover],
52
+ }),
53
+ });
54
+ ```
55
+
56
+ The read serializes as a slot ref naming the declaring section, so the reading fill runs after the fill that writes the sibling and is shown its value. A row field's fill reads the section's slots the same way. The section-level `slot_reads` still lists other sections only.
57
+
58
+ Refused when the section is declared: a const that is not in the section's `slots` record, a sibling read from a section declared without a key, a sibling that is sourced (a fact, a `compute()` or a mirror settles it after every fill has run), and a filled display entry reading its own section's slots.
59
+
60
+ ### Patch Changes
61
+
62
+ - c198e14: Type surface only — nothing a template reads or draws changes.
63
+
64
+ The platform's activation wire contract moved to pay-as-you-go billing: the confirm an activation asks for names the property-month (`property_month_cents`, `term_ends_at`) and an owed domain fee (`custom_domain_fee_cents`), a payment-method prompt says why (`reason`, `can_manage_billing`), and a deactivation answers the end of the paid term (`term_ends_at`). That contract can reach this tarball as declarations through the platform packages it inlines, so the bytes may move without any behaviour moving with them.
65
+
66
+ - d480453: Type surface only — nothing a template reads or draws changes.
67
+
68
+ The platform's activation wire contract drops the package model's last traces: the "choose a plan" response arm no endpoint returned is gone, and a confirm names an owed domain fee only as `custom_domain_fee_cents`. That contract can reach this tarball as declarations through the platform packages it inlines, so the bytes may move without any behaviour moving with them.
69
+
70
+ - 3c7bf4a: Type surface only — nothing a template reads or draws changes.
71
+
72
+ The platform's activation wire contract moved to per-property subscriptions: a confirm names the hostname an owed domain fee registers (`custom_domain_hostname`, null exactly when `custom_domain_fee_cents` is), and the billing summary carries a per-property `status`, the org's `discount` and the flat `property_month_cents` in place of the per-org cycle, bands and upcoming-invoice fields. That contract can reach this tarball as declarations through the platform packages it inlines, so the bytes may move without any behaviour moving with them.
73
+
74
+ - 4db7176: The dev playground's editor dialogs no longer flash empty as they close. A dialog now keeps showing what it last showed while it animates out, and takes no clicks during that fade.
75
+
3
76
  ## 6.0.1
4
77
 
5
78
  ### Patch Changes
@@ -61,6 +61,14 @@
61
61
  "6.0.1": {
62
62
  "codemods": [],
63
63
  "manual": []
64
+ },
65
+ "6.1.0": {
66
+ "codemods": [],
67
+ "manual": []
68
+ },
69
+ "6.2.0": {
70
+ "codemods": [],
71
+ "manual": []
64
72
  }
65
73
  }
66
74
  }