@n-uf/docking 26.12.3 → 26.12.4

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.
@@ -1694,4 +1694,4 @@ interface DockDrag {
1694
1694
  */
1695
1695
  declare function dockDrag(state: DockState, dragged: string, options?: DockLaneOptions): DockDrag;
1696
1696
 
1697
- export { type FloatPlace as $, type AnchoredKeepClear as A, type DockKeepClearLayout as B, type ColumnPlace as C, type DockItem as D, type DockLane as E, type FloatAnchorAt as F, type DockLaneMark as G, type DockLaneOptions as H, type DockMark as I, type DockNote as J, type Kind as K, type DockNoteCode as L, type DockPlace as M, type DockRailLayout as N, type Orient as O, type DockRegions as P, type DockSpot as Q, type RailMode as R, type SolveOptions as S, type DockStateRead as T, type DropPlace as U, type DropResult as V, EDGE_ROOM_HOLD as W, type EmptyLanes as X, FLOAT_ANCHORS as Y, type ZoneAccepts as Z, type FloatAnchorOffset as _, type FloatAnchor as a, type FloatResize as a0, HATCH_EDGE as a1, HATCH_END as a2, type KeepClearRegion as a3, type LaneRefusal as a4, type LaneSlide as a5, type Place as a6, RAIL_MODES as a7, RAIL_STRIP_MIN as a8, RAIL_VISIBILITIES as a9, openItem as aA, orientFloat as aB, raiseFloat as aC, readDockState as aD, resizeEdge as aE, resizeFloat as aF, setRailMode as aG, setSide as aH, storeDockState as aI, type RailDropPolicy as aa, type RailPlace as ab, type RailSpec as ac, type RailVisibility as ad, type ResizeEdges as ae, type ResizeLimit as af, SIDES as ag, type StoredDockState as ah, type StoredDockStateEdge as ai, type StoredDockStateFloat as aj, type StoredDockStateItem as ak, ZONES as al, canFold as am, closeItem as an, dockDrag as ao, dockHome as ap, fitResize as aq, floatAt as ar, foldItem as as, homeFor as at, keepItem as au, lanes as av, liftItem as aw, markUsed as ax, mergeSideColumns as ay, moveTo as az, type Zone as b, type DockState as c, type KeepClear as d, type DockEdge as e, type DockLayout as f, type DockRefusal as g, type DockDropOptions as h, type DockDrop as i, type ColumnTemplate as j, DEFAULT_FLOAT_SIZE as k, DEFAULT_HIT_BAND as l, DEFAULT_RAIL_MAGNET as m, DEFAULT_STRIP as n, type DockAfter as o, type DockDrag as p, type DockEdgeLayout as q, type DockFloat as r, type DockGrab as s, type DockGrabForm as t, type DockGrabNote as u, type DockGrabPlace as v, type DockGuideFrame as w, type DockGuideRef as x, type DockHeld as y, type DockItemLayout as z };
1697
+ export { type FloatPlace as $, type AnchoredKeepClear as A, type DockItemLayout as B, type ColumnPlace as C, type DockItem as D, type DockKeepClearLayout as E, type FloatAnchorAt as F, type DockLane as G, type DockLaneMark as H, type DockLaneOptions as I, type DockMark as J, type Kind as K, type DockNote as L, type DockNoteCode as M, type DockPlace as N, type Orient as O, type DockRegions as P, type DockSpot as Q, type RailMode as R, type SolveOptions as S, type DockStateRead as T, type DropPlace as U, type DropResult as V, EDGE_ROOM_HOLD as W, type EmptyLanes as X, FLOAT_ANCHORS as Y, type ZoneAccepts as Z, type FloatAnchorOffset as _, type FloatAnchor as a, type FloatResize as a0, HATCH_EDGE as a1, HATCH_END as a2, type KeepClearRegion as a3, type LaneRefusal as a4, type LaneSlide as a5, type Place as a6, RAIL_MODES as a7, RAIL_STRIP_MIN as a8, RAIL_VISIBILITIES as a9, openItem as aA, orientFloat as aB, raiseFloat as aC, readDockState as aD, resizeEdge as aE, resizeFloat as aF, setRailMode as aG, setSide as aH, storeDockState as aI, type RailDropPolicy as aa, type RailPlace as ab, type RailSpec as ac, type RailVisibility as ad, type ResizeEdges as ae, type ResizeLimit as af, SIDES as ag, type StoredDockState as ah, type StoredDockStateEdge as ai, type StoredDockStateFloat as aj, type StoredDockStateItem as ak, ZONES as al, canFold as am, closeItem as an, dockDrag as ao, dockHome as ap, fitResize as aq, floatAt as ar, foldItem as as, homeFor as at, keepItem as au, lanes as av, liftItem as aw, markUsed as ax, mergeSideColumns as ay, moveTo as az, type Zone as b, type DockState as c, type KeepClear as d, type DockEdge as e, type DockRailLayout as f, type DockLayout as g, type DockRefusal as h, type DockDropOptions as i, type DockDrop as j, type ColumnTemplate as k, DEFAULT_FLOAT_SIZE as l, DEFAULT_HIT_BAND as m, DEFAULT_RAIL_MAGNET as n, DEFAULT_STRIP as o, type DockAfter as p, type DockDrag as q, type DockEdgeLayout as r, type DockFloat as s, type DockGrab as t, type DockGrabForm as u, type DockGrabNote as v, type DockGrabPlace as w, type DockGuideFrame as x, type DockGuideRef as y, type DockHeld as z };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FloatAnchorAt, a as FloatAnchor, D as DockItem, K as Kind, Z as ZoneAccepts, b as Zone, O as Orient, c as DockState, d as KeepClear, A as AnchoredKeepClear, e as DockEdge, R as RailMode, S as SolveOptions, f as DockLayout, g as DockRefusal, h as DockDropOptions, i as DockDrop } from './drag-CO0-d_ga.js';
2
- export { C as ColumnPlace, j as ColumnTemplate, k as DEFAULT_FLOAT_SIZE, l as DEFAULT_HIT_BAND, m as DEFAULT_RAIL_MAGNET, n as DEFAULT_STRIP, o as DockAfter, p as DockDrag, q as DockEdgeLayout, r as DockFloat, s as DockGrab, t as DockGrabForm, u as DockGrabNote, v as DockGrabPlace, w as DockGuideFrame, x as DockGuideRef, y as DockHeld, z as DockItemLayout, B as DockKeepClearLayout, E as DockLane, G as DockLaneMark, H as DockLaneOptions, I as DockMark, J as DockNote, L as DockNoteCode, M as DockPlace, N as DockRailLayout, P as DockRegions, Q as DockSpot, T as DockStateRead, U as DropPlace, V as DropResult, W as EDGE_ROOM_HOLD, X as EmptyLanes, Y as FLOAT_ANCHORS, _ as FloatAnchorOffset, $ as FloatPlace, a0 as FloatResize, a1 as HATCH_EDGE, a2 as HATCH_END, a3 as KeepClearRegion, a4 as LaneRefusal, a5 as LaneSlide, a6 as Place, a7 as RAIL_MODES, a8 as RAIL_STRIP_MIN, a9 as RAIL_VISIBILITIES, aa as RailDropPolicy, ab as RailPlace, ac as RailSpec, ad as RailVisibility, ae as ResizeEdges, af as ResizeLimit, ag as SIDES, ah as StoredDockState, ai as StoredDockStateEdge, aj as StoredDockStateFloat, ak as StoredDockStateItem, al as ZONES, am as canFold, an as closeItem, ao as dockDrag, ap as dockHome, aq as fitResize, ar as floatAt, as as foldItem, at as homeFor, au as keepItem, av as lanes, aw as liftItem, ax as markUsed, ay as mergeSideColumns, az as moveTo, aA as openItem, aB as orientFloat, aC as raiseFloat, aD as readDockState, aE as resizeEdge, aF as resizeFloat, aG as setRailMode, aH as setSide, aI as storeDockState } from './drag-CO0-d_ga.js';
1
+ import { F as FloatAnchorAt, a as FloatAnchor, D as DockItem, K as Kind, Z as ZoneAccepts, b as Zone, O as Orient, c as DockState, d as KeepClear, A as AnchoredKeepClear, e as DockEdge, f as DockRailLayout, R as RailMode, S as SolveOptions, g as DockLayout, h as DockRefusal, i as DockDropOptions, j as DockDrop } from './drag-ITlooERH.js';
2
+ export { C as ColumnPlace, k as ColumnTemplate, l as DEFAULT_FLOAT_SIZE, m as DEFAULT_HIT_BAND, n as DEFAULT_RAIL_MAGNET, o as DEFAULT_STRIP, p as DockAfter, q as DockDrag, r as DockEdgeLayout, s as DockFloat, t as DockGrab, u as DockGrabForm, v as DockGrabNote, w as DockGrabPlace, x as DockGuideFrame, y as DockGuideRef, z as DockHeld, B as DockItemLayout, E as DockKeepClearLayout, G as DockLane, H as DockLaneMark, I as DockLaneOptions, J as DockMark, L as DockNote, M as DockNoteCode, N as DockPlace, P as DockRegions, Q as DockSpot, T as DockStateRead, U as DropPlace, V as DropResult, W as EDGE_ROOM_HOLD, X as EmptyLanes, Y as FLOAT_ANCHORS, _ as FloatAnchorOffset, $ as FloatPlace, a0 as FloatResize, a1 as HATCH_EDGE, a2 as HATCH_END, a3 as KeepClearRegion, a4 as LaneRefusal, a5 as LaneSlide, a6 as Place, a7 as RAIL_MODES, a8 as RAIL_STRIP_MIN, a9 as RAIL_VISIBILITIES, aa as RailDropPolicy, ab as RailPlace, ac as RailSpec, ad as RailVisibility, ae as ResizeEdges, af as ResizeLimit, ag as SIDES, ah as StoredDockState, ai as StoredDockStateEdge, aj as StoredDockStateFloat, ak as StoredDockStateItem, al as ZONES, am as canFold, an as closeItem, ao as dockDrag, ap as dockHome, aq as fitResize, ar as floatAt, as as foldItem, at as homeFor, au as keepItem, av as lanes, aw as liftItem, ax as markUsed, ay as mergeSideColumns, az as moveTo, aA as openItem, aB as orientFloat, aC as raiseFloat, aD as readDockState, aE as resizeEdge, aF as resizeFloat, aG as setRailMode, aH as setSide, aI as storeDockState } from './drag-ITlooERH.js';
3
3
  import { Size, Point, Rect, Side, Target } from '@n-uf/placement';
4
4
  export { Axis, Side } from '@n-uf/placement';
5
5
  import '@n-uf/placement/stack';
@@ -37,6 +37,13 @@ declare const zonesTaking: (edge: ZoneDecl, kind: Kind) => Zone[];
37
37
  * it: the one test drop targets and refusals ask. The stored form and `readDockState` keep reading `accepts` itself.
38
38
  */
39
39
  declare const edgeTakes: (edge: ZoneDecl, kind: Kind) => boolean;
40
+ /**
41
+ * Whether a side's rail is drawn: it shows a tile or its » (every member in the », no tile beside it, still draws the
42
+ * rail and its » key). The one reading of "a rail shows" for a host and every reader of the layout: `segments` alone is
43
+ * empty while every member is in the ». A » is null or holds at least one item (placement never lays out an empty one),
44
+ * so `menu !== null` is a non-empty »: a reader needs no check of its items of its own.
45
+ */
46
+ declare const railDrawn: (rail: DockRailLayout | null | undefined) => rail is DockRailLayout;
40
47
  /** How the rails of `side` show their items (`DockState.railModes`, default `"titles"`); top and bottom have no rails. */
41
48
  declare const railModeOf: (state: DockState, side: Side) => RailMode;
42
49
  /** Whether a keep-clear entry is anchored to a region of the layout (`AnchoredKeepClear`), not a fixed rect. */
@@ -364,4 +371,4 @@ declare function stops(state: DockState, dragged: string, options?: DockDropOpti
364
371
  /** The pitch of the spots over a bar's free stretches, px: a quarter of a typical toolbar's length (158 px in the lab). */
365
372
  declare const SPOT_PITCH = 40;
366
373
 
367
- export { AnchoredKeepClear, type DockDivider, DockDrop, DockDropOptions, DockEdge, DockItem, DockLayout, DockRefusal, type DockRefusalTarget, DockState, FloatAnchor, FloatAnchorAt, KeepClear, Kind, Orient, RailMode, SPOT_PITCH, SolveOptions, type TargetIdParts, Zone, ZoneAccepts, anchorName, declaresFloatSizes, dividers, edgeTakes, floatOrientOf, floatSizeOf, heldRect, isAnchoredKeepClear, isOutsideSideBar, isSideBar, isSideColumn, namesZone, parseTargetId, placeTargetId, railModeOf, refusalTargets, refusals, reservedRect, resetBetween, resetLengths, resizeBetween, solve, stops, targetId, targets, virtualEdgeId, zoneIn, zoneTakes, zonesTaking };
374
+ export { AnchoredKeepClear, type DockDivider, DockDrop, DockDropOptions, DockEdge, DockItem, DockLayout, DockRailLayout, DockRefusal, type DockRefusalTarget, DockState, FloatAnchor, FloatAnchorAt, KeepClear, Kind, Orient, RailMode, SPOT_PITCH, SolveOptions, type TargetIdParts, Zone, ZoneAccepts, anchorName, declaresFloatSizes, dividers, edgeTakes, floatOrientOf, floatSizeOf, heldRect, isAnchoredKeepClear, isOutsideSideBar, isSideBar, isSideColumn, namesZone, parseTargetId, placeTargetId, railDrawn, railModeOf, refusalTargets, refusals, reservedRect, resetBetween, resetLengths, resizeBetween, solve, stops, targetId, targets, virtualEdgeId, zoneIn, zoneTakes, zonesTaking };
package/dist/index.js CHANGED
@@ -43,6 +43,7 @@ import {
43
43
  orientFloat,
44
44
  parseTargetId,
45
45
  placeTargetId,
46
+ railDrawn,
46
47
  railModeOf,
47
48
  raiseFloat,
48
49
  readDockState,
@@ -65,7 +66,7 @@ import {
65
66
  zoneIn,
66
67
  zoneTakes,
67
68
  zonesTaking
68
- } from "./chunk-2SIB26V3.js";
69
+ } from "./chunk-4TDVAK2S.js";
69
70
  export {
70
71
  DEFAULT_FLOAT_SIZE,
71
72
  DEFAULT_HIT_BAND,
@@ -111,6 +112,7 @@ export {
111
112
  orientFloat,
112
113
  parseTargetId,
113
114
  placeTargetId,
115
+ railDrawn,
114
116
  railModeOf,
115
117
  raiseFloat,
116
118
  readDockState,
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Point, Rect, Side } from '@n-uf/placement';
2
2
  import { StackFormKind } from '@n-uf/placement/stack';
3
- import { c as DockState, U as DropPlace, f as DockLayout, ah as StoredDockState, b as Zone, L as DockNoteCode, i as DockDrop, g as DockRefusal, H as DockLaneOptions, y as DockHeld, x as DockGuideRef, P as DockRegions, Q as DockSpot } from './drag-CO0-d_ga.js';
3
+ import { c as DockState, U as DropPlace, g as DockLayout, ah as StoredDockState, b as Zone, M as DockNoteCode, j as DockDrop, h as DockRefusal, I as DockLaneOptions, z as DockHeld, y as DockGuideRef, P as DockRegions, Q as DockSpot } from './drag-ITlooERH.js';
4
4
  import { LandingGeometry, LandingRegions } from '@n-uf/motion/drag';
5
5
 
6
6
  /**
package/dist/testing.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  stops,
19
19
  storeDockState,
20
20
  targets
21
- } from "./chunk-2SIB26V3.js";
21
+ } from "./chunk-4TDVAK2S.js";
22
22
 
23
23
  // src/testing/rows-docking.ts
24
24
  import { rect as r } from "@n-uf/placement";
@@ -1464,7 +1464,8 @@ var GESTURE_ROWS = [
1464
1464
  title: "A press is no use, by the stored ages",
1465
1465
  expect: "A press on Pages' header, with no drag, changes no age: after a reload Pages is still the oldest, so in a narrow window it is the column that folds first, and the stored ages are as they began.",
1466
1466
  group: "gestures",
1467
- state: win({ width: 700, columns: { left: [["pages"]], right: [["findings"]] } }),
1467
+ // (624 px: narrow enough that a host whose Pages column has a smaller floor than this row's still needs the fold)
1468
+ state: win({ width: 624, columns: { left: [["pages"]], right: [["findings"]] } }),
1468
1469
  gestures: [g.press("pages"), g.release(), g.key("Reload")],
1469
1470
  expectLayout: { items: { pages: { rail: "left" }, findings: { formKind: "open", edge: "right-0" } }, rails: { left: ["pages"], right: [] } },
1470
1471
  expectStored: { items: { pages: { used: 1 }, findings: { used: 3 } } }