@homepages/concrete 1.0.3 → 2.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 (48) hide show
  1. package/CHANGELOG.md +97 -0
  2. package/codemods/manifest.json +8 -0
  3. package/codemods/unlayer-author-css.mjs +194 -0
  4. package/dist/artifact/playground/client/assets/index-CW7co-u9.js +1101 -0
  5. package/dist/artifact/playground/client/index.html +1 -1
  6. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
  7. package/dist/artifact/playground/host.mjs +21 -21
  8. package/dist/base.css +15 -2
  9. package/dist/cli/build/static.js +1 -1
  10. package/dist/cli/dev/server.js +6 -2
  11. package/dist/cli/dev/vite.js +42 -22
  12. package/dist/css/compile.js +26 -4
  13. package/dist/css/rules.js +72 -1
  14. package/dist/eslint/authoring.js +2 -0
  15. package/dist/eslint/rules/island-ids.js +39 -0
  16. package/dist/fixtures/media-plugin.js +32 -17
  17. package/dist/fixtures/media.js +4 -2
  18. package/dist/fixtures/property.js +12 -2
  19. package/dist/fixtures/resolve.js +58 -5
  20. package/dist/fixtures/rows.js +6 -1
  21. package/dist/fixtures.d.ts +57 -12
  22. package/dist/fixtures.js +7 -3
  23. package/dist/index.d.ts +2 -1
  24. package/dist/index.js +2 -1
  25. package/dist/islands/island-id.js +8 -0
  26. package/dist/islands/marker.d.ts +14 -4
  27. package/dist/islands/marker.js +18 -6
  28. package/dist/packages/external/concrete/package.js +1 -1
  29. package/dist/packages/internal/island-runtime/dist/index.js +4 -2
  30. package/dist/packages/internal/island-runtime/dist/island-id-context.js +15 -0
  31. package/dist/packages/internal/island-runtime/dist/use-island-id.d.ts +24 -0
  32. package/dist/packages/internal/island-runtime/dist/use-island-id.js +44 -0
  33. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1 -1
  34. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +44 -2
  35. package/dist/rules/registry.js +19 -0
  36. package/dist/template/logic-shim.d.ts +2 -1
  37. package/dist/template/logic-shim.js +2 -1
  38. package/guide/reference/cli/INDEX.md +2 -2
  39. package/guide/reference/cli/build.md +1 -1
  40. package/guide/reference/cli/check.md +1 -1
  41. package/guide/reference/cli/dev.md +1 -1
  42. package/guide/reference/cli/property-add.md +1 -1
  43. package/guide/reference/cli/property-list.md +1 -1
  44. package/guide/reference/cli/publish.md +1 -1
  45. package/guide/reference/cli/upgrade.md +1 -1
  46. package/guide/reference/rules/INDEX.md +4 -1
  47. package/package.json +1 -1
  48. package/dist/artifact/playground/client/assets/index-Da8V3M7E.js +0 -1101
@@ -1,6 +1,7 @@
1
1
  import { ATTR_ISLAND_FRAMELESS, ATTR_ISLAND_ID, ATTR_ISLAND_KEY, ATTR_ISLAND_PROPS, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, IslandPropsError, deserializeIslandProps, islandId, serializeIslandProps } from "./contract.js";
2
2
  import { editorInstanceContext } from "./editor-instance-context.js";
3
3
  import { islandsCaptureReady, takeCaptureHold } from "./capture-holds.js";
4
+ import { islandIdContext } from "./island-id-context.js";
4
5
  import { scheduleViewport } from "./viewport-schedule.js";
5
6
 
6
7
  //#region ../../internal/island-runtime/dist/index.js
@@ -51,6 +52,7 @@ async function hydrateIslands(options) {
51
52
  const [react, { createRoot, hydrateRoot }] = await Promise.all([import("react"), import("react-dom/client")]);
52
53
  const { createElement } = react;
53
54
  const InstanceContext = editorInstanceContext(react);
55
+ const IslandIdContext = islandIdContext(react);
54
56
  const MountSignal = ({ onMounted, children }) => {
55
57
  const [pass, setPass] = react.useState(0);
56
58
  react.useEffect(() => {
@@ -102,10 +104,10 @@ async function hydrateIslands(options) {
102
104
  return null;
103
105
  }
104
106
  const instanceId = element.closest(`[${"data-section-instance-id"}]`)?.getAttribute("data-section-instance-id") ?? null;
105
- const tree = createElement(InstanceContext, { value: instanceId }, createElement(MountSignal, {
107
+ const tree = createElement(InstanceContext, { value: instanceId }, createElement(IslandIdContext, { value: id }, createElement(MountSignal, {
106
108
  onMounted: signalMounted,
107
109
  children: createElement(module.default, props)
108
- }));
110
+ })));
109
111
  const rootOptions = {
110
112
  onUncaughtError: (renderError) => {
111
113
  options.onError?.(renderError, ctx);
@@ -0,0 +1,15 @@
1
+ //#region ../../internal/island-runtime/dist/island-id-context.js
2
+ const CONTEXT_KEY = Symbol.for("homepages.tr-island-id");
3
+ /** The one shared island-id context, created by whichever copy asks first. */
4
+ function islandIdContext(react) {
5
+ const registry = globalThis;
6
+ let context = registry[CONTEXT_KEY];
7
+ if (!context) {
8
+ context = react.createContext(null);
9
+ registry[CONTEXT_KEY] = context;
10
+ }
11
+ return context;
12
+ }
13
+
14
+ //#endregion
15
+ export { islandIdContext };
@@ -0,0 +1,24 @@
1
+ //#region ../../internal/island-runtime/dist/use-island-id.d.ts
2
+ /**
3
+ * The enclosing island's id: one string, identical in the server's render and in the
4
+ * client's hydration of the same island, and unique among the islands of a document.
5
+ * Compose an id from it rather than calling React's `useId`, which mints a different
6
+ * value in each of those two renders and hydrates into an attribute mismatch on
7
+ * whatever markup carries it (see {@link islandIdContext}):
8
+ *
9
+ * ```tsx
10
+ * const bodyId = `${useIslandId()}-body`;
11
+ * <button aria-controls={bodyId} /><div id={bodyId} />
12
+ * ```
13
+ *
14
+ * It is one value per island, not per call — the discriminator after it is the
15
+ * author's, and two call sites in one island that compose the same suffix collide
16
+ * deterministically, in both renders, where a test or a browser will say so.
17
+ *
18
+ * Outside an island it is {@link NO_ISLAND_ID}. Only a client module may call it
19
+ * (`concrete/islands/island-ids`); a section renders once and hydrates never, so it
20
+ * has no id to hand out and gives one to the island as a prop instead.
21
+ */
22
+ declare function useIslandId(): string;
23
+ //#endregion
24
+ export { useIslandId };
@@ -0,0 +1,44 @@
1
+ import { islandIdContext } from "./island-id-context.js";
2
+ import { createContext, useContext } from "react";
3
+
4
+ //#region ../../internal/island-runtime/dist/use-island-id.js
5
+ const IslandIdContext = islandIdContext({ createContext });
6
+ /**
7
+ * What the hook returns where nothing opened the channel. The tooling venues that
8
+ * render a section's module graph directly — `concrete check`'s group and placement
9
+ * probes, its per-fixture render stage — reach an island as a plain component, with
10
+ * no marker around it, and each reads the markup for its slot markers and discards
11
+ * it. None of them hydrates, so no id in them is ever compared with anything.
12
+ *
13
+ * A fixed value rather than a throw, because those venues are normal and there is no
14
+ * end of them; what a throw was really guarding — a SECTION minting an island id, and
15
+ * so the same constant for every instance of itself on a page — is a question about
16
+ * source, which `concrete/islands/island-ids` answers before any of this runs.
17
+ */
18
+ const NO_ISLAND_ID = "tr-no-island";
19
+ /**
20
+ * The enclosing island's id: one string, identical in the server's render and in the
21
+ * client's hydration of the same island, and unique among the islands of a document.
22
+ * Compose an id from it rather than calling React's `useId`, which mints a different
23
+ * value in each of those two renders and hydrates into an attribute mismatch on
24
+ * whatever markup carries it (see {@link islandIdContext}):
25
+ *
26
+ * ```tsx
27
+ * const bodyId = `${useIslandId()}-body`;
28
+ * <button aria-controls={bodyId} /><div id={bodyId} />
29
+ * ```
30
+ *
31
+ * It is one value per island, not per call — the discriminator after it is the
32
+ * author's, and two call sites in one island that compose the same suffix collide
33
+ * deterministically, in both renders, where a test or a browser will say so.
34
+ *
35
+ * Outside an island it is {@link NO_ISLAND_ID}. Only a client module may call it
36
+ * (`concrete/islands/island-ids`); a section renders once and hydrates never, so it
37
+ * has no id to hand out and gives one to the island as a prop instead.
38
+ */
39
+ function useIslandId() {
40
+ return useContext(IslandIdContext) ?? "tr-no-island";
41
+ }
42
+
43
+ //#endregion
44
+ export { NO_ISLAND_ID, useIslandId };
@@ -741,7 +741,7 @@ declare const FACT_GRAPH: {
741
741
  readonly path: "narrative";
742
742
  readonly value_type: "object";
743
743
  readonly input_group: "describe";
744
- readonly strength: "blocking";
744
+ readonly strength: "optional";
745
745
  readonly fields: {
746
746
  /** The description itself. */
747
747
  readonly description: {
@@ -677,7 +677,7 @@ const FACT_GRAPH = {
677
677
  path: "narrative",
678
678
  value_type: "object",
679
679
  input_group: "describe",
680
- strength: "blocking",
680
+ strength: "optional",
681
681
  fields: {
682
682
  /** The description itself. */
683
683
  description: { value_type: "text" } }
@@ -1104,6 +1104,48 @@ function acceptsLink(accepts, url) {
1104
1104
  * obtained, an orthogonal concern.
1105
1105
  */
1106
1106
  const VIDEO_SOURCES = ["upload", "link"];
1107
+ const VIMEO_PARAMS = "badge=0&autopause=0&player_id=0&title=0&byline=0&portrait=0&sidedock=0&vimeo_logo=0&pip=0&chromecast=0&quality_selector=0&progress_bar=1";
1108
+ /**
1109
+ * The embeddable player URL for a pasted video link, or `null` when the value is
1110
+ * empty, names no provider, or names one that is not embeddable video.
1111
+ *
1112
+ * Only YouTube and Vimeo embed; every other provider returns `null`.
1113
+ */
1114
+ function videoEmbedUrl(raw) {
1115
+ const url = raw.trim();
1116
+ if (!url) return null;
1117
+ const provider = matchLinkProvider(url);
1118
+ if (provider === "vimeo") {
1119
+ const vimeo = url.match(/vimeo\.com\/(?:.*\/)?(\d+)/);
1120
+ return vimeo ? `https://player.vimeo.com/video/${vimeo[1]}?${VIMEO_PARAMS}` : null;
1121
+ }
1122
+ if (provider === "youtube") {
1123
+ const yt = url.match(/youtu\.be\/([A-Za-z0-9_-]{11})/) ?? url.match(/[?&]v=([A-Za-z0-9_-]{11})/) ?? url.match(/youtube\.com\/(?:embed|shorts)\/([A-Za-z0-9_-]{11})/);
1124
+ return yt ? `https://www.youtube.com/embed/${yt[1]}?rel=0` : null;
1125
+ }
1126
+ return null;
1127
+ }
1128
+ /**
1129
+ * The embeddable player URL for a pasted 3D-tour link, or `null` when the value
1130
+ * is empty, names no provider, names one that is not a tour provider, or is a
1131
+ * tour URL the provider's embed form cannot be built from.
1132
+ *
1133
+ * @remarks
1134
+ * Covers every `kind: "tour"` member of `LINK_PROVIDERS`. A tour provider added
1135
+ * to that catalog without a branch here returns `null` — an unembeddable slot
1136
+ * rather than a wrong iframe — and `slot-catalog.test.ts` fails on the gap.
1137
+ */
1138
+ function tourEmbedUrl(raw) {
1139
+ const url = raw.trim();
1140
+ if (!url) return null;
1141
+ const provider = matchLinkProvider(url);
1142
+ if (provider === "matterport") {
1143
+ const sid = new URL(url).searchParams.get("m");
1144
+ return sid !== null && /^[A-Za-z0-9]+$/.test(sid) ? `https://my.matterport.com/show/?m=${sid}&nt=1` : null;
1145
+ }
1146
+ if (provider === "biganto") return url;
1147
+ return null;
1148
+ }
1107
1149
 
1108
1150
  //#endregion
1109
- 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, SOURCE_FILTERS, VIDEO_SOURCES, VISIBILITY_CASES, acceptsLink, collectionBounds, collectionForSlot, isCollectionSlotType, isLinkAccepts, isOptionSource, isSourceFilter, isWritableSourceField, matchLinkProvider, stampCollectionBounds };
1151
+ 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, SOURCE_FILTERS, VIDEO_SOURCES, VISIBILITY_CASES, acceptsLink, collectionBounds, collectionForSlot, isCollectionSlotType, isLinkAccepts, isOptionSource, isSourceFilter, isWritableSourceField, matchLinkProvider, stampCollectionBounds, tourEmbedUrl, videoEmbedUrl };
@@ -197,6 +197,13 @@ const AUTHORED_RULES = [
197
197
  engineId: "concrete/islands/no-editor-globals",
198
198
  summary: "No code reads the editor canvas's internal `__tr` globals."
199
199
  },
200
+ {
201
+ id: "islands/island-ids",
202
+ venue: "eslint",
203
+ stage: "lint",
204
+ engineId: "concrete/islands/island-ids",
205
+ summary: "An island composes its own ids from `useIslandId()`, never React's `useId`, and only an island calls it."
206
+ },
200
207
  {
201
208
  id: "slots/no-marker-literal",
202
209
  venue: "eslint",
@@ -262,6 +269,12 @@ const AUTHORED_RULES = [
262
269
  stage: "fixtures",
263
270
  summary: "A content entry references a media entry its property does not carry."
264
271
  },
272
+ {
273
+ id: "fixtures/rows-not-in-property",
274
+ venue: "tree",
275
+ stage: "fixtures",
276
+ summary: "A content entry states more rows for a collection-bound list than its property carries."
277
+ },
265
278
  {
266
279
  id: "fixtures/instance-not-placed",
267
280
  venue: "tree",
@@ -441,6 +454,12 @@ const AUTHORED_RULES = [
441
454
  venue: "tree",
442
455
  stage: "stylesheet",
443
456
  summary: "A stylesheet reachable from template.ts fails to resolve or compile, so no stylesheet rule could grade it."
457
+ },
458
+ {
459
+ id: "css/retired-layer",
460
+ venue: "tree",
461
+ stage: "stylesheet",
462
+ summary: "A stylesheet declares `@layer sections` or `@layer template`, the layers the framework retired; author CSS is unlayered."
444
463
  }
445
464
  ];
446
465
  /** The id a contract assertion is reported under. */
@@ -28,6 +28,7 @@ declare const IslandMarker: () => never;
28
28
  declare const bindItems: () => never;
29
29
  declare const useEditor: () => never;
30
30
  declare const useCaptureReady: () => never;
31
+ declare const useIslandId: () => never;
31
32
  declare const Slot: {
32
33
  Text: () => never;
33
34
  Number: () => never;
@@ -40,4 +41,4 @@ declare const Slot: {
40
41
  List: () => never;
41
42
  };
42
43
  //#endregion
43
- 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, CONCRETE_VERSION, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, EditorBridge, EditorBridgeSelection, EditorSelection, FrameShell, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, Image, IslandComponent, IslandEditor, IslandEditorOptions, IslandMarker, IslandModule, IslandProps, IslandPropsError, IslandServerFrame, LOGIC_STUB_MARKER, Section, Slot, SlotGroup, Tour, Video, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, getComputed, halfLetterFlyer, image, imageAssign, instagramPortrait, instagramSquare, instagramStory, islandId, letterLandscape, letterPortrait, linkedinPost, list, listFill, nameRows, number, poi, postcard6x4, postcard7x5, presets, rule, section, select, serializeIslandProps, set, text, textBlock, tour, tourAssign, url, useCaptureReady, useEditor, video, videoAssign, website, xPost };
44
+ 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, CONCRETE_VERSION, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, EditorBridge, EditorBridgeSelection, EditorSelection, FrameShell, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, Image, IslandComponent, IslandEditor, IslandEditorOptions, IslandMarker, IslandModule, IslandProps, IslandPropsError, IslandServerFrame, LOGIC_STUB_MARKER, Section, Slot, SlotGroup, Tour, Video, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, getComputed, halfLetterFlyer, image, imageAssign, instagramPortrait, instagramSquare, instagramStory, islandId, letterLandscape, letterPortrait, linkedinPost, list, listFill, nameRows, number, poi, postcard6x4, postcard7x5, presets, rule, section, select, serializeIslandProps, set, text, textBlock, tour, tourAssign, url, useCaptureReady, useEditor, useIslandId, video, videoAssign, website, xPost };
@@ -36,6 +36,7 @@ const IslandMarker = /* @__PURE__ */ stub("IslandMarker");
36
36
  const bindItems = /* @__PURE__ */ stub("bindItems");
37
37
  const useEditor = /* @__PURE__ */ stub("useEditor");
38
38
  const useCaptureReady = /* @__PURE__ */ stub("useCaptureReady");
39
+ const useIslandId = /* @__PURE__ */ stub("useIslandId");
39
40
  const Slot = {
40
41
  Text: /* @__PURE__ */ stub("Slot.Text"),
41
42
  Number: /* @__PURE__ */ stub("Slot.Number"),
@@ -49,4 +50,4 @@ const Slot = {
49
50
  };
50
51
 
51
52
  //#endregion
52
- 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, CONCRETE_VERSION, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, FrameShell, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, Image, IslandMarker, IslandPropsError, LOGIC_STUB_MARKER, Section, Slot, SlotGroup, Tour, Video, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, getComputed, halfLetterFlyer, image, imageAssign, instagramPortrait, instagramSquare, instagramStory, islandId, letterLandscape, letterPortrait, linkedinPost, list, listFill, nameRows, number, poi, postcard6x4, postcard7x5, presets, rule, section, select, serializeIslandProps, set, text, textBlock, tour, tourAssign, url, useCaptureReady, useEditor, video, videoAssign, website, xPost };
53
+ 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, CONCRETE_VERSION, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, FrameShell, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, Image, IslandMarker, IslandPropsError, LOGIC_STUB_MARKER, Section, Slot, SlotGroup, Tour, Video, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, getComputed, halfLetterFlyer, image, imageAssign, instagramPortrait, instagramSquare, instagramStory, islandId, letterLandscape, letterPortrait, linkedinPost, list, listFill, nameRows, number, poi, postcard6x4, postcard7x5, presets, rule, section, select, serializeIslandProps, set, text, textBlock, tour, tourAssign, url, useCaptureReady, useEditor, useIslandId, video, videoAssign, website, xPost };
@@ -3,7 +3,7 @@ purpose: Every `concrete` command, with its full flag surface, exit codes and co
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [INDEX.md]
8
8
  ---
9
9
  # Command reference
@@ -73,7 +73,7 @@ of its flags.
73
73
 
74
74
  ## Versions
75
75
 
76
- These pages describe `@homepages/concrete` **>=1.0.0 <2.0.0**. The range, rather than
76
+ These pages describe `@homepages/concrete` **>=2.0.0 <3.0.0**. The range, rather than
77
77
  the exact version they were generated from: this reference is committed build output,
78
78
  so a page stamped with a patch version would be stale the day it shipped.
79
79
  `concrete --version` prints the installed one.
@@ -3,7 +3,7 @@ purpose: The `concrete build` command — its flags, exit codes and constraints.
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete build
@@ -3,7 +3,7 @@ purpose: The `concrete check` command — its flags, exit codes and constraints.
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete check
@@ -3,7 +3,7 @@ purpose: The `concrete dev` command — its flags, exit codes and constraints.
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete dev
@@ -3,7 +3,7 @@ purpose: The `concrete property add` command — its flags, exit codes and const
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete property add
@@ -3,7 +3,7 @@ purpose: The `concrete property list` command — its flags, exit codes and cons
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete property list
@@ -3,7 +3,7 @@ purpose: The `concrete publish` command — its flags, exit codes and constraint
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete publish
@@ -3,7 +3,7 @@ purpose: The `concrete upgrade` command — its flags, exit codes and constraint
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete command table
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete upgrade
@@ -3,7 +3,7 @@ purpose: Every rule `concrete check` grades, by the stage that grades it, in the
3
3
  mode: reference
4
4
  status: generated
5
5
  generated_from: the concrete rule registry
6
- applies_to: "@homepages/concrete >=1.0.0 <2.0.0"
6
+ applies_to: "@homepages/concrete >=2.0.0 <3.0.0"
7
7
  related: [reference/cli/check.md]
8
8
  ---
9
9
  # Rule reference
@@ -61,6 +61,7 @@ This package's ESLint preset lints every module in the workspace.
61
61
  | `concrete/islands/editor-declaration` | lint | Every island exports a literal `editor = { live }`, and a literal `serverFrame` when it declares one. |
62
62
  | `concrete/islands/editor-reason` | lint | Every read of `inCanvas` that changes behavior carries an `editor-reason:` comment directly above it. |
63
63
  | `concrete/islands/no-editor-globals` | lint | No code reads the editor canvas's internal `__tr` globals. |
64
+ | `concrete/islands/island-ids` | lint | An island composes its own ids from `useIslandId()`, never React's `useId`, and only an island calls it. |
64
65
  | `concrete/slots/no-marker-literal` | lint | No code writes or reads a `data-slot-*` marker; the slot primitives emit them. |
65
66
  | `concrete/slots/no-raw-values` | lint | Slot values are read through bindings, never off a raw `slots` object. |
66
67
  | `concrete/style/no-hard-coded-color` | lint (warning) | Colors come from the theme, not from a hex value or a color function in a class or inline style. |
@@ -85,6 +86,7 @@ The CSS import graph of `template.ts` compiles into the template stylesheet exac
85
86
  | `concrete/css/tailwind-import` | tree | The CSS import graph of template.ts carries no `@import "tailwindcss"`, or more than one. |
86
87
  | `concrete/css/external-url` | tree | A rendered template's compiled stylesheet references an external URL, which the renderer cannot reach. |
87
88
  | `concrete/css/compile-failed` | tree | A stylesheet reachable from template.ts fails to resolve or compile, so no stylesheet rule could grade it. |
89
+ | `concrete/css/retired-layer` | tree | A stylesheet declares `@layer sections` or `@layer template`, the layers the framework retired; author CSS is unlayered. |
88
90
 
89
91
  ## logic
90
92
 
@@ -105,6 +107,7 @@ The fixtures under `fixtures/` load, resolve over the composition, and stay out
105
107
  | `concrete/fixtures/none` | tree | The workspace exports no fixture; group derivation and marker coverage have no input. |
106
108
  | `concrete/fixtures/property-invalid` | tree | A property fails the platform schema, references a missing file, or repeats an id within a pool. |
107
109
  | `concrete/fixtures/media-not-in-property` | tree | A content entry references a media entry its property does not carry. |
110
+ | `concrete/fixtures/rows-not-in-property` | tree | A content entry states more rows for a collection-bound list than its property carries. |
108
111
  | `concrete/fixtures/instance-not-placed` | tree | A content entry names an instance the composition does not place. |
109
112
  | `concrete/fixtures/reachable-from-bundle` | tree | A module reachable from template.ts imports fixtures/, the fixtures subpath as a value, or the sample library. |
110
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homepages/concrete",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "description": "Concrete, the HomePages template framework: the authoring API, the contract primitives, the styles, the lint preset and the `concrete` command in one package that owns its whole toolchain.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",