@getvitops/astro 8.3.0-alpha.2 → 8.3.0-alpha.4
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 +35 -0
- package/package.json +6 -6
- package/src/components/SiteFooter.astro +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @getvitops/astro
|
|
2
2
|
|
|
3
|
+
## 8.3.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 322dd6a: Block fixes from the vitops.ca build (findings 11–13, 15, 17, 18, 21).
|
|
8
|
+
|
|
9
|
+
- **Steps.** The marker is an outlined disc in the tone (number and ring in `--tone-solid`, falling back to `currentColor`), so a steps block with no tone no longer shows black discs with no number. Items keep `align-content: start` and no `.rhythm li + li` margin, so markers in a row line up. Two modifiers through the block's `className`: `steps--cards` (each step in a card) and `steps--animated` (the connector draws and the marker fills as each step scrolls in; static under reduced motion or without scroll-driven animations). `steps` is now a config pattern: `patterns.items.steps` in `site.json` owns the card geometry (`content` group tokens) and the marker size (`--steps-marker-size`, `--steps-line-width`); both templates and the reference config ship an entry. all formats.
|
|
10
|
+
- **Stats.** `<wc-counter>` leaves a figure it cannot count as authored (`"1 in 6"`, `"24/7"`, `"—"`) instead of counting down from zero to a wrong value. `animate: false` on the block still turns the count-up off for a whole block.
|
|
11
|
+
- **Logos.** `vitops_logos` takes an optional `kicker`, `note` and `linkLabel`/`linkHref`; with any of them set, the row is wrapped in `.logos-block`. The list keeps the block's attributes either way.
|
|
12
|
+
- **Pricing.** Plans take `yearly` (a second price line) and `note` (under the plan name).
|
|
13
|
+
- **`<SiteFooter>`** has a `brand` named slot, rendered as the first column (`.sitefooter__brand`) in the site's own markup.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [99e66a2]
|
|
18
|
+
- Updated dependencies [00a9d86]
|
|
19
|
+
- Updated dependencies [d64fb20]
|
|
20
|
+
- Updated dependencies [322dd6a]
|
|
21
|
+
- Updated dependencies [322dd6a]
|
|
22
|
+
- @getvitops/core@8.3.0-alpha.4
|
|
23
|
+
- @getvitops/generator@8.3.0-alpha.4
|
|
24
|
+
- @getvitops/utils@8.3.0-alpha.4
|
|
25
|
+
- @getvitops/vite@8.3.0-alpha.4
|
|
26
|
+
- @getvitops/config@8.3.0-alpha.4
|
|
27
|
+
|
|
28
|
+
## 8.3.0-alpha.3
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- @getvitops/config@8.3.0-alpha.3
|
|
33
|
+
- @getvitops/core@8.3.0-alpha.3
|
|
34
|
+
- @getvitops/generator@8.3.0-alpha.3
|
|
35
|
+
- @getvitops/utils@8.3.0-alpha.3
|
|
36
|
+
- @getvitops/vite@8.3.0-alpha.3
|
|
37
|
+
|
|
3
38
|
## 8.3.0-alpha.2
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getvitops/astro",
|
|
3
|
-
"version": "8.3.0-alpha.
|
|
3
|
+
"version": "8.3.0-alpha.4",
|
|
4
4
|
"description": "Astro integration for the Vitops design system — favicons/PWA, web-component scripts, and CSS, via a getvitops() integration + <Head /> component.",
|
|
5
5
|
"homepage": "https://docs.vitops.ca",
|
|
6
6
|
"bugs": "https://github.com/getvitops/design-system/issues",
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@getvitops/config": "8.3.0-alpha.
|
|
113
|
-
"@getvitops/core": "8.3.0-alpha.
|
|
114
|
-
"@getvitops/generator": "8.3.0-alpha.
|
|
115
|
-
"@getvitops/utils": "8.3.0-alpha.
|
|
116
|
-
"@getvitops/vite": "8.3.0-alpha.
|
|
112
|
+
"@getvitops/config": "8.3.0-alpha.4",
|
|
113
|
+
"@getvitops/core": "8.3.0-alpha.4",
|
|
114
|
+
"@getvitops/generator": "8.3.0-alpha.4",
|
|
115
|
+
"@getvitops/utils": "8.3.0-alpha.4",
|
|
116
|
+
"@getvitops/vite": "8.3.0-alpha.4"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
119
|
"@astrojs/sitemap": "^3.7.3",
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* const legal = await getMenu('footer-legal');
|
|
8
8
|
* <SiteFooter {sitemap} {legal} name={siteTitle} />
|
|
9
9
|
*
|
|
10
|
+
* A `brand` slot (a logo, a blurb) renders as the first column, so the markup stays the site's own.
|
|
11
|
+
*
|
|
10
12
|
* Both menus are optional and each renders only if it has items, so a one-page site
|
|
11
13
|
* gets just the copyright line. `name` is `organization.name`.
|
|
12
14
|
*
|
|
@@ -47,6 +49,7 @@ const {
|
|
|
47
49
|
class: className,
|
|
48
50
|
} = Astro.props;
|
|
49
51
|
|
|
52
|
+
const hasBrand = Astro.slots.has('brand');
|
|
50
53
|
const sitemapItems = menuItems(sitemap);
|
|
51
54
|
const columns = sitemapItems
|
|
52
55
|
.filter((item) => (item.children?.length ?? 0) > 0)
|
|
@@ -60,8 +63,13 @@ const groups = [
|
|
|
60
63
|
|
|
61
64
|
<footer class:list={['sitefooter', className]}>
|
|
62
65
|
{
|
|
63
|
-
(groups.length > 0 || columns.length > 0) && (
|
|
66
|
+
(groups.length > 0 || columns.length > 0 || hasBrand) && (
|
|
64
67
|
<div class="sitefooter__nav">
|
|
68
|
+
{hasBrand && (
|
|
69
|
+
<div class="sitefooter__brand">
|
|
70
|
+
<slot name="brand" />
|
|
71
|
+
</div>
|
|
72
|
+
)}
|
|
65
73
|
{columns.map((col) => (
|
|
66
74
|
<nav class="sitefooter__group sitefooter__group--column" aria-labelledby={col.id}>
|
|
67
75
|
<p class="sitefooter__heading font-eyebrow" id={col.id}>
|