@homepages/concrete 6.2.0 → 8.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.
Files changed (87) hide show
  1. package/CHANGELOG.md +152 -0
  2. package/codemods/manifest.json +19 -0
  3. package/codemods/object-form-only.mjs +39 -0
  4. package/codemods/steps/list-object-form.mjs +688 -0
  5. package/codemods/steps/select-object-form.mjs +210 -0
  6. package/dist/artifact/playground/client/assets/index-Dn_xT16-.js +1101 -0
  7. package/dist/artifact/playground/client/index.html +1 -1
  8. package/dist/artifact/playground/host.mjs +14 -14
  9. package/dist/asset-modules.d.ts +2 -1
  10. package/dist/cli/check/stages/render.js +1 -1
  11. package/dist/cli/check/stages/sections.js +1 -1
  12. package/dist/fixtures/canonical.d.ts +2 -5
  13. package/dist/fixtures/media.js +11 -25
  14. package/dist/fixtures/property.js +28 -16
  15. package/dist/fixtures/resolve.js +31 -17
  16. package/dist/fixtures/rows.js +3 -83
  17. package/dist/fixtures.d.ts +17 -9
  18. package/dist/index.d.ts +9 -9
  19. package/dist/packages/external/concrete/package.js +1 -1
  20. package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +32 -10
  21. package/dist/packages/internal/fill-bake/dist/derive-source.js +15 -4
  22. package/dist/packages/internal/fill-bake/dist/index.js +2 -2
  23. package/dist/packages/internal/fill-vocabulary/dist/origination.js +6 -61
  24. package/dist/packages/internal/fill-vocabulary/dist/row-reads.js +15 -0
  25. package/dist/packages/internal/property-facts/dist/index.js +1 -1
  26. package/dist/packages/internal/property-facts/dist/{property-facts-5pxZnlkh.js → property-facts-Cy7-O4p0.js} +2 -5
  27. package/dist/packages/internal/section-contracts/dist/catalog.js +2 -22
  28. package/dist/packages/internal/section-contracts/dist/fill-spec-view.js +6 -1
  29. package/dist/packages/internal/section-contracts/dist/group-contract.js +1 -3
  30. package/dist/packages/internal/section-contracts/dist/index.js +0 -5
  31. package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +16 -7
  32. package/dist/packages/internal/section-contracts/dist/list-scalar-contract.js +1 -5
  33. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +14 -0
  34. package/dist/packages/internal/section-contracts/dist/runners.js +3 -28
  35. package/dist/packages/internal/section-contracts/dist/source-contract.js +93 -20
  36. package/dist/packages/internal/section-contracts/dist/writer-reads-fact-contract.js +19 -9
  37. package/dist/packages/internal/source-resolution/dist/index.js +48 -57
  38. package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +6 -17
  39. package/dist/packages/internal/template-contracts/dist/facts-view.js +4 -23
  40. package/dist/packages/internal/template-contracts/dist/row-sources.js +20 -0
  41. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +362 -380
  42. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +289 -293
  43. package/dist/primitives/slot-bindings.d.ts +7 -40
  44. package/dist/primitives/slot-bindings.js +10 -12
  45. package/dist/schema/define-schema.d.ts +1 -1
  46. package/dist/schema/define-schema.js +13 -1
  47. package/dist/schema/extract-fill-spec.js +14 -17
  48. package/dist/schema/fact.d.ts +2 -19
  49. package/dist/schema/fill-builders.d.ts +4 -3
  50. package/dist/schema/fill-spec.js +18 -1
  51. package/dist/schema/layout.d.ts +6 -8
  52. package/dist/schema/layout.js +3 -9
  53. package/dist/schema/property-facts.d.ts +17 -47
  54. package/dist/schema/row-fields.js +88 -0
  55. package/dist/schema/row-ref.d.ts +59 -0
  56. package/dist/schema/row-ref.js +28 -0
  57. package/dist/schema/runtime-values.d.ts +8 -13
  58. package/dist/schema/section-props.d.ts +19 -26
  59. package/dist/schema/section-schema.d.ts +6 -6
  60. package/dist/schema/section-schema.js +2 -2
  61. package/dist/schema/slot-builders.d.ts +247 -122
  62. package/dist/schema/slot-builders.js +57 -28
  63. package/dist/schema/slot-ref.d.ts +18 -2
  64. package/dist/schema/slot-ref.js +11 -3
  65. package/dist/schema/slot-types.d.ts +7 -7
  66. package/dist/schema/slot-types.js +55 -19
  67. package/dist/section/declare.d.ts +1 -1
  68. package/dist/section/section.d.ts +3 -3
  69. package/dist/template/logic-shim.d.ts +1 -1
  70. package/guide/reference/cli/INDEX.md +2 -2
  71. package/guide/reference/cli/build.md +1 -1
  72. package/guide/reference/cli/check.md +1 -1
  73. package/guide/reference/cli/dev.md +1 -1
  74. package/guide/reference/cli/property-add.md +1 -1
  75. package/guide/reference/cli/property-list.md +1 -1
  76. package/guide/reference/cli/publish.md +1 -1
  77. package/guide/reference/cli/upgrade.md +1 -1
  78. package/guide/reference/rules/INDEX.md +3 -8
  79. package/package.json +1 -1
  80. package/tsconfig.base.json +1 -0
  81. package/dist/artifact/playground/client/assets/index-Cqz-jjVw.js +0 -1101
  82. package/dist/packages/internal/section-contracts/dist/choose-select-contract.js +0 -20
  83. package/dist/packages/internal/section-contracts/dist/name-title-contract.js +0 -20
  84. package/dist/packages/internal/section-contracts/dist/pooling-field-contract.js +0 -20
  85. package/dist/packages/internal/section-contracts/dist/row-contract.js +0 -37
  86. package/dist/packages/internal/section-contracts/dist/source-filter-contract.js +0 -15
  87. package/dist/packages/internal/template-contracts/dist/layout.js +0 -10
@@ -17,10 +17,21 @@ const COLLECTION_SLOT_TYPES = ["list"];
17
17
  function isCollectionSlotType(type) {
18
18
  return COLLECTION_SLOT_TYPES.includes(type);
19
19
  }
20
- const SOURCE_FILTERS = ["floorplans"];
21
- function isSourceFilter(value) {
22
- return SOURCE_FILTERS.includes(value);
23
- }
20
+ const REFERRAL_FIELDS = [
21
+ "name",
22
+ "title",
23
+ "org_name",
24
+ "email",
25
+ "phone",
26
+ "website",
27
+ "instagram",
28
+ "linkedin",
29
+ "x",
30
+ "facebook",
31
+ "headshot",
32
+ "logo_dark",
33
+ "logo_light"
34
+ ];
24
35
  const REFERRAL_IMAGE_FIELDS = [
25
36
  "headshot",
26
37
  "logo_dark",
@@ -47,7 +58,14 @@ const INPUT_GROUP_REQUIREMENT = {
47
58
  contacts: "derived"
48
59
  };
49
60
  const ALWAYS_ASKED_INPUT_GROUPS = INPUT_GROUPS.filter((group) => INPUT_GROUP_REQUIREMENT[group] === "always");
50
- const FACT_GRAPH = {
61
+ const FACT_PROJECTIONS = {
62
+ property: {
63
+ latitude: "lat",
64
+ longitude: "lon"
65
+ },
66
+ contact: { address: "contact_address" }
67
+ };
68
+ const PROPERTY_ROOT_FACTS = {
51
69
  address: {
52
70
  role: "bindable",
53
71
  path: "address",
@@ -140,67 +158,9 @@ const FACT_GRAPH = {
140
158
  value_type: "number",
141
159
  input_group: "address",
142
160
  strength: "blocking"
143
- },
144
- unit_label: {
145
- role: "bindable",
146
- path: "units[].unit_label",
147
- container: "unit",
148
- value_type: "text",
149
- input_group: "units",
150
- strength: "optional",
151
- writeback: {
152
- kind: "unit",
153
- column: "unit_label"
154
- }
155
- },
156
- beds: {
157
- role: "bindable",
158
- path: "units[].beds",
159
- container: "unit",
160
- value_type: "number",
161
- input_group: "units",
162
- strength: "blocking",
163
- writeback: {
164
- kind: "unit",
165
- column: "beds"
166
- }
167
- },
168
- baths: {
169
- role: "bindable",
170
- path: "units[].baths",
171
- container: "unit",
172
- value_type: "number",
173
- input_group: "units",
174
- strength: "blocking",
175
- writeback: {
176
- kind: "unit",
177
- column: "baths"
178
- }
179
- },
180
- sqft: {
181
- role: "bindable",
182
- path: "units[].sqft",
183
- container: "unit",
184
- value_type: "number",
185
- input_group: "units",
186
- strength: "blocking",
187
- writeback: {
188
- kind: "unit",
189
- column: "sqft"
190
- }
191
- },
192
- price: {
193
- role: "bindable",
194
- path: "units[].price",
195
- container: "unit",
196
- value_type: "text",
197
- input_group: "units",
198
- strength: "blocking",
199
- writeback: {
200
- kind: "unit",
201
- column: "price"
202
- }
203
- },
161
+ }
162
+ };
163
+ const COLLECTION_FACTS = {
204
164
  units: {
205
165
  role: "bindable",
206
166
  path: "units",
@@ -209,20 +169,53 @@ const FACT_GRAPH = {
209
169
  input_group: "units",
210
170
  strength: "blocking",
211
171
  row: {
212
- unit_id: { value_type: "text" },
213
- unit_label: { value_type: "text" },
214
- beds: { value_type: "number" },
215
- baths: { value_type: "number" },
216
- sqft: { value_type: "number" },
217
- price: { value_type: "text" },
218
- position: { value_type: "number" },
172
+ unit_id: {
173
+ path: "unit_id",
174
+ value_type: "text"
175
+ },
176
+ position: {
177
+ path: "position",
178
+ value_type: "number"
179
+ },
219
180
  floor_plans: {
220
- value_type: "row_list",
181
+ path: "floor_plans",
182
+ value_type: "image_list",
183
+ pool: "floor_plans",
221
184
  row: {
222
185
  id: { value_type: "text" },
223
186
  floor_label: { value_type: "text" },
224
187
  position: { value_type: "number" }
225
188
  }
189
+ },
190
+ unit_label: {
191
+ path: "unit_label",
192
+ value_type: "text",
193
+ strength: "optional",
194
+ writeback: { column: "unit_label" }
195
+ },
196
+ beds: {
197
+ path: "beds",
198
+ value_type: "number",
199
+ strength: "blocking",
200
+ writeback: { column: "beds" }
201
+ },
202
+ baths: {
203
+ path: "baths",
204
+ value_type: "number",
205
+ strength: "blocking",
206
+ writeback: { column: "baths" }
207
+ },
208
+ sqft: {
209
+ path: "sqft",
210
+ value_type: "number",
211
+ strength: "blocking",
212
+ writeback: { column: "sqft" }
213
+ },
214
+ price: {
215
+ path: "price",
216
+ value_type: "text",
217
+ strength: "blocking",
218
+ writeback: { column: "price" }
226
219
  }
227
220
  }
228
221
  },
@@ -234,64 +227,126 @@ const FACT_GRAPH = {
234
227
  input_group: "comparables",
235
228
  strength: "blocking",
236
229
  row: {
237
- id: { value_type: "text" },
230
+ id: {
231
+ path: "id",
232
+ value_type: "text"
233
+ },
238
234
  address_street: {
235
+ path: "address_street",
239
236
  value_type: "text",
240
237
  required: true
241
238
  },
242
- address_city: { value_type: "text" },
243
- address_state: { value_type: "text" },
244
- address_postal: { value_type: "text" },
245
- address: { value_type: "text" },
239
+ address_city: {
240
+ path: "address_city",
241
+ value_type: "text"
242
+ },
243
+ address_state: {
244
+ path: "address_state",
245
+ value_type: "text"
246
+ },
247
+ address_postal: {
248
+ path: "address_postal",
249
+ value_type: "text"
250
+ },
251
+ address: {
252
+ path: "address",
253
+ value_type: "text"
254
+ },
246
255
  lat: {
256
+ path: "lat",
247
257
  value_type: "number",
248
258
  required: true
249
259
  },
250
260
  lng: {
261
+ path: "lng",
251
262
  value_type: "number",
252
263
  required: true
253
264
  },
254
- distance_m: { value_type: "number" },
255
- status: { value_type: "text" },
265
+ distance_m: {
266
+ path: "distance_m",
267
+ value_type: "number"
268
+ },
269
+ status: {
270
+ path: "status",
271
+ value_type: "text"
272
+ },
256
273
  price: {
274
+ path: "price",
257
275
  value_type: "number",
258
276
  required: true,
259
277
  writeback: { column: "price" }
260
278
  },
261
- price_period: { value_type: "text" },
279
+ price_period: {
280
+ path: "price_period",
281
+ value_type: "text"
282
+ },
262
283
  sale_date: {
284
+ path: "sale_date",
263
285
  value_type: "text",
264
286
  writeback: { column: "sale_date" }
265
287
  },
266
288
  beds: {
289
+ path: "beds",
267
290
  value_type: "number",
268
291
  required: true,
269
292
  writeback: { column: "beds" }
270
293
  },
271
294
  baths: {
295
+ path: "baths",
272
296
  value_type: "number",
273
297
  required: true,
274
298
  writeback: { column: "baths" }
275
299
  },
276
300
  sqft: {
301
+ path: "sqft",
277
302
  value_type: "number",
278
303
  required: true,
279
304
  writeback: { column: "sqft" }
280
305
  },
281
- photo_url: { value_type: "text" },
282
- source_url: { value_type: "text" },
283
- source_name: { value_type: "text" },
284
- year_built: { value_type: "number" },
285
- lot_sqft: { value_type: "number" },
286
- stories: { value_type: "number" },
287
- units: { value_type: "number" },
288
- hoa_monthly: { value_type: "number" },
289
- days_on_market: { value_type: "number" },
290
- list_price: { value_type: "number" },
291
- listed_date: { value_type: "text" },
292
- mls_number: { value_type: "text" },
293
- description: { value_type: "text" },
294
- property_type: { value_type: "text" }
306
+ photo: {
307
+ path: "photo_upload_id",
308
+ value_type: "image"
309
+ },
310
+ year_built: {
311
+ path: "year_built",
312
+ value_type: "number"
313
+ },
314
+ lot_sqft: {
315
+ path: "lot_sqft",
316
+ value_type: "number"
317
+ },
318
+ stories: {
319
+ path: "stories",
320
+ value_type: "number"
321
+ },
322
+ units: {
323
+ path: "units",
324
+ value_type: "number"
325
+ },
326
+ hoa_monthly: {
327
+ path: "hoa_monthly",
328
+ value_type: "number"
329
+ },
330
+ list_price: {
331
+ path: "list_price",
332
+ value_type: "number"
333
+ },
334
+ listed_date: {
335
+ path: "listed_date",
336
+ value_type: "text"
337
+ },
338
+ mls_number: {
339
+ path: "mls_number",
340
+ value_type: "text"
341
+ },
342
+ description: {
343
+ path: "description",
344
+ value_type: "text"
345
+ },
346
+ property_type: {
347
+ path: "property_type",
348
+ value_type: "text"
349
+ }
295
350
  }
296
351
  },
297
352
  contacts: {
@@ -302,196 +357,108 @@ const FACT_GRAPH = {
302
357
  input_group: "contacts",
303
358
  strength: "blocking",
304
359
  row: {
305
- id: { value_type: "text" },
306
- primary: { value_type: "boolean" },
307
- name: { value_type: "text" },
308
- title: { value_type: "text" },
309
- org_name: { value_type: "text" },
310
- bio: { value_type: "text" },
311
- email: { value_type: "text" },
312
- phone: { value_type: "text" },
313
- address: { value_type: "text" },
314
- website_url: { value_type: "text" },
315
- avatar_upload_id: { value_type: "text" },
316
- logo_dark_upload_id: { value_type: "text" },
317
- logo_light_upload_id: { value_type: "text" },
318
- instagram_url: { value_type: "text" },
319
- linkedin_url: { value_type: "text" },
320
- x_url: { value_type: "text" },
321
- facebook_url: { value_type: "text" }
322
- }
323
- },
324
- name: {
325
- role: "bindable",
326
- path: "contacts[].name",
327
- container: "contact",
328
- value_type: "text",
329
- input_group: "contacts",
330
- strength: "optional",
331
- writeback: {
332
- kind: "contact",
333
- field: "name"
334
- }
335
- },
336
- title: {
337
- role: "bindable",
338
- path: "contacts[].title",
339
- container: "contact",
340
- value_type: "text",
341
- input_group: "contacts",
342
- strength: "optional",
343
- writeback: {
344
- kind: "contact",
345
- field: "title"
346
- }
347
- },
348
- org_name: {
349
- role: "bindable",
350
- path: "contacts[].org_name",
351
- container: "contact",
352
- value_type: "text",
353
- input_group: "contacts",
354
- strength: "optional",
355
- writeback: {
356
- kind: "contact",
357
- field: "org_name"
358
- }
359
- },
360
- bio: {
361
- role: "bindable",
362
- path: "contacts[].bio",
363
- container: "contact",
364
- value_type: "text",
365
- input_group: "contacts",
366
- strength: "optional",
367
- writeback: {
368
- kind: "contact",
369
- field: "bio"
370
- }
371
- },
372
- contact_address: {
373
- role: "bindable",
374
- path: "contacts[].address",
375
- container: "contact",
376
- value_type: "text",
377
- input_group: "contacts",
378
- strength: "optional",
379
- writeback: {
380
- kind: "contact",
381
- field: "address"
382
- }
383
- },
384
- email: {
385
- role: "bindable",
386
- path: "contacts[].email",
387
- container: "contact",
388
- value_type: "text",
389
- input_group: "contacts",
390
- strength: "optional",
391
- writeback: {
392
- kind: "contact",
393
- field: "email"
394
- }
395
- },
396
- phone: {
397
- role: "bindable",
398
- path: "contacts[].phone",
399
- container: "contact",
400
- value_type: "text",
401
- input_group: "contacts",
402
- strength: "optional",
403
- writeback: {
404
- kind: "contact",
405
- field: "phone"
406
- }
407
- },
408
- website: {
409
- role: "bindable",
410
- path: "contacts[].website_url",
411
- container: "contact",
412
- value_type: "text",
413
- input_group: "contacts",
414
- strength: "optional",
415
- writeback: {
416
- kind: "contact",
417
- field: "website"
418
- }
419
- },
420
- instagram: {
421
- role: "bindable",
422
- path: "contacts[].instagram_url",
423
- container: "contact",
424
- value_type: "text",
425
- input_group: "contacts",
426
- strength: "optional",
427
- writeback: {
428
- kind: "contact",
429
- field: "socials.instagram"
430
- }
431
- },
432
- linkedin: {
433
- role: "bindable",
434
- path: "contacts[].linkedin_url",
435
- container: "contact",
436
- value_type: "text",
437
- input_group: "contacts",
438
- strength: "optional",
439
- writeback: {
440
- kind: "contact",
441
- field: "socials.linkedin"
442
- }
443
- },
444
- x: {
445
- role: "bindable",
446
- path: "contacts[].x_url",
447
- container: "contact",
448
- value_type: "text",
449
- input_group: "contacts",
450
- strength: "optional",
451
- writeback: {
452
- kind: "contact",
453
- field: "socials.x"
454
- }
455
- },
456
- facebook: {
457
- role: "bindable",
458
- path: "contacts[].facebook_url",
459
- container: "contact",
460
- value_type: "text",
461
- input_group: "contacts",
462
- strength: "optional",
463
- writeback: {
464
- kind: "contact",
465
- field: "socials.facebook"
360
+ id: {
361
+ path: "id",
362
+ value_type: "text"
363
+ },
364
+ primary: {
365
+ path: "primary",
366
+ value_type: "boolean"
367
+ },
368
+ name: {
369
+ path: "name",
370
+ value_type: "text",
371
+ strength: "optional",
372
+ writeback: { column: "name" }
373
+ },
374
+ title: {
375
+ path: "title",
376
+ value_type: "text",
377
+ strength: "optional",
378
+ writeback: { column: "title" }
379
+ },
380
+ org_name: {
381
+ path: "org_name",
382
+ value_type: "text",
383
+ strength: "optional",
384
+ writeback: { column: "org_name" }
385
+ },
386
+ bio: {
387
+ path: "bio",
388
+ value_type: "text",
389
+ strength: "optional",
390
+ writeback: { column: "bio" }
391
+ },
392
+ address: {
393
+ path: "address",
394
+ value_type: "text",
395
+ strength: "optional",
396
+ writeback: { column: "address" }
397
+ },
398
+ email: {
399
+ path: "email",
400
+ value_type: "text",
401
+ strength: "optional",
402
+ writeback: { column: "email" }
403
+ },
404
+ phone: {
405
+ path: "phone",
406
+ value_type: "text",
407
+ strength: "optional",
408
+ writeback: { column: "phone" }
409
+ },
410
+ website: {
411
+ path: "website_url",
412
+ value_type: "text",
413
+ strength: "optional",
414
+ writeback: { column: "website" }
415
+ },
416
+ instagram: {
417
+ path: "instagram_url",
418
+ value_type: "text",
419
+ strength: "optional",
420
+ writeback: { column: "socials.instagram" }
421
+ },
422
+ linkedin: {
423
+ path: "linkedin_url",
424
+ value_type: "text",
425
+ strength: "optional",
426
+ writeback: { column: "socials.linkedin" }
427
+ },
428
+ x: {
429
+ path: "x_url",
430
+ value_type: "text",
431
+ strength: "optional",
432
+ writeback: { column: "socials.x" }
433
+ },
434
+ facebook: {
435
+ path: "facebook_url",
436
+ value_type: "text",
437
+ strength: "optional",
438
+ writeback: { column: "socials.facebook" }
439
+ },
440
+ headshot: {
441
+ path: "avatar_upload_id",
442
+ value_type: "image",
443
+ strength: "optional",
444
+ pool: "library"
445
+ },
446
+ logo_dark: {
447
+ path: "logo_dark_upload_id",
448
+ value_type: "image",
449
+ strength: "optional",
450
+ pool: "library"
451
+ },
452
+ logo_light: {
453
+ path: "logo_light_upload_id",
454
+ value_type: "image",
455
+ strength: "optional",
456
+ pool: "library"
457
+ }
466
458
  }
467
- },
468
- headshot: {
469
- role: "bindable",
470
- path: "contacts[].avatar_upload_id",
471
- container: "contact",
472
- value_type: "image",
473
- input_group: "contacts",
474
- strength: "optional",
475
- image: true
476
- },
477
- logo_dark: {
478
- role: "bindable",
479
- path: "contacts[].logo_dark_upload_id",
480
- container: "contact",
481
- value_type: "image",
482
- input_group: "contacts",
483
- strength: "optional",
484
- image: true
485
- },
486
- logo_light: {
487
- role: "bindable",
488
- path: "contacts[].logo_light_upload_id",
489
- container: "contact",
490
- value_type: "image",
491
- input_group: "contacts",
492
- strength: "optional",
493
- image: true
494
- },
459
+ }
460
+ };
461
+ const READABLE_FACTS = {
495
462
  description: {
496
463
  role: "readable",
497
464
  path: "narrative.description",
@@ -595,13 +562,42 @@ const FACT_GRAPH = {
595
562
  primary_of: "contacts"
596
563
  }
597
564
  };
598
- const FACT_PROJECTIONS = {
599
- property: {
600
- latitude: "lat",
601
- longitude: "lon"
602
- },
603
- contact: { address: "contact_address" }
604
- };
565
+ function primaryRowFacts(container) {
566
+ const collection = COLLECTION_FACTS[READABLE_FACTS[container].primary_of];
567
+ const aliases = FACT_PROJECTIONS[container] ?? {};
568
+ const facts = {};
569
+ for (const [name, member] of Object.entries(collection.row)) {
570
+ if (member.strength === void 0) continue;
571
+ const fact = {
572
+ role: "bindable",
573
+ path: `${collection.path}[].${member.path}`,
574
+ container,
575
+ value_type: member.value_type,
576
+ input_group: collection.input_group,
577
+ strength: member.strength
578
+ };
579
+ if (member.value_type === "image") fact.image = true;
580
+ if (member.writeback !== void 0) fact.writeback = container === "unit" ? {
581
+ kind: "unit",
582
+ column: member.writeback.column
583
+ } : {
584
+ kind: "contact",
585
+ field: member.writeback.column
586
+ };
587
+ facts[aliases[name] ?? name] = fact;
588
+ }
589
+ return facts;
590
+ }
591
+ function composeFactGraph() {
592
+ return {
593
+ ...PROPERTY_ROOT_FACTS,
594
+ ...primaryRowFacts("unit"),
595
+ ...COLLECTION_FACTS,
596
+ ...primaryRowFacts("contact"),
597
+ ...READABLE_FACTS
598
+ };
599
+ }
600
+ const FACT_GRAPH = /* @__PURE__ */ composeFactGraph();
605
601
  function projectBindableFacts(graph) {
606
602
  const projected = {};
607
603
  for (const [name, entry] of Object.entries(graph)) {
@@ -781,4 +777,4 @@ function tourEmbedUrl(raw) {
781
777
  }
782
778
 
783
779
  //#endregion
784
- export { COLLECTIONS, COLLECTION_SLOT_TYPES, CONTENT_SLOT_TYPES, DISPLAY_ENTRIES, FACT_GRAPH, FACT_PROJECTIONS, INPUT_GROUPS, INPUT_GROUP_REQUIREMENT, LINK_KINDS, LINK_PROVIDERS, OPTION_SOURCES, REFERRAL_IMAGE_FIELDS, REF_SLOT_TYPES, SLOT_TYPES, SOURCE_FIELDS, SOURCE_FILTERS, VIDEO_SOURCES, VISIBILITY_CASES, acceptsLink, collectionBounds, collectionForSlot, isCollectionSlotType, isLinkAccepts, isOptionSource, isSourceFilter, isWritableSourceField, matchLinkProvider, stampCollectionBounds, tourEmbedUrl, videoEmbedUrl };
780
+ export { COLLECTIONS, COLLECTION_SLOT_TYPES, CONTENT_SLOT_TYPES, DISPLAY_ENTRIES, FACT_GRAPH, FACT_PROJECTIONS, INPUT_GROUPS, INPUT_GROUP_REQUIREMENT, LINK_KINDS, LINK_PROVIDERS, OPTION_SOURCES, REFERRAL_FIELDS, REFERRAL_IMAGE_FIELDS, REF_SLOT_TYPES, SLOT_TYPES, SOURCE_FIELDS, VIDEO_SOURCES, VISIBILITY_CASES, acceptsLink, collectionBounds, collectionForSlot, isCollectionSlotType, isLinkAccepts, isOptionSource, isWritableSourceField, matchLinkProvider, stampCollectionBounds, tourEmbedUrl, videoEmbedUrl };