@homepages/concrete 5.0.0 → 6.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 +336 -0
- package/README.md +28 -17
- package/codemods/fill-is-a-source.mjs +533 -0
- package/codemods/manifest.json +12 -0
- package/codemods/reads-replace-reconcile.mjs +285 -0
- package/dist/artifact/playground/client/assets/{index-D1fwOGVK.js → index-u3T7DiSN.js} +96 -96
- package/dist/artifact/playground/client/index.html +1 -1
- package/dist/artifact/playground/host.mjs +23 -23
- package/dist/base.css +3 -8
- package/dist/browser/site-config.js +1 -16
- package/dist/browser/submit-lead.js +0 -31
- package/dist/cli/build/artifact.js +16 -23
- package/dist/cli/build/captures.js +0 -6
- package/dist/cli/build/esbuild.js +0 -17
- package/dist/cli/build/fixtures.js +15 -30
- package/dist/cli/build/icons.js +0 -3
- package/dist/cli/build/index.js +1 -1
- package/dist/cli/build/playground.js +4 -8
- package/dist/cli/build/sections.js +9 -30
- package/dist/cli/build/source.js +52 -27
- package/dist/cli/build/static.js +4 -25
- package/dist/cli/capture/bundle.js +0 -9
- package/dist/cli/capture/capture-browser.js +0 -14
- package/dist/cli/capture/capture.js +1 -8
- package/dist/cli/check/analyze.js +2 -5
- package/dist/cli/check/index.js +1 -1
- package/dist/cli/check/line-endings.js +52 -0
- package/dist/cli/check/load-workspace.js +3 -8
- package/dist/cli/check/portable-names.js +48 -0
- package/dist/cli/check/render/class-conflicts.js +0 -5
- package/dist/cli/check/render/html.js +0 -1
- package/dist/cli/check/render/invariants.js +0 -5
- package/dist/cli/check/render/island-frames.js +0 -25
- package/dist/cli/check/render/marker-coverage.js +0 -20
- package/dist/cli/check/render/nav.js +0 -33
- package/dist/cli/check/report.js +0 -3
- package/dist/cli/check/stages/bundles.js +1 -9
- package/dist/cli/check/stages/composition.js +3 -2
- package/dist/cli/check/stages/dependencies.js +7 -38
- package/dist/cli/check/stages/fixtures.js +3 -31
- package/dist/cli/check/stages/lint.js +2 -2
- package/dist/cli/check/stages/logic.js +3 -34
- package/dist/cli/check/stages/relations.js +46 -0
- package/dist/cli/check/stages/render.js +0 -1
- package/dist/cli/check/stages/sections.js +3 -3
- package/dist/cli/check/stages/stylesheet.js +1 -1
- package/dist/cli/check/stages/typecheck.js +5 -11
- package/dist/cli/check/stages/workspace.js +36 -14
- package/dist/cli/commands.js +9 -56
- package/dist/cli/currency/cache.js +4 -17
- package/dist/cli/currency/decide.js +0 -14
- package/dist/cli/currency/opt-out.js +0 -7
- package/dist/cli/currency/preamble.js +3 -24
- package/dist/cli/currency/prompt.js +0 -1
- package/dist/cli/currency/refresh.js +5 -12
- package/dist/cli/currency/resolve-latest.js +3 -64
- package/dist/cli/currency/version-order.js +0 -12
- package/dist/cli/dev/crop.js +0 -2
- package/dist/cli/dev/http.js +0 -13
- package/dist/cli/dev/index.js +3 -4
- package/dist/cli/dev/islands.js +25 -70
- package/dist/cli/dev/listen.js +26 -0
- package/dist/cli/dev/load-template.js +0 -1
- package/dist/cli/dev/request-error.js +0 -4
- package/dist/cli/dev/server.js +46 -52
- package/dist/cli/dev/tsconfig-paths.js +0 -13
- package/dist/cli/dev/vite.js +9 -38
- package/dist/cli/dev/workspace-reader.js +4 -34
- package/dist/cli/media/cache.js +4 -51
- package/dist/cli/media/derive.js +2 -94
- package/dist/cli/media/deriver-plugin.js +0 -2
- package/dist/cli/media/frame-rung-floor.js +0 -6
- package/dist/cli/property/index.js +0 -4
- package/dist/cli/property/library.js +6 -24
- package/dist/cli/publish/client.js +0 -1
- package/dist/cli/publish/freshness.js +0 -2
- package/dist/cli/publish/git.js +2 -8
- package/dist/cli/publish/index.js +8 -15
- package/dist/cli/publish/pack.js +5 -6
- package/dist/cli/publish/report.js +0 -6
- package/dist/cli/publish/target.js +16 -13
- package/dist/cli/publish/wire.js +0 -6
- package/dist/cli/tar.js +2 -9
- package/dist/cli/upgrade/codemod.js +0 -8
- package/dist/cli/upgrade/index.js +0 -24
- package/dist/cli/upgrade/manifest.js +0 -12
- package/dist/cli/upgrade/plan.js +0 -17
- package/dist/cli/upgrade/stage.js +12 -15
- package/dist/cli/version.js +0 -8
- package/dist/cli/workspace.js +2 -34
- package/dist/cli.js +4 -21
- package/dist/css/compile.js +25 -28
- package/dist/css/graph.js +3 -10
- package/dist/css/inline.js +3 -13
- package/dist/css/rules.js +6 -43
- package/dist/design-system/format-variants.js +0 -22
- package/dist/eslint/authoring.js +0 -2
- package/dist/eslint/correctness.js +0 -7
- package/dist/eslint/rules/editor-reason.js +0 -11
- package/dist/eslint/rules/island-ids.js +0 -1
- package/dist/eslint/rules/jsx-visitor.js +0 -13
- package/dist/eslint/rules/no-editor-globals.js +0 -2
- package/dist/eslint/rules/no-raw-values.js +0 -1
- package/dist/fixtures/brand.js +0 -1
- package/dist/fixtures/bundle-rule.js +4 -9
- package/dist/fixtures/canonical.d.ts +20 -0
- package/dist/fixtures/image-dimensions.js +0 -1
- package/dist/fixtures/load.js +8 -17
- package/dist/fixtures/media-plugin.js +4 -31
- package/dist/fixtures/media.js +0 -21
- package/dist/fixtures/package-stylesheets.js +0 -6
- package/dist/fixtures/property.js +16 -15
- package/dist/fixtures/resolve.js +102 -29
- package/dist/fixtures/rows.js +12 -11
- package/dist/fixtures/synthesize-empties.js +0 -4
- package/dist/fixtures.d.ts +19 -4
- package/dist/fixtures.js +0 -18
- package/dist/index.d.ts +8 -9
- package/dist/index.js +2 -11
- package/dist/islands/client-module.js +0 -11
- package/dist/islands/marker.js +0 -33
- package/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/browser.js +0 -20
- package/dist/packages/external/concrete/package.js +1 -1
- package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +21 -35
- package/dist/packages/internal/fill-bake/dist/compute-reads.js +4 -0
- package/dist/packages/internal/fill-bake/dist/derive-source.js +40 -0
- package/dist/packages/internal/fill-bake/dist/display.js +0 -1
- package/dist/packages/internal/fill-bake/dist/index.js +4 -4
- package/dist/packages/internal/fill-vocabulary/dist/origination.js +106 -0
- package/dist/packages/internal/fill-vocabulary/dist/row-planners.js +1 -49
- package/dist/packages/internal/format-geometry/dist/capture.js +10 -240
- package/dist/packages/internal/format-geometry/dist/geometry.js +0 -6
- package/dist/packages/internal/image-ladder/dist/crop.js +0 -12
- package/dist/packages/internal/image-ladder/dist/policy.js +0 -14
- package/dist/packages/internal/island-runtime/dist/capture-holds.js +0 -13
- package/dist/packages/internal/island-runtime/dist/contract.js +0 -34
- package/dist/packages/internal/island-runtime/dist/editor-instance-context.js +0 -1
- package/dist/packages/internal/island-runtime/dist/index.js +0 -34
- package/dist/packages/internal/island-runtime/dist/island-id-context.js +0 -1
- package/dist/packages/internal/island-runtime/dist/use-capture-ready.js +0 -15
- package/dist/packages/internal/island-runtime/dist/use-editor.js +0 -10
- package/dist/packages/internal/island-runtime/dist/use-island-id.js +0 -32
- package/dist/packages/internal/property-facts/dist/derive-facts-view.js +2 -17
- package/dist/packages/internal/property-facts/dist/index.js +1 -1
- package/dist/packages/internal/property-facts/dist/{property-facts-CSdkSuD7.js → property-facts-5pxZnlkh.js} +13 -2
- package/dist/packages/internal/section-contracts/dist/cap-contract.js +1 -18
- package/dist/packages/internal/section-contracts/dist/catalog.js +16 -8
- package/dist/packages/internal/section-contracts/dist/choose-select-contract.js +12 -16
- package/dist/packages/internal/section-contracts/dist/count-bounds-contract.js +5 -11
- package/dist/packages/internal/section-contracts/dist/display-contract.js +2 -0
- package/dist/packages/internal/section-contracts/dist/display-evidence-contract.js +2 -8
- package/dist/packages/internal/section-contracts/dist/fill-spec-view.js +13 -0
- package/dist/packages/internal/section-contracts/dist/index.js +2 -1
- package/dist/packages/internal/section-contracts/dist/interpolation-contract.js +16 -42
- package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +24 -43
- package/dist/packages/internal/section-contracts/dist/name-title-contract.js +11 -18
- package/dist/packages/internal/section-contracts/dist/poi-curation-contract.js +10 -12
- package/dist/packages/internal/section-contracts/dist/pooling-field-contract.js +3 -13
- package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +6 -18
- package/dist/packages/internal/section-contracts/dist/runners.js +21 -13
- package/dist/packages/internal/section-contracts/dist/source-contract.js +13 -2
- package/dist/packages/internal/section-contracts/dist/writer-reads-fact-contract.js +31 -0
- package/dist/packages/internal/source-resolution/dist/index.js +1 -9
- package/dist/packages/internal/template-artifact/dist/hash.js +0 -8
- package/dist/packages/internal/template-artifact/dist/index.js +1 -1
- package/dist/packages/internal/template-artifact/dist/layout.js +0 -39
- package/dist/packages/internal/template-artifact/dist/manifest.js +1 -9
- package/dist/packages/internal/template-artifact/dist/sha256.js +0 -1
- package/dist/packages/internal/template-artifact/dist/verify.js +2 -4
- package/dist/packages/internal/template-contracts/dist/collection-editing.js +0 -16
- package/dist/packages/internal/template-contracts/dist/content-categories.js +0 -4
- package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +16 -10
- package/dist/packages/internal/template-contracts/dist/facts-view.js +15 -28
- package/dist/packages/internal/template-contracts/dist/layout.js +0 -7
- package/dist/packages/internal/template-contracts/dist/markers.js +0 -29
- package/dist/packages/internal/template-contracts/dist/select-key.js +0 -6
- package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +56 -34
- package/dist/packages/internal/template-contracts/dist/slot-catalog.js +22 -389
- package/dist/platform/file-url.js +8 -0
- package/dist/platform/fs.js +73 -0
- package/dist/platform/names.js +63 -0
- package/dist/platform/order.js +7 -0
- package/dist/platform/paths.js +62 -0
- package/dist/platform/process.js +97 -0
- package/dist/playground/host/page-state.js +0 -2
- package/dist/playground/host/paths.js +0 -1
- package/dist/playground/layout.js +0 -7
- package/dist/playground/wire.js +0 -8
- package/dist/primitives/FrameShell.js +0 -18
- package/dist/primitives/Image.d.ts +5 -1
- package/dist/primitives/Image.js +2 -68
- package/dist/primitives/Section.js +0 -13
- package/dist/primitives/Tour.js +0 -26
- package/dist/primitives/Video.js +0 -32
- package/dist/primitives/embed-playback.js +0 -1
- package/dist/primitives/marker-attrs.js +0 -17
- package/dist/primitives/picture-sources.js +6 -1
- package/dist/primitives/probe-context.js +0 -7
- package/dist/primitives/slot-bindings.js +0 -46
- package/dist/primitives/slot-document.js +0 -11
- package/dist/primitives/slot-group.js +0 -9
- package/dist/primitives/slot-media.js +0 -27
- package/dist/primitives/slot-scalar.js +0 -4
- package/dist/primitives/slot.js +0 -6
- package/dist/rules/registry.js +42 -24
- package/dist/schema/compute.d.ts +46 -8
- package/dist/schema/compute.js +21 -15
- package/dist/schema/define-schema.d.ts +1 -1
- package/dist/schema/define-schema.js +37 -17
- package/dist/schema/extract-fill-spec.js +93 -180
- package/dist/schema/extract-used-facts.js +16 -158
- package/dist/schema/fact.d.ts +25 -12
- package/dist/schema/fact.js +7 -11
- package/dist/schema/fill-builders.d.ts +91 -366
- package/dist/schema/fill-builders.js +21 -259
- package/dist/schema/fill-declaration.d.ts +7 -69
- package/dist/schema/fill-declaration.js +5 -34
- package/dist/schema/fill-spec.js +59 -148
- package/dist/schema/format-presets.js +0 -12
- package/dist/schema/format.js +0 -7
- package/dist/schema/layout.js +0 -10
- package/dist/schema/manifest.js +0 -39
- package/dist/schema/property-facts.d.ts +20 -0
- package/dist/schema/section-nav.js +0 -15
- package/dist/schema/section-schema.d.ts +0 -1
- package/dist/schema/section-schema.js +4 -20
- package/dist/schema/slot-builders.d.ts +128 -117
- package/dist/schema/slot-builders.js +18 -201
- package/dist/schema/slot-ref.d.ts +63 -0
- package/dist/schema/slot-ref.js +33 -0
- package/dist/schema/slot-types.d.ts +3 -2
- package/dist/schema/slot-types.js +11 -20
- package/dist/section/declare.d.ts +14 -10
- package/dist/section/declare.js +13 -2
- package/dist/section/discovery.js +6 -21
- package/dist/section/groups.js +0 -6
- package/dist/section/materialize.js +0 -5
- package/dist/section/placements.js +0 -4
- package/dist/section/section.d.ts +8 -5
- package/dist/section/section.js +7 -29
- package/dist/styles.css +5 -0
- package/dist/template/define-template.d.ts +0 -4
- package/dist/template/define-template.js +1 -15
- package/dist/template/logic-build.js +8 -35
- package/dist/template/logic-shim.d.ts +4 -5
- package/dist/template/logic-shim.js +2 -6
- package/dist/template/logic-transform.js +0 -6
- package/dist/template/materialize.js +52 -43
- package/dist/template/mirror-types.js +43 -0
- package/dist/template/running-copy.js +5 -20
- package/dist/template/section-reads.js +83 -0
- package/guide/reference/cli/INDEX.md +12 -6
- package/guide/reference/cli/build.md +1 -1
- package/guide/reference/cli/check.md +1 -1
- package/guide/reference/cli/dev.md +3 -3
- package/guide/reference/cli/property-add.md +1 -1
- package/guide/reference/cli/property-list.md +1 -1
- package/guide/reference/cli/publish.md +4 -2
- package/guide/reference/cli/upgrade.md +1 -1
- package/guide/reference/rules/INDEX.md +26 -13
- package/package.json +4 -2
- package/dist/packages/internal/fact-interpolation/dist/index.js +0 -22
- package/dist/packages/internal/fill-bake/dist/reconcile-cross-section.js +0 -170
- package/dist/packages/internal/fill-vocabulary/dist/facts.d.ts +0 -32
- package/dist/packages/internal/fill-vocabulary/dist/facts.js +0 -131
- package/dist/packages/internal/template-contracts/dist/slot-overrides.js +0 -11
- package/dist/schema/fill-spec.d.ts +0 -18
- package/dist/template/reconcile.d.ts +0 -67
- package/dist/template/reconcile.js +0 -25
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
//#region ../../internal/template-contracts/dist/layout.js
|
|
2
|
-
/** Flatten a row layout to its bare slot-id order, left to right — each `[a, b]` pair expands to its two ids in place. */
|
|
3
2
|
function flattenLayout(layout) {
|
|
4
3
|
return layout.flatMap((entry) => typeof entry === "string" ? [entry] : [entry[0], entry[1]]);
|
|
5
4
|
}
|
|
6
|
-
/**
|
|
7
|
-
* Whether a slot is short enough to share a 2-up row: a `number`, a `url`, or
|
|
8
|
-
* a `text` slot whose `size` is absent or `"short"`. The single source of the
|
|
9
|
-
* row-eligibility rule — the editor renders authored rows verbatim, so this
|
|
10
|
-
* is the only guard an authored row layout is checked against.
|
|
11
|
-
*/
|
|
12
5
|
function isShortSlot(slot) {
|
|
13
6
|
return slot.type === "number" || slot.type === "url" || slot.type === "text" && (slot.size === void 0 || slot.size === "short");
|
|
14
7
|
}
|
|
@@ -1,40 +1,11 @@
|
|
|
1
1
|
//#region ../../internal/template-contracts/dist/markers.js
|
|
2
|
-
/** The element an editable slot's value was rendered on (`{...slot.x}`). */
|
|
3
2
|
const ATTR_SLOT_ID = "data-slot-id";
|
|
4
|
-
/** The element whose text content IS the slot's value (`{...slot.x.text}`). */
|
|
5
3
|
const ATTR_SLOT_TEXT_LEAF = "data-slot-text-leaf";
|
|
6
|
-
/** The shared container of a set of slots edited as one unit (`{...group.g}`). */
|
|
7
4
|
const ATTR_SLOT_GROUP = "data-slot-group";
|
|
8
|
-
/**
|
|
9
|
-
* Zero-based index of one item inside a collection slot (`{...slot.x.item(i)}`) — the
|
|
10
|
-
* per-item handle for a record-item list. The editor
|
|
11
|
-
* resolves per-item selection, live enhancer surfaces, and per-item image
|
|
12
|
-
* crops against it, scoped to the enclosing `ATTR_SLOT_ID` element.
|
|
13
|
-
*/
|
|
14
5
|
const ATTR_SLOT_ITEM = "data-slot-item";
|
|
15
|
-
/**
|
|
16
|
-
* The field name of one row field inside a record item — the fourth and last
|
|
17
|
-
* dimension of slot identity, `(instance, slot, item?, field?)`.
|
|
18
|
-
*
|
|
19
|
-
* It is also a SCOPE BOUNDARY for item queries, exactly as `data-slot-id` is: an item
|
|
20
|
-
* resolves to the nearest `[data-slot-item]` whose closest `[data-slot-id]` or
|
|
21
|
-
* `[data-slot-field]` ancestor is the element doing the lookup, so an outer collection's
|
|
22
|
-
* lookup can never reach into a nested list rendered inside one of its rows. Identity
|
|
23
|
-
* stays a fixed 4-tuple rather than a path because a record cannot nest inside a
|
|
24
|
-
* record — the list grammar's field union enforces that in the type.
|
|
25
|
-
*/
|
|
26
6
|
const ATTR_SLOT_FIELD = "data-slot-field";
|
|
27
|
-
/**
|
|
28
|
-
* Presence flag on a marked element declaring it a non-selectable rendering. The
|
|
29
|
-
* copy keeps full identity — patchers and the crop treatment still reach it — but
|
|
30
|
-
* the canvas never selects, outlines, scrolls to, or live-stamps it, and a click
|
|
31
|
-
* on it falls through exactly as on unmarked markup. Coverage gates count no
|
|
32
|
-
* flagged copy, so a slot needs at least one rendering without this flag.
|
|
33
|
-
*/
|
|
34
7
|
const ATTR_SLOT_UNSELECTABLE = "data-slot-unselectable";
|
|
35
|
-
/** Per-section-instance identity on the section root. */
|
|
36
8
|
const ATTR_SECTION_INSTANCE_ID = "data-section-instance-id";
|
|
37
|
-
/** Opt-in hook telling an enhancer to attach to this element. */
|
|
38
9
|
const ATTR_TR_ENHANCE = "data-tr-enhance";
|
|
39
10
|
|
|
40
11
|
//#endregion
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
//#region ../../internal/template-contracts/dist/select-key.js
|
|
2
|
-
/**
|
|
3
|
-
* The stored form of a user-created select value: trimmed, lower-cased, every run
|
|
4
|
-
* of whitespace collapsed to a single `-`. Case and spacing only — punctuation is
|
|
5
|
-
* left alone. Idempotent, which is what makes `normalizeSelectKey(k) === k` a
|
|
6
|
-
* usable stability check on an authored key.
|
|
7
|
-
*/
|
|
8
2
|
function normalizeSelectKey(text) {
|
|
9
3
|
return text.trim().toLowerCase().replace(/\s+/g, "-");
|
|
10
4
|
}
|
|
@@ -12,18 +12,6 @@
|
|
|
12
12
|
declare const SOURCE_FILTERS: readonly ["floorplans"];
|
|
13
13
|
/** An asset-pool filter tag — one of `SOURCE_FILTERS`. */
|
|
14
14
|
type SourceFilter = (typeof SOURCE_FILTERS)[number];
|
|
15
|
-
/**
|
|
16
|
-
* Referral-provider field names a slot may bind to via `source.kind:"direct"` on a named property-level referral (v1: `"primary_contact"`).
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* Names the referral-specific fields, as distinct from the property/unit
|
|
20
|
-
* scalars in `SOURCE_FIELDS`, for slot-type cross-checks. The
|
|
21
|
-
* field-to-contact-card-key translation applied when a value is baked is not
|
|
22
|
-
* part of this kit.
|
|
23
|
-
*/
|
|
24
|
-
declare const REFERRAL_FIELDS: readonly ["name", "title", "org_name", "email", "phone", "website", "instagram", "linkedin", "x", "facebook", "headshot", "logo_dark", "logo_light"];
|
|
25
|
-
/** A referral field name — one of `REFERRAL_FIELDS`. */
|
|
26
|
-
type ReferralField = (typeof REFERRAL_FIELDS)[number];
|
|
27
15
|
/**
|
|
28
16
|
* Where in the property fact graph a `SOURCE_FIELDS` entry's value lives: the property root, a unit row, or a contact card.
|
|
29
17
|
*/
|
|
@@ -435,28 +423,31 @@ declare const FACT_GRAPH: {
|
|
|
435
423
|
readonly column: "sale_date";
|
|
436
424
|
};
|
|
437
425
|
};
|
|
438
|
-
/** Bedroom count. **Writable** from the canvas. */
|
|
426
|
+
/** Bedroom count. Part of what makes a row complete — every comps slide prints it. **Writable** from the canvas. */
|
|
439
427
|
readonly beds: {
|
|
440
428
|
readonly value_type: "number";
|
|
429
|
+
readonly required: true;
|
|
441
430
|
readonly writeback: {
|
|
442
431
|
readonly column: "beds";
|
|
443
432
|
};
|
|
444
433
|
};
|
|
445
|
-
/** Bathroom count. **Writable** from the canvas. */
|
|
434
|
+
/** Bathroom count. Part of what makes a row complete. **Writable** from the canvas. */
|
|
446
435
|
readonly baths: {
|
|
447
436
|
readonly value_type: "number";
|
|
437
|
+
readonly required: true;
|
|
448
438
|
readonly writeback: {
|
|
449
439
|
readonly column: "baths";
|
|
450
440
|
};
|
|
451
441
|
};
|
|
452
|
-
/** Interior square footage. **Writable** from the canvas. */
|
|
442
|
+
/** Interior square footage. Part of what makes a row complete — the comps table divides the price by it. **Writable** from the canvas. */
|
|
453
443
|
readonly sqft: {
|
|
454
444
|
readonly value_type: "number";
|
|
445
|
+
readonly required: true;
|
|
455
446
|
readonly writeback: {
|
|
456
447
|
readonly column: "sqft";
|
|
457
448
|
};
|
|
458
449
|
};
|
|
459
|
-
/** A photo of the comparable, as an absolute URL rather than an upload id — comparables are not property uploads. */
|
|
450
|
+
/** A photo of the comparable, as an absolute URL rather than an upload id — comparables are not property uploads. A mirrored photo is a URL here too: the mirror writes its served URL into the column, so a template never holds a storage key. */
|
|
460
451
|
readonly photo_url: {
|
|
461
452
|
readonly value_type: "text";
|
|
462
453
|
};
|
|
@@ -468,6 +459,50 @@ declare const FACT_GRAPH: {
|
|
|
468
459
|
readonly source_name: {
|
|
469
460
|
readonly value_type: "text";
|
|
470
461
|
};
|
|
462
|
+
/** The year the comparable was built. */
|
|
463
|
+
readonly year_built: {
|
|
464
|
+
readonly value_type: "number";
|
|
465
|
+
};
|
|
466
|
+
/** Lot size in square feet. */
|
|
467
|
+
readonly lot_sqft: {
|
|
468
|
+
readonly value_type: "number";
|
|
469
|
+
};
|
|
470
|
+
/** How many storeys the comparable has. */
|
|
471
|
+
readonly stories: {
|
|
472
|
+
readonly value_type: "number";
|
|
473
|
+
};
|
|
474
|
+
/** How many units the comparable's building holds — a multifamily figure, and nothing to do with the SUBJECT's units. */
|
|
475
|
+
readonly units: {
|
|
476
|
+
readonly value_type: "number";
|
|
477
|
+
};
|
|
478
|
+
/** Monthly HOA dues in dollars. */
|
|
479
|
+
readonly hoa_monthly: {
|
|
480
|
+
readonly value_type: "number";
|
|
481
|
+
};
|
|
482
|
+
/** How long the comparable has been on the market. Live listings only; null on a closed sale, where it would mean nothing. */
|
|
483
|
+
readonly days_on_market: {
|
|
484
|
+
readonly value_type: "number";
|
|
485
|
+
};
|
|
486
|
+
/** The asking price in dollars, beside `price`. On a sold row the pair is what "sold over asking" is read from; on a live one they are usually the same figure. */
|
|
487
|
+
readonly list_price: {
|
|
488
|
+
readonly value_type: "number";
|
|
489
|
+
};
|
|
490
|
+
/** When the listing went live (ISO `YYYY-MM-DD`) — not when it closed, which is `sale_date`. */
|
|
491
|
+
readonly listed_date: {
|
|
492
|
+
readonly value_type: "text";
|
|
493
|
+
};
|
|
494
|
+
/** The listing's MLS number. */
|
|
495
|
+
readonly mls_number: {
|
|
496
|
+
readonly value_type: "text";
|
|
497
|
+
};
|
|
498
|
+
/** The listing remarks, verbatim from the source. */
|
|
499
|
+
readonly description: {
|
|
500
|
+
readonly value_type: "text";
|
|
501
|
+
};
|
|
502
|
+
/** The comparable's property type in OUR vocabulary, mapped by the provider rather than the portal's own wording — which is what lets a slide compare it with the subject's. Null on a public-record stub, which often states none. */
|
|
503
|
+
readonly property_type: {
|
|
504
|
+
readonly value_type: "text";
|
|
505
|
+
};
|
|
471
506
|
};
|
|
472
507
|
};
|
|
473
508
|
/** Every contact card, baked verbatim as a record list. Read-only as a whole; the per-row fields under `fact.contact` stay writable. */
|
|
@@ -736,18 +771,12 @@ declare const FACT_GRAPH: {
|
|
|
736
771
|
readonly image: true;
|
|
737
772
|
};
|
|
738
773
|
/** The property's always-on prose description, the substrate every text decision is grounded in. */
|
|
739
|
-
readonly
|
|
774
|
+
readonly description: {
|
|
740
775
|
readonly role: "readable";
|
|
741
|
-
readonly path: "narrative";
|
|
742
|
-
readonly value_type: "
|
|
776
|
+
readonly path: "narrative.description";
|
|
777
|
+
readonly value_type: "text";
|
|
743
778
|
readonly input_group: "describe";
|
|
744
779
|
readonly strength: "optional";
|
|
745
|
-
readonly fields: {
|
|
746
|
-
/** The description itself. */
|
|
747
|
-
readonly description: {
|
|
748
|
-
readonly value_type: "text";
|
|
749
|
-
};
|
|
750
|
-
};
|
|
751
780
|
};
|
|
752
781
|
/** Every property photo, in candidate order. */
|
|
753
782
|
readonly photos: {
|
|
@@ -755,7 +784,7 @@ declare const FACT_GRAPH: {
|
|
|
755
784
|
readonly path: "photos";
|
|
756
785
|
readonly value_type: "row_list";
|
|
757
786
|
readonly input_group: "uploads";
|
|
758
|
-
readonly strength: "
|
|
787
|
+
readonly strength: "optional";
|
|
759
788
|
readonly row: {
|
|
760
789
|
/** Identity of the photo. */
|
|
761
790
|
readonly id: {
|
|
@@ -925,13 +954,6 @@ declare const FACT_GRAPH: {
|
|
|
925
954
|
readonly value_type: "row";
|
|
926
955
|
readonly primary_of: "contacts";
|
|
927
956
|
};
|
|
928
|
-
/** The current calendar year. Ambient — read at derive time, not from any fact. */
|
|
929
|
-
readonly year: {
|
|
930
|
-
readonly role: "readable";
|
|
931
|
-
readonly path: null;
|
|
932
|
-
readonly value_type: "number";
|
|
933
|
-
readonly ambient: true;
|
|
934
|
-
};
|
|
935
957
|
};
|
|
936
958
|
/** A fact graph entry's name — a key of `FACT_GRAPH`. */
|
|
937
959
|
type FactGraphName = keyof typeof FACT_GRAPH;
|
|
@@ -1109,4 +1131,4 @@ declare const VIDEO_SOURCES: readonly ["upload", "link"];
|
|
|
1109
1131
|
/** A video's storage/origin kind — one of `VIDEO_SOURCES`. */
|
|
1110
1132
|
type VideoSource = (typeof VIDEO_SOURCES)[number];
|
|
1111
1133
|
//#endregion
|
|
1112
|
-
export { BindableFacts, COLLECTIONS, CollectionField, FACT_GRAPH, FACT_PROJECTIONS, FactGraphName, FactMemberDescriptor, FactProjections, FactShapeDescriptor, FactValueType, LINK_KINDS, LINK_PROVIDERS, LinkKind, LinkProviderId,
|
|
1134
|
+
export { BindableFacts, COLLECTIONS, CollectionField, FACT_GRAPH, FACT_PROJECTIONS, FactGraphName, FactMemberDescriptor, FactProjections, FactShapeDescriptor, FactValueType, LINK_KINDS, LINK_PROVIDERS, LinkKind, LinkProviderId, RowMemberWriteback, SOURCE_FIELDS, SOURCE_FILTERS, SourceFieldContainer, SourceFieldName, SourceFieldValueType, SourceFilter, VIDEO_SOURCES, VideoSource, WritableSourceFieldName, WritebackTarget };
|