@n-uf/placement 26.11.11 → 26.11.13

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.
@@ -1,4 +1,5 @@
1
1
  import { S as Size, R as Rect, P as Point } from './geometry-mL-GTRti.js';
2
+ import { T as Target } from './target-D3PiLg44.js';
2
3
 
3
4
  /**
4
5
  * The panels model: plain data and the pure changes on it.
@@ -492,20 +493,6 @@ declare function giveWayOrder<C extends {
492
493
  }>(cols: readonly C[], order: "oldest" | "newest"): C[];
493
494
  declare function layoutPanels(defs: readonly PanelDef[], state: PanelsState, stage: Size, options?: Partial<PanelsOptions>): PanelsLayout;
494
495
 
495
- /**
496
- * A drop target in the shape @n-uf/motion/drag takes: an id, a priority (1 most precise: a rail or a tab strip;
497
- * 2 a slot; 3 a broad area such as floating anywhere), the zone the pointer hits, and optionally where the item
498
- * lands, a label and whether it lands freely (no room is made for it).
499
- */
500
- interface Target {
501
- readonly id: string;
502
- readonly priority: 1 | 2 | 3;
503
- readonly hit: Rect;
504
- readonly slot?: Rect;
505
- readonly label?: string;
506
- readonly free?: boolean;
507
- }
508
-
509
496
  /**
510
497
  * The drop targets for dragging a panel, in the shape @n-uf/motion/drag takes (`{ id, priority, hit, slot?, free? }`),
511
498
  * worked out from the state with the panel lifted out:
@@ -633,4 +620,4 @@ interface PanelStopsOptions {
633
620
  /** The panel's places in reading order, for the arrow keys and a "Move to" menu (`keyboardStops` calls this). */
634
621
  declare function panelStops(targets: readonly PanelTarget[], options?: PanelStopsOptions): PanelStop[];
635
622
 
636
- export { floatSize as $, type PlacedPanel as A, BAND_SIZE as B, type Clock as C, DEFAULT_PANELS_OPTIONS as D, type Edge as E, FLOAT_HEIGHT as F, type GiveWay as G, type PlacedRail as H, IDENTITY_VIEW as I, type Reserve as J, type ReserveEdge as K, SIDES as L, activate as M, bandHeight as N, bandSize as O, type PanelsOptions as P, close as Q, RAIL_EDGE as R, type Side as S, columnWidth as T, createPanels as U, type View as V, type Where as W, defOf as X, dock as Y, dockBand as Z, float as _, type PanelDef as a, focus as a0, giveWayOrder as a1, homePlace as a2, keep as a3, liftPanel as a4, open as a5, ownWidth as a6, panelStops as a7, panelTargets as a8, pin as a9, placeRank as aa, resizeBand as ab, resizeColumn as ac, resizeFloat as ad, samePlaces as ae, showTabs as af, tick as ag, toPage as ah, toView as ai, toggleFold as aj, whereIs as ak, type Target as al, type PanelsState as b, type PanelTargetInput as c, type PanelTarget as d, type PanelDrop as e, type PanelsLayout as f, type Band as g, type BandOption as h, COLUMN_REACH as i, type Column as j, type DockOptions as k, layoutPanels as l, EDGES as m, FLOAT_MIN as n, type FloatAt as o, panelDrop as p, type PanelKind as q, type PanelPlace as r, type PanelStop as s, type PanelStopsOptions as t, type PanelsNote as u, type PanelsNoteCode as v, type PanelsStart as w, type Place as x, type PlacedBand as y, type PlacedColumn as z };
623
+ export { floatSize as $, type PlacedPanel as A, BAND_SIZE as B, type Clock as C, DEFAULT_PANELS_OPTIONS as D, type Edge as E, FLOAT_HEIGHT as F, type GiveWay as G, type PlacedRail as H, IDENTITY_VIEW as I, type Reserve as J, type ReserveEdge as K, SIDES as L, activate as M, bandHeight as N, bandSize as O, type PanelsOptions as P, close as Q, RAIL_EDGE as R, type Side as S, columnWidth as T, createPanels as U, type View as V, type Where as W, defOf as X, dock as Y, dockBand as Z, float as _, type PanelDef as a, focus as a0, giveWayOrder as a1, homePlace as a2, keep as a3, liftPanel as a4, open as a5, ownWidth as a6, panelStops as a7, panelTargets as a8, pin as a9, placeRank as aa, resizeBand as ab, resizeColumn as ac, resizeFloat as ad, samePlaces as ae, showTabs as af, tick as ag, toPage as ah, toView as ai, toggleFold as aj, whereIs as ak, type PanelsState as b, type PanelTargetInput as c, type PanelTarget as d, type PanelDrop as e, type PanelsLayout as f, type Band as g, type BandOption as h, COLUMN_REACH as i, type Column as j, type DockOptions as k, layoutPanels as l, EDGES as m, FLOAT_MIN as n, type FloatAt as o, panelDrop as p, type PanelKind as q, type PanelPlace as r, type PanelStop as s, type PanelStopsOptions as t, type PanelsNote as u, type PanelsNoteCode as v, type PanelsStart as w, type Place as x, type PlacedBand as y, type PlacedColumn as z };
package/dist/targets.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { al as Target, d as PanelTarget, t as PanelStopsOptions, s as PanelStop } from './targets-B_U2Zf7x.js';
1
+ import { T as Target } from './target-D3PiLg44.js';
2
2
  import { R as Rect, P as Point, S as Size } from './geometry-mL-GTRti.js';
3
3
  import { D as DeskState, g as Layout, a as Construction, O as Options } from './constructions-VDK_mwmz.js';
4
4
  import { Place, Arrangement, HostId, HostSpec, GroupSize } from './toolbar.js';
5
+ import { d as PanelTarget, t as PanelStopsOptions, s as PanelStop } from './targets-B6eLC-52.js';
5
6
 
6
7
  /**
7
8
  * Each desk construction's drop targets, as pure functions: from the state with the dragged item lifted out, a list
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n-uf/placement",
3
- "version": "26.11.11",
3
+ "version": "26.11.13",
4
4
  "description": "Where things go: desk docks, rails and palettes, panel columns, toolbar groups, and the drop targets for each. Pure state in, rects out. No DOM, no framework, no motion.",
5
5
  "keywords": [
6
6
  "layout",
@@ -52,6 +52,10 @@
52
52
  "types": "./dist/desk.d.ts",
53
53
  "default": "./dist/desk.js"
54
54
  },
55
+ "./stack": {
56
+ "types": "./dist/stack.d.ts",
57
+ "default": "./dist/stack.js"
58
+ },
55
59
  "./package.json": "./package.json"
56
60
  },
57
61
  "publishConfig": {