@gouvfr-lasuite/ui-kit 0.1.1 → 0.1.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.
package/dist/index.js CHANGED
@@ -16219,7 +16219,7 @@ const la = (t) => t ? t.type === qe.SEPARATOR : !1, sa = (t) => t ? t.type === q
16219
16219
  C = C < _ ? C : C - 1;
16220
16220
  }
16221
16221
  const B = f.index - 1, k = g[B], H = f.index, w = g[H];
16222
- return f.index === 0 ? (y = r, D = pn.FIRST_CHILD) : !S && f.index === 1 && !Mr(k.value) ? (y = r, C = 1, D = pn.FIRST_CHILD) : f.index === g.length ? (y = y ?? r, D = pn.LAST_CHILD) : k && Mr(k.value) ? (y = k.value.id, D = pn.RIGHT) : w && Mr(w.value) && (D = pn.LEFT, y = w.value.id), D && y ? {
16222
+ return f.index === 0 ? (y = f.parentId ?? r, D = pn.FIRST_CHILD) : !S && f.index === 1 && !Mr(k.value) ? (y = r, C = 1, D = pn.FIRST_CHILD) : f.index === g.length ? (y = y ?? r, D = pn.LAST_CHILD) : k && Mr(k.value) ? (y = k.value.id, D = pn.RIGHT) : w && Mr(w.value) && (D = pn.LEFT, y = w.value.id), D && y ? {
16223
16223
  targetModeId: y,
16224
16224
  mode: D,
16225
16225
  oldParentId: P,