@getvitops/core 8.3.0-alpha.0 → 8.3.0-alpha.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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @getvitops/core
2
2
 
3
+ ## 8.3.0-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 24c568b: Escape hatches on every block, a section theme, widget areas, a badges block, Tailwind scanning of package renderers, and a sturdier `vitops audit`.
8
+
9
+ **@getvitops/emdash**
10
+
11
+ - Every `vitops.*` block and `vitops_section` gains three fields: `anchor` (rendered as the `id`, so `#contact` works), `className` (`class_name` on the section type: block-type slugs are lowercase) and `style`. `style` takes CSS custom properties only (`--p-card: 2rem`); any other declaration, and any value containing `url(`, `@`, `{`, `}` or a backslash, is dropped. With the `tailwind` format a class typed in the CMS only works if the site already uses it. They are applied to the block's own outermost element (the grid `<ul>` for `vitops.cards`), never an extra wrapper, so a block's markup is the same whether or not an editor fills them in.
12
+ - `vitops_section` gains a `theme` select: a role, or `<role>:solid`, with readable text chosen by the generator's contrast rules. It overrides `tone`/`color`/`solid`, which stay for existing content. Other site roles still go through `tone`.
13
+ - New `vitops.badges` block (a row of `.badge` or `.tag` labels, each with an optional tone, icon and link) and `vitops.widgetArea` block, plus `<VitopsWidgetArea name level />` from `@getvitops/emdash/astro`. A widget area is content defined once under Widgets and shown wherever it is placed. An area cannot hold another area, and an area containing a `core:*` component widget is rendered by EmDash's own renderer.
14
+ - Existing sites: re-run the block-type seed only on a new database; on an existing one add the `theme`, `anchor`, `className` and `style` fields to the `vitops_section` block type in the admin.
15
+
16
+ **@getvitops/create**: the emdash template seeds `announcement` and `pre-footer` widget areas, renders them in `Layout.astro`, and documents when to use a Section, a block or a widget area. Sites scaffolded earlier add the two `<VitopsWidgetArea>` lines and the `widgetAreas` seed entries by hand.
17
+
18
+ **@getvitops/generator / astro / vite** (`tailwind` format only): the Astro integration now adds `@source` lines for `@getvitops/astro` and `@getvitops/emdash`, because Tailwind v4 does not scan `node_modules`; utilities used only by their renderers (`font-display`, `font-caption`, `font-footnote`) were never emitted and the page silently rendered at body size. New `sources` option on `generate()` and the Vite plugin. A site's `src/package-classes.txt` workaround can be deleted. css and bricks: no change.
19
+
20
+ **@getvitops/cli**: `vitops emdash check-prerender` now also warns when a page uses a type-role class (`font-display`, …) the built CSS has no rule for; `--strict` makes it fail. `vitops audit` checks for its optional packages and a Chromium binary before starting the preview server (so a failed run no longer leaves port 4398 busy), stops the server on Ctrl+C and termination, and takes its page list from the built sitemap, then the menus; the guessed defaults (`/privacy`, `/contact`, …) are used only when neither exists.
21
+
22
+ **@getvitops/utils**: the audit helpers behind the above (`preflight`, `fetchSitemapPaths`, `sitemapLocs`, `pathsFromSitemapLocs`).
23
+
24
+ **@getvitops/core** (all formats): new `.block-anchor` rule gives an anchored block `scroll-margin-top: var(--header-offset, 5rem)`; set `--header-offset` to a sticky header's height. New `widget-area.css` partial. No other consumer-facing change.
25
+
26
+ The other fixed-group packages: no consumer-facing change beyond the above.
27
+
28
+ **Also fixed in the emdash template** (`site.json`): it defined only the `display`, `heading` and `body` type roles while the blocks use `title`, `eyebrow`, `lead`, `caption` and `footnote`, so those rendered at body size with no rule behind them. The roles are added with the reference design system's specs. A site scaffolded earlier adds the same five entries under `designSystem.themes.default.typography.roles`; `vitops emdash check-prerender` now names any that are missing.
29
+
3
30
  ## 8.3.0-alpha.0
4
31
 
5
32
  ### Minor Changes
package/css/index.css CHANGED
@@ -74,6 +74,7 @@
74
74
  @import './patterns/marquee.css';
75
75
  @import './patterns/tone.css';
76
76
  @import './patterns/section.css';
77
+ @import './patterns/widget-area.css';
77
78
  @import './patterns/steps.css';
78
79
  @import './patterns/stats.css';
79
80
  @import './patterns/callout.css';
@@ -51,3 +51,11 @@
51
51
  align-items: start;
52
52
  }
53
53
  }
54
+
55
+ /*
56
+ * A block given an anchor id (`@getvitops/emdash`'s `anchor` field). The offset keeps the target
57
+ * clear of a sticky header; set `--header-offset` to the header's height. All formats.
58
+ */
59
+ .block-anchor {
60
+ scroll-margin-top: var(--header-offset, 5rem);
61
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Widget area — editor-managed regions (a footer column, a pre-footer call to action, a
3
+ * sidebar) rendered by `@getvitops/emdash`'s `<VitopsWidgetArea>`. Structure only: a widget is
4
+ * a titled group, a menu widget a plain link list. Colour and type come from the roles and the
5
+ * `.link` / `.font-heading` classes the markup already carries.
6
+ */
7
+ .widget-area {
8
+ display: grid;
9
+ gap: var(--widget-area-gap, 1.5rem);
10
+ }
11
+
12
+ .widget__menu ul {
13
+ display: grid;
14
+ gap: var(--widget-menu-gap, 0.5rem);
15
+ margin: 0;
16
+ padding: 0;
17
+ list-style: none;
18
+ }
19
+
20
+ .widget__title {
21
+ margin-block-end: var(--widget-title-gap, 0.75rem);
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getvitops/core",
3
- "version": "8.3.0-alpha.0",
3
+ "version": "8.3.0-alpha.1",
4
4
  "description": "The Vitops design-system framework — CSS partials, Lit web components, and browser polyfills.",
5
5
  "homepage": "https://docs.vitops.ca",
6
6
  "bugs": "https://github.com/getvitops/design-system/issues",
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "devDependencies": {
32
- "@getvitops/utils": "8.3.0-alpha.0",
32
+ "@getvitops/utils": "8.3.0-alpha.1",
33
33
  "@lit-labs/signals": "^0.3.0",
34
34
  "@oddbird/css-anchor-positioning": "^0.9.0",
35
35
  "@oddbird/popover-polyfill": "^0.7.0",