@n-uf/docking 26.12.4 → 26.12.6

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/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ package, the docking model shipped as `@n-uf/placement/scene` and `/scene/cases`
7
7
 
8
8
  Unreleased entries live in `changes/` until a release joins them.
9
9
 
10
+ ## 26.12.6
11
+
12
+ No changes in `@n-uf/docking`. Released in step with `@n-uf/motion` and `@n-uf/placement`, which share the version.
13
+
14
+ ## 26.12.5
15
+
16
+ - **Internal:** docking builds with `noUncheckedIndexedAccess` and type-aware lint. Checks the types already make
17
+ are dropped, and the lanes memo builds its per-state map with its types. The published types and runtime behavior
18
+ are unchanged.
19
+
10
20
  ## 26.12.4
11
21
 
12
22
  - **Changed (behavior):** a rail's » reads each form's rank and level through placement's `formRank` and `formLevel`.
@@ -3366,7 +3366,7 @@ function tileEdge(c, spec, { cuts, bodies }, lost, slides) {
3366
3366
  return k < 0 ? null : { ...k > 0 ? { before: ids[k - 1] } : {}, ...k + 1 < ids.length ? { after: ids[k + 1] } : {} };
3367
3367
  };
3368
3368
  const edgeRect = c.base.edges[spec.id]?.rect ?? drawn;
3369
- const slideEdge = spec.edge && edgeRect ? { state: c.state, dragged: c.dragged, e: spec.edge, axis, base: c.base, drawn: edgeRect, middle: (span(edgeRect)[0] + span(edgeRect)[1]) / 2, fixed: onEdge(c.base, spec.id, c.dragged, axis).filter((o) => c.state.items[o.id]?.fixed), prev: c.prev } : null;
3369
+ const slideEdge = edgeRect ? { state: c.state, dragged: c.dragged, e: spec.edge, axis, base: c.base, drawn: edgeRect, middle: (span(edgeRect)[0] + span(edgeRect)[1]) / 2, fixed: onEdge(c.base, spec.id, c.dragged, axis).filter((o) => c.state.items[o.id]?.fixed), prev: c.prev } : null;
3370
3370
  const ranges = /* @__PURE__ */ new Map();
3371
3371
  const rangeOf = (order) => {
3372
3372
  if (ranges.has(order)) return ranges.get(order);
@@ -3674,7 +3674,7 @@ function ownColumnRun(c, side, rail) {
3674
3674
  const top = Math.min(...tiles.map((r) => r.y));
3675
3675
  const spec = railColumnSpec(c, edge, rect16(shown.rect.x, top, shown.rect.width, Math.max(...tiles.map((r) => r.y + r.height)) - top));
3676
3676
  if (!spec) return null;
3677
- const stays = ({ layout }) => layout.items[dragged]?.rail === side && layout.items[dragged]?.edge === edge.id;
3677
+ const stays = ({ layout }) => layout.items[dragged]?.rail === side && layout.items[dragged].edge === edge.id;
3678
3678
  return { ...spec, own: null, holds: false, homePriority: EDGE_KINDS.railStop.priority, slots: spec.slots.map((s) => s.home ? { ...s, id: homeId } : { ...s, ok: s.ok && stays(s.result) }) };
3679
3679
  }
3680
3680
  function railStops(c, side) {
@@ -5168,6 +5168,7 @@ function dockDrag(state, dragged, options = {}) {
5168
5168
  }
5169
5169
  const drawnStays = [
5170
5170
  ...state.edges.filter((e) => (e.side === "top" || e.side === "bottom" || !!e.compact) && (screen.layout.edges[e.id]?.cross ?? 0) > EPS26).map((e) => screen.layout.edges[e.id].rect),
5171
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- guard for a rail entry left undefined in a layout built by JavaScript callers
5171
5172
  ...Object.values(screen.layout.rails).flatMap((r) => r?.segments.filter((g) => g.id !== dragged).map((g) => g.rect) ?? [])
5172
5173
  ];
5173
5174
  const onScreen = [...shown.filter((s) => !s.created && s !== near).flatMap((s) => s.marks.map((m) => m.rect)), ...drawnStays, ...screen.landing ? [screen.landing] : []];
@@ -5255,4 +5256,4 @@ export {
5255
5256
  HATCH_EDGE,
5256
5257
  dockDrag
5257
5258
  };
5258
- //# sourceMappingURL=chunk-4TDVAK2S.js.map
5259
+ //# sourceMappingURL=chunk-367B5WJT.js.map