@homepages/concrete 2.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/codemods/framework-namespace.mjs +107 -0
- package/codemods/manifest.json +15 -0
- package/codemods/platform-namespace.mjs +83 -0
- package/codemods/theme-collapse.mjs +396 -0
- package/dist/artifact/playground/client/assets/{index-CW7co-u9.js → index-D1fwOGVK.js} +37 -37
- package/dist/artifact/playground/client/index.html +1 -1
- package/dist/artifact/playground/client/island-canvas-host.mjs +1 -1
- package/dist/artifact/playground/host.mjs +19 -19
- package/dist/base.css +57 -34
- package/dist/browser/site-config.d.ts +1 -1
- package/dist/browser/site-config.js +3 -2
- package/dist/cli/check/render/class-conflicts.js +1 -1
- package/dist/cli/dev/islands.js +2 -2
- package/dist/packages/external/concrete/package.js +1 -1
- package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +1 -1
- package/dist/packages/internal/format-geometry/dist/capture.js +4 -4
- package/dist/packages/internal/island-runtime/dist/contract.d.ts +1 -1
- package/dist/packages/internal/section-contracts/dist/record-collection-contract.js +2 -2
- package/dist/primitives/FrameShell.d.ts +1 -1
- package/dist/primitives/FrameShell.js +1 -1
- package/dist/primitives/Image.d.ts +1 -1
- package/dist/primitives/Image.js +3 -3
- package/dist/primitives/Section.d.ts +3 -3
- package/dist/primitives/Section.js +4 -4
- package/dist/primitives/Tour.d.ts +1 -1
- package/dist/primitives/Tour.js +3 -3
- package/dist/primitives/Video.d.ts +1 -1
- package/dist/primitives/Video.js +3 -3
- package/dist/styles.css +4 -3
- package/guide/reference/cli/INDEX.md +2 -2
- package/guide/reference/cli/build.md +1 -1
- package/guide/reference/cli/check.md +1 -1
- package/guide/reference/cli/dev.md +1 -1
- package/guide/reference/cli/property-add.md +1 -1
- package/guide/reference/cli/property-list.md +1 -1
- package/guide/reference/cli/publish.md +1 -1
- package/guide/reference/cli/upgrade.md +1 -1
- package/guide/reference/rules/INDEX.md +1 -1
- package/package.json +1 -3
|
@@ -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 (`.
|
|
10
|
+
* half of the contract (`.concrete-frame`, from the 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 `.
|
|
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
|
package/dist/primitives/Image.js
CHANGED
|
@@ -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 `.
|
|
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
|
-
"
|
|
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 = ["
|
|
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 (`.
|
|
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-
|
|
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 (`.
|
|
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-
|
|
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: ["
|
|
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 `.
|
|
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>`.
|
package/dist/primitives/Tour.js
CHANGED
|
@@ -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 `.
|
|
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 = ["
|
|
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: ["
|
|
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 `.
|
|
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.
|
package/dist/primitives/Video.js
CHANGED
|
@@ -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 `.
|
|
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
|
-
"
|
|
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 = ["
|
|
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",
|
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 --
|
|
58
|
-
|
|
59
|
-
--default-transition-
|
|
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
|
}
|
|
@@ -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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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` **>=
|
|
76
|
+
These pages describe `@homepages/concrete` **>=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.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 >=
|
|
6
|
+
applies_to: "@homepages/concrete >=4.0.0 <5.0.0"
|
|
7
7
|
related: [reference/cli/check.md]
|
|
8
8
|
---
|
|
9
9
|
# Rule reference
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homepages/concrete",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.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",
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
"@homepages/api-contracts": "workspace:*",
|
|
95
95
|
"@homepages/canvas-core": "workspace:*",
|
|
96
96
|
"@homepages/editor-tokens": "workspace:*",
|
|
97
|
-
"@homepages/effective-version": "workspace:*",
|
|
98
97
|
"@homepages/fill-bake": "workspace:*",
|
|
99
98
|
"@homepages/fill-vocabulary": "workspace:*",
|
|
100
99
|
"@homepages/format-geometry": "workspace:*",
|
|
@@ -115,7 +114,6 @@
|
|
|
115
114
|
"@homepages/static-assets-binding": "workspace:*",
|
|
116
115
|
"@homepages/template-artifact": "workspace:*",
|
|
117
116
|
"@homepages/template-contracts": "workspace:*",
|
|
118
|
-
"@homepages/template-rule-registry": "workspace:*",
|
|
119
117
|
"@playwright/test": "^1.62.1",
|
|
120
118
|
"@tailwindcss/cli": "^4.3.0",
|
|
121
119
|
"@tanstack/react-query": "^5.101.4",
|