@ultrst-armada/floks 1.2.5 → 1.2.6
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/package.json +8 -10
- package/packages/canvas-ui/dist/chunk-QRYNQ36L.js +123 -0
- package/packages/canvas-ui/dist/{chunk-OOTTFWXA.js → chunk-RH5NINIT.js} +1 -122
- package/packages/canvas-ui/dist/chunk-VESG3VP3.js +1522 -0
- package/packages/canvas-ui/dist/frnl-editable-node-graph/index.d.ts +110 -0
- package/packages/canvas-ui/dist/frnl-editable-node-graph/index.js +9 -0
- package/packages/canvas-ui/dist/index.d.ts +13 -2
- package/packages/canvas-ui/dist/index.js +62 -484
- package/packages/canvas-ui/dist/predictive/index.js +4 -2
- package/packages/canvas-ui/floks.manifest.json +25 -4
- package/packages/canvas-ui/package.json +11 -7
- package/packages/ui/dist/chunk-2SD6BIUX.js +0 -0
- package/packages/ui/dist/{chunk-YDOKOBRJ.js → chunk-DGZBP3ND.js} +106 -491
- package/packages/ui/dist/{chunk-2SFOC7KZ.js → chunk-KQAFKNQH.js} +77 -67
- package/packages/ui/dist/chunk-PH4NEHWR.js +99 -0
- package/packages/ui/dist/chunk-PRMOURNW.js +324 -0
- package/packages/ui/dist/{chunk-DT6DZU63.js → chunk-X67KXI3H.js} +190 -152
- package/packages/ui/dist/chunk-YVWJ4SW7.js +394 -0
- package/packages/ui/dist/components/auth/index.d.ts +56 -14
- package/packages/ui/dist/components/auth/index.js +12 -3
- package/packages/ui/dist/components/composite/index.js +1 -1
- package/packages/ui/dist/components/graph/index.d.ts +29 -0
- package/packages/ui/dist/components/graph/index.js +10 -0
- package/packages/ui/dist/components/layout/index.js +2 -2
- package/packages/ui/dist/components/settings/index.js +2 -2
- package/packages/ui/dist/components/tiles/index.d.ts +83 -0
- package/packages/ui/dist/components/tiles/index.js +10 -0
- package/packages/ui/dist/components/workspace/index.d.ts +108 -33
- package/packages/ui/dist/components/workspace/index.js +15 -3
- package/packages/ui/dist/frnl/index.js +9 -7
- package/packages/ui/dist/hierarchy/index.js +2 -2
- package/packages/ui/dist/index.d.ts +5 -2
- package/packages/ui/dist/index.js +68 -39
- package/packages/ui/floks.manifest.json +99 -17
- package/packages/ui/package.json +18 -3
- package/packages/ui/dist/{chunk-MYXPGPI3.js → chunk-GWW3BGOB.js} +3 -3
- package/packages/ui/dist/{chunk-TORWRS3V.js → chunk-SXRIBCJX.js} +3 -3
- package/packages/ui/dist/{chunk-NPIMIWVO.js → chunk-ZPQC46RO.js} +4 -4
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { GraphNode, GraphEdge, ViewportState, NodeDefinition, Trace, SolidConnection } from '@ultrst-armada/kloks/state-graph';
|
|
3
|
+
|
|
4
|
+
interface FrnlEditableNodeGraphProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
parentId?: string;
|
|
7
|
+
nodes: GraphNode[];
|
|
8
|
+
edges: GraphEdge[];
|
|
9
|
+
viewport?: ViewportState;
|
|
10
|
+
selectedNodeIds?: Set<string>;
|
|
11
|
+
availableNodeTypes?: NodeDefinition[];
|
|
12
|
+
magneticEnabled?: boolean;
|
|
13
|
+
autoSolidifyEnabled?: boolean;
|
|
14
|
+
magneticCutoff?: number;
|
|
15
|
+
signalTelemetryEnabled?: boolean;
|
|
16
|
+
getSocketTelemetry?: (node: GraphNode, socketId: string, isOutput: boolean) => unknown;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React__default.CSSProperties;
|
|
19
|
+
onNodesChange?: (nodes: GraphNode[]) => void;
|
|
20
|
+
onEdgesChange?: (edges: GraphEdge[]) => void;
|
|
21
|
+
onViewportChange?: (viewport: ViewportState) => void;
|
|
22
|
+
onSelectionChange?: (selectedIds: Set<string>) => void;
|
|
23
|
+
onNodeDoubleClick?: (nodeId: string) => void;
|
|
24
|
+
onMagneticTracesChange?: (traces: Trace[]) => void;
|
|
25
|
+
onMagneticTraceSolidify?: (trace: Trace | SolidConnection) => void;
|
|
26
|
+
onPredictiveSolidify?: (ghostId: string) => void;
|
|
27
|
+
onPredictiveSolidifyAllForNode?: (nodeId: string) => void;
|
|
28
|
+
onPredictiveSolidifyAll?: () => void;
|
|
29
|
+
}
|
|
30
|
+
declare const frnlEditableNodeGraphDefinition: {
|
|
31
|
+
name: string;
|
|
32
|
+
states: {
|
|
33
|
+
idle: {
|
|
34
|
+
name: string;
|
|
35
|
+
events: {
|
|
36
|
+
nodesChange: {
|
|
37
|
+
functionId: string;
|
|
38
|
+
};
|
|
39
|
+
edgesChange: {
|
|
40
|
+
functionId: string;
|
|
41
|
+
};
|
|
42
|
+
selectionChange: {
|
|
43
|
+
functionId: string;
|
|
44
|
+
};
|
|
45
|
+
viewportChange: {
|
|
46
|
+
functionId: string;
|
|
47
|
+
};
|
|
48
|
+
magneticTraceSolidify: {
|
|
49
|
+
functionId: string;
|
|
50
|
+
};
|
|
51
|
+
predictiveSolidify: {
|
|
52
|
+
functionId: string;
|
|
53
|
+
};
|
|
54
|
+
predictiveSolidifyAll: {
|
|
55
|
+
functionId: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
visualParameters: {
|
|
59
|
+
canvasBackground: string;
|
|
60
|
+
magneticColor: string;
|
|
61
|
+
};
|
|
62
|
+
phases: {
|
|
63
|
+
sustainPhase: {
|
|
64
|
+
visualDefinition: {
|
|
65
|
+
parameters: {};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
disabled: {
|
|
71
|
+
name: string;
|
|
72
|
+
events: {
|
|
73
|
+
nodesChange: {
|
|
74
|
+
functionId: string;
|
|
75
|
+
};
|
|
76
|
+
edgesChange: {
|
|
77
|
+
functionId: string;
|
|
78
|
+
};
|
|
79
|
+
selectionChange: {
|
|
80
|
+
functionId: string;
|
|
81
|
+
};
|
|
82
|
+
viewportChange: {
|
|
83
|
+
functionId: string;
|
|
84
|
+
};
|
|
85
|
+
magneticTraceSolidify: {
|
|
86
|
+
functionId: string;
|
|
87
|
+
};
|
|
88
|
+
predictiveSolidify: {
|
|
89
|
+
functionId: string;
|
|
90
|
+
};
|
|
91
|
+
predictiveSolidifyAll: {
|
|
92
|
+
functionId: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
visualParameters: {
|
|
96
|
+
opacity: number;
|
|
97
|
+
};
|
|
98
|
+
phases: {
|
|
99
|
+
sustainPhase: {
|
|
100
|
+
visualDefinition: {
|
|
101
|
+
parameters: {};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
declare const FrnlEditableNodeGraph: React__default.FC<FrnlEditableNodeGraphProps>;
|
|
109
|
+
|
|
110
|
+
export { FrnlEditableNodeGraph, type FrnlEditableNodeGraphProps, frnlEditableNodeGraphDefinition };
|
|
@@ -4,7 +4,9 @@ export { Tile, TileAction, TileConfig, TileCreateButton, TileGrid, useTileMenu }
|
|
|
4
4
|
export { EditorConfig, MonacoEditor, skipoDarkTheme, useMonaco } from './editor/index.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default from 'react';
|
|
7
|
-
import { NodeDefinition, GraphSettings,
|
|
7
|
+
import { NodeDefinition, GraphSettings, Socket, GraphNode } from '@ultrst-armada/kloks/state-graph';
|
|
8
|
+
import { BaseNode, SolidConnection, Trace, ViewLink, BaseViewWindow } from '@ultrst-armada/kloks/state-graph';
|
|
9
|
+
export { FrnlEditableNodeGraph, FrnlEditableNodeGraphProps, frnlEditableNodeGraphDefinition } from './frnl-editable-node-graph/index.js';
|
|
8
10
|
export { B as BIOME_CONFIGS, C as COORD_SCALE, a as CameraState, b as Canvas2DViewerProps, c as ConnectingWireState } from './types-D3RRfQUo.js';
|
|
9
11
|
export { CanvasBackground2D, CanvasErrorBoundary, ContainerNode2D, EffectNode2D, MagneticTraces2D, ModuleNode2D, NODE_CARD_WIDTH, Node2DBase, Node2DBaseProps, NodeRenderer2D, NodeRenderer2DProps, RecorderWaveformDisplay, RecorderWaveformDisplayProps, RotaryKnob, RotaryKnobProps, SOCKET_ROW_HEIGHT, Socket2D, Socket2DProps, SocketScreenPosition, TriggerNode2D, Wire2D, Wire2DProps, getSocketLocalOffset, getSocketScreenPosition, renderSpriteIcon, useCanvas2DCoordinates, useCanvas2DMagnetic } from './graph-2d/index.js';
|
|
10
12
|
export { PredictiveGhostNodeCard, PredictiveGhostNodeCardProps, PredictiveHudToolbar, PredictiveLayer2D, PredictiveLayer2DProps, UsePredictiveGraph2DProps, UseViewer2DPredictiveProps, usePredictiveGraph2D } from './predictive/index.js';
|
|
@@ -49,6 +51,15 @@ interface NodeSearchPaletteProps {
|
|
|
49
51
|
onSpawnNode: (type: string) => void;
|
|
50
52
|
onClose: () => void;
|
|
51
53
|
}
|
|
54
|
+
type MenuNode = NodeDefinition & {
|
|
55
|
+
category?: string;
|
|
56
|
+
hidden?: boolean;
|
|
57
|
+
menu?: {
|
|
58
|
+
visible?: boolean;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
declare function menuCategory(node: MenuNode): string;
|
|
62
|
+
declare function menuHidden(node: MenuNode): boolean;
|
|
52
63
|
declare function NodeSearchPalette({ x, y, availableNodeTypes, onSpawnNode, onClose }: NodeSearchPaletteProps): React.JSX.Element;
|
|
53
64
|
|
|
54
65
|
interface CanvasContextMenuProps {
|
|
@@ -173,4 +184,4 @@ interface MovableSocketHandleProps {
|
|
|
173
184
|
}
|
|
174
185
|
declare function MovableSocketHandle({ socket, nodeId, cardWidth, isOutput, baseY, onSocketMouseDown, onSocketNudgeChange }: MovableSocketHandleProps): React__default.JSX.Element;
|
|
175
186
|
|
|
176
|
-
export { CanvasContextMenu, type CanvasContextMenuProps, CompatibleNodePicker, type CompatibleNodePickerProps, GraphToolbar, type GraphToolbarProps, MidpointWidgets, type MidpointWidgetsProps, MovableSocketHandle, NodeSearchPalette, type NodeSearchPaletteProps, ReactFlowAdapter, type ReactFlowEdgeData, type ReactFlowNodeData, SolidifyWidget, type SolidifyWidgetProps, Viewer2DNodes, type Viewer2DNodesProps };
|
|
187
|
+
export { CanvasContextMenu, type CanvasContextMenuProps, CompatibleNodePicker, type CompatibleNodePickerProps, GraphToolbar, type GraphToolbarProps, MidpointWidgets, type MidpointWidgetsProps, MovableSocketHandle, NodeSearchPalette, type NodeSearchPaletteProps, ReactFlowAdapter, type ReactFlowEdgeData, type ReactFlowNodeData, SolidifyWidget, type SolidifyWidgetProps, Viewer2DNodes, type Viewer2DNodesProps, menuCategory, menuHidden };
|