@getvitops/vite 7.0.0 → 8.0.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 +100 -14
- package/package.json +15 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,99 @@
|
|
|
1
1
|
# @getvitops/vite
|
|
2
2
|
|
|
3
|
+
## 8.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @getvitops/generator@8.0.1
|
|
8
|
+
- @getvitops/utils@8.0.1
|
|
9
|
+
|
|
10
|
+
## 8.0.0
|
|
11
|
+
|
|
12
|
+
### Major Changes
|
|
13
|
+
|
|
14
|
+
- Rebuild the lightbox on one dialog + the existing carousel, fixing the flicker on
|
|
15
|
+
prev/next and the stutter on open.
|
|
16
|
+
|
|
17
|
+
**Breaking (`css`/`bricks` and `tailwind` formats — `.lightbox-dialog`'s markup
|
|
18
|
+
contract changed):**
|
|
19
|
+
|
|
20
|
+
- `<Gallery />` now emits ONE `<dialog class="lightbox-dialog">` per gallery,
|
|
21
|
+
wrapping a `<Carousel />`, instead of one dialog per image. A `.gallery__trigger`
|
|
22
|
+
is now a plain `<a href="#slide-id">`, not a `command="show-modal"` button.
|
|
23
|
+
- `.lightbox-dialog__content` / `__image` / `__nav` / `__nav-button` /
|
|
24
|
+
`__caption` are gone. The dialog's child is `.lightbox-dialog__track` (a
|
|
25
|
+
`.carousel`) — prev/next, dots, arrow keys and swipe are the carousel's,
|
|
26
|
+
reused rather than reimplemented. `.lightbox-dialog__close` is unchanged.
|
|
27
|
+
- `<wc-gallery>` no longer builds nav buttons or steps between images — the
|
|
28
|
+
nested `<wc-carousel>` does. It fires `gallery-open` (unchanged shape) and
|
|
29
|
+
re-emits the carousel's own stepping as `gallery-change`.
|
|
30
|
+
- `packages/core/src/web-components/utils/gallery.ts` dropped `keyToAction` and
|
|
31
|
+
`swipeAction` (the carousel's own key/swipe handling covers both now).
|
|
32
|
+
`stepIndex`/`preloadTargets` are unchanged.
|
|
33
|
+
|
|
34
|
+
**Why:** stepping used to close one `<dialog>` and open another, which made
|
|
35
|
+
`animation.css`'s top-layer driver play a full exit-then-entry transition on
|
|
36
|
+
every step — visible as a flicker on prev/next, by construction, not a bug to
|
|
37
|
+
tune away. Opening also awaited the full image's `decode()` before starting the
|
|
38
|
+
view-transition morph, so the dialog visibly stalled on a slow network. One
|
|
39
|
+
dialog containing one carousel makes the first failure mode unrepresentable
|
|
40
|
+
(stepping is a scroll, not a close/open pair) and removes the wait for the
|
|
41
|
+
second (the morph starts immediately, painting the thumbnail as a CSS
|
|
42
|
+
background placeholder until the full image arrives).
|
|
43
|
+
|
|
44
|
+
**Also improved, not just fixed:** the no-JS fallback is no longer a _stripped_
|
|
45
|
+
lightbox — it's a genuine one. Each trigger is ordinary fragment navigation
|
|
46
|
+
(`:has(:target)` in `lightbox.css` reveals the dialog), which needs no Invoker
|
|
47
|
+
Commands polyfill in any engine, and it now has working prev/next with no
|
|
48
|
+
JavaScript at all — the previous per-dialog fallback had no way to express that.
|
|
49
|
+
|
|
50
|
+
**Migration:** a consumer using `<Gallery />` needs no changes — the component's
|
|
51
|
+
props are unchanged. Anyone who hand-authored `.lightbox-dialog` markup (per
|
|
52
|
+
`docs/concepts/patterns.md` / `docs/css/classes.md`) must move to the new single-
|
|
53
|
+
dialog-wrapping-a-carousel shape; see `patterns.astro`'s "Gallery, hand-authored"
|
|
54
|
+
demo for the reference markup. `<wc-gallery>` consumers listening for
|
|
55
|
+
`gallery-change` keep the same event shape (`{ index, total }`).
|
|
56
|
+
|
|
57
|
+
### Minor Changes
|
|
58
|
+
|
|
59
|
+
- Repo-wide simplification pass: de-boilerplate the CLI, dedupe shared cache/plan
|
|
60
|
+
primitives in `@getvitops/utils`, drop dead code, and tighten dependency hygiene.
|
|
61
|
+
|
|
62
|
+
No breaking changes. (`vitops icons`'s `--site` flag was briefly going to be renamed to
|
|
63
|
+
`--input` for consistency with the other `Config`-anchored commands — deferred rather than
|
|
64
|
+
spending a major bump on a rename with no other breaking change riding along; it stays
|
|
65
|
+
`--site` for now.)
|
|
66
|
+
|
|
67
|
+
**Fixed:**
|
|
68
|
+
|
|
69
|
+
- `@getvitops/core`'s 12 runtime deps (`lit`, both `@oddbird` polyfills, both
|
|
70
|
+
`@webcomponents` packages, `colorjs.io`, etc.) were listed as `dependencies` despite
|
|
71
|
+
being bundled into `dist/elements.js`/`dist/polyfills.js`/`dist/deferred.js` — a
|
|
72
|
+
consumer installed them twice for nothing. Moved to `devDependencies`; no change to
|
|
73
|
+
what ships.
|
|
74
|
+
- Deleted `old-css-lib/` (59 files), superseded by `packages/core/css/` since the
|
|
75
|
+
in-memory bundling change — no consumer-facing effect, it was not part of any
|
|
76
|
+
published output.
|
|
77
|
+
- Deleted a dead Astro module (`packages/astro/src/scripts/deferred.ts`) that had
|
|
78
|
+
silently diverged from `packages/core/src/js/deferred.ts` and had zero importers.
|
|
79
|
+
|
|
80
|
+
**No consumer-facing change in `@getvitops/vite`** beyond the fixed-group version bump —
|
|
81
|
+
task-graph and caching fixes internal to this repo's own build.
|
|
82
|
+
|
|
83
|
+
Everything else (the `cli.ts` file split into `commands/{search,ads}.ts`, shared
|
|
84
|
+
`json-store.ts`/`plan-format.ts` helpers in `@getvitops/utils`, a `.github/actions/setup`
|
|
85
|
+
composite action, restatement-comment cleanup) is internal refactoring with no change to
|
|
86
|
+
any published API, CLI flag, or generated output.
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- Updated dependencies
|
|
91
|
+
- Updated dependencies
|
|
92
|
+
- Updated dependencies
|
|
93
|
+
- Updated dependencies [a84839b]
|
|
94
|
+
- @getvitops/generator@8.0.0
|
|
95
|
+
- @getvitops/utils@8.0.0
|
|
96
|
+
|
|
3
97
|
## 7.0.0
|
|
4
98
|
|
|
5
99
|
### Patch Changes
|
|
@@ -223,28 +317,20 @@ options, watch behaviour and dev-server endpoints are unchanged.
|
|
|
223
317
|
{
|
|
224
318
|
"designSystem": {
|
|
225
319
|
"themes": {
|
|
226
|
-
"default": {
|
|
227
|
-
/* … */
|
|
228
|
-
},
|
|
320
|
+
"default": {/* … */},
|
|
229
321
|
},
|
|
230
322
|
},
|
|
231
323
|
"organization": {
|
|
232
324
|
"name": "Acme",
|
|
233
325
|
"contact": "hq",
|
|
234
326
|
"locations": {
|
|
235
|
-
"hq": {
|
|
236
|
-
/* … */
|
|
237
|
-
},
|
|
327
|
+
"hq": {/* … */},
|
|
238
328
|
},
|
|
239
329
|
},
|
|
240
330
|
"site": {
|
|
241
331
|
"defaultLocale": "en",
|
|
242
|
-
"domains": {
|
|
243
|
-
|
|
244
|
-
},
|
|
245
|
-
"analytics": {
|
|
246
|
-
/* … */
|
|
247
|
-
},
|
|
332
|
+
"domains": {/* … */},
|
|
333
|
+
"analytics": {/* … */},
|
|
248
334
|
},
|
|
249
335
|
}
|
|
250
336
|
```
|
|
@@ -352,7 +438,7 @@ ffmpeg`, `apt install ffmpeg`, `winget install Gyan.FFmpeg`). The command fails
|
|
|
352
438
|
|
|
353
439
|
```js
|
|
354
440
|
// astro.config.mjs
|
|
355
|
-
getvitops({ css: { input:
|
|
441
|
+
getvitops({ css: { input: "company.json", format: "css" } });
|
|
356
442
|
```
|
|
357
443
|
|
|
358
444
|
```
|
|
@@ -663,7 +749,7 @@ ffmpeg`, `apt install ffmpeg`, `winget install Gyan.FFmpeg`). The command fails
|
|
|
663
749
|
```js
|
|
664
750
|
// astro.config.mjs
|
|
665
751
|
getvitops({
|
|
666
|
-
css: { input:
|
|
752
|
+
css: { input: "design-system.json", format: "css", out: "src/styles" },
|
|
667
753
|
editor: true,
|
|
668
754
|
});
|
|
669
755
|
```
|
package/package.json
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getvitops/vite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Vite plugin that generates Vitops design-system outputs from a design-system.json during a Vite/Astro build.",
|
|
5
|
+
"homepage": "https://docs.vitops.ca",
|
|
6
|
+
"bugs": "https://github.com/getvitops/design-system/issues",
|
|
5
7
|
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/getvitops/design-system.git",
|
|
11
|
+
"directory": "packages/vite"
|
|
12
|
+
},
|
|
6
13
|
"files": [
|
|
7
14
|
"dist",
|
|
8
15
|
"CHANGELOG.md"
|
|
9
16
|
],
|
|
10
17
|
"type": "module",
|
|
18
|
+
"sideEffects": false,
|
|
11
19
|
"exports": {
|
|
12
20
|
".": {
|
|
13
21
|
"types": "./dist/index.d.mts",
|
|
@@ -18,14 +26,17 @@
|
|
|
18
26
|
"access": "public"
|
|
19
27
|
},
|
|
20
28
|
"dependencies": {
|
|
21
|
-
"@getvitops/generator": "
|
|
22
|
-
"@getvitops/utils": "
|
|
29
|
+
"@getvitops/generator": "8.0.1",
|
|
30
|
+
"@getvitops/utils": "8.0.1"
|
|
23
31
|
},
|
|
24
32
|
"devDependencies": {
|
|
25
33
|
"vite": "^6.0.0",
|
|
26
|
-
"vitest": "
|
|
34
|
+
"vitest": "4.1.9"
|
|
27
35
|
},
|
|
28
36
|
"peerDependencies": {
|
|
29
37
|
"vite": ">=5"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=24"
|
|
30
41
|
}
|
|
31
42
|
}
|