@ultrst-armada/floks 1.13.21 → 1.14.0
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/.krusbl-release-attestation.json +3 -3
- package/package.json +8 -7
- package/packages/canvas-ui/dist/MovableSocketView.d.ts +1 -1
- package/packages/canvas-ui/dist/NodeCard.d.ts +1 -1
- package/packages/canvas-ui/dist/NodeDetailsPanel.d.ts +1 -1
- package/packages/canvas-ui/dist/NodeGraphCanvas.d.ts +1 -1
- package/packages/canvas-ui/dist/Viewer2DNodes.d.ts +1 -1
- package/packages/canvas-ui/dist/WireRenderer.d.ts +1 -1
- package/packages/canvas-ui/dist/authoring/UiAuthoringValidationPanel.d.ts +1 -1
- package/packages/canvas-ui/dist/{chunk-RH5NINIT.js → chunk-A7BSZ5QO.js} +28 -103
- package/packages/canvas-ui/dist/chunk-FPRATI44.js +45 -0
- package/packages/canvas-ui/dist/{chunk-ZJXRL74D.js → chunk-KAKAFGVH.js} +22 -16
- package/packages/canvas-ui/dist/{chunk-YHEIL67R.js → chunk-SRGVIYC5.js} +6 -6
- package/packages/canvas-ui/dist/{chunk-7CYX3B6O.js → chunk-TKOMIUCU.js} +1 -1
- package/packages/canvas-ui/dist/{chunk-XVAHT5WE.js → chunk-ZDADZVQ2.js} +363 -59
- package/packages/canvas-ui/dist/{chunk-QRYNQ36L.js → chunk-ZSVXR3HU.js} +1 -1
- package/packages/canvas-ui/dist/editor/MonacoEditor.d.ts +1 -1
- package/packages/canvas-ui/dist/editor/index.js +1 -1
- package/packages/canvas-ui/dist/fod/index.js +3 -3
- package/packages/canvas-ui/dist/frnl-editable-node-graph/FrnlEditableNodeGraph.d.ts +1 -1
- package/packages/canvas-ui/dist/frnl-editable-node-graph/index.js +2 -2
- package/packages/canvas-ui/dist/graph-2d/CanvasBackground2D.d.ts +1 -1
- package/packages/canvas-ui/dist/graph-2d/MagneticTraces2D.d.ts +2 -2
- package/packages/canvas-ui/dist/graph-2d/Node2DBase.d.ts +3 -3
- package/packages/canvas-ui/dist/graph-2d/NodeRenderer2D.d.ts +3 -3
- package/packages/canvas-ui/dist/graph-2d/RecorderWaveformDisplay.d.ts +1 -1
- package/packages/canvas-ui/dist/graph-2d/Socket2D.d.ts +1 -1
- package/packages/canvas-ui/dist/graph-2d/Wire2D.d.ts +1 -1
- package/packages/canvas-ui/dist/graph-2d/index.js +9 -9
- package/packages/canvas-ui/dist/graph-2d/socketCoordinates.d.ts +1 -1
- package/packages/canvas-ui/dist/graph-2d/types.d.ts +1 -1
- package/packages/canvas-ui/dist/graph-2d/useCanvas2DMagnetic.d.ts +4 -4
- package/packages/canvas-ui/dist/index.js +38 -38
- package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostNodeCard.d.ts +1 -1
- package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostSolidifyBar.d.ts +1 -1
- package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostTraceLayer.d.ts +1 -1
- package/packages/canvas-ui/dist/node-graph-ui/react-flow/ReactFlowAdapter.d.ts +4 -4
- package/packages/canvas-ui/dist/node-graph-ui/toolbar/GraphToolbar.d.ts +1 -1
- package/packages/canvas-ui/dist/node-graph-ui/widgets/CanvasContextMenu.d.ts +1 -1
- package/packages/canvas-ui/dist/node-graph-ui/widgets/CompatibleNodePicker.d.ts +1 -1
- package/packages/canvas-ui/dist/node-graph-ui/widgets/MagneticTraceLayer.d.ts +1 -1
- package/packages/canvas-ui/dist/node-graph-ui/widgets/NodeSearchPalette.d.ts +1 -1
- package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard/PredictiveGhostNodeCard.d.ts +2 -2
- package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard/types.d.ts +1 -1
- package/packages/canvas-ui/dist/predictive/PredictiveLayer2D.d.ts +1 -2
- package/packages/canvas-ui/dist/predictive/index.js +3 -3
- package/packages/canvas-ui/dist/predictive/usePredictiveGraph2D.d.ts +4 -5
- package/packages/canvas-ui/dist/useGhostRouting.d.ts +1 -1
- package/packages/canvas-ui/dist/useNodeGraph.d.ts +1 -1
- package/packages/canvas-ui/package.json +5 -6
- package/packages/contracts/dist/index.d.ts +396 -1
- package/packages/contracts/dist/index.js +201 -1
- package/packages/contracts/dist/state-graph.d.ts +456 -0
- package/packages/contracts/dist/state-graph.js +282 -0
- package/packages/contracts/package.json +6 -1
- package/packages/ui/dist/{chunk-3YYPBZS2.js → chunk-W6ENIFEW.js} +3 -3
- package/packages/ui/dist/components/auth/LuthAuthClient.d.ts +4 -4
- package/packages/ui/dist/components/auth/index.js +1 -1
- package/packages/ui/dist/components/auth/luthAuthTypes.d.ts +2 -2
- package/packages/ui/dist/index.js +1 -1
- package/packages/ui/package.json +3 -3
- package/packages/canvas-ui/dist/chunk-U2SC3RMJ.js +0 -391
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MonacoCompletionProvider, MonacoDiagnostic, MonacoDocument } from '@ultrst-armada/
|
|
1
|
+
import type { MonacoCompletionProvider, MonacoDiagnostic, MonacoDocument } from '@ultrst-armada/floks/contracts';
|
|
2
2
|
import type { EditorConfig } from './types.js';
|
|
3
3
|
export interface MonacoIdeServicePort {
|
|
4
4
|
execute<TIn = unknown, TOut = unknown>(operation: string, input?: TIn): Promise<TOut>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { GraphEdge, GraphNode, NodeDefinition, Trace, ViewportState, SolidConnection } from '@ultrst-armada/
|
|
2
|
+
import type { GraphEdge, GraphNode, NodeDefinition, Trace, ViewportState, SolidConnection } from '@ultrst-armada/floks/contracts';
|
|
3
3
|
export interface FrnlEditableNodeGraphProps {
|
|
4
4
|
id?: string;
|
|
5
5
|
parentId?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FrnlEditableNodeGraph,
|
|
3
3
|
frnlEditableNodeGraphDefinition
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-SRGVIYC5.js";
|
|
5
|
+
import "../chunk-ZSVXR3HU.js";
|
|
6
6
|
export {
|
|
7
7
|
FrnlEditableNodeGraph,
|
|
8
8
|
frnlEditableNodeGraphDefinition
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SpaceNode, NodeConnection } from '@ultrst-armada/
|
|
3
|
-
import { Trace } from '@ultrst-armada/
|
|
2
|
+
import { SpaceNode, NodeConnection } from '@ultrst-armada/floks/contracts';
|
|
3
|
+
import { Trace } from '@ultrst-armada/floks/contracts';
|
|
4
4
|
import { CameraState } from './types.js';
|
|
5
5
|
interface MagneticTraces2DProps {
|
|
6
6
|
nodes: SpaceNode[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SpaceNode } from '@ultrst-armada/
|
|
3
|
-
import { NodeSocketDescriptor, NodeSocketsResult } from '@ultrst-armada/
|
|
4
|
-
import { Node2DSpriteSetting } from '@ultrst-armada/
|
|
2
|
+
import { SpaceNode } from '@ultrst-armada/floks/contracts';
|
|
3
|
+
import { NodeSocketDescriptor, NodeSocketsResult } from '@ultrst-armada/floks/contracts';
|
|
4
|
+
import { Node2DSpriteSetting } from '@ultrst-armada/floks/contracts';
|
|
5
5
|
export declare const NODE_CARD_WIDTH = 210;
|
|
6
6
|
export declare const SOCKET_ROW_HEIGHT = 24;
|
|
7
7
|
export interface Node2DBaseProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SpaceNode } from '@ultrst-armada/
|
|
3
|
-
import { NodeSocketDescriptor, NodeSocketsResult } from '@ultrst-armada/
|
|
4
|
-
import { Node2DSpriteSetting } from '@ultrst-armada/
|
|
2
|
+
import { SpaceNode } from '@ultrst-armada/floks/contracts';
|
|
3
|
+
import { NodeSocketDescriptor, NodeSocketsResult } from '@ultrst-armada/floks/contracts';
|
|
4
|
+
import { Node2DSpriteSetting } from '@ultrst-armada/floks/contracts';
|
|
5
5
|
export interface NodeRenderer2DProps {
|
|
6
6
|
node: SpaceNode;
|
|
7
7
|
sprite: Node2DSpriteSetting;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RecorderNode, SpaceNode, NodeConnection } from '@ultrst-armada/
|
|
2
|
+
import type { RecorderNode, SpaceNode, NodeConnection } from '@ultrst-armada/floks/contracts';
|
|
3
3
|
export interface RecorderWaveformDisplayProps {
|
|
4
4
|
node: RecorderNode;
|
|
5
5
|
connections?: NodeConnection[];
|
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
EffectNode2D,
|
|
8
8
|
MagneticTraces2D,
|
|
9
9
|
ModuleNode2D,
|
|
10
|
+
NODE_CARD_WIDTH,
|
|
11
|
+
Node2DBase,
|
|
10
12
|
NodeRenderer2D,
|
|
13
|
+
RecorderWaveformDisplay,
|
|
11
14
|
RotaryKnob,
|
|
15
|
+
SOCKET_ROW_HEIGHT,
|
|
16
|
+
Socket2D,
|
|
12
17
|
TriggerNode2D,
|
|
13
18
|
Wire2D,
|
|
19
|
+
renderSpriteIcon,
|
|
14
20
|
useCanvas2DCoordinates,
|
|
15
21
|
useCanvas2DMagnetic
|
|
16
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-ZDADZVQ2.js";
|
|
17
23
|
import {
|
|
18
|
-
NODE_CARD_WIDTH,
|
|
19
|
-
Node2DBase,
|
|
20
|
-
RecorderWaveformDisplay,
|
|
21
|
-
SOCKET_ROW_HEIGHT,
|
|
22
|
-
Socket2D,
|
|
23
24
|
getSocketLocalOffset,
|
|
24
|
-
getSocketScreenPosition
|
|
25
|
-
|
|
26
|
-
} from "../chunk-U2SC3RMJ.js";
|
|
25
|
+
getSocketScreenPosition
|
|
26
|
+
} from "../chunk-FPRATI44.js";
|
|
27
27
|
export {
|
|
28
28
|
BIOME_CONFIGS,
|
|
29
29
|
COORD_SCALE,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpaceNode, UniversalSocketDefinition } from '@ultrst-armada/
|
|
1
|
+
import { SpaceNode, UniversalSocketDefinition } from '@ultrst-armada/floks/contracts';
|
|
2
2
|
import { CameraState } from './types.js';
|
|
3
3
|
export interface SocketScreenPosition {
|
|
4
4
|
x: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SpaceNode, NodeConnection } from '@ultrst-armada/
|
|
2
|
-
import { MagneticGraphManager, Landmark } from '@ultrst-armada/
|
|
3
|
-
import { Trace } from '@ultrst-armada/
|
|
1
|
+
import { SpaceNode, NodeConnection } from '@ultrst-armada/floks/contracts';
|
|
2
|
+
import { MagneticGraphManager, Landmark } from '@ultrst-armada/floks/contracts';
|
|
3
|
+
import { Trace } from '@ultrst-armada/floks/contracts';
|
|
4
4
|
import { CameraState } from './types.js';
|
|
5
5
|
interface UseViewer2DMagneticProps {
|
|
6
6
|
nodes: SpaceNode[];
|
|
@@ -19,7 +19,7 @@ export declare function useCanvas2DMagnetic({ nodes, connections, camera, setCam
|
|
|
19
19
|
activeTraces: Trace[];
|
|
20
20
|
solidifyTrace: (trace: Trace) => void;
|
|
21
21
|
landmarks: Landmark[];
|
|
22
|
-
saveLandmark: (name: string) =>
|
|
22
|
+
saveLandmark: (name: string) => any;
|
|
23
23
|
jumpToLandmark: (landmark: Landmark) => void;
|
|
24
24
|
};
|
|
25
25
|
export {};
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BIOME_CONFIGS,
|
|
3
|
+
COORD_SCALE,
|
|
4
|
+
CanvasBackground2D,
|
|
5
|
+
CanvasErrorBoundary,
|
|
6
|
+
ContainerNode2D,
|
|
7
|
+
EffectNode2D,
|
|
8
|
+
MagneticTraces2D,
|
|
9
|
+
ModuleNode2D,
|
|
10
|
+
NODE_CARD_WIDTH,
|
|
11
|
+
Node2DBase,
|
|
12
|
+
NodeRenderer2D,
|
|
13
|
+
RecorderWaveformDisplay,
|
|
14
|
+
RotaryKnob,
|
|
15
|
+
SOCKET_ROW_HEIGHT,
|
|
16
|
+
Socket2D,
|
|
17
|
+
TriggerNode2D,
|
|
18
|
+
Wire2D,
|
|
19
|
+
renderSpriteIcon,
|
|
20
|
+
useCanvas2DCoordinates,
|
|
21
|
+
useCanvas2DMagnetic
|
|
22
|
+
} from "./chunk-ZDADZVQ2.js";
|
|
1
23
|
import {
|
|
2
24
|
PredictiveGhostNodeCard,
|
|
3
25
|
PredictiveHudToolbar,
|
|
4
26
|
PredictiveLayer2D
|
|
5
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-A7BSZ5QO.js";
|
|
28
|
+
import {
|
|
29
|
+
getSocketLocalOffset,
|
|
30
|
+
getSocketScreenPosition
|
|
31
|
+
} from "./chunk-FPRATI44.js";
|
|
6
32
|
import {
|
|
7
33
|
Tile,
|
|
8
34
|
TileCreateButton,
|
|
@@ -12,12 +38,6 @@ import {
|
|
|
12
38
|
import {
|
|
13
39
|
AikoModule
|
|
14
40
|
} from "./chunk-OHAFLB3O.js";
|
|
15
|
-
import {
|
|
16
|
-
CanvasViewport,
|
|
17
|
-
InfiniteCanvas,
|
|
18
|
-
MiniMap,
|
|
19
|
-
useCanvas
|
|
20
|
-
} from "./chunk-34YRDZPJ.js";
|
|
21
41
|
import {
|
|
22
42
|
UiAuthoringBindingEditor,
|
|
23
43
|
UiAuthoringInspector,
|
|
@@ -38,10 +58,16 @@ import {
|
|
|
38
58
|
MonacoEditor,
|
|
39
59
|
skipoDarkTheme,
|
|
40
60
|
useMonaco
|
|
41
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KAKAFGVH.js";
|
|
42
62
|
import {
|
|
43
63
|
FodModule
|
|
44
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-TKOMIUCU.js";
|
|
65
|
+
import {
|
|
66
|
+
CanvasViewport,
|
|
67
|
+
InfiniteCanvas,
|
|
68
|
+
MiniMap,
|
|
69
|
+
useCanvas
|
|
70
|
+
} from "./chunk-34YRDZPJ.js";
|
|
45
71
|
import {
|
|
46
72
|
CanvasContextMenu,
|
|
47
73
|
CompatibleNodePicker,
|
|
@@ -50,36 +76,10 @@ import {
|
|
|
50
76
|
frnlEditableNodeGraphDefinition,
|
|
51
77
|
menuCategory,
|
|
52
78
|
menuHidden
|
|
53
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-SRGVIYC5.js";
|
|
54
80
|
import {
|
|
55
81
|
usePredictiveGraph2D
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import {
|
|
58
|
-
BIOME_CONFIGS,
|
|
59
|
-
COORD_SCALE,
|
|
60
|
-
CanvasBackground2D,
|
|
61
|
-
CanvasErrorBoundary,
|
|
62
|
-
ContainerNode2D,
|
|
63
|
-
EffectNode2D,
|
|
64
|
-
MagneticTraces2D,
|
|
65
|
-
ModuleNode2D,
|
|
66
|
-
NodeRenderer2D,
|
|
67
|
-
RotaryKnob,
|
|
68
|
-
TriggerNode2D,
|
|
69
|
-
Wire2D,
|
|
70
|
-
useCanvas2DCoordinates,
|
|
71
|
-
useCanvas2DMagnetic
|
|
72
|
-
} from "./chunk-XVAHT5WE.js";
|
|
73
|
-
import {
|
|
74
|
-
NODE_CARD_WIDTH,
|
|
75
|
-
Node2DBase,
|
|
76
|
-
RecorderWaveformDisplay,
|
|
77
|
-
SOCKET_ROW_HEIGHT,
|
|
78
|
-
Socket2D,
|
|
79
|
-
getSocketLocalOffset,
|
|
80
|
-
getSocketScreenPosition,
|
|
81
|
-
renderSpriteIcon
|
|
82
|
-
} from "./chunk-U2SC3RMJ.js";
|
|
82
|
+
} from "./chunk-ZSVXR3HU.js";
|
|
83
83
|
|
|
84
84
|
// src/node-graph-ui/widgets/MidpointWidgets.tsx
|
|
85
85
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -429,7 +429,7 @@ var ReactFlowAdapter = class {
|
|
|
429
429
|
|
|
430
430
|
// src/Viewer2DNodes.tsx
|
|
431
431
|
import { useState, useRef } from "react";
|
|
432
|
-
import { getBeamPoints, calculateSocketCoordinates } from "@ultrst-armada/
|
|
432
|
+
import { getBeamPoints, calculateSocketCoordinates } from "@ultrst-armada/floks/contracts";
|
|
433
433
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
434
434
|
function Viewer2DNodes({
|
|
435
435
|
node,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BaseNode } from '@ultrst-armada/
|
|
2
|
-
import type { SolidConnection, ViewLink } from '@ultrst-armada/
|
|
3
|
-
import type { Trace } from '@ultrst-armada/
|
|
4
|
-
import type { BaseViewWindow } from '@ultrst-armada/
|
|
1
|
+
import type { BaseNode } from '@ultrst-armada/floks/contracts';
|
|
2
|
+
import type { SolidConnection, ViewLink } from '@ultrst-armada/floks/contracts';
|
|
3
|
+
import type { Trace } from '@ultrst-armada/floks/contracts';
|
|
4
|
+
import type { BaseViewWindow } from '@ultrst-armada/floks/contracts';
|
|
5
5
|
export interface ReactFlowNodeData {
|
|
6
6
|
nodeId: string;
|
|
7
7
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { GraphSettings } from '@ultrst-armada/
|
|
2
|
+
import type { GraphSettings } from '@ultrst-armada/floks/contracts';
|
|
3
3
|
export interface GraphToolbarProps {
|
|
4
4
|
settings: GraphSettings;
|
|
5
5
|
onUpdateSettings: (updates: Partial<GraphSettings>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MagneticTraceRecord } from '@ultrst-armada/
|
|
1
|
+
import type { MagneticTraceRecord } from '@ultrst-armada/floks/contracts';
|
|
2
2
|
export interface MagneticTraceLayerProps {
|
|
3
3
|
traces: MagneticTraceRecord[];
|
|
4
4
|
onSolidify: (traceId: string) => void;
|
package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard/PredictiveGhostNodeCard.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
import { PredictiveGhostNodeCardProps } from './types';
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
import type { PredictiveGhostNodeCardProps } from './types.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export declare const PredictiveGhostNodeCard: React.FC<PredictiveGhostNodeCardProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SpaceNode } from '@ultrst-armada/
|
|
3
|
-
import { PredictiveGhostNode, PredictiveTrace } from '@ultrst-armada/kloks/state-graph';
|
|
2
|
+
import type { SpaceNode, PredictiveGhostNode, PredictiveTrace } from '@ultrst-armada/floks/contracts';
|
|
4
3
|
import { CameraState } from '../graph-2d/types.js';
|
|
5
4
|
export interface PredictiveLayer2DProps {
|
|
6
5
|
nodes: SpaceNode[];
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
PredictiveGhostNodeCard,
|
|
3
3
|
PredictiveHudToolbar,
|
|
4
4
|
PredictiveLayer2D
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-A7BSZ5QO.js";
|
|
6
|
+
import "../chunk-FPRATI44.js";
|
|
6
7
|
import {
|
|
7
8
|
usePredictiveGraph2D
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-U2SC3RMJ.js";
|
|
9
|
+
} from "../chunk-ZSVXR3HU.js";
|
|
10
10
|
export {
|
|
11
11
|
PredictiveGhostNodeCard,
|
|
12
12
|
PredictiveHudToolbar,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SpaceNode, NodeConnection } from '@ultrst-armada/
|
|
2
|
-
import { PredictiveGhostNode } from '@ultrst-armada/kloks/state-graph';
|
|
1
|
+
import type { SpaceNode, NodeConnection, PredictiveGhostNode } from '@ultrst-armada/floks/contracts';
|
|
3
2
|
export interface UsePredictiveGraph2DProps {
|
|
4
3
|
nodes: SpaceNode[];
|
|
5
4
|
connections: NodeConnection[];
|
|
@@ -12,9 +11,9 @@ export declare function usePredictiveGraph2D({ nodes, connections, selectedNodeI
|
|
|
12
11
|
isActive: boolean;
|
|
13
12
|
scenarioIndex: number;
|
|
14
13
|
targetNodes: SpaceNode[];
|
|
15
|
-
ghostNodes:
|
|
16
|
-
traces:
|
|
17
|
-
selectedNodesWithGhosts: Map<string,
|
|
14
|
+
ghostNodes: any[];
|
|
15
|
+
traces: any[];
|
|
16
|
+
selectedNodesWithGhosts: Map<string, any[]>;
|
|
18
17
|
toggleActive: () => void;
|
|
19
18
|
nextScenario: () => void;
|
|
20
19
|
prevScenario: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GraphNode, GraphEdge, NodeGraphConfig, NodeDefinition, GhostNodeRecord, GhostTraceRecord } from '@ultrst-armada/
|
|
1
|
+
import type { GraphNode, GraphEdge, NodeGraphConfig, NodeDefinition, GhostNodeRecord, GhostTraceRecord } from '@ultrst-armada/floks/contracts';
|
|
2
2
|
export interface UseGhostRoutingParams {
|
|
3
3
|
nodes: GraphNode[];
|
|
4
4
|
edges: GraphEdge[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GraphNode, GraphEdge, ViewportState, NodeGraphConfig } from '@ultrst-armada/
|
|
1
|
+
import type { GraphNode, GraphEdge, ViewportState, NodeGraphConfig } from '@ultrst-armada/floks/contracts';
|
|
2
2
|
export declare function useNodeGraph(initialNodes?: GraphNode[], initialEdges?: GraphEdge[]): {
|
|
3
3
|
nodes: GraphNode[];
|
|
4
4
|
edges: GraphEdge[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floks/canvas-ui",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "Floks Canvas UI
|
|
4
|
+
"description": "Floks Canvas UI \u2014 Reusable React Visual Components for Infinite Canvas, Dock, Tile Menus, Code Editor, and Node Graphs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"publishConfig": {
|
|
@@ -70,22 +70,21 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
|
-
"build": "tsup src/index.ts src/canvas/index.ts src/dock/index.ts src/tile-menu/index.ts src/editor/index.ts src/authoring/index.ts src/graph-2d/index.ts src/predictive/index.ts src/frnl-editable-node-graph/index.ts src/fod/index.ts src/aiko/index.ts --format esm --clean --external react --external react-dom --external lucide-react --external @floks/ui --external @ultrst-armada/frnlts --external
|
|
73
|
+
"build": "tsup src/index.ts src/canvas/index.ts src/dock/index.ts src/tile-menu/index.ts src/editor/index.ts src/authoring/index.ts src/graph-2d/index.ts src/predictive/index.ts src/frnl-editable-node-graph/index.ts src/fod/index.ts src/aiko/index.ts --format esm --clean --external react --external react-dom --external lucide-react --external @floks/ui --external @ultrst-armada/frnlts --external monaco-editor --external @dnd-kit/core --external @dnd-kit/sortable --external @dnd-kit/utilities",
|
|
74
74
|
"typecheck": "tsc --noEmit",
|
|
75
75
|
"build:types": "tsc --emitDeclarationOnly --outDir dist --declarationMap false"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@floks/ui": "workspace:*",
|
|
79
|
-
"@ultrst-armada/frnlts": "^0.5.
|
|
80
|
-
"@
|
|
79
|
+
"@ultrst-armada/frnlts": "^0.5.7",
|
|
80
|
+
"@floks/contracts": "workspace:*"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@dnd-kit/core": "^6.0.0",
|
|
84
84
|
"@dnd-kit/sortable": "^8.0.0 || ^9.0.0",
|
|
85
85
|
"@dnd-kit/utilities": "^3.0.0",
|
|
86
86
|
"monaco-editor": "^0.50.0",
|
|
87
|
-
"react": "^18.0.0 || ^19.0.0"
|
|
88
|
-
"@ultrst-armada/kloks": "^1.12.0"
|
|
87
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
89
88
|
},
|
|
90
89
|
"peerDependenciesMeta": {
|
|
91
90
|
"@dnd-kit/core": {
|