@burdenoff/microfe-bigconsole 2026.1124.8 → 2026.1124.9

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.
@@ -0,0 +1,20 @@
1
+ import { FleetLink } from './fleetTree';
2
+ export interface DragBoardState {
3
+ /** The caller may edit boards. */
4
+ canUpdate: boolean;
5
+ /** The links are known: while they load, or when they failed to, whether a board follows one is not. */
6
+ linksReady: boolean;
7
+ /** A fleet action is running: a drop must not start a second one. */
8
+ busy: boolean;
9
+ /** The board follows a master, or has asked to. */
10
+ follows: boolean;
11
+ /** The board's owner is asked to accept a link: the board answers it, it is not linked. */
12
+ awaitingAnswer: boolean;
13
+ }
14
+ /** A board that follows nothing can be picked up to be linked; one that follows or waits cannot be moved. */
15
+ export declare function canPickUp(board: DragBoardState): boolean;
16
+ /**
17
+ * Whether `draggedId` can be dropped on `targetId`: not on itself, and not on a board that follows it (directly
18
+ * or through others), which would make a loop.
19
+ */
20
+ export declare function canDropOn(draggedId: string, targetId: string, links: readonly FleetLink[]): boolean;
@@ -0,0 +1,9 @@
1
+ import { descendantIds as e } from "./fleetTree.js";
2
+ // src/bigconsole/utils/fleetDrag.ts
3
+ function t(e) {
4
+ return e.canUpdate && e.linksReady && !e.busy && !e.follows && !e.awaitingAnswer;
5
+ }
6
+ function n(t, n, r) {
7
+ return t !== n && !e(t, r).has(n);
8
+ }
9
+ export { n as canDropOn, t as canPickUp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-bigconsole",
3
- "version": "2026.1124.8",
3
+ "version": "2026.1124.9",
4
4
  "description": "BigConsole - AI-powered analytics and dashboard platform",
5
5
  "repository": {
6
6
  "type": "git",