Concrete
Reference

Value shapes

Looking up what a bound slot actually holds at render — the value a binding hands your markup.

Every shape below is what a slot holds AFTER resolution: the platform normalizes the stored content document and the property facts into these before your render runs. You never write one. Each signature binds the type to a value and queries it, so what you read here is the package's own declaration.

A renderer reaches a value through the binding slot hands it, and the slot primitives read the fields that matter. Annotate a shape directly only where your own helper or island takes one as a parameter.

The structural kinds have no named shape of their own; each is typed from what it declares. An object()'s value is its fields' values, each typed from its builder (ObjectValue). A row()'s value is the identity of the element it holds, or null. An item of a list of objects is its identity plus its object's fields (ItemIdentity): its id — the row's id in a list over a table such as fact.property.units, and the id the platform mints in any other list. A list of rows — a selection — holds the rows' identity strings. A list sourced by a row's list of text values — unit.amenities, its item a short text — holds the row's own values, a string[], the same array a compute() reading that member receives. A member of a table you do not declare as a field is not on the item, so reading it is a type error.

ImageValue

Signature

import type { ImageValue } from "@homepages/concrete";

declare const value: ImageValue;
//            ^?

Constraints

Always read url, alt, mobile and responsive, and nothing else. The crop is baked into the asset the API presigns into url, so the framework reconstructs no framing math at render time.

A unit's floor plan is not an image but an item — { id, image, floor }: declare a row from the element of a list over unit.floor_plans and read its image and its floor, the plan's name such as "Main Floor", or null when the plan was never named. A unit's photos are images: a list over unit.photos holds one ImageValue per photo, in the unit's order.

mobile is present only when the slot declares a distinct mobile crop. Absent responsive means the renderer falls back to the single url.

download_url is present only when url serves a crop: it is the whole, uncropped picture, which Slot.Download links. Absent, the download is url itself.

Example

import { Image, type ImageValue } from "@homepages/concrete";

export const Plate = ({ value }: { value: ImageValue }) => (
  <Image value={value} className="h-full w-full object-cover" />
);

AuthorImage

Signature

import type { AuthorImage } from "@homepages/concrete";

declare const value: AuthorImage;
//            ^?

Constraints

Always the shape a build-time asset import yields — a raster the template itself ships, part of its design rather than the user's content.

Always your own alt. A build asset has nowhere to store one, so the image primitive requires the prop for this form and a missing one is a compile error.

Never a database identity, and never a mobile crop: a distinct mobile cut is a per-property editorial decision made in the cropper.

responsive is null when the build derived no ladder, and the renderer then emits one plain image.

Example

import crest from "./assets/crest.png";
import { Image } from "@homepages/concrete";

export const Crest = () => <Image value={crest} alt="House crest" className="w-24" />;

VideoValue

Signature

import type { VideoValue } from "@homepages/concrete";

declare const value: VideoValue;
//            ^?

Constraints

Always one rendition: there is no responsive ladder and no crop state, because a video is selected rather than edited.

Always a poster, which is an empty string only while one is still being derived. poster_responsive is what the image primitive renders the poster with.

Never an intrinsic width and height on a link. A provider publishes its player's default box rather than the video's dimensions, so the section's own classes size an embed.

An absent source means a hosted upload, so a value written before hosted and linked video merged still renders as one.

Example

import type { VideoValue } from "@homepages/concrete";

export const isEmbed = (value: VideoValue): boolean => value.source === "link";

TourValue

Signature

import type { TourValue } from "@homepages/concrete";

declare const value: TourValue;
//            ^?

Constraints

Always a provider embed. There is no hosted branch, so no source discriminant and no intrinsic dimensions — the section's own classes size the box.

Always a finished embed source in url. The pasted form stays on the facts row, and the rewrite is applied once, at resolve, so the tour primitive is a pure read.

A poster is routinely absent: an empty string is an ordinary state here, not a transient one, because some providers publish no thumbnail at all.

Example

import type { TourValue } from "@homepages/concrete";

export const hasPoster = (value: TourValue): boolean => value.poster !== "";

DocumentValue

Signature

import type { DocumentValue } from "@homepages/concrete";

declare const value: DocumentValue;
//            ^?

Constraints

Always every field present but poster_responsive. A document is never transformed — no crop, no rendition — and a value that cannot be served does not survive resolution at all.

poster is the first page's preview, the still Slot.Image draws over a document slot, and poster_responsive its ladder. An empty poster is an ordinary state: the platform renders a preview only for a PDF, and only after the upload lands.

Always the filename as it stands at resolve time, so renaming an upload renames it everywhere it is attached. It is also the name the download lands under.

url is a presigned URL in the editor and a relative asset path on a published page, so a renderer reads one field either side of publish.

Example

import type { DocumentValue } from "@homepages/concrete";

export const sizeLabel = (value: DocumentValue): string =>
  `${value.content_type} · ${String(Math.round(value.size_bytes / 1000))} kB`;

AddressValue

Signature

import type { AddressValue } from "@homepages/concrete";

declare const value: AddressValue;
//            ^?

Constraints

Always every field present, and an absent part null — never an empty string — so a render tests a part for presence (value.unit === null).

Always both coordinates or neither: a pin is a pair, and half of one, or one out of range, resolves as no pin at all.

Never an address holding no place. A value with no part and no pin is null itself, so the slot's own value is AddressValue or null.

Example

import type { AddressValue } from "@homepages/concrete";

export const pinned = (value: AddressValue): boolean => value.latitude !== null && value.longitude !== null;

PoiRow

Signature

import type { PoiRow } from "@homepages/concrete";

declare const value: PoiRow;
//            ^?

Constraints

Always handle absence past distance_m. Every field beyond it is optional and never nullable, because the places provider genuinely omits most of them for parks, schools and transit stops.

Always stale by design. Ratings drift and businesses close; a row refreshes only when its deliverable is regenerated or the user re-picks the place.

Always display a photo's attribution with the image — the provider requires it, and its map link is the attribution target.

A missing photo is how you know the place has no image at all. When it is there, its URL is minted fresh on every request rather than persisted, so a reference cannot rot.

Example

import type { PoiRow } from "@homepages/concrete";

export const walkLine = (value: PoiRow): string =>
  value.distance_m === null ? value.name : `${value.name} · ${String(value.distance_m)} m`;

ResponsiveImage

Signature

import type { ResponsiveImage } from "@homepages/concrete";

declare const value: ResponsiveImage;
//            ^?

Constraints

Always optional on the value that carries it. Absent means no ladder was derived, and the renderer falls back to the single URL.

Never assembled by hand. The image primitive plans the responsive sources from this descriptor; a renderer passes the whole value through rather than reading it.

Example

import type { ImageValue, ResponsiveImage } from "@homepages/concrete";

export const ladderOf = (value: ImageValue): ResponsiveImage | null =>
  value.responsive ?? null;

See also

slot builders for the kind that produces each shape, sources for the facts a row is projected from, and Slots for why emptiness is a state your markup handles.