@homepages/concrete 10.0.0 → 12.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 (121) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/codemods/manifest.json +7 -154
  3. package/dist/artifact/playground/client/assets/index-BcLGpWLR.js +1266 -0
  4. package/dist/artifact/playground/client/assets/index-CxWPYOH2.css +1 -0
  5. package/dist/artifact/playground/client/index.html +2 -2
  6. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
  7. package/dist/artifact/playground/host.mjs +39 -40
  8. package/dist/base.css +18 -65
  9. package/dist/cli/build/artifact.js +1 -1
  10. package/dist/cli/build/fixtures.js +3 -2
  11. package/dist/cli/capture/capture.js +8 -6
  12. package/dist/cli/check/stages/sections.js +1 -1
  13. package/dist/cli/dev/workspace-reader.js +4 -2
  14. package/dist/css/compile.js +3 -6
  15. package/dist/css/rules.js +1 -51
  16. package/dist/design-system/format-variants.js +1 -1
  17. package/dist/fixtures/resolve.js +5 -1
  18. package/dist/fixtures/rows.js +2 -2
  19. package/dist/index.d.ts +5 -5
  20. package/dist/packages/external/concrete/package.js +1 -1
  21. package/dist/packages/internal/fill-bake/dist/compute-reads.js +1 -1
  22. package/dist/packages/internal/fill-bake/dist/held-rows.js +2 -0
  23. package/dist/packages/internal/fill-bake/dist/index.js +1 -0
  24. package/dist/packages/internal/fill-vocabulary/dist/holder.js +3 -14
  25. package/dist/packages/internal/format-geometry/dist/capture.js +3 -11
  26. package/dist/packages/internal/format-geometry/dist/format.d.ts +2 -8
  27. package/dist/packages/internal/format-geometry/dist/geometry.js +2 -13
  28. package/dist/packages/internal/media-resolution/dist/document.js +3 -3
  29. package/dist/packages/internal/media-resolution/dist/image.js +3 -3
  30. package/dist/packages/internal/media-resolution/dist/tour.js +6 -6
  31. package/dist/packages/internal/media-resolution/dist/video.js +9 -9
  32. package/dist/packages/internal/section-contracts/dist/fill-verb-contract.js +1 -0
  33. package/dist/packages/internal/section-contracts/dist/runners.js +1 -3
  34. package/dist/packages/internal/section-contracts/dist/source-contract.js +3 -3
  35. package/dist/packages/internal/section-contracts/dist/sources-contract.js +0 -2
  36. package/dist/packages/internal/template-artifact/dist/index.js +2 -2
  37. package/dist/packages/internal/template-artifact/dist/layout.js +11 -11
  38. package/dist/packages/internal/template-artifact/dist/manifest.js +1 -1
  39. package/dist/packages/internal/template-artifact/dist/verify.js +13 -17
  40. package/dist/packages/internal/template-contracts/dist/document-value.d.ts +3 -5
  41. package/dist/packages/internal/template-contracts/dist/fact-registry.js +1 -1
  42. package/dist/packages/internal/template-contracts/dist/fill-builders.js +2 -6
  43. package/dist/packages/internal/template-contracts/dist/fill-spec-schema.js +4 -1
  44. package/dist/packages/internal/template-contracts/dist/list.js +0 -14
  45. package/dist/packages/internal/template-contracts/dist/primitive-descriptors.js +1 -1
  46. package/dist/packages/internal/template-contracts/dist/runtime-values.d.ts +6 -7
  47. package/dist/packages/internal/template-contracts/dist/slot-builders.js +0 -2
  48. package/dist/packages/internal/template-contracts/dist/slot-ref.d.ts +6 -1
  49. package/dist/packages/internal/template-contracts/dist/tour-value.d.ts +2 -4
  50. package/dist/packages/internal/template-contracts/dist/video-value.d.ts +3 -4
  51. package/dist/primitives/FrameShell.d.ts +5 -2
  52. package/dist/primitives/FrameShell.js +2 -1
  53. package/dist/primitives/Image.d.ts +2 -2
  54. package/dist/primitives/Tour.d.ts +2 -2
  55. package/dist/primitives/Video.d.ts +2 -2
  56. package/dist/primitives/slot-bindings.js +6 -13
  57. package/dist/primitives/slot-document.d.ts +1 -1
  58. package/dist/primitives/slot-download.d.ts +3 -1
  59. package/dist/primitives/slot-media.d.ts +5 -2
  60. package/dist/primitives/slot-media.js +1 -1
  61. package/dist/rules/registry.js +1 -7
  62. package/dist/schema/format-presets.d.ts +1 -1
  63. package/dist/schema/format.d.ts +0 -1
  64. package/dist/schema/format.js +1 -2
  65. package/dist/schema/manifest.js +18 -24
  66. package/dist/schema/section-schema.d.ts +5 -5
  67. package/dist/site-analytics.js +6 -1
  68. package/dist/site-runtime/window-height.js +19 -0
  69. package/dist/styles.css +4 -4
  70. package/dist/template/define-template.d.ts +11 -0
  71. package/dist/template/define-template.js +1 -1
  72. package/dist/template/materialize.js +2 -0
  73. package/guide/reference/cli/INDEX.md +2 -2
  74. package/guide/reference/cli/build.md +1 -1
  75. package/guide/reference/cli/check.md +1 -1
  76. package/guide/reference/cli/dev.md +1 -1
  77. package/guide/reference/cli/property-add.md +1 -1
  78. package/guide/reference/cli/property-list.md +1 -1
  79. package/guide/reference/cli/publish.md +1 -1
  80. package/guide/reference/cli/upgrade.md +1 -1
  81. package/guide/reference/rules/INDEX.md +2 -3
  82. package/package.json +2 -2
  83. package/codemods/fill-is-a-source.mjs +0 -533
  84. package/codemods/framework-namespace.mjs +0 -107
  85. package/codemods/list-grammar.mjs +0 -923
  86. package/codemods/object-form-only.mjs +0 -39
  87. package/codemods/platform-namespace.mjs +0 -83
  88. package/codemods/process-builders.mjs +0 -198
  89. package/codemods/reads-replace-reconcile.mjs +0 -285
  90. package/codemods/registry-keys-only.mjs +0 -113
  91. package/codemods/slot-object.mjs +0 -1097
  92. package/codemods/steps/content-object-fields.mjs +0 -324
  93. package/codemods/steps/list-object-form.mjs +0 -686
  94. package/codemods/steps/registry-key-reads.mjs +0 -276
  95. package/codemods/steps/select-object-form.mjs +0 -210
  96. package/codemods/table-rows.mjs +0 -568
  97. package/codemods/theme-collapse.mjs +0 -396
  98. package/codemods/unlayer-author-css.mjs +0 -194
  99. package/codemods/unwrap-object-fields.mjs +0 -310
  100. package/codemods/viewer-slot-document.mjs +0 -131
  101. package/codemods/write-property-as-facts-document.mjs +0 -716
  102. package/codemods/write-the-address-line.mjs +0 -255
  103. package/codemods/write-the-registry-members.mjs +0 -653
  104. package/codemods/write-the-select-from.mjs +0 -141
  105. package/codemods/write-the-sole-from.mjs +0 -369
  106. package/codemods/write-the-table-from.mjs +0 -267
  107. package/codemods/write-the-whole-item.mjs +0 -512
  108. package/codemods/writeback-drop.mjs +0 -168
  109. package/codemods/written-contact-address.mjs +0 -162
  110. package/codemods/written-media-category.mjs +0 -227
  111. package/codemods/written-ref-kinds-name-the-layer.mjs +0 -172
  112. package/codemods/written-uploads-replace-pool-reads.mjs +0 -454
  113. package/codemods/written-uploads-sort-into-lists.mjs +0 -405
  114. package/codemods/written-uploads-stated-in-sorted-lists.mjs +0 -295
  115. package/codemods/written-video-sources-drop.mjs +0 -144
  116. package/codemods/written-without-pick-none.mjs +0 -146
  117. package/codemods/written-without-retired-knowledge.mjs +0 -223
  118. package/codemods/written-without-the-media-key.mjs +0 -202
  119. package/codemods/written-without-the-property-type.mjs +0 -249
  120. package/dist/artifact/playground/client/assets/index-BFNHB7VM.css +0 -1
  121. package/dist/artifact/playground/client/assets/index-Div1yo6s.js +0 -1259
package/dist/base.css CHANGED
@@ -13,20 +13,11 @@
13
13
  * layered outright. That is stock Tailwind v4 and it is the whole model —
14
14
  * what you write is what applies. If you want a utility to win over a rule of
15
15
  * yours, put that rule in Tailwind's own `@layer components`.
16
- *
17
- * `sections` and `template` used to sit here, between `components` and
18
- * `utilities`, and the old kit's build folded every section's hand-CSS into
19
- * them. A declaration there lost to any utility setting the same property on
20
- * the same element, however specific its selector — silently, and only on the
21
- * published page, because the dev server served the same CSS unlayered. That
22
- * shipped defects to live customers twice before anyone went looking. The
23
- * layers are gone; `check` refuses author CSS that declares them.
16
+
24
17
  * - The three reset gaps Tailwind's preflight leaves (below)
25
18
  * - The section box model (.concrete-section, emitted by the <Section> primitive)
26
19
  * - The frame shell's static half (.concrete-frame, emitted by the <FrameShell> primitive)
27
20
  * and the window witness that holds every host to the geometry it owes that shell
28
- * - A folded print's sheet (.concrete-sheet): the panels' frames side by side, the
29
- * window contract moved up to the sheet
30
21
  * - The <Image>/<Video>/<Tour> box's geometry default (.concrete-image-block), layered so
31
22
  * an author's own width utility beats it
32
23
  * - The <Image>/<Video> frame's placeholder fill (.concrete-image-frame)
@@ -130,32 +121,7 @@
130
121
  * extended symmetrically by the bleed. */
131
122
  --concrete-frame-window-w: calc(var(--frame-w) + 2 * var(--frame-bleed));
132
123
  --concrete-frame-window-h: calc(var(--frame-h) + 2 * var(--frame-bleed));
133
- }
134
-
135
- /* A folded print's sheet: `panels` consecutive page frames side by side on one
136
- * printed sheet side. Like `.concrete-frame`, the class is derived in
137
- * `@homepages/format-geometry` (SHEET_ROOT_CLASS) and only styled here; only a
138
- * print document's assembler emits it, so the canvas and every lone frame never
139
- * see one.
140
- *
141
- * The sheet takes over the frame's window contract: in a print document the
142
- * sheet is the window and the paper, so it fills the window, clips at its edge,
143
- * and the witness measures the window against the sheet's bleed box — the
144
- * panels' trim widths side by side, extended by the bleed on the sheet's outer
145
- * edges only. */
146
- .concrete-sheet {
147
- position: relative;
148
- width: 100vw;
149
- height: 100vh;
150
- overflow: clip;
151
- display: flex;
152
124
 
153
- --concrete-frame-window-w: calc(var(--sheet-w) + 2 * var(--frame-bleed));
154
- --concrete-frame-window-h: calc(var(--sheet-h) + 2 * var(--frame-bleed));
155
- }
156
-
157
- .concrete-frame,
158
- .concrete-sheet {
159
125
  /* 1 when the real window misses the owed one on either axis, 0 when it does not.
160
126
  * max(d, -d) is an absolute difference and `/ 1px` makes it a plain number. The
161
127
  * -1 is the tolerance: a browser window is whole CSS px while a physical format's
@@ -186,8 +152,7 @@
186
152
  * pixels and identical layout to one with no witness at all. On a mismatch it covers
187
153
  * the artifact and names both geometries, because a frame measured against the wrong
188
154
  * box is not a preview of anything and must not read as one. */
189
- .concrete-frame::after,
190
- .concrete-sheet::after {
155
+ .concrete-frame::after {
191
156
  counter-reset:
192
157
  concrete-frame-owed-w calc(var(--concrete-frame-window-w) / 1px)
193
158
  concrete-frame-owed-h calc(var(--concrete-frame-window-h) / 1px)
@@ -219,33 +184,12 @@
219
184
  flex-shrink: 0;
220
185
  }
221
186
 
222
- /* A page frame inside a sheet is a panel. It is sized from its own tokens — its
223
- * full bleed box, never the window, which is the sheet's — and laid at panel
224
- * pitch: each frame overlaps the next by both bleeds, so panel N's trim starts
225
- * N trim widths in. Nothing crosses a fold: every panel paints to the bleed on
226
- * all four sides, and the clip keeps only its trim plus its OUTER bleed — the
227
- * first panel its left, the last its right, every panel its top and bottom.
228
- * The window witness is the sheet's alone; a panel measuring 100vw against its
229
- * own box would always cry mismatch. */
230
- .concrete-sheet > .concrete-frame {
231
- flex-shrink: 0;
232
- width: calc(var(--frame-w) + 2 * var(--frame-bleed));
233
- height: calc(var(--frame-h) + 2 * var(--frame-bleed));
234
- margin-right: calc(-2 * var(--frame-bleed));
235
- clip-path: inset(0 var(--frame-bleed));
236
- }
237
-
238
- .concrete-sheet > .concrete-frame:first-child {
239
- clip-path: inset(0 var(--frame-bleed) 0 0);
240
- }
241
-
242
- .concrete-sheet > .concrete-frame:last-child {
243
- margin-right: 0;
244
- clip-path: inset(0 0 0 var(--frame-bleed));
245
- }
246
-
247
- .concrete-sheet > .concrete-frame::after {
248
- content: none;
187
+ /* A row page (`direction: "row"`, stamped `data-direction` by every host) lays its
188
+ * sections side by side: a folded piece's printed side, one section per panel. The
189
+ * rule above still holds on the main axis, so an over-wide row overflows measurably;
190
+ * each section sets its own width, and the cross axis stretches it the frame tall. */
191
+ .concrete-frame[data-direction="row"] {
192
+ flex-direction: row;
249
193
  }
250
194
 
251
195
  /* The geometry DEFAULT of every <Image>/<Video>/<Tour> box — the unframed element
@@ -303,6 +247,15 @@
303
247
  * token as the screen its card stands for — a constant, so one pass settles it
304
248
  * — and a box sized from the window therefore writes ONE thing and is honest on
305
249
  * both surfaces. Spell it as a floor (`min-height`), never a fixed height, so
306
- * content taller than a screen still grows the box instead of overflowing it. */
250
+ * content taller than a screen still grows the box instead of overflowing it.
251
+ *
252
+ * On a published page the site runtime (site-runtime/window-height.ts) pins this
253
+ * to the height measured at load, in px, and measures again only when the width
254
+ * changes. `100svh` is meant to hold still while a browser's toolbars collapse,
255
+ * but an embedder that never declares its toolbars to the engine (Chrome on iOS,
256
+ * an in-app browser) lets it follow them like `100dvh`, and every box sized from
257
+ * it then resizes under the visitor's finger mid-scroll, jumping all content
258
+ * below. The declaration here is what a page shows before that script runs and
259
+ * what a no-script reader keeps. */
307
260
  --concrete-window-h: 100svh;
308
261
  }
@@ -175,7 +175,7 @@ async function buildArtifact(options) {
175
175
  for (const key of builtByKey.keys()) sectionHashes.set(key, sectionContentHash(files, key));
176
176
  const sourceFiles = await collectSourceFiles(root, [out]);
177
177
  const artifactManifest = ArtifactManifest.parse({
178
- artifact_schema: 3,
178
+ artifact_schema: 4,
179
179
  framework_version: CONCRETE_CLI_VERSION,
180
180
  key: template.key,
181
181
  display_name: template.name,
@@ -1,7 +1,8 @@
1
- import { ASSET_URL_PREFIX, FIXTURE_FILES, FIXTURE_OPTIONAL_FILES, fixturePath, isFixtureId } from "../../packages/internal/template-artifact/dist/layout.js";
1
+ import { ASSET_URL_PREFIX, FIXTURE_FILES, fixturePath, isFixtureId } from "../../packages/internal/template-artifact/dist/layout.js";
2
2
  import "../../packages/internal/template-artifact/dist/index.js";
3
3
  import { assetContentType } from "../../packages/internal/template-artifact/dist/asset-mime.js";
4
4
  import { mediaUrl } from "../../fixtures/property.js";
5
+ import { authoredSettled } from "../../fixtures/resolve.js";
5
6
  import { basename } from "node:path";
6
7
  import { readFile } from "node:fs/promises";
7
8
 
@@ -70,7 +71,7 @@ async function fixtureFiles(input) {
70
71
  };
71
72
  }
72
73
  files.set(fixturePath(fixture.id, FIXTURE_FILES.contentDoc), json(fixture.contentDoc));
73
- if (fixture.settled !== void 0) files.set(fixturePath(fixture.id, FIXTURE_OPTIONAL_FILES.settledDoc), json({ instances: fixture.settled }));
74
+ files.set(fixturePath(fixture.id, FIXTURE_FILES.settledDoc), json({ instances: authoredSettled(fixture) }));
74
75
  files.set(fixturePath(fixture.id, FIXTURE_FILES.property), json({
75
76
  facts: rewriteUrls(fixture.facts, urls),
76
77
  media
@@ -1,4 +1,4 @@
1
- import { captureViewport, printPageSize, printViewport } from "../../packages/internal/format-geometry/dist/capture.js";
1
+ import { captureViewport, printPageSize } from "../../packages/internal/format-geometry/dist/capture.js";
2
2
  import { CAPTURE_WAIT_UNTIL, settleCapture } from "../../packages/internal/capture-settle/dist/settle.js";
3
3
  import "../../packages/internal/capture-settle/dist/index.js";
4
4
  import { bundlePages } from "./bundle.js";
@@ -48,8 +48,10 @@ function createCapturer(options) {
48
48
  throw new CaptureUnavailableError(`chromium is not available — run: npx playwright install chromium\n(${err instanceof Error ? err.message : String(err)})`);
49
49
  }
50
50
  }));
51
- const withPage = async (viewport, run) => {
52
- const page = await (await pool.acquire()).newPage({
51
+ const withPage = async (format, run) => {
52
+ const browser = await pool.acquire();
53
+ const viewport = captureViewport(format);
54
+ const page = await browser.newPage({
53
55
  viewport: {
54
56
  width: viewport.width,
55
57
  height: viewport.height
@@ -68,8 +70,8 @@ function createCapturer(options) {
68
70
  return new Uint8Array(await page.screenshot({ fullPage: false }));
69
71
  };
70
72
  return {
71
- screenshot: (url, format) => withPage(captureViewport(format), (page) => shoot(page, url)),
72
- bundle: (entries, format) => withPage(captureViewport(format), async (page) => {
73
+ screenshot: (url, format) => withPage(format, (page) => shoot(page, url)),
74
+ bundle: (entries, format) => withPage(format, async (page) => {
73
75
  const members = [];
74
76
  for (const entry of entries) members.push({
75
77
  name: entry.name,
@@ -77,7 +79,7 @@ function createCapturer(options) {
77
79
  });
78
80
  return new Uint8Array(bundlePages(members));
79
81
  }),
80
- print: (url, format) => withPage(printViewport(format), async (page) => {
82
+ print: (url, format) => withPage(format, async (page) => {
81
83
  await page.emulateMedia({ media: "screen" });
82
84
  await page.goto(url, { waitUntil: CAPTURE_WAIT_UNTIL });
83
85
  await settleCapture(settleHost(page));
@@ -16,6 +16,7 @@ function flatten(parsed, key) {
16
16
  const { meta, ...rest } = parsed;
17
17
  return {
18
18
  ...rest,
19
+ slot_order: Object.keys(rest.slots),
19
20
  anchor: meta.anchor ?? key,
20
21
  ...meta.display ? { display: meta.display } : {}
21
22
  };
@@ -92,7 +93,6 @@ function sectionsStage(ctx) {
92
93
  const materialized = materializeSection(section);
93
94
  try {
94
95
  const parsed = SectionSchema.parse(materialized);
95
- parsed.slot_order = Object.keys(parsed.slots);
96
96
  for (const slot of Object.values(parsed.slots)) {
97
97
  if (slot.type === "object") stampItemOrder(slot);
98
98
  if (slot.type === "list" && slot.element?.type === "object") stampItemOrder(slot.element);
@@ -4,7 +4,7 @@ import "../../packages/internal/template-contracts/dist/table-members.js";
4
4
  import { compileTemplateCss } from "../../css/compile.js";
5
5
  import { materializeTemplate } from "../../template/materialize.js";
6
6
  import { loadFixtures } from "../../fixtures/load.js";
7
- import { computeReadsSectionOf, resolveFixture } from "../../fixtures/resolve.js";
7
+ import { authoredSettled, computeReadsSectionOf, resolveFixture } from "../../fixtures/resolve.js";
8
8
  import { materializeSection } from "../../section/materialize.js";
9
9
  import { loadTemplateModule } from "./load-template.js";
10
10
  import { createElement } from "react";
@@ -52,7 +52,7 @@ function hostFixture(fixture, sizeOf) {
52
52
  facts: fixture.facts,
53
53
  media,
54
54
  instances: fixture.contentDoc.instances,
55
- ...fixture.settled === void 0 ? {} : { settled: fixture.settled },
55
+ settled: authoredSettled(fixture),
56
56
  provenance: fixture.provenance
57
57
  };
58
58
  }
@@ -158,6 +158,7 @@ var DevWorkspace = class {
158
158
  id: page.id,
159
159
  label: page.label,
160
160
  ..."path" in page && typeof page.path === "string" ? { path: page.path } : {},
161
+ ..."direction" in page ? { direction: page.direction } : {},
161
162
  sections: page.sections.map((s) => ({
162
163
  instanceId: s.instance_id,
163
164
  section: s.section
@@ -183,6 +184,7 @@ var DevWorkspace = class {
183
184
  return Promise.resolve({
184
185
  map: islands.map,
185
186
  canvasHost: islands.canvasHost,
187
+ importMap: {},
186
188
  documentLoader: islands.previewHost === null || Object.keys(islands.map).length === 0 ? { kind: "none" } : {
187
189
  kind: "viteModules",
188
190
  islandMap: islands.map,
@@ -3,7 +3,7 @@ import { NON_SOURCE_DIRS } from "../cli/workspace.js";
3
3
  import { compileFormatVariantsToCss } from "../design-system/format-variants.js";
4
4
  import { collectCssGraph } from "./graph.js";
5
5
  import { inlineCssGraph } from "./inline.js";
6
- import { externalUrlViolations, retiredLayerViolations, tailwindImportViolations } from "./rules.js";
6
+ import { externalUrlViolations, tailwindImportViolations } from "./rules.js";
7
7
  import { readFileSync } from "node:fs";
8
8
  import { dirname, isAbsolute, join } from "node:path";
9
9
  import { createHash } from "node:crypto";
@@ -69,15 +69,12 @@ async function compileTemplateCss(input) {
69
69
  violations: importViolations
70
70
  };
71
71
  const css = await compileTailwind(input.root, buildTailwindEntry(inlined.css, input.template), input.exclude ?? []);
72
- const violations = [...await retiredLayerViolations({
73
- root: input.root,
74
- sources: graph
75
- }), ...input.template.output === "website" ? [] : await externalUrlViolations({
72
+ const violations = input.template.output === "website" ? [] : await externalUrlViolations({
76
73
  root: input.root,
77
74
  templateFile: input.templateFile,
78
75
  css,
79
76
  sources: graph
80
- })];
77
+ });
81
78
  const bytes = new TextEncoder().encode(css);
82
79
  const contentHash = createHash("sha256").update(bytes).digest("hex");
83
80
  return {
package/dist/css/rules.js CHANGED
@@ -15,56 +15,6 @@ function tailwindImportViolations(input) {
15
15
  message: `a second @import "tailwindcss" (the first is in ${first}). The import graph owns exactly one; remove this one.`
16
16
  }));
17
17
  }
18
- const RETIRED_LAYERS = /* @__PURE__ */ new Set(["sections", "template"]);
19
- function maskNonCode(css) {
20
- const out = [...css];
21
- const blank = (from, to) => {
22
- for (let k = from; k < Math.min(to, css.length); k += 1) if (out[k] !== "\n") out[k] = " ";
23
- };
24
- for (let i = 0; i < css.length;) if (css[i] === "/" && css[i + 1] === "*") {
25
- const end = css.indexOf("*/", i + 2);
26
- const stop = end === -1 ? css.length : end + 2;
27
- blank(i, stop);
28
- i = stop;
29
- } else if (css[i] === "\"" || css[i] === "'") {
30
- const quote = css[i];
31
- let k = i + 1;
32
- while (k < css.length && css[k] !== quote) k += css[k] === "\\" ? 2 : 1;
33
- blank(i, k + 1);
34
- i = k + 1;
35
- } else i += 1;
36
- return out.join("");
37
- }
38
- const AT_LAYER_RE = /@layer\s+([^;{]+)[;{]/gi;
39
- const LAYER_FN_RE = /\blayer\(\s*([^)]*?)\s*\)/gi;
40
- function declaredLayerRoots(css) {
41
- const source = maskNonCode(css);
42
- const roots = [];
43
- for (const re of [AT_LAYER_RE, LAYER_FN_RE]) {
44
- re.lastIndex = 0;
45
- for (let m = re.exec(source); m !== null; m = re.exec(source)) for (const name of (m[1] ?? "").split(",")) {
46
- const root = name.trim().split(".")[0]?.trim();
47
- if (root !== void 0 && root !== "") roots.push(root);
48
- }
49
- }
50
- return roots;
51
- }
52
- async function retiredLayerViolations(input) {
53
- const violations = [];
54
- for (const file of input.sources) {
55
- const seen = /* @__PURE__ */ new Set();
56
- for (const layer of declaredLayerRoots(await readFile(file, "utf8"))) {
57
- if (!RETIRED_LAYERS.has(layer) || seen.has(layer)) continue;
58
- seen.add(layer);
59
- violations.push({
60
- rule: "css/retired-layer",
61
- file: workspacePath(input.root, file),
62
- message: `declares @layer ${layer}, which @homepages/concrete retired. Your CSS is not layered: delete the wrapper and a plain rule outranks every utility setting the same property. To demote someone else's stylesheet instead, import it into a layer of your own naming — @import "pkg/x.css" layer(components).`
63
- });
64
- }
65
- }
66
- return violations;
67
- }
68
18
  const EXTERNAL_RE = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
69
19
  const INLINE_RE = /^data:/i;
70
20
  const URL_FUNCTION_RE = /url\(\s*(['"]?)([^'")\s]+)\1\s*\)/gi;
@@ -96,4 +46,4 @@ async function externalUrlViolations(input) {
96
46
  }
97
47
 
98
48
  //#endregion
99
- export { declaredLayerRoots, externalUrlViolations, findExternalUrls, retiredLayerViolations, tailwindImportViolations };
49
+ export { externalUrlViolations, findExternalUrls, tailwindImportViolations };
@@ -89,7 +89,7 @@ const RESERVED_FORMAT_VARIANT_NAMES = /* @__PURE__ */ new Set([
89
89
  ]);
90
90
  function formatVariantNameError(id) {
91
91
  if (!VARIANT_NAME_RE.test(id)) return `Format id "${id}" cannot become a Tailwind variant: ids are kebab-case — [a-z0-9] groups separated by single hyphens.`;
92
- if (RESERVED_FORMAT_VARIANT_NAMES.has(id)) return `Format id "${id}" shadows a reserved Tailwind variant name; pick an id that is not a kit breakpoint or Tailwind built-in.`;
92
+ if (RESERVED_FORMAT_VARIANT_NAMES.has(id)) return `Format id "${id}" shadows a reserved Tailwind variant name; pick an id that is not a Concrete breakpoint or Tailwind built-in.`;
93
93
  return null;
94
94
  }
95
95
  function compileFormatVariantsToCss(formats) {
@@ -15,6 +15,10 @@ import { canonicalizeProperty, contactImageId } from "./property.js";
15
15
  import { blankForField } from "./rows.js";
16
16
 
17
17
  //#region src/fixtures/resolve.ts
18
+ function authoredSettled(fixture) {
19
+ if (fixture.settled === void 0) throw new Error(`Fixture "${fixture.id}" is synthesized: it carries no settled doc, and no playground serves it.`);
20
+ return fixture.settled;
21
+ }
18
22
  const VALIDATED_KINDS = {
19
23
  date: {
20
24
  admits: (value) => value === null || isIsoDateValue(value),
@@ -385,4 +389,4 @@ function mediaRef(def, value, ctx) {
385
389
  }
386
390
 
387
391
  //#endregion
388
- export { computeReadsSectionOf, emptyValueFor, isEmptyValue, resolveFixture, uniquePlacements };
392
+ export { authoredSettled, computeReadsSectionOf, emptyValueFor, isEmptyValue, resolveFixture, uniquePlacements };
@@ -7,13 +7,13 @@ function blankForField(def) {
7
7
  case "email":
8
8
  case "phone": return "";
9
9
  case "video": return {
10
- video_id: "",
10
+ id: "",
11
11
  url: "",
12
12
  poster: "",
13
13
  alt: ""
14
14
  };
15
15
  case "tour": return {
16
- tour_id: "",
16
+ id: "",
17
17
  url: "",
18
18
  poster: "",
19
19
  alt: ""
package/dist/index.d.ts CHANGED
@@ -3,11 +3,11 @@ import { ATTR_ISLAND_FRAMELESS, ATTR_ISLAND_ID, ATTR_ISLAND_PROPS, EDITOR_BRIDGE
3
3
  import "./asset-modules.js";
4
4
  import { AddressValue } from "./packages/internal/template-contracts/dist/address-value.js";
5
5
  import { ResponsiveImage, ResponsiveSource } from "./packages/internal/template-contracts/dist/responsive-image.js";
6
- import { DocumentCollectionValue, DocumentValue } from "./packages/internal/template-contracts/dist/document-value.js";
7
- import { TourCollectionValue, TourValue } from "./packages/internal/template-contracts/dist/tour-value.js";
8
- import { VideoCollectionValue, VideoValue } from "./packages/internal/template-contracts/dist/video-value.js";
6
+ import { DocumentValue } from "./packages/internal/template-contracts/dist/document-value.js";
7
+ import { TourValue } from "./packages/internal/template-contracts/dist/tour-value.js";
8
+ import { VideoValue } from "./packages/internal/template-contracts/dist/video-value.js";
9
9
  import { PoiPhoto, PoiRow } from "./packages/internal/template-contracts/dist/poi-row.js";
10
- import { AuthorImage, ImageCollectionValue, ImageValue, MediaValue, PlaybackConfig } from "./packages/internal/template-contracts/dist/runtime-values.js";
10
+ import { AuthorImage, ImageValue, MediaValue, PlaybackConfig } from "./packages/internal/template-contracts/dist/runtime-values.js";
11
11
  import { ComputeBinding, compute } from "./packages/internal/template-contracts/dist/compute.js";
12
12
  import { AddressMembers, ElementOf, RowId, TableRow } from "./packages/internal/template-contracts/dist/row-ref.js";
13
13
  import { ItemIdentity, ObjectValue, SlotValue } from "./packages/internal/template-contracts/dist/slot-value.js";
@@ -58,4 +58,4 @@ import { a4Landscape, a4Portrait, deck16x9, facebookPost, halfLetterFlyer, insta
58
58
  */
59
59
  declare const CONCRETE_VERSION: string;
60
60
  //#endregion
61
- export { ATTR_ISLAND_FRAMELESS, ATTR_ISLAND_ID, ATTR_ISLAND_KEY, ATTR_ISLAND_PROPS, ATTR_SECTION_INSTANCE_ID, ATTR_SLOT_FIELD, ATTR_SLOT_GROUP, ATTR_SLOT_ID, ATTR_SLOT_ITEM, ATTR_SLOT_TEXT_LEAF, ATTR_SLOT_UNSELECTABLE, ATTR_TR_ENHANCE, type AddressMembers, type AddressSlot, type AddressSlotDef, type AddressValue, type AuthorImage, type AutocropInput, type AutocropProcess, type BoundSlotValue, CONCRETE_VERSION, type CanvasInput, type CanvasesInput, type ComputeBinding, type Coordinates, type CropConfig, type CutoutProcess, type DateSlot, type DateSlotDef, type DefineTemplateInput, type DerivedFactRef, type DisplayEntryInput, type DisplayFill, type DocumentCollectionValue, type DocumentFormat, type DocumentMedia, type DocumentSlot, type DocumentSlotDef, type DocumentValue, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, EditorBridge, EditorBridgeSelection, EditorSelection, type ElementOf, type ElementRef, type EmailSlot, type EmailSlotDef, type FactNamespace, type FactsCommercialSpace, type FactsComparable, type FactsContact, type FactsUnit, type FieldBinding, type FieldBindings, type FillBinding, type FillVerb, type FindFill, type FindInput, type FormatIdentity, FrameShell, type HolderProcess, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, type IconName, Image, type ImageCollectionValue, type ImageFormat, type ImageMedia, type ImageSlot, type ImageSlotDef, type ImageValue, IslandComponent, IslandEditor, IslandEditorOptions, IslandMarker, type IslandMarkerProps, IslandModule, IslandProps, IslandPropsError, IslandServerFrame, type ItemBinding, type ItemIdentity, type ListFill, type ListItemSlot, type ListSlot, type ListSlotDef, type ListSourceInput, type Media, type MediaSlot, type MediaSlotDef, type MediaValue, type NumberSlot, type NumberSlotDef, type ObjectBinding, type ObjectFieldSlot, type ObjectLabelField, type ObjectLabelSource, type ObjectSlot, type ObjectSlotDef, type ObjectValue, type OutputClass, type PageComponent, type PhoneSlot, type PhoneSlotDef, type PhysicalLength, type PickFill, type PickInput, type PicturePlan, type PictureSourceSpec, type PlaybackConfig, type PoiPhoto, type PoiRow, type PoiSlot, type PoiSlotDef, type RegistryFactRef, type RenderedPage, type ResponsiveImage, type ResponsiveSource, type RowFill, type RowId, type RowRef, type RowSlot, type RowSlotDef, type RowSourceInput, Section, type SectionContractProps, type SectionOptions, type SectionPlacementProps, type SectionRenderBindings, type SectionValue, type SelectOptionInput, type SelectOptionObject, type SelectSlot, type SelectSlotDef, Slot, type SlotBinding, type SlotBindingMap, type SlotRef, type SlotSource, type SlotValue, type TableRow, type TableSource, type TemplateCanvas, type TemplatePage, type TemplatePreview, type TemplateScope, type TemplateValue, type TextSlot, type TextSlotDef, Tour, type TourCollectionValue, type TourMedia, type TourSlot, type TourSlotDef, type TourValue, type UrlSlot, type UrlSlotDef, type UseEditorResult, type ValueBinding, type ValueSlot, Video, type VideoCollectionValue, type VideoMedia, type VideoSlot, type VideoSlotDef, type VideoValue, type WebsiteFormat, type WebsitePage, type WriteFill, type WriteInput, a4Landscape, a4Portrait, address, bindItems, compute, date, deck16x9, defineTemplate, deserializeIslandProps, document, email, facebookPost, fact, fill, halfLetterFlyer, image, instagramPortrait, instagramSquare, instagramStory, islandId, letterLandscape, letterPortrait, linkedinPost, list, media, number, object, phone, poi, postcard6x4, postcard7x5, presets, holderProcess as process, row, section, select, serializeIslandProps, text, tour, url, useCaptureReady, useEditor, useIslandId, video, website, xPost };
61
+ export { ATTR_ISLAND_FRAMELESS, ATTR_ISLAND_ID, ATTR_ISLAND_KEY, ATTR_ISLAND_PROPS, ATTR_SECTION_INSTANCE_ID, ATTR_SLOT_FIELD, ATTR_SLOT_GROUP, ATTR_SLOT_ID, ATTR_SLOT_ITEM, ATTR_SLOT_TEXT_LEAF, ATTR_SLOT_UNSELECTABLE, ATTR_TR_ENHANCE, type AddressMembers, type AddressSlot, type AddressSlotDef, type AddressValue, type AuthorImage, type AutocropInput, type AutocropProcess, type BoundSlotValue, CONCRETE_VERSION, type CanvasInput, type CanvasesInput, type ComputeBinding, type Coordinates, type CropConfig, type CutoutProcess, type DateSlot, type DateSlotDef, type DefineTemplateInput, type DerivedFactRef, type DisplayEntryInput, type DisplayFill, type DocumentFormat, type DocumentMedia, type DocumentSlot, type DocumentSlotDef, type DocumentValue, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, EditorBridge, EditorBridgeSelection, EditorSelection, type ElementOf, type ElementRef, type EmailSlot, type EmailSlotDef, type FactNamespace, type FactsCommercialSpace, type FactsComparable, type FactsContact, type FactsUnit, type FieldBinding, type FieldBindings, type FillBinding, type FillVerb, type FindFill, type FindInput, type FormatIdentity, FrameShell, type HolderProcess, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, type IconName, Image, type ImageFormat, type ImageMedia, type ImageSlot, type ImageSlotDef, type ImageValue, IslandComponent, IslandEditor, IslandEditorOptions, IslandMarker, type IslandMarkerProps, IslandModule, IslandProps, IslandPropsError, IslandServerFrame, type ItemBinding, type ItemIdentity, type ListFill, type ListItemSlot, type ListSlot, type ListSlotDef, type ListSourceInput, type Media, type MediaSlot, type MediaSlotDef, type MediaValue, type NumberSlot, type NumberSlotDef, type ObjectBinding, type ObjectFieldSlot, type ObjectLabelField, type ObjectLabelSource, type ObjectSlot, type ObjectSlotDef, type ObjectValue, type OutputClass, type PageComponent, type PhoneSlot, type PhoneSlotDef, type PhysicalLength, type PickFill, type PickInput, type PicturePlan, type PictureSourceSpec, type PlaybackConfig, type PoiPhoto, type PoiRow, type PoiSlot, type PoiSlotDef, type RegistryFactRef, type RenderedPage, type ResponsiveImage, type ResponsiveSource, type RowFill, type RowId, type RowRef, type RowSlot, type RowSlotDef, type RowSourceInput, Section, type SectionContractProps, type SectionOptions, type SectionPlacementProps, type SectionRenderBindings, type SectionValue, type SelectOptionInput, type SelectOptionObject, type SelectSlot, type SelectSlotDef, Slot, type SlotBinding, type SlotBindingMap, type SlotRef, type SlotSource, type SlotValue, type TableRow, type TableSource, type TemplateCanvas, type TemplatePage, type TemplatePreview, type TemplateScope, type TemplateValue, type TextSlot, type TextSlotDef, Tour, type TourMedia, type TourSlot, type TourSlotDef, type TourValue, type UrlSlot, type UrlSlotDef, type UseEditorResult, type ValueBinding, type ValueSlot, Video, type VideoMedia, type VideoSlot, type VideoSlotDef, type VideoValue, type WebsiteFormat, type WebsitePage, type WriteFill, type WriteInput, a4Landscape, a4Portrait, address, bindItems, compute, date, deck16x9, defineTemplate, deserializeIslandProps, document, email, facebookPost, fact, fill, halfLetterFlyer, image, instagramPortrait, instagramSquare, instagramStory, islandId, letterLandscape, letterPortrait, linkedinPost, list, media, number, object, phone, poi, postcard6x4, postcard7x5, presets, holderProcess as process, row, section, select, serializeIslandProps, text, tour, url, useCaptureReady, useEditor, useIslandId, video, website, xPost };
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "10.0.0";
2
+ var version = "12.0.0";
3
3
 
4
4
  //#endregion
5
5
  export { version };
@@ -171,7 +171,7 @@ function applyComputeReads(input) {
171
171
  const inst = working.get(decl.instanceId);
172
172
  if (inst === void 0) return false;
173
173
  if (decl.kind === "display") return writeDisplay(inst, decl, facts, (ref) => readStored(targetOf(decl, ref), ref.slot), rowReaderOf(decl));
174
- if (isSlotOverridden(inst.slot_overrides, decl.key)) return false;
174
+ if (decl.kind !== "mirror" && isSlotOverridden(inst.slot_overrides, decl.key)) return false;
175
175
  const settled = valueOf(inst, decl);
176
176
  if (settled === void 0 || sameValue(storedRefValue(inst, decl.key), settled.value)) return false;
177
177
  writeSlot(inst, decl.key, settled.value);
@@ -0,0 +1,2 @@
1
+ import "../../template-contracts/dist/ref-locate.js";
2
+ import "./list-grammar.js";
@@ -6,6 +6,7 @@ import { bakeDisplayEntries, bakePropertyRefSlots, boundFactKey, derivedSource,
6
6
  import { mergeLinkedValue } from "./linked-merge.js";
7
7
  import { mergeSourcedItems } from "./item-merge.js";
8
8
  import { applyComputeReads, storedRefValue } from "./compute-reads.js";
9
+ import "./held-rows.js";
9
10
  import "./item-overrides.js";
10
11
  import "./stored-row-reader.js";
11
12
 
@@ -3,17 +3,6 @@ import { listItemFieldsOf } from "../../template-contracts/dist/row-sources.js";
3
3
  import "./row-planners.js";
4
4
 
5
5
  //#region ../../internal/fill-vocabulary/dist/holder.js
6
- const LEGACY_COLLECTION_ITEM = {
7
- image_collection: "image",
8
- video_collection: "video",
9
- poi_list: "poi"
10
- };
11
- function isListSlot(slot) {
12
- return slot.type === "list" || slot.type !== void 0 && slot.type in LEGACY_COLLECTION_ITEM;
13
- }
14
- function listItemTypeOf(slot) {
15
- return slot.element?.type ?? LEGACY_COLLECTION_ITEM[slot.type ?? ""];
16
- }
17
6
  function poolOfKind(kind) {
18
7
  return kind === void 0 ? void 0 : poolingPrimitiveOf({ type: kind });
19
8
  }
@@ -22,14 +11,14 @@ function bindsElement(field) {
22
11
  return field.type !== "row" && source?.kind === "element";
23
12
  }
24
13
  function holderOf(slot) {
25
- if (!isListSlot(slot)) return {
14
+ if (slot.type !== "list") return {
26
15
  shape: "one",
27
16
  type: slot.type
28
17
  };
29
18
  const fields = listItemFieldsOf(slot);
30
19
  if (fields === void 0) return {
31
20
  shape: "list",
32
- item: listItemTypeOf(slot)
21
+ item: slot.element?.type
33
22
  };
34
23
  const bound = slot.source?.kind === "home" ? slot.source.key : void 0;
35
24
  return {
@@ -48,4 +37,4 @@ function holderLabel(holder) {
48
37
  }
49
38
 
50
39
  //#endregion
51
- export { bindsElement, holderLabel, holderOf, isFactBound, isListSlot, listItemTypeOf, poolOfKind };
40
+ export { bindsElement, holderLabel, holderOf, isFactBound, poolOfKind };
@@ -18,21 +18,13 @@ function captureViewport(format) {
18
18
  deviceScaleFactor: geometry.deviceScaleFactor
19
19
  };
20
20
  }
21
- function printViewport(format) {
22
- const geometry = resolveFormatGeometry(format);
23
- return {
24
- width: Math.round(geometry.sheetWidth),
25
- height: Math.round(geometry.sheetHeight),
26
- deviceScaleFactor: geometry.deviceScaleFactor
27
- };
28
- }
29
21
  function printPageSize(format) {
30
22
  const geometry = resolveFormatGeometry(format);
31
23
  return {
32
- width: `${geometry.sheetPointWidth / 72}in`,
33
- height: `${geometry.sheetPointHeight / 72}in`
24
+ width: `${geometry.pointWidth / 72}in`,
25
+ height: `${geometry.pointHeight / 72}in`
34
26
  };
35
27
  }
36
28
 
37
29
  //#endregion
38
- export { FRAME_ROOT_CLASS, captureViewport, frameTokens, printPageSize, printViewport };
30
+ export { FRAME_ROOT_CLASS, captureViewport, frameTokens, printPageSize };
@@ -25,13 +25,8 @@ type ImageFormat = FormatIdentity & {
25
25
  };
26
26
  /**
27
27
  * A document format is either a pixel sheet (decks) or a physical print size
28
- * with a capture `dpi`, optional `bleed` and optional fold `panels`. The union
29
- * keeps a physical width from ever pairing with a pixel height.
30
- *
31
- * `panels` is fold geometry: `width`/`height` is then ONE panel, and a printed
32
- * sheet carries that many consecutive pages side by side (a tri-fold is a 6 × 9 in
33
- * panel with `panels: 3`). The sheet is derived, never declared; absent means one
34
- * page per sheet, which is every unfolded document.
28
+ * with a capture `dpi` and optional `bleed`. The union keeps a physical width
29
+ * from ever pairing with a pixel height.
35
30
  */
36
31
  type DocumentFormat = FormatIdentity & ({
37
32
  readonly width: number;
@@ -41,7 +36,6 @@ type DocumentFormat = FormatIdentity & ({
41
36
  readonly height: PhysicalLength;
42
37
  readonly dpi: number;
43
38
  readonly bleed?: PhysicalLength;
44
- readonly panels?: number;
45
39
  });
46
40
  //#endregion
47
41
  export { DocumentFormat, FormatIdentity, ImageFormat, PhysicalLength };
@@ -21,12 +21,7 @@ function resolveFormatGeometry(format) {
21
21
  pixelHeight: format.height,
22
22
  pointWidth: format.width / CSS_PX_PER_INCH * 72,
23
23
  pointHeight: format.height / CSS_PX_PER_INCH * 72,
24
- bleedPoints: 0,
25
- panels: 1,
26
- sheetWidth: format.width,
27
- sheetHeight: format.height,
28
- sheetPointWidth: format.width / CSS_PX_PER_INCH * 72,
29
- sheetPointHeight: format.height / CSS_PX_PER_INCH * 72
24
+ bleedPoints: 0
30
25
  };
31
26
  const physical = format;
32
27
  const widthIn = toInches(physical.width);
@@ -38,7 +33,6 @@ function resolveFormatGeometry(format) {
38
33
  const viewportWidth = frameWidth + 2 * bleed;
39
34
  const viewportHeight = frameHeight + 2 * bleed;
40
35
  const deviceScaleFactor = physical.dpi / CSS_PX_PER_INCH;
41
- const panels = physical.panels ?? 1;
42
36
  return {
43
37
  frameWidth,
44
38
  frameHeight,
@@ -50,12 +44,7 @@ function resolveFormatGeometry(format) {
50
44
  pixelHeight: Math.round(viewportHeight * deviceScaleFactor),
51
45
  pointWidth: (widthIn + 2 * bleedIn) * 72,
52
46
  pointHeight: (heightIn + 2 * bleedIn) * 72,
53
- bleedPoints: bleedIn * 72,
54
- panels,
55
- sheetWidth: panels * frameWidth + 2 * bleed,
56
- sheetHeight: viewportHeight,
57
- sheetPointWidth: (panels * widthIn + 2 * bleedIn) * 72,
58
- sheetPointHeight: (heightIn + 2 * bleedIn) * 72
47
+ bleedPoints: bleedIn * 72
59
48
  };
60
49
  }
61
50
 
@@ -3,7 +3,7 @@ import { readLadder } from "./store.js";
3
3
 
4
4
  //#region ../../internal/media-resolution/dist/document.js
5
5
  const DEFAULT = {
6
- asset_id: "",
6
+ id: "",
7
7
  url: "",
8
8
  filename: "",
9
9
  content_type: "",
@@ -16,7 +16,7 @@ async function withPreview(out, previewKey, store) {
16
16
  out.poster = await store.fileUrl(previewKey);
17
17
  } catch (err) {
18
18
  store.log?.warn({
19
- media_id: out.asset_id,
19
+ media_id: out.id,
20
20
  err: err.message
21
21
  }, "resolve-document-slot: preview presign failed; no poster");
22
22
  return out;
@@ -44,7 +44,7 @@ async function resolveDocumentSlot(value, records, store) {
44
44
  try {
45
45
  const filename = (v.picked === null && typeof v.name === "string" && v.name !== "" ? v.name : null) ?? record.name;
46
46
  return await withPreview({
47
- asset_id: mediaId,
47
+ id: mediaId,
48
48
  url: store.namedFileUrl ? await store.namedFileUrl(key, filename) : await store.fileUrl(key),
49
49
  filename,
50
50
  content_type: record.mime ?? "",
@@ -6,7 +6,7 @@ import { placeCrop, storedCrop } from "../../template-contracts/dist/content-pic
6
6
  //#region ../../internal/media-resolution/dist/image.js
7
7
  function emptyImage() {
8
8
  return {
9
- photo_id: "",
9
+ id: "",
10
10
  url: "",
11
11
  alt: ""
12
12
  };
@@ -109,7 +109,7 @@ async function resolveImageValue(value, records, store, aspects) {
109
109
  let desktopKey;
110
110
  if (placedKey) {
111
111
  base = {
112
- photo_id: photoId,
112
+ id: photoId,
113
113
  url: await store.servedUrl(placedKey),
114
114
  alt
115
115
  };
@@ -124,7 +124,7 @@ async function resolveImageValue(value, records, store, aspects) {
124
124
  mobileKey
125
125
  };
126
126
  base = {
127
- photo_id: photoId,
127
+ id: photoId,
128
128
  url: served.url,
129
129
  alt
130
130
  };