astralis-cli 0.5.0 → 0.5.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 +13 -1
- package/package.json +2 -2
- package/src/lib/validate-core.mjs +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,19 @@ breaking changes; a patch never does.
|
|
|
6
6
|
Versions marked **internal** were set in the repository but never published to
|
|
7
7
|
npm. Their changes reached npm in the next published version.
|
|
8
8
|
|
|
9
|
-
## 0.5.
|
|
9
|
+
## 0.5.1 (2026-11-19)
|
|
10
|
+
|
|
11
|
+
Uses astralis-ui 0.9.0, whose specification adds the animation props, so
|
|
12
|
+
`astralis validate` checks `animation`, `reveal`, `animationDuration` and
|
|
13
|
+
`animationDelay` like any other closed set.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **A component's own prop under a style prop's name keeps its own
|
|
18
|
+
vocabulary.** `<Carousel animation="fade-up">` is now an error: Carousel's
|
|
19
|
+
`animation` takes `slide` or `fade`, not the motion names.
|
|
20
|
+
|
|
21
|
+
## 0.5.0 (2026-11-19)
|
|
10
22
|
|
|
11
23
|
The first npm release since 0.4.0. It includes the internal versions 0.4.1 to
|
|
12
24
|
0.4.4 below. Requires Node `^22.18` or `>=24.11`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astralis-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Setup and tooling CLI for Astralis UI — scaffold or wire up a project, add blocks, generate a static brand theme, validate code against the design system, connect the MCP server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@babel/parser": "^8.0.4",
|
|
57
|
-
"astralis-ui": "^0.
|
|
57
|
+
"astralis-ui": "^0.9.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"test": "node --test \"test/*.test.mjs\"",
|
|
@@ -367,14 +367,17 @@ function checkComponentProp(ctx, identity, comp, allowed, attr, prop) {
|
|
|
367
367
|
ctx.error("excluded-prop", attr, `${name} has no "${prop}" prop${hint}`);
|
|
368
368
|
return;
|
|
369
369
|
}
|
|
370
|
-
// The component's own attribute under a style prop's name (Image's width):
|
|
371
|
-
|
|
372
|
-
|
|
370
|
+
// The component's own attribute under a style prop's name (Image's width):
|
|
371
|
+
// not a style prop. One with a closed vocabulary of its own (Carousel's
|
|
372
|
+
// animation) is still judged, by the recipe rule below.
|
|
373
|
+
const overridden = comp.overrides?.includes(prop);
|
|
374
|
+
if (overridden && !comp.props?.[prop]) return;
|
|
375
|
+
if (!overridden && ctx.stateProps.has(prop)) {
|
|
373
376
|
// Only Box-composing primitives resolve states; elsewhere no claim.
|
|
374
377
|
if (comp.groups.includes("box")) checkStateValue(ctx, name, prop, attr.value);
|
|
375
378
|
return;
|
|
376
379
|
}
|
|
377
|
-
if (allowed[prop]) {
|
|
380
|
+
if (!overridden && allowed[prop]) {
|
|
378
381
|
checkPropValue(ctx, name, prop, allowed[prop], attr.value, attr);
|
|
379
382
|
return;
|
|
380
383
|
}
|