@statelyai/flow-react 0.7.1 → 0.7.2
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/dist/esm/index.d.ts +9 -3
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -186,7 +186,13 @@ type RenderConnectionLineProps = {
|
|
|
186
186
|
pathData: EdgePathData;
|
|
187
187
|
isValid: boolean;
|
|
188
188
|
};
|
|
189
|
-
type
|
|
189
|
+
type StatelyFlowStyle = CSSProperties | (CSSProperties & {
|
|
190
|
+
[customProperty: `--${string}`]: string | number | undefined;
|
|
191
|
+
});
|
|
192
|
+
type StatelyFlowRootProps = Omit<ComponentPropsWithoutRef<"div">, "children" | "ref" | "style"> & {
|
|
193
|
+
style?: StatelyFlowStyle;
|
|
194
|
+
[dataAttribute: `data-${string}`]: string | number | boolean | null | undefined;
|
|
195
|
+
};
|
|
190
196
|
type StatelyFlowBaseProps<TNodeData = unknown, TEdgeData = unknown> = {
|
|
191
197
|
settings?: FlowInstanceSettings<TNodeData, TEdgeData>;
|
|
192
198
|
listeners?: FlowStoreListener[];
|
|
@@ -218,7 +224,7 @@ type StatelyFlowBaseProps<TNodeData = unknown, TEdgeData = unknown> = {
|
|
|
218
224
|
/** Keyboard listener target. Defaults to this flow's root container. */
|
|
219
225
|
keyboardTarget?: "window" | "container" | HTMLElement;
|
|
220
226
|
className?: string;
|
|
221
|
-
style?:
|
|
227
|
+
style?: StatelyFlowStyle;
|
|
222
228
|
/** Ref to the same root element owned by Flow's input runtime. */
|
|
223
229
|
rootRef?: Ref<HTMLDivElement>;
|
|
224
230
|
/** Native root div attributes and events; className/style merge with the top-level props. */
|
|
@@ -474,4 +480,4 @@ declare function useFlowColorMode(): {
|
|
|
474
480
|
};
|
|
475
481
|
declare function useApplyFlowColorMode(element: HTMLElement | null): void;
|
|
476
482
|
//#endregion
|
|
477
|
-
export { Background, type BackgroundProps, type BackgroundVariant, Controls, type ControlsProps, type CreateFlowInstanceOptions, CrossBackground, DotsBackground, DragHandle, type DragHandleProps, EntityAnchor, type EntityAnchorAlign, type EntityAnchorPoint, type EntityAnchorProps, type EntityAnchorSide, FLOW_BASE_CSS, FLOW_BASE_STYLES_ID, FlowColorModeScope, type FlowColorModeScopeProps, type FlowEdgeBinding, type FlowEventListeners, type FlowInstance, FlowInstanceProvider, type FlowInstanceSettings, type FlowNodeBinding, type FlowPortBinding, type FlowSelector, type FlowSelectorEquality, type FlowStoreListener, FlowToolbar, type FlowToolbarProps, type FlowToolbarState, LinesBackground, MiniMap, type MiniMapProps, NodeResizer, type NodeResizerProps, PanePortal, Panel, type PanelPosition, type PanelProps, Port, type PortProps, type ReactActiveGraphProjection, type ReactGraphEdgeAttrs, type ReactGraphNodeAttrs, type RenderConnectionLineProps, type RenderEdgeLabelProps, type RenderEdgeProps, type RenderNodeProps, StatelyFlow, type StatelyFlowProps, type StatelyFlowRootProps, type UseCreateFlowInstanceOptions, type UseFlowInputOptions, type UseFlowOptions, type UseFlowToolbarOptions, ViewportPortal, createFlowInstance, useApplyFlowColorMode, useConnection, useCreateFlowInstance, useFlow, useFlowBaseStyles, useFlowColorMode, useFlowConnections, useFlowContext, useFlowEdge, useFlowEntity, useFlowInput, useFlowInstance, useFlowMeasurement, useFlowNode, useFlowPort, useFlowSelector, useFlowToolbar, useFlowValue, useFlowView, useFlowViewport, useKeyPress, useMeasuredSize, useNodesInitialized, useOptionalFlowInstance };
|
|
483
|
+
export { Background, type BackgroundProps, type BackgroundVariant, Controls, type ControlsProps, type CreateFlowInstanceOptions, CrossBackground, DotsBackground, DragHandle, type DragHandleProps, EntityAnchor, type EntityAnchorAlign, type EntityAnchorPoint, type EntityAnchorProps, type EntityAnchorSide, FLOW_BASE_CSS, FLOW_BASE_STYLES_ID, FlowColorModeScope, type FlowColorModeScopeProps, type FlowEdgeBinding, type FlowEventListeners, type FlowInstance, FlowInstanceProvider, type FlowInstanceSettings, type FlowNodeBinding, type FlowPortBinding, type FlowSelector, type FlowSelectorEquality, type FlowStoreListener, FlowToolbar, type FlowToolbarProps, type FlowToolbarState, LinesBackground, MiniMap, type MiniMapProps, NodeResizer, type NodeResizerProps, PanePortal, Panel, type PanelPosition, type PanelProps, Port, type PortProps, type ReactActiveGraphProjection, type ReactGraphEdgeAttrs, type ReactGraphNodeAttrs, type RenderConnectionLineProps, type RenderEdgeLabelProps, type RenderEdgeProps, type RenderNodeProps, StatelyFlow, type StatelyFlowProps, type StatelyFlowRootProps, type StatelyFlowStyle, type UseCreateFlowInstanceOptions, type UseFlowInputOptions, type UseFlowOptions, type UseFlowToolbarOptions, ViewportPortal, createFlowInstance, useApplyFlowColorMode, useConnection, useCreateFlowInstance, useFlow, useFlowBaseStyles, useFlowColorMode, useFlowConnections, useFlowContext, useFlowEdge, useFlowEntity, useFlowInput, useFlowInstance, useFlowMeasurement, useFlowNode, useFlowPort, useFlowSelector, useFlowToolbar, useFlowValue, useFlowView, useFlowViewport, useKeyPress, useMeasuredSize, useNodesInitialized, useOptionalFlowInstance };
|