@decantr/cli 1.7.21 → 1.7.22
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/dist/bin.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
scaffoldProject,
|
|
15
15
|
syncRegistry,
|
|
16
16
|
writeExecutionPackBundleArtifacts
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SN7C63TF.js";
|
|
18
18
|
import {
|
|
19
19
|
buildGuardRegistryContext,
|
|
20
20
|
scanProjectInteractions
|
|
@@ -5942,7 +5942,7 @@ async function main() {
|
|
|
5942
5942
|
break;
|
|
5943
5943
|
}
|
|
5944
5944
|
case "upgrade": {
|
|
5945
|
-
const { cmdUpgrade } = await import("./upgrade-
|
|
5945
|
+
const { cmdUpgrade } = await import("./upgrade-HN6REFEX.js");
|
|
5946
5946
|
const applyFlag = args.includes("--apply");
|
|
5947
5947
|
await cmdUpgrade(process.cwd(), { apply: applyFlag });
|
|
5948
5948
|
break;
|
|
@@ -2882,6 +2882,26 @@ import './styles/treatments.css'; // Treatments + theme decorators
|
|
|
2882
2882
|
import './styles/global.css'; // Resets
|
|
2883
2883
|
\`\`\`
|
|
2884
2884
|
|
|
2885
|
+
### Atoms in 5 minutes \u2014 DO NOT inline-style layout, spacing, or typography
|
|
2886
|
+
|
|
2887
|
+
\`@decantr/css\` is your default tool for layout, spacing, sizing, flex/grid, position, typography. Anywhere you'd reach for \`style={{ ... }}\` to set those properties, use \`css('...')\` instead.
|
|
2888
|
+
|
|
2889
|
+
| \u274C Inline (DO NOT) | \u2705 Atom (DO) |
|
|
2890
|
+
|--------------------|------------|
|
|
2891
|
+
| \`style={{ display: 'flex', gap: '1rem' }}\` | \`className={css('_flex _gap4')}\` |
|
|
2892
|
+
| \`style={{ flexDirection: 'column', alignItems: 'center' }}\` | \`className={css('_col _items-center')}\` |
|
|
2893
|
+
| \`style={{ padding: '1rem 1.5rem' }}\` | \`className={css('_py4 _px6')}\` |
|
|
2894
|
+
| \`style={{ width: '100%', maxWidth: '40rem' }}\` | \`className={css('_w-full _maxw[40rem]')}\` |
|
|
2895
|
+
| \`style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)' }}\` | \`className={css('_grid _gc3')}\` |
|
|
2896
|
+
| \`style={{ position: 'sticky', top: 0 }}\` | \`className={css('_sticky _t0')}\` |
|
|
2897
|
+
| \`style={{ marginInline: 'auto' }}\` | \`className={css('_mxauto')}\` |
|
|
2898
|
+
|
|
2899
|
+
**Inline \`style={{ ... }}\` is ONLY acceptable for these cases:**
|
|
2900
|
+
1. **CSS custom property writes** \u2014 \`style={{ '--d-stagger-index': i }}\` (the contract REQUIRES inline writes for dynamic CSS-var values that loop variables / animation indices feed into).
|
|
2901
|
+
2. **Truly dynamic geometry** \u2014 computed positions for draggable nodes, real-time pan/zoom \`transform\` values, dynamic gradient hue interpolation, layout coordinates calculated from data.
|
|
2902
|
+
|
|
2903
|
+
If you're writing >5 inline styles in a component for layout/spacing/sizing, **stop** and migrate them to atoms. Inline styles for static visual values (colors, gradients, shadows, radii, font-size, padding, margin, gap, flex/grid layout) are a contract violation \u2014 \`decantr audit\` will surface them.
|
|
2904
|
+
|
|
2885
2905
|
### Runtime Rules
|
|
2886
2906
|
|
|
2887
2907
|
- Use the real \`@decantr/css\` runtime for atoms. If \`package.json\` does not already depend on \`@decantr/css\`, add it before building.
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-BWUEX3IA.js";
|
|
2
|
+
import "./chunk-SN7C63TF.js";
|
|
3
3
|
import "./chunk-QRQCPD3C.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decantr/cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.22",
|
|
4
4
|
"description": "Decantr CLI — scaffold, audit, and maintain Decantr projects from the terminal",
|
|
5
5
|
"author": "Decantr AI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@decantr/core": "1.0.
|
|
30
|
+
"@decantr/core": "1.0.4",
|
|
31
31
|
"@decantr/essence-spec": "1.0.5",
|
|
32
32
|
"@decantr/registry": "1.0.2",
|
|
33
33
|
"@decantr/verifier": "1.0.3"
|