@cadriciel/ui 0.9.1 → 0.9.2

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.
@@ -34818,9 +34818,14 @@ function atelierAjouter(layout, type, gabarit = {}, dansId) {
34818
34818
  if ((cible.item.children?.length ?? 0) >= ATELIER_BORNES.enfantsMax)
34819
34819
  return { layout: base, id: '' };
34820
34820
  const id = atelierNouvelId();
34821
- // `w` d'un enfant = LARGEUR EN COLONNES du conteneur (grille de flux). Il naît
34822
- // pleine ligne prévisible et se réduit ensuite au curseur, comme un bloc.
34823
- const enfant = { id, type, x: 0, y: 0, w: ATELIER_COLONNES, h: 1 };
34821
+ // `w` d'un enfant = LARGEUR EN COLONNES du conteneur (grille de flux). Les deux
34822
+ // poseurs en passent une utile (palette 2/12, builder def.w×2) : l'honorer, sinon
34823
+ // l'aperçu et le modèle divergent. Sans gabarit, il naît pleine ligne prévisible.
34824
+ const enfant = {
34825
+ id, type, x: 0, y: 0,
34826
+ w: borne(gabarit.w ?? ATELIER_COLONNES, 1, ATELIER_COLONNES),
34827
+ h: 1,
34828
+ };
34824
34829
  if (gabarit.props && Object.keys(gabarit.props).length)
34825
34830
  enfant.props = { ...gabarit.props };
34826
34831
  return {