@vectoriox/iox-builder 1.6.10 → 1.6.11

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.
@@ -2249,7 +2249,11 @@ class SizeGroupStyleConfig extends GroupStyleConfig {
2249
2249
  new TraitConfig('minHeight', 'Min H', TraitInputType.Scrub, { min: 0, max: 9999, step: 1, units: UNITS_ALL, allowAuto: true }, 'auto', true),
2250
2250
  new TraitConfig('maxWidth', 'Max W', TraitInputType.Scrub, { min: 0, max: 9999, step: 1, units: UNITS_ALL, allowAuto: true }, 'auto', true),
2251
2251
  new TraitConfig('maxHeight', 'Max H', TraitInputType.Scrub, { min: 0, max: 9999, step: 1, units: UNITS_ALL, allowAuto: true }, 'auto', true),
2252
- new TraitConfig('aspectRatio', 'Aspect Ratio', TraitInputType.Text, undefined, 'auto'),
2252
+ // aspect-ratio is a unitless ratio (or 'auto') — scrub with no unit.
2253
+ new TraitConfig('aspectRatio', 'Aspect Ratio', TraitInputType.Scrub, { min: 0, max: 10, step: 0.1, units: [''], allowAuto: true }, 'auto', true),
2254
+ // object-fit is a style trait (applies to replaced elements, e.g. images). Lives here so
2255
+ // it flows through the CSS engine (styleProps) instead of a per-component inline binding.
2256
+ new TraitConfig('objectFit', 'Object Fit', TraitInputType.Select, ['cover', 'contain', 'fill', 'none', 'scale-down'], 'cover'),
2253
2257
  ]);
2254
2258
  }
2255
2259
  }
@@ -7156,12 +7160,11 @@ class BuilderImageComponentConfig extends ComponentConfig {
7156
7160
  this.inputs = {
7157
7161
  src: 'text',
7158
7162
  alt: 'text',
7159
- objectFit: 'select'
7160
7163
  };
7161
7164
  this.traits = [
7162
7165
  new TraitConfig('src', 'Image URL', TraitInputType.Media, { mode: 'compact' }, 'https://placehold.co/600x400?text=Image'),
7163
7166
  new TraitConfig('alt', 'Alt Text', TraitInputType.Text, undefined, 'Image'),
7164
- new TraitConfig('objectFit', 'Object Fit', TraitInputType.Select, ['cover', 'contain', 'fill', 'none'], 'cover'),
7167
+ // objectFit moved to the Size style group (flows through the CSS engine as a style trait).
7165
7168
  ];
7166
7169
  this.styleTraits = buildFullStyleTraits();
7167
7170
  this.applyStyleDefaults({