juxscript 1.0.126 → 1.0.127

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.
@@ -28,10 +28,10 @@ export class GridSkin extends BaseSkin {
28
28
  this.root.style.height = state.height;
29
29
  this.root.style.gap = state.gap;
30
30
  // CSS Grid Definitions
31
- // We accept 'size', but also semantically valid 'height' (rows) and 'width' (cols)
32
- // This allows mixing units: 1fr, 200px, 20%, auto, etc.
33
- const rowSizes = state.rows.map(r => r.size || r.height || 'auto').join(' ');
34
- const colSizes = state.columns.map(c => c.size || c.width || 'auto').join(' ');
31
+ // We prioritize explicit 'height'/'width' over 'size' because 'size' might carry a framework default (like '1fr')
32
+ // that would incorrectly override a user's explicit legacy property.
33
+ const rowSizes = state.rows.map(r => r.height || r.size || 'auto').join(' ');
34
+ const colSizes = state.columns.map(c => c.width || c.size || 'auto').join(' ');
35
35
  this.root.style.gridTemplateRows = rowSizes;
36
36
  this.root.style.gridTemplateColumns = colSizes;
37
37
  // 2. Structural Reconciliation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juxscript",
3
- "version": "1.0.126",
3
+ "version": "1.0.127",
4
4
  "type": "module",
5
5
  "description": "A JavaScript UX authorship platform",
6
6
  "main": "./index.js",