@realadvisor-sites/kit-core 0.5.0 → 0.5.1
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 +8 -0
- package/DESIGN.md +1 -1
- package/package.json +2 -2
- package/tools/screenshot.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,14 @@ the versions is enough.
|
|
|
11
11
|
To upgrade a site, read every entry newer than the site's current version,
|
|
12
12
|
oldest first, and apply each Upgrade step in order.
|
|
13
13
|
|
|
14
|
+
## 0.5.1
|
|
15
|
+
|
|
16
|
+
- kit-react: the dev server can always be framed by the CRM preview, whatever
|
|
17
|
+
`SITE_MODE` says. The CRM sandbox runs dev with `SITE_MODE=production` (so
|
|
18
|
+
preview enquiries send), which made the React kit send
|
|
19
|
+
`X-Frame-Options: DENY` and the preview stayed blank. Published sites keep
|
|
20
|
+
their headers unchanged.
|
|
21
|
+
|
|
14
22
|
## 0.5.0
|
|
15
23
|
|
|
16
24
|
- React Router is the default: `template/` is now a React Router 7 starter,
|
package/DESIGN.md
CHANGED
|
@@ -90,7 +90,7 @@ import lato900 from '@fontsource/lato/files/lato-latin-900-normal.woff2?url';
|
|
|
90
90
|
other side `auto`: no fixed box, no `object-fit: cover`, no
|
|
91
91
|
`aspect-ratio`. Size it by its shape: a wide wordmark at 1440 at least
|
|
92
92
|
100px wide and 32px tall (140–180px wide for a script or detailed logo),
|
|
93
|
-
at most 72px tall; a tall or square mark (a monogram,
|
|
93
|
+
at most 72px tall; a tall or square mark (a monogram, a stacked numeral) 40–72px tall.
|
|
94
94
|
At 390 at least 28px tall. The header stays slim: at most 12% of the
|
|
95
95
|
screen. `pnpm screenshot` flags a logo off its file's ratio or outside
|
|
96
96
|
these sizes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realadvisor-sites/kit-core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The framework-neutral core of a RealAdvisor site, shared by the Astro kit and the React kit: data helpers over @realadvisor/sites-sdk (a peer), i18n, formatting, legal texts, SEO, search, images, security headers, the browser scripts (listing search and map, enquiry, consent), the sites-kit tools (fixture, screenshot, deploy check) and the rules the coding agent follows (AGENTS.md, DESIGN.md).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"test": "node --experimental-strip-types --no-warnings=ExperimentalWarning --test \"test/*.test.mjs\" \"test/*.test.ts\""
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@realadvisor/sites-sdk": "^0.5.
|
|
58
|
+
"@realadvisor/sites-sdk": "^0.5.1",
|
|
59
59
|
"playwright": "^1.64.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
package/tools/screenshot.mjs
CHANGED
|
@@ -557,7 +557,7 @@ async function shoot({ path, vp, i }) {
|
|
|
557
557
|
const lg = checks.logo;
|
|
558
558
|
if (lg) {
|
|
559
559
|
if (!lg.contain && (lg.dev > 1.05 || lg.dev < 0.95)) entry.problems.push(`[${vp.name}] logo "${lg.name}" ${lg.fit === 'fill' ? 'stretched' : 'cropped'} (box ratio ${(lg.dev * 100 - 100).toFixed(0)}% off the file): set only height (width: auto), no fixed box, no object-fit: cover`);
|
|
560
|
-
// A wide wordmark is sized by width, a tall or square mark (
|
|
560
|
+
// A wide wordmark is sized by width, a tall or square mark (a monogram, a stacked numeral) by height.
|
|
561
561
|
const wide = lg.drawnW / lg.drawnH >= 1.3;
|
|
562
562
|
if (vp.name === '1440' && wide && (lg.drawnW < 100 || lg.drawnH < 32)) entry.problems.push(`[1440] logo "${lg.name}" drawn ${Math.round(lg.drawnW)}x${Math.round(lg.drawnH)}px: at least 100px wide and 32px tall (140–180px wide for a detailed logo)`);
|
|
563
563
|
if (vp.name === '1440' && !wide && (lg.drawnH < 40 || lg.drawnH > 72)) entry.problems.push(`[1440] logo "${lg.name}" (a tall or square mark) drawn ${Math.round(lg.drawnH)}px tall: 40–72px tall`);
|