@getvitops/cli 7.0.0 → 8.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 +125 -19
- package/dist/cli.mjs +2503 -2306
- package/dist/cli.mjs.map +1 -1
- package/package.json +14 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,119 @@
|
|
|
1
1
|
# @getvitops/cli
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Rebuild the lightbox on one dialog + the existing carousel, fixing the flicker on
|
|
8
|
+
prev/next and the stutter on open.
|
|
9
|
+
|
|
10
|
+
**Breaking (`css`/`bricks` and `tailwind` formats — `.lightbox-dialog`'s markup
|
|
11
|
+
contract changed):**
|
|
12
|
+
|
|
13
|
+
- `<Gallery />` now emits ONE `<dialog class="lightbox-dialog">` per gallery,
|
|
14
|
+
wrapping a `<Carousel />`, instead of one dialog per image. A `.gallery__trigger`
|
|
15
|
+
is now a plain `<a href="#slide-id">`, not a `command="show-modal"` button.
|
|
16
|
+
- `.lightbox-dialog__content` / `__image` / `__nav` / `__nav-button` /
|
|
17
|
+
`__caption` are gone. The dialog's child is `.lightbox-dialog__track` (a
|
|
18
|
+
`.carousel`) — prev/next, dots, arrow keys and swipe are the carousel's,
|
|
19
|
+
reused rather than reimplemented. `.lightbox-dialog__close` is unchanged.
|
|
20
|
+
- `<wc-gallery>` no longer builds nav buttons or steps between images — the
|
|
21
|
+
nested `<wc-carousel>` does. It fires `gallery-open` (unchanged shape) and
|
|
22
|
+
re-emits the carousel's own stepping as `gallery-change`.
|
|
23
|
+
- `packages/core/src/web-components/utils/gallery.ts` dropped `keyToAction` and
|
|
24
|
+
`swipeAction` (the carousel's own key/swipe handling covers both now).
|
|
25
|
+
`stepIndex`/`preloadTargets` are unchanged.
|
|
26
|
+
|
|
27
|
+
**Why:** stepping used to close one `<dialog>` and open another, which made
|
|
28
|
+
`animation.css`'s top-layer driver play a full exit-then-entry transition on
|
|
29
|
+
every step — visible as a flicker on prev/next, by construction, not a bug to
|
|
30
|
+
tune away. Opening also awaited the full image's `decode()` before starting the
|
|
31
|
+
view-transition morph, so the dialog visibly stalled on a slow network. One
|
|
32
|
+
dialog containing one carousel makes the first failure mode unrepresentable
|
|
33
|
+
(stepping is a scroll, not a close/open pair) and removes the wait for the
|
|
34
|
+
second (the morph starts immediately, painting the thumbnail as a CSS
|
|
35
|
+
background placeholder until the full image arrives).
|
|
36
|
+
|
|
37
|
+
**Also improved, not just fixed:** the no-JS fallback is no longer a _stripped_
|
|
38
|
+
lightbox — it's a genuine one. Each trigger is ordinary fragment navigation
|
|
39
|
+
(`:has(:target)` in `lightbox.css` reveals the dialog), which needs no Invoker
|
|
40
|
+
Commands polyfill in any engine, and it now has working prev/next with no
|
|
41
|
+
JavaScript at all — the previous per-dialog fallback had no way to express that.
|
|
42
|
+
|
|
43
|
+
**Migration:** a consumer using `<Gallery />` needs no changes — the component's
|
|
44
|
+
props are unchanged. Anyone who hand-authored `.lightbox-dialog` markup (per
|
|
45
|
+
`docs/concepts/patterns.md` / `docs/css/classes.md`) must move to the new single-
|
|
46
|
+
dialog-wrapping-a-carousel shape; see `patterns.astro`'s "Gallery, hand-authored"
|
|
47
|
+
demo for the reference markup. `<wc-gallery>` consumers listening for
|
|
48
|
+
`gallery-change` keep the same event shape (`{ index, total }`).
|
|
49
|
+
|
|
50
|
+
### Minor Changes
|
|
51
|
+
|
|
52
|
+
- Add Google Business Profile reviews: fetch, cache, render.
|
|
53
|
+
|
|
54
|
+
- **`vitops reviews`** (new CLI command) fetches a client's GBP reviews (legacy v4 API — the only
|
|
55
|
+
one that has them) and writes them to `.vitops/reviews.json`, meant to be committed so a build
|
|
56
|
+
never needs a live Google credential. `--dry` prints the plan; `--check` diffs against the cache
|
|
57
|
+
without writing. Requires the same `VITOPS_GOOGLE_CLIENT_ID`/`_CLIENT_SECRET`/`_REFRESH_TOKEN` (or
|
|
58
|
+
ADC login) `search setup` uses, scoped to `business.manage` — **and the calling GCP project must
|
|
59
|
+
be allowlisted by Google first**, a separate one-time approval from every other Google API here.
|
|
60
|
+
- **`site.reviews`** (config): which `organization.locations` to fetch, and per-location
|
|
61
|
+
`featured`/`minRating`/`sort`/`limit` selection. `schema` (JSON-LD) and `avatars` both default to
|
|
62
|
+
**off** — see the migration notes below.
|
|
63
|
+
- **`@getvitops/utils/reviews`** (new subpath): the pure plan/select/merge functions plus the GBP
|
|
64
|
+
fetcher and cache reader/writer, mirroring `./indexing`'s pure/IO split.
|
|
65
|
+
- **`<ReviewCard>`** (new Astro component, `@getvitops/astro`): one review card from a cache entry.
|
|
66
|
+
No web component — nothing here needs progressive enhancement. Composes the existing
|
|
67
|
+
`schemas/Review.astro` for JSON-LD only when both `schema` and `itemReviewed` are passed.
|
|
68
|
+
- **`<Marquee>`** (new Astro component): the tier-3 wrapper `wc-marquee`/`marquee.css` was missing.
|
|
69
|
+
- **`.review` pattern** (`css`/`bricks` and `tailwind` formats): a new config-generated
|
|
70
|
+
`patterns.items.review` entry plus `packages/core/css/patterns/review.css` for the structural
|
|
71
|
+
parts (rating, identity, body, reply, source link). Two new semantic icon names, `star` and
|
|
72
|
+
`star-half`, across every icon set.
|
|
73
|
+
|
|
74
|
+
**Migration:** no breaking change. A site adding `site.reviews` should read the "Google reviews"
|
|
75
|
+
section in AGENTS.md before enabling `schema` — Google's structured-data policy treats a business
|
|
76
|
+
marking up reviews of itself as ineligible for review rich results and risks a manual action, which
|
|
77
|
+
is why it defaults off.
|
|
78
|
+
|
|
79
|
+
- Repo-wide simplification pass: de-boilerplate the CLI, dedupe shared cache/plan
|
|
80
|
+
primitives in `@getvitops/utils`, drop dead code, and tighten dependency hygiene.
|
|
81
|
+
|
|
82
|
+
No breaking changes. (`vitops icons`'s `--site` flag was briefly going to be renamed to
|
|
83
|
+
`--input` for consistency with the other `Config`-anchored commands — deferred rather than
|
|
84
|
+
spending a major bump on a rename with no other breaking change riding along; it stays
|
|
85
|
+
`--site` for now.)
|
|
86
|
+
|
|
87
|
+
**Fixed:**
|
|
88
|
+
|
|
89
|
+
- `@getvitops/core`'s 12 runtime deps (`lit`, both `@oddbird` polyfills, both
|
|
90
|
+
`@webcomponents` packages, `colorjs.io`, etc.) were listed as `dependencies` despite
|
|
91
|
+
being bundled into `dist/elements.js`/`dist/polyfills.js`/`dist/deferred.js` — a
|
|
92
|
+
consumer installed them twice for nothing. Moved to `devDependencies`; no change to
|
|
93
|
+
what ships.
|
|
94
|
+
- Deleted `old-css-lib/` (59 files), superseded by `packages/core/css/` since the
|
|
95
|
+
in-memory bundling change — no consumer-facing effect, it was not part of any
|
|
96
|
+
published output.
|
|
97
|
+
- Deleted a dead Astro module (`packages/astro/src/scripts/deferred.ts`) that had
|
|
98
|
+
silently diverged from `packages/core/src/js/deferred.ts` and had zero importers.
|
|
99
|
+
|
|
100
|
+
**No consumer-facing change in `@getvitops/vite`** beyond the fixed-group version bump —
|
|
101
|
+
task-graph and caching fixes internal to this repo's own build.
|
|
102
|
+
|
|
103
|
+
Everything else (the `cli.ts` file split into `commands/{search,ads}.ts`, shared
|
|
104
|
+
`json-store.ts`/`plan-format.ts` helpers in `@getvitops/utils`, a `.github/actions/setup`
|
|
105
|
+
composite action, restatement-comment cleanup) is internal refactoring with no change to
|
|
106
|
+
any published API, CLI flag, or generated output.
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- Updated dependencies
|
|
111
|
+
- Updated dependencies
|
|
112
|
+
- Updated dependencies
|
|
113
|
+
- Updated dependencies [a84839b]
|
|
114
|
+
- @getvitops/generator@8.0.0
|
|
115
|
+
- @getvitops/utils@8.0.0
|
|
116
|
+
|
|
3
117
|
## 7.0.0
|
|
4
118
|
|
|
5
119
|
### Minor Changes
|
|
@@ -658,28 +772,20 @@ carousel vocabulary, because they render live from the generator.
|
|
|
658
772
|
{
|
|
659
773
|
"designSystem": {
|
|
660
774
|
"themes": {
|
|
661
|
-
"default": {
|
|
662
|
-
/* … */
|
|
663
|
-
},
|
|
775
|
+
"default": {/* … */},
|
|
664
776
|
},
|
|
665
777
|
},
|
|
666
778
|
"organization": {
|
|
667
779
|
"name": "Acme",
|
|
668
780
|
"contact": "hq",
|
|
669
781
|
"locations": {
|
|
670
|
-
"hq": {
|
|
671
|
-
/* … */
|
|
672
|
-
},
|
|
782
|
+
"hq": {/* … */},
|
|
673
783
|
},
|
|
674
784
|
},
|
|
675
785
|
"site": {
|
|
676
786
|
"defaultLocale": "en",
|
|
677
|
-
"domains": {
|
|
678
|
-
|
|
679
|
-
},
|
|
680
|
-
"analytics": {
|
|
681
|
-
/* … */
|
|
682
|
-
},
|
|
787
|
+
"domains": {/* … */},
|
|
788
|
+
"analytics": {/* … */},
|
|
683
789
|
},
|
|
684
790
|
}
|
|
685
791
|
```
|
|
@@ -755,7 +861,7 @@ carousel vocabulary, because they render live from the generator.
|
|
|
755
861
|
Also new, and worth wiring at the same time — **`gitLastmod()` for real sitemap dates**:
|
|
756
862
|
|
|
757
863
|
```js
|
|
758
|
-
import vitops, { gitLastmod } from
|
|
864
|
+
import vitops, { gitLastmod } from "@getvitops/astro";
|
|
759
865
|
vitops({ sitemap: { serialize: await gitLastmod() } });
|
|
760
866
|
```
|
|
761
867
|
|
|
@@ -849,7 +955,7 @@ ffmpeg`, `apt install ffmpeg`, `winget install Gyan.FFmpeg`). The command fails
|
|
|
849
955
|
|
|
850
956
|
```js
|
|
851
957
|
// astro.config.mjs
|
|
852
|
-
getvitops({ css: { input:
|
|
958
|
+
getvitops({ css: { input: "company.json", format: "css" } });
|
|
853
959
|
```
|
|
854
960
|
|
|
855
961
|
```
|
|
@@ -1336,15 +1442,15 @@ ffmpeg`, `apt install ffmpeg`, `winget install Gyan.FFmpeg`). The command fails
|
|
|
1336
1442
|
which `@getvitops/astro` re-exports wholesale. So from `astro.config.mjs`:
|
|
1337
1443
|
|
|
1338
1444
|
```js
|
|
1339
|
-
import { generateIconInclude } from
|
|
1340
|
-
import icon from
|
|
1445
|
+
import { generateIconInclude } from "@getvitops/astro";
|
|
1446
|
+
import icon from "astro-icon";
|
|
1341
1447
|
|
|
1342
1448
|
integrations: [
|
|
1343
1449
|
icon({
|
|
1344
1450
|
include: generateIconInclude({
|
|
1345
|
-
ui:
|
|
1346
|
-
brand:
|
|
1347
|
-
semantic: [
|
|
1451
|
+
ui: "fa7-solid",
|
|
1452
|
+
brand: "simple-icons",
|
|
1453
|
+
semantic: ["menu", "close", "search", "github"],
|
|
1348
1454
|
}),
|
|
1349
1455
|
}),
|
|
1350
1456
|
];
|