@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.
- package/CHANGELOG.md +18 -0
- package/dist/{chunk-2SIB26V3.js → chunk-4TDVAK2S.js} +27 -22
- package/dist/chunk-4TDVAK2S.js.map +1 -0
- package/dist/{drag-CO0-d_ga.d.ts → drag-ITlooERH.d.ts} +1 -1
- package/dist/index.d.ts +10 -3
- package/dist/index.js +3 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +3 -2
- package/dist/testing.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-2SIB26V3.js.map +0 -1
|
@@ -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
|
|
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,
|
|
2
|
-
export { C as ColumnPlace,
|
|
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-
|
|
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,
|
|
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-
|
|
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
|
-
|
|
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 } } }
|