@getvitops/generator 8.0.1 → 8.2.0-alpha.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 +382 -17
- package/assets/css/layout-utilities.css +13 -0
- package/assets/css/layout.css +31 -0
- package/assets/css/patterns/banner.css +7 -0
- package/assets/css/patterns/cluster.css +19 -0
- package/assets/css/patterns/comment.css +18 -0
- package/assets/css/patterns/gallery.css +16 -0
- package/assets/css/patterns/list.css +17 -0
- package/assets/css/patterns/marquee.css +6 -0
- package/assets/css/patterns/masonry.css +18 -0
- package/assets/js/consent.js +1 -1
- package/assets/js/deferred.js +1 -1
- package/assets/js/editor.js +2 -2
- package/assets/js/elements.js +4 -4
- package/assets/js/polyfills/adoptedStyleSheets.js +1 -1
- package/assets/js/polyfills/css-anchor-positioning-fn.js +4 -4
- package/assets/js/polyfills/global.esm.js +1 -1
- package/assets/js/polyfills/invokers-polyfill.js +1 -1
- package/assets/js/polyfills/popover.js +2 -2
- package/assets/js/polyfills/webcomponents-bundle.js +9 -9
- package/config.schema.json +333 -118
- package/dist/config-DvbYx3Gi.mjs +1971 -0
- package/dist/config-DvbYx3Gi.mjs.map +1 -0
- package/dist/config.d.mts +2544 -0
- package/dist/config.d.mts.map +1 -0
- package/dist/config.mjs +3 -0
- package/dist/icons-sprite-Bf_KmKeX.d.mts +267 -0
- package/dist/icons-sprite-Bf_KmKeX.d.mts.map +1 -0
- package/dist/icons-sprite.d.mts +2 -0
- package/dist/icons-sprite.mjs +129 -0
- package/dist/icons-sprite.mjs.map +1 -0
- package/dist/index.d.mts +60 -2857
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +95 -2386
- package/dist/index.mjs.map +1 -1
- package/dist/schema-Dmq1J7S3.d.mts +292 -0
- package/dist/schema-Dmq1J7S3.d.mts.map +1 -0
- package/dist/tokens-8SXMDAd1.d.mts +229 -0
- package/dist/tokens-8SXMDAd1.d.mts.map +1 -0
- package/dist/tokens-zi594IZ3.mjs +697 -0
- package/dist/tokens-zi594IZ3.mjs.map +1 -0
- package/dist/tokens.d.mts +2 -0
- package/dist/tokens.mjs +3 -0
- package/package.json +17 -5
- package/schema.json +12 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,365 @@
|
|
|
1
1
|
# @getvitops/generator
|
|
2
2
|
|
|
3
|
+
## 8.2.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 65a13cc: **New: `site.experiments`** — runtime, per-visitor A/B content experiments for a page that
|
|
8
|
+
must stay at one URL (unlike `site.abTesting`'s existing build-time variant merge, which is
|
|
9
|
+
for a full design-system/CSS-level test via two manual deploys — `site.experiments` is the
|
|
10
|
+
opposite granularity: one page, one cookie, content branched in the page itself). Keyed by
|
|
11
|
+
an open experiment name, so more than one can run at once, each with its own consent
|
|
12
|
+
category, cookie name/lifetime, split ratio and pair of variant names.
|
|
13
|
+
|
|
14
|
+
**New `vitopsAbTesting()` middleware** (`@getvitops/astro/middleware`) — the first Astro
|
|
15
|
+
middleware this toolchain ships. Wire it into your own `src/middleware.ts`:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { vitopsAbTesting } from '@getvitops/astro/middleware';
|
|
19
|
+
import config from '../site.json' with { type: 'json' };
|
|
20
|
+
|
|
21
|
+
export const onRequest = vitopsAbTesting({
|
|
22
|
+
experiments: config.site.experiments ?? {},
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
It assigns and cookie-pins a visitor to one of an experiment's two variants on first visit,
|
|
27
|
+
by weighted random (`splitRatio`) — and never touches an already-set cookie, so a recognized
|
|
28
|
+
query parameter named after the cookie itself (`?_ab_<key>=<variant>`) reliably forces that
|
|
29
|
+
variant, even overriding an existing assignment. Combined with `splitRatio: 0`, this is a
|
|
30
|
+
blue/green-style "100% on control, but a shared link reveals the other variant" mode with no
|
|
31
|
+
special-cased logic.
|
|
32
|
+
|
|
33
|
+
A page reads its own experiment's cookie (`Astro.cookies.get(cookieName)?.value`) and
|
|
34
|
+
renders whichever of its two hand-written blocks matches — there's no config-schema
|
|
35
|
+
representation of "the variant content," which is what keeps this lightweight regardless of
|
|
36
|
+
how many experiments are configured.
|
|
37
|
+
|
|
38
|
+
**`<Analytics />` gained a reporting hook**: each configured provider's bootstrap now
|
|
39
|
+
attaches an enabled experiment's assignment to the real pageview via that provider's own
|
|
40
|
+
mechanism — Plausible via `plausible.init({customProperties})`, Matomo via
|
|
41
|
+
`setCustomDimension` (needs a new `site.analytics.matomo.abVariantDimensions` entry — the
|
|
42
|
+
dimension must exist in your Matomo instance first), GA4 via a runtime-merged
|
|
43
|
+
`gtag('config', …)` call. A no-op when `site.experiments` is unset — zero behavior change
|
|
44
|
+
for every existing site.
|
|
45
|
+
|
|
46
|
+
Also new: `experimentDimensionWarnings(site)` (`@getvitops/generator`) — a build-time warning
|
|
47
|
+
(not a hard error) when an enabled experiment's site also configures Matomo but has no
|
|
48
|
+
matching `abVariantDimensions` entry.
|
|
49
|
+
|
|
50
|
+
**Not included in this pass, deliberately**: a mechanism for a fully prerendered
|
|
51
|
+
(`output: 'static'`) page — this needs a genuinely separate Cloudflare Worker Route + two
|
|
52
|
+
pre-built static variants, real but bounded follow-up work. Everything above applies to an
|
|
53
|
+
on-demand-rendered page (the current EmDash templates' default), which needs zero new
|
|
54
|
+
deploy infrastructure.
|
|
55
|
+
|
|
56
|
+
- 67e2088: **Config validation now rejects unknown keys instead of silently stripping them.** Every
|
|
57
|
+
object in `ConfigSchema` (the `Config` type — `organization`/`site` and everything nested under
|
|
58
|
+
them) switched from `z.object` to `z.strictObject`, matching what the published JSON Schema has
|
|
59
|
+
always asserted (`additionalProperties: false` at ~95 points) but the runtime validator never
|
|
60
|
+
actually enforced. A typo'd field (`site.ntoifications`, an add-on key on the wrong nesting
|
|
61
|
+
level, …) now fails `validateConfig()`/`vitops validate` with an `unrecognized_keys` error naming
|
|
62
|
+
the bad key, instead of validating successfully and doing nothing. `site.icons` stays
|
|
63
|
+
deliberately loose (`z.looseObject`, unchanged) — its per-set keys are open-ended by design.
|
|
64
|
+
|
|
65
|
+
**Breaking for any config carrying a field that isn't in the schema** — this is the point of the
|
|
66
|
+
change, but if a real config was relying on the old silent-strip behavior (an extra key kept
|
|
67
|
+
around for another tool to read), move it under a block the schema already permits `z.unknown()`
|
|
68
|
+
on (`site.cloudflare`, `site.tags`, `site.postTypes`) or open an issue.
|
|
69
|
+
|
|
70
|
+
Also:
|
|
71
|
+
- Added `configVersion` (optional, currently `1`) to `Config` — the document's own SHAPE
|
|
72
|
+
version, distinct from this package's release version (which is CSS-driven and bumps on every
|
|
73
|
+
design-system change regardless of `Config`'s shape). `defaultSiteConfig()` stamps it.
|
|
74
|
+
Exported as `CONFIG_VERSION`.
|
|
75
|
+
- Re-exported several `Config`-related types/values that were defined but missing from the
|
|
76
|
+
package root: `SiteReviews`, `SiteReviewLocation`, `SiteSearchConsoleSetup`,
|
|
77
|
+
`CrmProviderConfig`, `CRM_PROVIDERS`, `BIGIN_DATA_CENTERS`.
|
|
78
|
+
- Added a `@getvitops/generator/config` subpath export — `ConfigSchema`, `Config`,
|
|
79
|
+
`validateConfig`, `resolveConfig`, `isConfig`, `resolveInput` and friends, on their own, with no
|
|
80
|
+
`node:fs`/`node:crypto`/lightningcss in the import graph (verified: `publint` clean, and the
|
|
81
|
+
built chunk's own imports are `@zod/mini` + `@getvitops/utils`'s Worker-safe `ads`/`tracking`/
|
|
82
|
+
`color` subpaths only). This is what makes `Config` bundleable in a Cloudflare Worker — the
|
|
83
|
+
EmDash plugin's own admin route being the motivating case — without pulling in code that only
|
|
84
|
+
ever runs at build time.
|
|
85
|
+
|
|
86
|
+
- 0574388: Add `site.crm` — push form submissions into HubSpot, Zoho Bigin, or Jobber.
|
|
87
|
+
|
|
88
|
+
Client sites need form submissions to land in the client's CRM. The options available before this
|
|
89
|
+
— a HubSpot/Bigin/Jobber iframe or JS embed — fail on three counts: the markup can't be
|
|
90
|
+
white-labelled against this design system, nothing can operate on the submission before it leaves
|
|
91
|
+
the page, and the submission never touched `createConversionRoute()`, so `_ac` ad-click attribution
|
|
92
|
+
was lost and no conversion notification was planned.
|
|
93
|
+
|
|
94
|
+
This adds one server-side path for all three CRMs, hung off the conversion route that already
|
|
95
|
+
exists. `createConversionRoute()` gets a new `crm` option (`{ config, credentials, fetch?,
|
|
96
|
+
timeoutMs? }`); credentials arrive as a function of `locals`, exactly like the existing `binding`
|
|
97
|
+
option, and are never config. A failed CRM write never fails the request and is folded into the
|
|
98
|
+
notification email's new "Delivery" section, so a broken CRM token is never silent.
|
|
99
|
+
|
|
100
|
+
New `@getvitops/utils/crm` subpath: `deliverToCrm()`, `mapSubmission()`, `deriveLastName()` (Bigin
|
|
101
|
+
requires a last name; this derives one from an explicit field, a full name, or an email address,
|
|
102
|
+
refusing rather than fabricating one), `submitToHubSpot()`, `submitToBigin()`, `submitToJobber()`.
|
|
103
|
+
`identifySubmitter()` was promoted out of `notify`'s private name-guessing cascade into
|
|
104
|
+
`@getvitops/utils/tracking`, since the CRM mapper needed the whole identity (first/last name,
|
|
105
|
+
email, phone, company), not just a display name.
|
|
106
|
+
|
|
107
|
+
Jobber is GraphQL, not REST, and answers `200 OK` for failures — a rejected `clientCreate` returns
|
|
108
|
+
`userErrors[]`, a malformed request returns top-level `errors[]`. `submitToJobber()` classifies on
|
|
109
|
+
the response body, not just the status. Its refresh tokens also rotate by default: **Refresh Token
|
|
110
|
+
Rotation must be turned off** in the app's Developer Center settings, since a Worker reading a
|
|
111
|
+
static `VITOPS_JOBBER_REFRESH_TOKEN` cannot persist a rotated one — a rotated token is detected at
|
|
112
|
+
exchange time and reported with the fix, rather than surfacing an hour later as an opaque 401.
|
|
113
|
+
Attribution and unmapped extra fields render into a best-effort note by default (works on every
|
|
114
|
+
Jobber plan); a resubmitting visitor creates a second Jobber client unless `crm.jobber.dedupe: true`
|
|
115
|
+
is set once its lookup query has been verified against a live account (defaults `false` pending
|
|
116
|
+
that verification — see `jobber.ts`'s docblock).
|
|
117
|
+
|
|
118
|
+
New `site.crm` config block (`provider`, `hubspot`/`bigin`/`jobber`, `fieldMap`, `trackingFields`)
|
|
119
|
+
and two CLI commands: `vitops crm check` (fetches the live HubSpot property list or Bigin field
|
|
120
|
+
list and reports every mapped name that doesn't exist there — HubSpot rejects an unknown field
|
|
121
|
+
outright, Bigin silently drops it; Jobber has nothing live to check yet, since its mapped values
|
|
122
|
+
currently render as note text) and `vitops crm setup` (creates missing HubSpot properties; Bigin
|
|
123
|
+
and Jobber have no such API, so both always print a manual reminder).
|
|
124
|
+
|
|
125
|
+
The generated privacy policy now names HubSpot, Zoho Bigin, or Jobber when `site.crm` configures
|
|
126
|
+
one. Bigin gets the same cross-border-transfer derivation Matomo Cloud already gets: a
|
|
127
|
+
`dataCenter: 'ca'` asserts no transfer outside Canada, any other data centre does. Jobber's
|
|
128
|
+
operator (Octopusapp Inc. d/b/a Jobber) is Canadian, but its own privacy policy names the United
|
|
129
|
+
States as a processing location too, so the policy always asserts a cross-border transfer for
|
|
130
|
+
Jobber regardless of config — a Canadian operator is not read as Canadian-only storage.
|
|
131
|
+
|
|
132
|
+
Credentials: `VITOPS_HUBSPOT_ACCESS_TOKEN` for HubSpot; `VITOPS_ZOHO_CLIENT_ID` /
|
|
133
|
+
`VITOPS_ZOHO_CLIENT_SECRET` / `VITOPS_ZOHO_REFRESH_TOKEN` for Bigin; `VITOPS_JOBBER_CLIENT_ID` /
|
|
134
|
+
`VITOPS_JOBBER_CLIENT_SECRET` / `VITOPS_JOBBER_REFRESH_TOKEN` for Jobber. Never config.
|
|
135
|
+
|
|
136
|
+
No consumer-facing change in `@getvitops/astro` beyond the new `crm` route option and a build
|
|
137
|
+
warning when `site.crm` is configured with no route answering `TRACKING_ENDPOINT` — CSS/Bricks/
|
|
138
|
+
tailwind outputs are unaffected.
|
|
139
|
+
|
|
140
|
+
- c3c1bcb: **New: the design-system editor, mounted inside the EmDash admin.** `vitopsEmdash({
|
|
141
|
+
designSystemEditor: { config } })` (`config` is your `site.json`, e.g. `import config from
|
|
142
|
+
'./site.json' with { type: 'json' }`) adds a `/design-system` admin page mounting
|
|
143
|
+
`<wc-theme-editor>` — the same live token editor `@getvitops/vite`'s dev server has always
|
|
144
|
+
offered, now usable by the client directly, no dev server required. An edit is visible
|
|
145
|
+
site-wide immediately (a runtime `:root` override, served via a new plugin API route and
|
|
146
|
+
`page:fragments`) and — once `site.deployment.repo`/`branch` and a `VITOPS_GITHUB_TOKEN`
|
|
147
|
+
secret are set (see the scaffold's `SETUP.html`) — auto-commits to your `dev` branch, so it
|
|
148
|
+
reaches the git-tracked `site.json` through your repo's normal review path rather than
|
|
149
|
+
becoming a second, unreviewed source of truth. Until that's configured, the live half still
|
|
150
|
+
works; only the auto-commit half is skipped (and says so in the admin page). The save route
|
|
151
|
+
runs the exact same accessibility (APCA contrast) gate `generate()` enforces at build time,
|
|
152
|
+
synchronously, before persisting — nothing non-compliant ever goes live even momentarily.
|
|
153
|
+
|
|
154
|
+
Requires `@astrojs/react` + `react` + `react-dom` (already scaffold dependencies, for
|
|
155
|
+
EmDash's own admin) and `@getvitops/core` (added as a new scaffold dependency this release).
|
|
156
|
+
Declares two new plugin capabilities when enabled: `network:request` (for the GitHub
|
|
157
|
+
auto-commit) and `hooks.page-fragments:register` (for the live override) — reviewed once at
|
|
158
|
+
plugin-install time.
|
|
159
|
+
|
|
160
|
+
**Breaking for `@getvitops/emdash`**: `vitopsEmdash()`'s `hooks.page-fragments:register`
|
|
161
|
+
capability is now also granted whenever `designSystemEditor` is set, independent of the
|
|
162
|
+
existing `scripts: 'fragments'` option (which governs something unrelated — web-component
|
|
163
|
+
script delivery). No change if you don't use `designSystemEditor`.
|
|
164
|
+
|
|
165
|
+
Also new, supporting the above:
|
|
166
|
+
- `@getvitops/generator`: `validateColorContract()` and `buildReverseIndex()` (both
|
|
167
|
+
`/tokens` subpath, Worker-safe) — the monotonicity/contrast gate and the
|
|
168
|
+
`design-manifest.json` reverse-index, each extracted from `generate()`'s `build()` into
|
|
169
|
+
standalone, non-throwing functions. `patchToOverrideCss()` turns a design-system patch
|
|
170
|
+
into the `:root` override `<style>` block. `designSystemPath`/`getAt`/`setAt`/
|
|
171
|
+
`mergePatch`/`formatConfig` moved from `@getvitops/vite` into `@getvitops/generator/config`
|
|
172
|
+
(re-exported from `@getvitops/vite` unchanged) — one "patch a config file's design-system
|
|
173
|
+
subtree" implementation shared by the dev endpoint and the new plugin route. New
|
|
174
|
+
`site.deployment.repo`/`branch` config fields.
|
|
175
|
+
- `@getvitops/utils`: new `/git` subpath — `commitFile()`, a Worker-safe (fetch-only)
|
|
176
|
+
wrapper over GitHub's Contents API.
|
|
177
|
+
- `@getvitops/core`: `<wc-theme-editor>` gains a `save-endpoint` attribute (default
|
|
178
|
+
unchanged — `/__vitops/design-system`) so the same element can target the new plugin
|
|
179
|
+
route instead of the dev-only Vite endpoint.
|
|
180
|
+
|
|
181
|
+
- 0574388: Add `vitops email setup|check` — connect `site.notifications.email.from` to whether its domain is
|
|
182
|
+
actually onboarded onto an outbound email provider.
|
|
183
|
+
|
|
184
|
+
Before this, nothing checked that. `EMAIL.send()` throws `E_SENDER_NOT_VERIFIED` at runtime with no
|
|
185
|
+
build or deploy-time warning — the failure mode is silent and production-only.
|
|
186
|
+
|
|
187
|
+
`vitops email setup [domain]` onboards a sending domain (currently Cloudflare Email Sending only)
|
|
188
|
+
and polls DNS until its SPF/DKIM/DMARC records resolve or a timeout is reached; `vitops email
|
|
189
|
+
check` is the non-blocking deploy guard both `@getvitops/create` templates' `deploy`/`deploy:dev`
|
|
190
|
+
scripts now run first (`--strict` makes it a real gate; opt out per-site with
|
|
191
|
+
`site.notifications.email.verifySender: false`, or globally with `--skip` /
|
|
192
|
+
`VITOPS_SKIP_EMAIL_CHECK`).
|
|
193
|
+
|
|
194
|
+
Two things worth knowing before running it:
|
|
195
|
+
- **The onboarded entity is an exact name, and it is usually a subdomain**
|
|
196
|
+
(`send.yourdomain.com`), never the apex your `from` address names. When the exact domain isn't
|
|
197
|
+
onboarded but a sibling in the same zone already is, the command reports that as the fix — send
|
|
198
|
+
from the onboarded subdomain — rather than silently trying to onboard the apex, which rewrites
|
|
199
|
+
`_dmarc.<domain>` and can tighten DMARC policy on every other mail your domain sends.
|
|
200
|
+
- Candidates come from `site.notifications.email.from` (or its derived `noreply@<domains
|
|
201
|
+
.canonical>` default) first; a best-effort scan of `--src` only supplements it, and never guesses
|
|
202
|
+
at a computed `from` value.
|
|
203
|
+
|
|
204
|
+
New `@getvitops/utils/email` subpath and `site.notifications.email.verifySender` config field.
|
|
205
|
+
Needs `CLOUDFLARE_API_TOKEN` with an Email Sending scope in addition to the `Zone:Read` other
|
|
206
|
+
commands already use.
|
|
207
|
+
|
|
208
|
+
- dde3df3: **`site.ads.google.conversionLabel` now accepts a per-action map** —
|
|
209
|
+
`{ call?, email?, form? }` — instead of one bare string shared by every
|
|
210
|
+
interaction. A bare string still works (back-compat, treated as `call`), but a
|
|
211
|
+
call and an email click used to report as the **same** Google Ads conversion
|
|
212
|
+
action, indistinguishable in the account; each action now gets its own
|
|
213
|
+
`send_to` target.
|
|
214
|
+
|
|
215
|
+
**New: `vitopsFormConversion(formEl)`**, exposed as `window.vitopsFormConversion`
|
|
216
|
+
by `<Tracking />`'s capture script — call it from your own fetch-based form
|
|
217
|
+
submit handler once the POST to `createConversionRoute()` succeeds, to fire the
|
|
218
|
+
`form` Google Ads conversion action client-side (mirroring the existing
|
|
219
|
+
tel:/mailto: click handler, which now fires `call`/`email` instead of sharing
|
|
220
|
+
one label). Idempotent per form element. There's deliberately no server-side
|
|
221
|
+
equivalent for a no-JS `<form method="post">` submission — that's a full-page
|
|
222
|
+
redirect with no script to fire from, and a real server-side Google Ads
|
|
223
|
+
conversion needs the Ads API's click-conversion upload (developer token + MCC
|
|
224
|
+
access), tracked separately in the vNext backlog.
|
|
225
|
+
|
|
226
|
+
**Fixed: the conversion route's rate limiter no longer trusts the client's
|
|
227
|
+
raw `event` field.** It used to key on whatever string a client sent
|
|
228
|
+
(`` `${ip}:${body.event}` ``), so varying that value on every request let a
|
|
229
|
+
form submission dodge the per-IP rate limit entirely — only `'call'`/`'email'`
|
|
230
|
+
were ever recognized, and anything else got its own fresh bucket. The key now
|
|
231
|
+
uses the server's own classification (`call` | `email` | `form`), closing that
|
|
232
|
+
bypass without changing the existing call-vs-email-don't-compete behavior.
|
|
233
|
+
|
|
234
|
+
**New: `site.notifications.actionUrl`** — an optional action-link template
|
|
235
|
+
added to the conversion-notification email as an "Actions" section.
|
|
236
|
+
`{clickId}` is replaced with the ad click ID captured on `_ac` (gclid, fbclid,
|
|
237
|
+
etc.); the section is omitted when the event has no click ID to interpolate,
|
|
238
|
+
rather than emailing a broken link.
|
|
239
|
+
|
|
240
|
+
- d9f213b: **New: `site.plan`** — records a commercial plan/add-on entitlement (`{ key, addons? }`),
|
|
241
|
+
distinct from a section's own `enabled` flag: `enabled` answers "does this site do X at all"
|
|
242
|
+
(a capability switch); `plan` answers "is this client entitled to turn X on" (a commercial
|
|
243
|
+
switch one layer above). Absence means unrestricted, matching every other opt-in block in
|
|
244
|
+
`Config`.
|
|
245
|
+
|
|
246
|
+
`PLAN_CAPABILITIES` (new export) is the small, hand-authored table of which add-on gates
|
|
247
|
+
which `Config` field — today: `ab_testing` gates `site.abTesting.enabled`, any
|
|
248
|
+
`environments.*.variant`, **and any enabled `site.experiments` entry** (that last one was
|
|
249
|
+
missed in this feature's first pass and fixed before release — found while planning this
|
|
250
|
+
toolchain's downstream adoption, not by a consumer hitting it), `server_side_tracking` gates
|
|
251
|
+
`site.tracking.enabled`. `validateConfig` now rejects a config that turns on a gated feature
|
|
252
|
+
without listing the owning add-on in `site.plan.addons`, naming the add-on in the error.
|
|
253
|
+
|
|
254
|
+
**Breaking**: an existing config using `site.abTesting.enabled`/`environments.*.variant` or
|
|
255
|
+
`site.tracking.enabled` now needs a matching `site.plan.addons` entry, or `validateConfig`
|
|
256
|
+
rejects it. Add `site.plan: { key: '<your-plan>', addons: ['ab_testing'] }` (and/or
|
|
257
|
+
`'server_side_tracking'`) to a config already using either feature.
|
|
258
|
+
|
|
259
|
+
### Patch Changes
|
|
260
|
+
|
|
261
|
+
- 0574388: Bump `emdash`/`@emdash-cms/cloudflare` peers to `>=1.0.0 <2` and `vite-plus` to `^1.0.0`, following
|
|
262
|
+
both projects' GA releases.
|
|
263
|
+
|
|
264
|
+
**Breaking for `@getvitops/emdash` consumers on EmDash 0.x**: the peer range no longer admits
|
|
265
|
+
`emdash@0.31.x`/`@emdash-cms/cloudflare@0.31.x`. Upgrade `emdash` and `@emdash-cms/cloudflare` to
|
|
266
|
+
`^1.0.1` first — nothing in `@getvitops/emdash`'s own plugin surface (`admin.portableTextBlocks`,
|
|
267
|
+
the `hooks.page-fragments:register` capability, `definePlugin()`) changed against EmDash 1.0, so no
|
|
268
|
+
code here needed to change, only the declared range.
|
|
269
|
+
|
|
270
|
+
The `emdash` scaffold template (`vp create @getvitops:emdash`) picks up several fixes alongside
|
|
271
|
+
the version bump:
|
|
272
|
+
- `tailwindcss`/`@tailwindcss/vite` are now real dependencies — the template selected
|
|
273
|
+
`css.format: 'tailwind'` without installing either, which threw on build.
|
|
274
|
+
- `site.json` now sets `site.icons.sprite: true` plus the full `semantic` list the
|
|
275
|
+
`vitops.actionLink` block's icon picker offers — previously its sprite icons pointed at a file
|
|
276
|
+
the build never generated.
|
|
277
|
+
- `astro.config.mjs` sets `migrations: { runtime: 'check', dev: 'auto' }`, and
|
|
278
|
+
`site-deploy-emdash.yml` runs EmDash 1.0's documented `build → status → apply → deploy → check`
|
|
279
|
+
migration sequence explicitly, rather than relying solely on first-request auto-migration. This
|
|
280
|
+
needs a new GitHub Environment variable, `EMDASH_TARGET_FINGERPRINT` (one per environment),
|
|
281
|
+
which only a human can set — run `emdash migrate --status` against the real deployed database,
|
|
282
|
+
review the printed identity, then `gh variable set EMDASH_TARGET_FINGERPRINT --env <env> --body
|
|
283
|
+
<value>`. Deploys fail clearly on the migration-apply step until it's set.
|
|
284
|
+
- `lint.options.typeAware`/`typeCheck` in the template's own `vite.config.ts` are commented out,
|
|
285
|
+
not deleted: vite-plus 1.0 only honours that option in a project's actual root config, and hard
|
|
286
|
+
errors on it in a nested one (which this file is, sitting inside the `design-system` monorepo).
|
|
287
|
+
Uncomment it once scaffolded into its own repo.
|
|
288
|
+
|
|
289
|
+
No config schema changes. `@getvitops/generator` also switches from the `zod/mini` subpath import
|
|
290
|
+
to the standalone `@zod/mini` package (zod 4.5+; same API) and fixes `validateConfig()` silently
|
|
291
|
+
losing the offending key name on an `unrecognized_keys` error (e.g. a typo'd `site.ads` platform
|
|
292
|
+
now names the bad key instead of reporting a bare "Invalid input").
|
|
293
|
+
|
|
294
|
+
Also fixed: `vp check`'s `tsconfig-error` for `packages/create/templates/emdash/tsconfig.json`
|
|
295
|
+
(`extends: "astro/tsconfigs/strict"`, unresolvable from inside this monorepo since the template
|
|
296
|
+
has no `node_modules` of its own — a pre-existing, structural gap, newly surfaced as a hard error
|
|
297
|
+
by oxlint 1.85's deeper config discovery, and blocking on every commit since this repo's pre-commit
|
|
298
|
+
hook runs `vp check --fix`). Fixed with a new `scripts/link-template-deps.mjs`, wired as the root
|
|
299
|
+
`postinstall` script: symlinks `astro`/`emdash`/`@emdash-cms/cloudflare` into the template's own
|
|
300
|
+
`node_modules/` (resolved fresh from sibling packages that already depend on them for real, not a
|
|
301
|
+
hardcoded `.pnpm` hash) and writes a minimal `astro:content` ambient shim at `.astro/types.d.ts`
|
|
302
|
+
(the same path `astro sync` would generate for real). Both are gitignored and only ever exist
|
|
303
|
+
inside this monorepo's copy of the template — a real scaffold installs its own real copies instead.
|
|
304
|
+
Considered and rejected first: inlining astro's strict preset (drift risk against astro's own
|
|
305
|
+
evolving default) and making the template a real pnpm workspace member (would change how its
|
|
306
|
+
`@getvitops/*: "latest"` deps resolve locally, which `templates.test.ts` exists to protect).
|
|
307
|
+
|
|
308
|
+
**Known gap, not fixed here**: `packages/astro/src/components/container.test.ts` (the
|
|
309
|
+
`AstroContainer`-based render tests) fails to even load under vite-plus 1.0's Vite 8 — direct
|
|
310
|
+
`.astro` imports in a Vitest file need the Astro Vite plugin registered, which nothing in this
|
|
311
|
+
repo's test config actually does (Astro's own docs call for `getViteConfig()`, which doesn't
|
|
312
|
+
compose with vite-plus's own `defineConfig`). A type-level shim
|
|
313
|
+
(`packages/astro/src/components/astro-modules.d.ts`) fixes `vp check`'s type-aware pass, but the
|
|
314
|
+
runtime `vp test` failure for this one file is still open.
|
|
315
|
+
|
|
316
|
+
- 1a3e811: **Fixed: `<Icon />` no longer crashes a Cloudflare Workers SSR page.** It statically imported
|
|
317
|
+
`loadIconSvg`/`spriteId` from `@getvitops/generator`'s root entry, which also re-exports
|
|
318
|
+
`generate.ts` — reaching lightningcss, whose native binary Workers cannot `require()`.
|
|
319
|
+
Rendering `<Icon>` anywhere in an SSR project 500'd every request, regardless of
|
|
320
|
+
`icons.engine`, since the import itself (not just calling the function) pulled lightningcss
|
|
321
|
+
into the bundle. Fixed by publishing a new Worker-safe `@getvitops/generator/icons-sprite`
|
|
322
|
+
subpath (`buildIconSprite`/`loadIconSvg`/`spriteId`, no lightningcss in its import graph) and
|
|
323
|
+
switching `<Icon />` to import from there.
|
|
324
|
+
- Updated dependencies [0574388]
|
|
325
|
+
- Updated dependencies [c3c1bcb]
|
|
326
|
+
- Updated dependencies [0574388]
|
|
327
|
+
- Updated dependencies [0574388]
|
|
328
|
+
- Updated dependencies [0574388]
|
|
329
|
+
- Updated dependencies [0574388]
|
|
330
|
+
- Updated dependencies [dde3df3]
|
|
331
|
+
- @getvitops/utils@8.2.0-alpha.0
|
|
332
|
+
|
|
333
|
+
## 8.1.0
|
|
334
|
+
|
|
335
|
+
### Minor Changes
|
|
336
|
+
|
|
337
|
+
- **Added — `vitops init --site` and `vitops setup`, the scripted client-onboarding path.**
|
|
338
|
+
|
|
339
|
+
`vitops init --site [--name] [--url]` scaffolds a starter `site.json` (the umbrella `Config`,
|
|
340
|
+
embedding a starter design system at `designSystem.themes.default`) instead of a bare
|
|
341
|
+
`design-system.json` — exported as `defaultSiteConfig()` from `@getvitops/generator`, alongside a
|
|
342
|
+
new `CONFIG_SCHEMA_LOCAL_PATH` and an optional `$schema` field on `ConfigSchema` so a scaffolded
|
|
343
|
+
config gets editor autocomplete the same way `design-system.json` already does.
|
|
344
|
+
|
|
345
|
+
`vitops setup <repo|hosting|domain|search|ads|all>` (new `@getvitops/utils/hosting` subpath: a
|
|
346
|
+
pure planner + `wrangler`/`gh`-shelling executors, following the same idempotent
|
|
347
|
+
plan/observe/apply split as `onboarding`/`ads`) automates GitHub repo + branch policy and
|
|
348
|
+
Cloudflare dev D1/R2 + repo secrets, and plans/checks the workers.dev-vs-custom-domain
|
|
349
|
+
consistency without ever applying the cutover itself — see AGENTS.md's new "Client onboarding"
|
|
350
|
+
section for the full design rationale. `search`/`ads` forward to the existing `search setup`/
|
|
351
|
+
`ads setup` subcommands rather than reimplementing them.
|
|
352
|
+
|
|
353
|
+
No consumer-facing change in `@getvitops/vite` or `@getvitops/astro` in this release — bumped
|
|
354
|
+
only because they are in the `fixed` release group with `generator`/`utils`/`cli`.
|
|
355
|
+
`@getvitops/core` does have a real fix in this release; see the separate `banner-hidden-fix`
|
|
356
|
+
changeset.
|
|
357
|
+
|
|
358
|
+
### Patch Changes
|
|
359
|
+
|
|
360
|
+
- Updated dependencies
|
|
361
|
+
- @getvitops/utils@8.1.0
|
|
362
|
+
|
|
3
363
|
## 8.0.1
|
|
4
364
|
|
|
5
365
|
### Patch Changes
|
|
@@ -15,7 +375,6 @@
|
|
|
15
375
|
|
|
16
376
|
**Breaking (`css`/`bricks` and `tailwind` formats — `.lightbox-dialog`'s markup
|
|
17
377
|
contract changed):**
|
|
18
|
-
|
|
19
378
|
- `<Gallery />` now emits ONE `<dialog class="lightbox-dialog">` per gallery,
|
|
20
379
|
wrapping a `<Carousel />`, instead of one dialog per image. A `.gallery__trigger`
|
|
21
380
|
is now a plain `<a href="#slide-id">`, not a `command="show-modal"` button.
|
|
@@ -56,7 +415,6 @@
|
|
|
56
415
|
### Minor Changes
|
|
57
416
|
|
|
58
417
|
- Add Google Business Profile reviews: fetch, cache, render.
|
|
59
|
-
|
|
60
418
|
- **`vitops reviews`** (new CLI command) fetches a client's GBP reviews (legacy v4 API — the only
|
|
61
419
|
one that has them) and writes them to `.vitops/reviews.json`, meant to be committed so a build
|
|
62
420
|
never needs a live Google credential. `--dry` prints the plan; `--check` diffs against the cache
|
|
@@ -91,7 +449,6 @@
|
|
|
91
449
|
`--site` for now.)
|
|
92
450
|
|
|
93
451
|
**Fixed:**
|
|
94
|
-
|
|
95
452
|
- `@getvitops/core`'s 12 runtime deps (`lit`, both `@oddbird` polyfills, both
|
|
96
453
|
`@webcomponents` packages, `colorjs.io`, etc.) were listed as `dependencies` despite
|
|
97
454
|
being bundled into `dist/elements.js`/`dist/polyfills.js`/`dist/deferred.js` — a
|
|
@@ -1131,20 +1488,28 @@ hidden` would pull it out of the accessible-name computation along with the visu
|
|
|
1131
1488
|
{
|
|
1132
1489
|
"designSystem": {
|
|
1133
1490
|
"themes": {
|
|
1134
|
-
"default": {
|
|
1491
|
+
"default": {
|
|
1492
|
+
/* … */
|
|
1493
|
+
},
|
|
1135
1494
|
},
|
|
1136
1495
|
},
|
|
1137
1496
|
"organization": {
|
|
1138
1497
|
"name": "Acme",
|
|
1139
1498
|
"contact": "hq",
|
|
1140
1499
|
"locations": {
|
|
1141
|
-
"hq": {
|
|
1500
|
+
"hq": {
|
|
1501
|
+
/* … */
|
|
1502
|
+
},
|
|
1142
1503
|
},
|
|
1143
1504
|
},
|
|
1144
1505
|
"site": {
|
|
1145
1506
|
"defaultLocale": "en",
|
|
1146
|
-
"domains": {
|
|
1147
|
-
|
|
1507
|
+
"domains": {
|
|
1508
|
+
/* … */
|
|
1509
|
+
},
|
|
1510
|
+
"analytics": {
|
|
1511
|
+
/* … */
|
|
1512
|
+
},
|
|
1148
1513
|
},
|
|
1149
1514
|
}
|
|
1150
1515
|
```
|
|
@@ -1309,7 +1674,7 @@ open-fade-in"` composes slide and fade. Applied at zero specificity with identit
|
|
|
1309
1674
|
Also new, and worth wiring at the same time — **`gitLastmod()` for real sitemap dates**:
|
|
1310
1675
|
|
|
1311
1676
|
```js
|
|
1312
|
-
import vitops, { gitLastmod } from
|
|
1677
|
+
import vitops, { gitLastmod } from '@getvitops/astro';
|
|
1313
1678
|
vitops({ sitemap: { serialize: await gitLastmod() } });
|
|
1314
1679
|
```
|
|
1315
1680
|
|
|
@@ -1494,8 +1859,8 @@ open-fade-in"` composes slide and fade. Applied at zero specificity with identit
|
|
|
1494
1859
|
|
|
1495
1860
|
```js
|
|
1496
1861
|
vitops({
|
|
1497
|
-
analytics: { googleAnalytics:
|
|
1498
|
-
consent: { policyUrl:
|
|
1862
|
+
analytics: { googleAnalytics: 'G-XXXXXXXXXX', plausible: 'acme.com' },
|
|
1863
|
+
consent: { policyUrl: '/legal/cookies' },
|
|
1499
1864
|
});
|
|
1500
1865
|
```
|
|
1501
1866
|
|
|
@@ -1635,7 +2000,7 @@ inset(0 100% 0 0)`, and `clip-path` clips **hit-testing** as well as painting
|
|
|
1635
2000
|
|
|
1636
2001
|
```js
|
|
1637
2002
|
// astro.config.mjs
|
|
1638
|
-
getvitops({ css: { input:
|
|
2003
|
+
getvitops({ css: { input: 'company.json', format: 'css' } });
|
|
1639
2004
|
```
|
|
1640
2005
|
|
|
1641
2006
|
```
|
|
@@ -1686,11 +2051,11 @@ inset(0 100% 0 0)`, and `clip-path` clips **hit-testing** as well as painting
|
|
|
1686
2051
|
getvitops({
|
|
1687
2052
|
fonts: [
|
|
1688
2053
|
{
|
|
1689
|
-
name:
|
|
1690
|
-
provider:
|
|
1691
|
-
cssVariable:
|
|
1692
|
-
weights: [
|
|
1693
|
-
subsets: [
|
|
2054
|
+
name: 'League Spartan',
|
|
2055
|
+
provider: 'fontsource',
|
|
2056
|
+
cssVariable: '--font-league-spartan',
|
|
2057
|
+
weights: ['100 900'],
|
|
2058
|
+
subsets: ['latin'],
|
|
1694
2059
|
preload: true,
|
|
1695
2060
|
},
|
|
1696
2061
|
],
|
|
@@ -2561,7 +2926,7 @@ inset(0 100% 0 0)`, and `clip-path` clips **hit-testing** as well as painting
|
|
|
2561
2926
|
```js
|
|
2562
2927
|
// astro.config.mjs
|
|
2563
2928
|
getvitops({
|
|
2564
|
-
css: { input:
|
|
2929
|
+
css: { input: 'design-system.json', format: 'css', out: 'src/styles' },
|
|
2565
2930
|
editor: true,
|
|
2566
2931
|
});
|
|
2567
2932
|
```
|
|
@@ -270,6 +270,19 @@
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
+
/* Opt out of `.rhythm`'s ambient `li + li` sibling margin (layout.css) for a list
|
|
274
|
+
whose item spacing is already the layout's job — a custom `gap`-based grid or
|
|
275
|
+
flex wrap the framework has no pattern for. Wins by LAYER (this file is
|
|
276
|
+
`vitops.utilities`, later than `.rhythm`'s `vitops.components`), the same
|
|
277
|
+
guarantee `bg-danger-muted` uses to beat `.card` — no specificity trick
|
|
278
|
+
needed, unlike every pattern-local `:is(ul, ol) > li + li` neutraliser above
|
|
279
|
+
and in patterns/*.css. The five framework list patterns (gallery, tag-list,
|
|
280
|
+
cluster, masonry, comment-thread) already do this automatically and don't
|
|
281
|
+
need this class; reach for it on markup the framework doesn't own. */
|
|
282
|
+
.no-rhythm > li + li {
|
|
283
|
+
margin-top: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
273
286
|
/* ── Flex direction (display + direction; tiered classes set both) ── */
|
|
274
287
|
.flex {
|
|
275
288
|
display: flex;
|
package/assets/css/layout.css
CHANGED
|
@@ -133,6 +133,37 @@
|
|
|
133
133
|
.rhythm > :where(ul, ol) + p {
|
|
134
134
|
margin-top: calc(var(--rhythm-base) * var(--rhythm-list-p));
|
|
135
135
|
}
|
|
136
|
+
/* The only DESCENDANT rule in this block (every other rule above is `>`-scoped to
|
|
137
|
+
direct children) — it reaches into a list at any depth, including one nested
|
|
138
|
+
inside a pattern several levels down. That is deliberate: it is the correct
|
|
139
|
+
default for prose, and prose lists can be arbitrarily nested.
|
|
140
|
+
|
|
141
|
+
It is also 0-1-2, not 0-1-0 like the rest of this file's `:where()`-guarded
|
|
142
|
+
rules — `li + li` sits OUTSIDE the `:where()`, so it carries real weight. A
|
|
143
|
+
pattern whose item spacing is already its own job (a `gap`-based grid or flex
|
|
144
|
+
wrap: `.gallery`, `.tag-list`, `.cluster`, `.masonry`, `.comment-thread`,
|
|
145
|
+
`.subgrid`, `.grid-auto`) neutralises this LOCALLY, in its own partial, with
|
|
146
|
+
`&:is(ul, ol) > li + li { margin-block-start: 0; }` — `:is(ul, ol)` pushes it
|
|
147
|
+
to 0-1-3, safely past this rule's 0-1-2 regardless of source order. Consumer
|
|
148
|
+
markup gets the same escape hatch as a public utility: `.no-rhythm`
|
|
149
|
+
(layout-utilities.css), which wins by LAYER instead, since it lives in
|
|
150
|
+
`vitops.utilities`.
|
|
151
|
+
|
|
152
|
+
Two alternatives were considered and rejected, worth recording so neither is
|
|
153
|
+
re-proposed:
|
|
154
|
+
- Centralising the exclusion HERE, as `:where(ul, ol):not(:where(.gallery,
|
|
155
|
+
.subgrid, …))`. Rejected: it re-opens exactly the registry the heading rules
|
|
156
|
+
above were rewritten to delete (see the comment there) — an enumeration that
|
|
157
|
+
is always one pattern short, unlike a closed set like "what a heading is".
|
|
158
|
+
It also fails SILENTLY (a missing name renders a stray margin, nothing
|
|
159
|
+
errors) where the local form fails a build (`bundle-layers.test.ts`'s
|
|
160
|
+
per-pattern drift guard), and this file's `.rhythm` block is hand-mirrored
|
|
161
|
+
into a tailwind template literal (`generate.ts`) that has already drifted
|
|
162
|
+
once — a second selector list to keep in step, not a cleanup.
|
|
163
|
+
- Zeroing `--rhythm-li-li` locally instead of overriding `margin-top`. It
|
|
164
|
+
inherits (declared on `:root`), so it would also zero the rhythm of any
|
|
165
|
+
PROSE list nested inside the opted-out pattern — losing the exact behaviour
|
|
166
|
+
the descendant combinator above exists to provide. */
|
|
136
167
|
.rhythm :where(ul, ol) > li + li {
|
|
137
168
|
margin-top: calc(var(--rhythm-base) * var(--rhythm-li-li));
|
|
138
169
|
}
|
|
@@ -62,3 +62,10 @@
|
|
|
62
62
|
flex-shrink: 0;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
|
|
66
|
+
/* `.banner`'s own `display: flex` and the UA `[hidden] { display: none }` are
|
|
67
|
+
both 0-1-0 — a tie the author sheet wins on source order, so a hidden
|
|
68
|
+
banner would render anyway. Name `[hidden]` explicitly so it always wins. */
|
|
69
|
+
.banner[hidden] {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
@@ -13,6 +13,25 @@
|
|
|
13
13
|
gap: var(--cluster-gap, 0.5rem);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/* Markerless — so ADD `role="list"` to the element. Safari + VoiceOver stop
|
|
17
|
+
announcing a marker-less <ul> as a list, so this reset silently costs the
|
|
18
|
+
semantics the <ul> was chosen for. Nothing in the framework emits this markup,
|
|
19
|
+
so only the author can restore it. Conditional so `.cluster` on a `div` is
|
|
20
|
+
untouched; scoped to `.cluster` alone — the `cluster-*` attribute selectors above
|
|
21
|
+
are alignment modifiers, not the list itself. */
|
|
22
|
+
.cluster:is(ul, ol) {
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
list-style: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Item spacing is the wrap's job, not the flow's — neutralise `.rhythm`'s
|
|
29
|
+
`li + li` margin (see layout.css for why this is local rather than
|
|
30
|
+
centralised). */
|
|
31
|
+
.cluster:is(ul, ol) > li + li {
|
|
32
|
+
margin-block-start: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
16
35
|
.cluster-start-start {
|
|
17
36
|
place-content: start start;
|
|
18
37
|
}
|
|
@@ -85,4 +85,22 @@
|
|
|
85
85
|
display: flex;
|
|
86
86
|
flex-direction: column;
|
|
87
87
|
gap: 1.5rem;
|
|
88
|
+
|
|
89
|
+
/* Markerless — so ADD `role="list"` to the element. Safari + VoiceOver stop
|
|
90
|
+
announcing a marker-less <ul> as a list, so this reset silently costs the
|
|
91
|
+
semantics the <ul> was chosen for. Nothing in the framework emits this markup,
|
|
92
|
+
so only the author can restore it. Conditional so `.comment-thread` on a `div`
|
|
93
|
+
is untouched. */
|
|
94
|
+
&:is(ul, ol) {
|
|
95
|
+
margin: 0;
|
|
96
|
+
padding: 0;
|
|
97
|
+
list-style: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Item spacing is the flex `gap` above's job, not the flow's — neutralise
|
|
101
|
+
`.rhythm`'s `li + li` margin (see layout.css for why this is local rather
|
|
102
|
+
than centralised). */
|
|
103
|
+
&:is(ul, ol) > li + li {
|
|
104
|
+
margin-block-start: 0;
|
|
105
|
+
}
|
|
88
106
|
}
|
|
@@ -27,6 +27,22 @@ wc-gallery {
|
|
|
27
27
|
display: grid;
|
|
28
28
|
grid-template-columns: repeat(auto-fill, minmax(var(--gallery-thumb-size, 150px), 1fr));
|
|
29
29
|
gap: var(--gallery-gap, 0.5rem);
|
|
30
|
+
|
|
31
|
+
/* Gallery.astro emits this as `<ul role="list">`, so the UA's list padding, block
|
|
32
|
+
margin and markers all apply. The pattern owns no outer spacing — the context it
|
|
33
|
+
sits in does. Conditional so `.gallery` on a `div` is untouched. */
|
|
34
|
+
&:is(ul, ol) {
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
list-style: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Item spacing is the grid's job, not the flow's — neutralise `.rhythm`'s
|
|
41
|
+
`li + li` margin (see layout.css for why this is local rather than
|
|
42
|
+
centralised). */
|
|
43
|
+
&:is(ul, ol) > li + li {
|
|
44
|
+
margin-block-start: 0;
|
|
45
|
+
}
|
|
30
46
|
}
|
|
31
47
|
|
|
32
48
|
.gallery__item {
|
|
@@ -244,6 +244,23 @@
|
|
|
244
244
|
align-items: center;
|
|
245
245
|
font-size: var(--_fs);
|
|
246
246
|
|
|
247
|
+
/* Markerless — so ADD `role="list"` to the element. Safari + VoiceOver stop
|
|
248
|
+
announcing a marker-less <ul> as a list, so this reset silently costs the
|
|
249
|
+
semantics the <ul> was chosen for. Nothing in the framework emits this markup,
|
|
250
|
+
so only the author can restore it. Conditional so `.tag-list` on a `div` is
|
|
251
|
+
untouched — `--_p` already overrides the UA padding either way. */
|
|
252
|
+
&:is(ul, ol) {
|
|
253
|
+
margin: 0;
|
|
254
|
+
list-style: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Item spacing is the wrap's job, not the flow's — neutralise `.rhythm`'s
|
|
258
|
+
`li + li` margin (see layout.css for why this is local rather than
|
|
259
|
+
centralised). */
|
|
260
|
+
&:is(ul, ol) > li + li {
|
|
261
|
+
margin-block-start: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
247
264
|
.tag-list__input {
|
|
248
265
|
flex: 1;
|
|
249
266
|
min-inline-size: 6rem;
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
* `100% + gap`, because the seam between copies is one more gap that has to be
|
|
18
18
|
* consumed for the loop to be seamless — translate by a bare `-100%` and the
|
|
19
19
|
* items visibly bunch up once per revolution.
|
|
20
|
+
*
|
|
21
|
+
* `Marquee.astro` authors THREE `.marquee__content` copies (the slotted one
|
|
22
|
+
* plus two `aria-hidden`), not two — a very wide track under the 100% floor
|
|
23
|
+
* needs more than one duplicate to stay covered. `<wc-marquee>` treats the
|
|
24
|
+
* first as its source and discards the rest, replacing them with however many
|
|
25
|
+
* its own measurement calls for.
|
|
20
26
|
*/
|
|
21
27
|
|
|
22
28
|
.marquee {
|