@homepages/concrete 1.0.3 → 3.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 (63) hide show
  1. package/CHANGELOG.md +131 -0
  2. package/codemods/framework-namespace.mjs +107 -0
  3. package/codemods/manifest.json +17 -0
  4. package/codemods/theme-collapse.mjs +394 -0
  5. package/codemods/unlayer-author-css.mjs +194 -0
  6. package/dist/artifact/playground/client/assets/index-B3eNADCe.js +1107 -0
  7. package/dist/artifact/playground/client/index.html +1 -1
  8. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
  9. package/dist/artifact/playground/host.mjs +21 -21
  10. package/dist/base.css +61 -31
  11. package/dist/cli/build/static.js +1 -1
  12. package/dist/cli/check/render/class-conflicts.js +1 -1
  13. package/dist/cli/dev/islands.js +2 -2
  14. package/dist/cli/dev/server.js +6 -2
  15. package/dist/cli/dev/vite.js +42 -22
  16. package/dist/css/compile.js +26 -4
  17. package/dist/css/rules.js +72 -1
  18. package/dist/eslint/authoring.js +2 -0
  19. package/dist/eslint/rules/island-ids.js +39 -0
  20. package/dist/fixtures/media-plugin.js +32 -17
  21. package/dist/fixtures/media.js +4 -2
  22. package/dist/fixtures/property.js +12 -2
  23. package/dist/fixtures/resolve.js +58 -5
  24. package/dist/fixtures/rows.js +6 -1
  25. package/dist/fixtures.d.ts +57 -12
  26. package/dist/fixtures.js +7 -3
  27. package/dist/index.d.ts +2 -1
  28. package/dist/index.js +2 -1
  29. package/dist/islands/island-id.js +8 -0
  30. package/dist/islands/marker.d.ts +14 -4
  31. package/dist/islands/marker.js +18 -6
  32. package/dist/packages/external/concrete/package.js +1 -1
  33. package/dist/packages/internal/island-runtime/dist/index.js +4 -2
  34. package/dist/packages/internal/island-runtime/dist/island-id-context.js +15 -0
  35. package/dist/packages/internal/island-runtime/dist/use-island-id.d.ts +24 -0
  36. package/dist/packages/internal/island-runtime/dist/use-island-id.js +44 -0
  37. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1 -1
  38. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +44 -2
  39. package/dist/primitives/FrameShell.d.ts +1 -1
  40. package/dist/primitives/FrameShell.js +1 -1
  41. package/dist/primitives/Image.d.ts +1 -1
  42. package/dist/primitives/Image.js +3 -3
  43. package/dist/primitives/Section.d.ts +3 -3
  44. package/dist/primitives/Section.js +4 -4
  45. package/dist/primitives/Tour.d.ts +1 -1
  46. package/dist/primitives/Tour.js +3 -3
  47. package/dist/primitives/Video.d.ts +1 -1
  48. package/dist/primitives/Video.js +3 -3
  49. package/dist/rules/registry.js +19 -0
  50. package/dist/styles.css +4 -3
  51. package/dist/template/logic-shim.d.ts +2 -1
  52. package/dist/template/logic-shim.js +2 -1
  53. package/guide/reference/cli/INDEX.md +2 -2
  54. package/guide/reference/cli/build.md +1 -1
  55. package/guide/reference/cli/check.md +1 -1
  56. package/guide/reference/cli/dev.md +1 -1
  57. package/guide/reference/cli/property-add.md +1 -1
  58. package/guide/reference/cli/property-list.md +1 -1
  59. package/guide/reference/cli/publish.md +1 -1
  60. package/guide/reference/cli/upgrade.md +1 -1
  61. package/guide/reference/rules/INDEX.md +4 -1
  62. package/package.json +1 -1
  63. package/dist/artifact/playground/client/assets/index-Da8V3M7E.js +0 -1101
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ import "./schema/section-schema.js";
18
18
  import { RowValue, SlotValue } from "./schema/section-props.js";
19
19
  import { UseEditorResult, useEditor } from "./packages/internal/island-runtime/dist/use-editor.js";
20
20
  import { useCaptureReady } from "./packages/internal/island-runtime/dist/use-capture-ready.js";
21
+ import { useIslandId } from "./packages/internal/island-runtime/dist/use-island-id.js";
21
22
  import { IslandMarker, IslandMarkerProps } from "./islands/marker.js";
22
23
  import { BoundSlotValue, FieldBinding, ItemBinding, RowBinding, SlotBinding, SlotBindingMap, bindItems } from "./primitives/slot-bindings.js";
23
24
  import { SectionOptions, SlotRef } from "./section/declare.js";
@@ -50,4 +51,4 @@ import { a4Landscape, a4Portrait, deck16x9, facebookPost, halfLetterFlyer, insta
50
51
  */
51
52
  declare const CONCRETE_VERSION: string;
52
53
  //#endregion
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, type AuthorImage, type BoundSlotValue, type BuiltDecision, CONCRETE_VERSION, type CanvasInput, type CanvasesInput, type ChosenRows, type CollectionRowValues, type ComparableRow, type ComputeBinding, type ContactRow, type Coordinates, type CropConfig, type DecisionKind, type DefineTemplateInput, type DerivedFactRef, type DirectFactRef, type DisplayChoice, type DisplayEntryInput, type DocumentCollectionValue, type DocumentFormat, type DocumentSlot, type DocumentSlotDef, type DocumentValue, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, type Edit, EditorBridge, EditorBridgeSelection, EditorSelection, type FactNamespace, type Facts, type FactsAddress, type FactsContact, type FactsDocument, type FactsDocumentNote, type FactsFloorPlan, type FactsNarrative, type FactsPhoto, type FactsTour, type FactsUnit, type FactsVideo, type FieldBinding, type FloorplanAssignment, type FormatIdentity, FrameShell, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, Image, type ImageCollectionValue, type ImageFormat, type ImageSlot, type ImageSlotDef, type ImageValue, IslandComponent, IslandEditor, IslandEditorOptions, IslandMarker, type IslandMarkerProps, IslandModule, IslandProps, IslandPropsError, IslandServerFrame, type ItemBinding, type ListFieldSlot, type ListItemSlot, type ListRecordSlotDef, type ListSlot, type ListSlotDef, type NamedRows, type Narrative, type NumberSlot, type NumberSlotDef, type OutputClass, type PageComponent, type PhysicalLength, type PicturePlan, type PictureSourceSpec, type PlaybackConfig, type PoiPhoto, type PoiRow, type PoiSlot, type PoiSlotDef, type ReconcileContext, type ReconcileRule, type ReconcileRuleOptions, type RenderedPage, type ResponsiveImage, type ResponsiveSource, type RowBinding, type RowOrigination, type RowValue, Section, type SectionContractProps, type SectionOptions, type SectionPlacementProps, type SectionRenderBindings, type SectionValue, type SelectSlot, type SelectSlotDef, type SetEdit, type SiteValues, type SiteViewOf, Slot, type SlotBinding, type SlotBindingMap, SlotGroup, type SlotRef, type SlotSource, type SlotValue, type TemplateCanvas, type TemplatePage, type TemplatePreview, type TemplateScope, type TemplateValue, type TextSlot, type TextSlotDef, type TextStructure, Tour, type TourCollectionValue, type TourSlot, type TourSlotDef, type TourValue, type UnitRow, type UrlSlot, type UrlSlotDef, type UseEditorResult, type ValueBinding, Video, type VideoCollectionValue, type VideoSlot, type VideoSlotDef, type VideoValue, type WebsiteFormat, type WebsitePage, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, 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 };
54
+ 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 AuthorImage, type BoundSlotValue, type BuiltDecision, CONCRETE_VERSION, type CanvasInput, type CanvasesInput, type ChosenRows, type CollectionRowValues, type ComparableRow, type ComputeBinding, type ContactRow, type Coordinates, type CropConfig, type DecisionKind, type DefineTemplateInput, type DerivedFactRef, type DirectFactRef, type DisplayChoice, type DisplayEntryInput, type DocumentCollectionValue, type DocumentFormat, type DocumentSlot, type DocumentSlotDef, type DocumentValue, EDITOR_BRIDGE_PROP, EDITOR_BRIDGE_PROTOCOL, type Edit, EditorBridge, EditorBridgeSelection, EditorSelection, type FactNamespace, type Facts, type FactsAddress, type FactsContact, type FactsDocument, type FactsDocumentNote, type FactsFloorPlan, type FactsNarrative, type FactsPhoto, type FactsTour, type FactsUnit, type FactsVideo, type FieldBinding, type FloorplanAssignment, type FormatIdentity, FrameShell, ISLAND_CAPTURE_HOLDS_GLOBAL, ISLAND_ELEMENT, Image, type ImageCollectionValue, type ImageFormat, type ImageSlot, type ImageSlotDef, type ImageValue, IslandComponent, IslandEditor, IslandEditorOptions, IslandMarker, type IslandMarkerProps, IslandModule, IslandProps, IslandPropsError, IslandServerFrame, type ItemBinding, type ListFieldSlot, type ListItemSlot, type ListRecordSlotDef, type ListSlot, type ListSlotDef, type NamedRows, type Narrative, type NumberSlot, type NumberSlotDef, type OutputClass, type PageComponent, type PhysicalLength, type PicturePlan, type PictureSourceSpec, type PlaybackConfig, type PoiPhoto, type PoiRow, type PoiSlot, type PoiSlotDef, type ReconcileContext, type ReconcileRule, type ReconcileRuleOptions, type RenderedPage, type ResponsiveImage, type ResponsiveSource, type RowBinding, type RowOrigination, type RowValue, Section, type SectionContractProps, type SectionOptions, type SectionPlacementProps, type SectionRenderBindings, type SectionValue, type SelectSlot, type SelectSlotDef, type SetEdit, type SiteValues, type SiteViewOf, Slot, type SlotBinding, type SlotBindingMap, SlotGroup, type SlotRef, type SlotSource, type SlotValue, type TemplateCanvas, type TemplatePage, type TemplatePreview, type TemplateScope, type TemplateValue, type TextSlot, type TextSlotDef, type TextStructure, Tour, type TourCollectionValue, type TourSlot, type TourSlotDef, type TourValue, type UnitRow, type UrlSlot, type UrlSlotDef, type UseEditorResult, type ValueBinding, Video, type VideoCollectionValue, type VideoSlot, type VideoSlotDef, type VideoValue, type WebsiteFormat, type WebsitePage, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, 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 };
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import { version } from "./packages/external/concrete/package.js";
2
2
  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 "./packages/internal/island-runtime/dist/contract.js";
3
3
  import { useEditor } from "./packages/internal/island-runtime/dist/use-editor.js";
4
4
  import { useCaptureReady } from "./packages/internal/island-runtime/dist/use-capture-ready.js";
5
+ import { useIslandId } from "./packages/internal/island-runtime/dist/use-island-id.js";
5
6
  import { IslandMarker } from "./islands/marker.js";
6
7
  import { bindItems } from "./primitives/slot-bindings.js";
7
8
  import { compute } from "./schema/compute.js";
@@ -34,4 +35,4 @@ import { a4Landscape, a4Portrait, deck16x9, facebookPost, halfLetterFlyer, insta
34
35
  const CONCRETE_VERSION = version;
35
36
 
36
37
  //#endregion
37
- 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, Section, Slot, SlotGroup, Tour, Video, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, 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 };
38
+ 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, Section, Slot, SlotGroup, Tour, Video, a4Landscape, a4Portrait, bindItems, chooseFrom, compute, contactAssign, deck16x9, defineTemplate, deserializeIslandProps, document, documentAssign, facebookPost, fact, 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 };
@@ -0,0 +1,8 @@
1
+ import { islandIdContext } from "../packages/internal/island-runtime/dist/island-id-context.js";
2
+ import { createContext } from "react";
3
+
4
+ //#region src/islands/island-id.ts
5
+ const IslandIdContext = islandIdContext({ createContext });
6
+
7
+ //#endregion
8
+ export { IslandIdContext };
@@ -29,10 +29,20 @@ interface IslandMarkerProps {
29
29
  * from `useId`, which counts from the root of the tree being rendered. The server
30
30
  * renders a whole section under an `identifierPrefix`; the client hydrates a subtree
31
31
  * rooted at one marker, with no prefix. The two ids therefore diverge by construction
32
- * and cannot be reconciled by passing a prefix. That divergence is inert: React leaves
33
- * the server's ids in the DOM, the marker and its payload come from the same `islandId`
34
- * in one render so they stay paired under either outcome, and a nested marker's id is
35
- * never read — `hydrateIslands` skips nested markers, leaving them to their parent.
32
+ * and cannot be reconciled by passing a prefix. That divergence is inert ON THESE TWO
33
+ * NODES: React leaves the server's ids in the DOM, the marker and its payload come from
34
+ * the same `islandId` in one render so they stay paired under either outcome, and a
35
+ * nested marker's id is never read — `hydrateIslands` skips nested markers, leaving
36
+ * them to their parent.
37
+ *
38
+ * It is NOT inert one node deeper, which is why this marker also opens the island-id
39
+ * context. An id the island component puts on its own markup carries no
40
+ * `suppressHydrationWarning` and would report the same divergence as a real mismatch,
41
+ * so an author composes one from `useIslandId()` instead of `useId` — and what that
42
+ * hook reads is the id provided here, or, once the browser has taken the island over,
43
+ * the identical string `hydrateIslands` read back off this marker's own attribute.
44
+ * Only the OUTERMOST marker provides: a nested one defers to the enclosing value,
45
+ * because its own id is exactly the one that diverges.
36
46
  *
37
47
  * No children means no server-rendered output, and the marker says so on itself with
38
48
  * `data-tr-island-frameless` — the browser loader mounts such an island fresh rather
@@ -1,5 +1,6 @@
1
1
  import { ATTR_ISLAND_FRAMELESS, ATTR_ISLAND_ID, ATTR_ISLAND_KEY, ATTR_ISLAND_PROPS, ISLAND_ELEMENT, serializeIslandProps } from "../packages/internal/island-runtime/dist/contract.js";
2
- import { Fragment, createElement } from "react";
2
+ import { IslandIdContext } from "./island-id.js";
3
+ import { Fragment, createElement, useContext } from "react";
3
4
 
4
5
  //#region src/islands/marker.tsx
5
6
  /**
@@ -16,23 +17,34 @@ import { Fragment, createElement } from "react";
16
17
  * from `useId`, which counts from the root of the tree being rendered. The server
17
18
  * renders a whole section under an `identifierPrefix`; the client hydrates a subtree
18
19
  * rooted at one marker, with no prefix. The two ids therefore diverge by construction
19
- * and cannot be reconciled by passing a prefix. That divergence is inert: React leaves
20
- * the server's ids in the DOM, the marker and its payload come from the same `islandId`
21
- * in one render so they stay paired under either outcome, and a nested marker's id is
22
- * never read — `hydrateIslands` skips nested markers, leaving them to their parent.
20
+ * and cannot be reconciled by passing a prefix. That divergence is inert ON THESE TWO
21
+ * NODES: React leaves the server's ids in the DOM, the marker and its payload come from
22
+ * the same `islandId` in one render so they stay paired under either outcome, and a
23
+ * nested marker's id is never read — `hydrateIslands` skips nested markers, leaving
24
+ * them to their parent.
25
+ *
26
+ * It is NOT inert one node deeper, which is why this marker also opens the island-id
27
+ * context. An id the island component puts on its own markup carries no
28
+ * `suppressHydrationWarning` and would report the same divergence as a real mismatch,
29
+ * so an author composes one from `useIslandId()` instead of `useId` — and what that
30
+ * hook reads is the id provided here, or, once the browser has taken the island over,
31
+ * the identical string `hydrateIslands` read back off this marker's own attribute.
32
+ * Only the OUTERMOST marker provides: a nested one defers to the enclosing value,
33
+ * because its own id is exactly the one that diverges.
23
34
  *
24
35
  * No children means no server-rendered output, and the marker says so on itself with
25
36
  * `data-tr-island-frameless` — the browser loader mounts such an island fresh rather
26
37
  * than hydrating it against markup that was never emitted.
27
38
  */
28
39
  function IslandMarker({ islandKey, islandId, props, children }) {
40
+ const enclosing = useContext(IslandIdContext);
29
41
  return createElement(Fragment, null, createElement(ISLAND_ELEMENT, {
30
42
  style: { display: "contents" },
31
43
  [ATTR_ISLAND_KEY]: islandKey,
32
44
  [ATTR_ISLAND_ID]: islandId,
33
45
  [ATTR_ISLAND_FRAMELESS]: children == null ? "" : void 0,
34
46
  suppressHydrationWarning: true
35
- }, children), createElement("script", {
47
+ }, children == null ? children : createElement(IslandIdContext, { value: enclosing ?? islandId }, children)), createElement("script", {
36
48
  type: "application/json",
37
49
  [ATTR_ISLAND_PROPS]: islandId,
38
50
  suppressHydrationWarning: true,
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "1.0.3";
2
+ var version = "3.0.0";
3
3
 
4
4
  //#endregion
5
5
  export { version };
@@ -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 };
@@ -10,7 +10,7 @@ type Props = {
10
10
  * The frame shell — the rendered-class page root, the frame analog of the
11
11
  * website page shell. The frame is a viewport: every host owes a frame
12
12
  * document a window that is exactly the format's bleed box, and the static
13
- * half of the contract (`.tr-frame`, from the kit's base stylesheet) fills
13
+ * half of the contract (`.tr-frame`, from the framework's base stylesheet) fills
14
14
  * that window, clips at the shell's own edge, and lays sections out as a
15
15
  * rigid flex column (`flex-shrink: 0` on every direct child, so an
16
16
  * overflowing stack overflows measurably instead of being silently
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
7
7
  * The frame shell — the rendered-class page root, the frame analog of the
8
8
  * website page shell. The frame is a viewport: every host owes a frame
9
9
  * document a window that is exactly the format's bleed box, and the static
10
- * half of the contract (`.tr-frame`, from the kit's base stylesheet) fills
10
+ * half of the contract (`.tr-frame`, from the framework's base stylesheet) fills
11
11
  * that window, clips at the shell's own edge, and lays sections out as a
12
12
  * rigid flex column (`flex-shrink: 0` on every direct child, so an
13
13
  * overflowing stack overflows measurably instead of being silently
@@ -66,7 +66,7 @@ type Props = (ImageOptions & {
66
66
  * Whatever box your classes establish is the box, and `object-position` on the `<img>`
67
67
  * is yours to set where a design wants the cover nudged.
68
68
  *
69
- * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.tr-image-frame`
69
+ * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.concrete-image-frame`
70
70
  * when the value is absent — that your `className` lands on and the `<img>` absolutely
71
71
  * fills as an `object-cover`. Size the wrapper with your own classes (an aspect utility,
72
72
  * a height, an absolute inset) and the image covers it. `className` is the ONLY prop that
@@ -32,7 +32,7 @@ function resolveRendition(value, rendition) {
32
32
  * Whatever box your classes establish is the box, and `object-position` on the `<img>`
33
33
  * is yours to set where a design wants the cover nudged.
34
34
  *
35
- * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.tr-image-frame`
35
+ * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.concrete-image-frame`
36
36
  * when the value is absent — that your `className` lands on and the `<img>` absolutely
37
37
  * fills as an `object-cover`. Size the wrapper with your own classes (an aspect utility,
38
38
  * a height, an absolute inset) and the image covers it. `className` is the ONLY prop that
@@ -125,7 +125,7 @@ function Image({ value, alt, frame, fit, sizes, maxRungWidth, mobileBreakpoint,
125
125
  }
126
126
  if (frame === false) {
127
127
  const cls = [
128
- "tr-image-block",
128
+ "concrete-image-block",
129
129
  fit ? objectFitClass(fit) : null,
130
130
  className
131
131
  ].filter(Boolean).join(" ");
@@ -147,7 +147,7 @@ function Image({ value, alt, frame, fit, sizes, maxRungWidth, mobileBreakpoint,
147
147
  ...responsiveImgAttrs
148
148
  }));
149
149
  }
150
- const containerCls = ["tr-image-frame tr-image-block relative overflow-hidden", className].filter(Boolean).join(" ");
150
+ const containerCls = ["concrete-image-frame concrete-image-block relative overflow-hidden", className].filter(Boolean).join(" ");
151
151
  if (!src) return /* @__PURE__ */ jsx("div", {
152
152
  className: containerCls,
153
153
  role: "img",
@@ -7,15 +7,15 @@ type Props = HTMLAttributes<HTMLElement> & {
7
7
  /**
8
8
  * The section root. Every section renderer roots at exactly one `<Section>`.
9
9
  *
10
- * Full-bleed by contract: 100% width with zero margin (`.tr-section`, from the kit's
11
- * base stylesheet), so consecutive sections butt edge-to-edge and a page composes as
10
+ * Full-bleed by contract: 100% width with zero margin (`.concrete-section`, from the
11
+ * framework's base stylesheet), so consecutive sections butt edge-to-edge and a page composes as
12
12
  * a vertical stack with no framework-injected whitespace. A margin utility on this
13
13
  * root would re-open those gaps — `concrete check` reports it
14
14
  * (section-root-margin). Padding is yours: on this root or on a child, the section's
15
15
  * background still paints edge-to-edge under it.
16
16
  *
17
17
  * When content needs a centered, max-width well, write it as JSX on a child:
18
- * `w-full max-w-[var(--tr-container-max)] mx-auto px-[var(--tr-container-pad)]`.
18
+ * `w-full max-w-page mx-auto px-gutter`, spending tokens your own `@theme` declares.
19
19
  */
20
20
  declare function Section({ as, children, className, ...rest }: Props): import("react").JSX.Element;
21
21
  //#endregion
@@ -4,19 +4,19 @@ import { jsx } from "react/jsx-runtime";
4
4
  /**
5
5
  * The section root. Every section renderer roots at exactly one `<Section>`.
6
6
  *
7
- * Full-bleed by contract: 100% width with zero margin (`.tr-section`, from the kit's
8
- * base stylesheet), so consecutive sections butt edge-to-edge and a page composes as
7
+ * Full-bleed by contract: 100% width with zero margin (`.concrete-section`, from the
8
+ * framework's base stylesheet), so consecutive sections butt edge-to-edge and a page composes as
9
9
  * a vertical stack with no framework-injected whitespace. A margin utility on this
10
10
  * root would re-open those gaps — `concrete check` reports it
11
11
  * (section-root-margin). Padding is yours: on this root or on a child, the section's
12
12
  * background still paints edge-to-edge under it.
13
13
  *
14
14
  * When content needs a centered, max-width well, write it as JSX on a child:
15
- * `w-full max-w-[var(--tr-container-max)] mx-auto px-[var(--tr-container-pad)]`.
15
+ * `w-full max-w-page mx-auto px-gutter`, spending tokens your own `@theme` declares.
16
16
  */
17
17
  function Section({ as = "section", children, className, ...rest }) {
18
18
  return /* @__PURE__ */ jsx(as, {
19
- className: ["tr-section", className].filter(Boolean).join(" "),
19
+ className: ["concrete-section", className].filter(Boolean).join(" "),
20
20
  ...rest,
21
21
  children
22
22
  });
@@ -21,7 +21,7 @@ type Props = Omit<HTMLAttributes<HTMLElement>, "title"> & {
21
21
  * dimensions — gone rather than left inert. `url` is the FINISHED embed src, rewritten
22
22
  * once at resolve by `tourEmbedUrl`, so this component is a pure read.
23
23
  *
24
- * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.tr-image-frame` —
24
+ * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.concrete-image-frame` —
25
25
  * that your `className` lands on and the iframe absolutely fills. The kit paints no
26
26
  * geometry: size the wrapper with your own classes and the embed fills it, same as
27
27
  * `<Image>`/`<Video>`.
@@ -11,7 +11,7 @@ import { jsx } from "react/jsx-runtime";
11
11
  * dimensions — gone rather than left inert. `url` is the FINISHED embed src, rewritten
12
12
  * once at resolve by `tourEmbedUrl`, so this component is a pure read.
13
13
  *
14
- * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.tr-image-frame` —
14
+ * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.concrete-image-frame` —
15
15
  * that your `className` lands on and the iframe absolutely fills. The kit paints no
16
16
  * geometry: size the wrapper with your own classes and the embed fills it, same as
17
17
  * `<Image>`/`<Video>`.
@@ -32,7 +32,7 @@ function Tour({ value, alt, frame, className, ...rest }) {
32
32
  const { markerAttrs, rest: hostAttrs } = splitMarkerAttrs(rest);
33
33
  const src = value?.url ? value.url : null;
34
34
  const altText = alt ?? value?.alt ?? "";
35
- const unframedCls = ["tr-image-block", className].filter(Boolean).join(" ");
35
+ const unframedCls = ["concrete-image-block", className].filter(Boolean).join(" ");
36
36
  const iframeEl = src === null ? null : /* @__PURE__ */ jsx("iframe", {
37
37
  src,
38
38
  title: altText || "3D tour",
@@ -57,7 +57,7 @@ function Tour({ value, alt, frame, className, ...rest }) {
57
57
  });
58
58
  }
59
59
  return /* @__PURE__ */ jsx("div", {
60
- className: ["tr-image-frame tr-image-block relative overflow-hidden", className].filter(Boolean).join(" "),
60
+ className: ["concrete-image-frame concrete-image-block relative overflow-hidden", className].filter(Boolean).join(" "),
61
61
  ...iframeEl ? {} : {
62
62
  role: "img",
63
63
  "aria-label": altText || void 0
@@ -32,7 +32,7 @@ type Props = Omit<VideoHTMLAttributes<HTMLVideoElement>, "src" | "poster" | "aut
32
32
  * an embed src the resolver already finished. Absent `source` is an upload. Both share
33
33
  * one frame container, one poster-only fallback, and one marker spread.
34
34
  *
35
- * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.tr-image-frame` —
35
+ * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.concrete-image-frame` —
36
36
  * that your `className` lands on and the player absolutely fills. The kit paints no
37
37
  * geometry: size the wrapper with your own classes (an aspect utility, a height) and the
38
38
  * player covers it. `frame={false}` hands your classes to the media element itself.
@@ -25,7 +25,7 @@ const PREVIEW_PLAYBACK = {
25
25
  * an embed src the resolver already finished. Absent `source` is an upload. Both share
26
26
  * one frame container, one poster-only fallback, and one marker spread.
27
27
  *
28
- * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.tr-image-frame` —
28
+ * **Framed** (default): a wrapper — `relative`, clipped, tinted via `.concrete-image-frame` —
29
29
  * that your `className` lands on and the player absolutely fills. The kit paints no
30
30
  * geometry: size the wrapper with your own classes (an aspect utility, a height) and the
31
31
  * player covers it. `frame={false}` hands your classes to the media element itself.
@@ -53,7 +53,7 @@ function Video({ value, alt, frame, fit, playback, preview, className, ...rest }
53
53
  const p = preview ? PREVIEW_PLAYBACK : playback ?? DEFAULT_PLAYBACK;
54
54
  const objectFit = objectFitClass(fit ?? "cover");
55
55
  const unframedCls = [
56
- "tr-image-block",
56
+ "concrete-image-block",
57
57
  fit ? objectFitClass(fit) : null,
58
58
  className
59
59
  ].filter(Boolean).join(" ");
@@ -91,7 +91,7 @@ function Video({ value, alt, frame, fit, playback, preview, className, ...rest }
91
91
  ...markerAttrs
92
92
  });
93
93
  }
94
- const containerCls = ["tr-image-frame tr-image-block relative overflow-hidden", className].filter(Boolean).join(" ");
94
+ const containerCls = ["concrete-image-frame concrete-image-block relative overflow-hidden", className].filter(Boolean).join(" ");
95
95
  if (!mediaEl) return /* @__PURE__ */ jsx("div", {
96
96
  className: containerCls,
97
97
  role: "img",
@@ -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. */
package/dist/styles.css CHANGED
@@ -54,7 +54,8 @@
54
54
  --spacing: 0.25rem; /* v4 base unit; Tailwind multiplies (e.g. p-4 = 1rem) */
55
55
 
56
56
  /* ---------- Motion ----------
57
- * The --tr-* values these read are defined in base.css, which every page loads. */
58
- --default-transition-duration: var(--tr-duration-fast);
59
- --default-transition-timing-function: var(--tr-ease);
57
+ * The --concrete-* values these read are defined in base.css, which every page
58
+ * loads — the framework's own namespace, never a template's. */
59
+ --default-transition-duration: var(--concrete-duration-fast);
60
+ --default-transition-timing-function: var(--concrete-ease);
60
61
  }
@@ -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 >=3.0.0 <4.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` **>=3.0.0 <4.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 >=3.0.0 <4.0.0"
7
7
  related: [reference/cli/INDEX.md]
8
8
  ---
9
9
  # concrete build