@aloudata/ink-flow 1.0.24 → 1.0.26
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/components/ConnectionLine/index.d.ts +4 -4
- package/dist/components/ConnectionLine/index.d.ts.map +1 -1
- package/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +7 -9
- package/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -1
- package/dist/components/EdgeWrapper/index.d.ts +1 -1
- package/dist/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/components/Handle/index.d.ts.map +1 -1
- package/dist/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/components/StoreUpdater/index.d.ts +1 -1
- package/dist/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/container/EdgeRenderer/index.d.ts +2 -2
- package/dist/container/EdgeRenderer/index.d.ts.map +1 -1
- package/dist/container/FlowRenderer/index.d.ts +1 -1
- package/dist/container/FlowRenderer/index.d.ts.map +1 -1
- package/dist/container/GraphView/index.d.ts +2 -2
- package/dist/container/GraphView/index.d.ts.map +1 -1
- package/dist/container/InkFlow/index.d.ts.map +1 -1
- package/dist/container/Pane/index.d.ts +3 -2
- package/dist/container/Pane/index.d.ts.map +1 -1
- package/dist/hooks/useConnection.d.ts +29 -0
- package/dist/hooks/useConnection.d.ts.map +1 -0
- package/dist/hooks/useGlobalKeyHandler.d.ts.map +1 -1
- package/dist/hooks/useInkFlow.d.ts.map +1 -1
- package/dist/hooks/useViewportHelper.d.ts.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/plugins/NodeResizer/NodeResizeControl.d.ts +11 -0
- package/dist/plugins/NodeResizer/NodeResizeControl.d.ts.map +1 -0
- package/dist/plugins/NodeResizer/NodeResizer.d.ts +27 -0
- package/dist/plugins/NodeResizer/NodeResizer.d.ts.map +1 -0
- package/dist/plugins/NodeResizer/index.d.ts +4 -0
- package/dist/plugins/NodeResizer/index.d.ts.map +1 -0
- package/dist/plugins/NodeResizer/types.d.ts +65 -0
- package/dist/plugins/NodeResizer/types.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/initialState.d.ts.map +1 -1
- package/dist/style.css +7 -5
- package/dist/types/edges.d.ts +17 -14
- package/dist/types/edges.d.ts.map +1 -1
- package/dist/types/general.d.ts +1 -1
- package/dist/types/general.d.ts.map +1 -1
- package/dist/types/nodes.d.ts +1 -1
- package/dist/types/nodes.d.ts.map +1 -1
- package/dist/types/props.d.ts +71 -3
- package/dist/types/props.d.ts.map +1 -1
- package/dist/types/store.d.ts +7 -8
- package/dist/types/store.d.ts.map +1 -1
- package/dist/utils/dom.d.ts +1 -2
- package/dist/utils/dom.d.ts.map +1 -1
- package/dist/utils/general.d.ts +4 -1
- package/dist/utils/general.d.ts.map +1 -1
- package/dist/utils/graph.d.ts +2 -2
- package/dist/utils/graph.d.ts.map +1 -1
- package/dist/utils/store.d.ts +1 -14
- package/dist/utils/store.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/utils/general.d.ts
CHANGED
|
@@ -55,7 +55,10 @@ export declare const isNodeBase: <NodeType extends NodeBase = NodeBase>(element:
|
|
|
55
55
|
* @param nodeOrigin
|
|
56
56
|
* @returns an internal node with an absolute position
|
|
57
57
|
*/
|
|
58
|
-
export declare function evaluateAbsolutePosition(position: XYPosition, parentId: string, nodeLookup: NodeLookup, nodeOrigin?: NodeOrigin
|
|
58
|
+
export declare function evaluateAbsolutePosition(position: XYPosition, parentId: string, nodeLookup: NodeLookup, nodeOrigin?: NodeOrigin, dimensions?: {
|
|
59
|
+
width?: number;
|
|
60
|
+
height?: number;
|
|
61
|
+
}): XYPosition;
|
|
59
62
|
export declare const isRectObject: (obj: any) => obj is Rect;
|
|
60
63
|
export declare const devWarn: (id: string, message: string) => void;
|
|
61
64
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../src/utils/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,aAAa,EAAc,MAAM,OAAO,CAAC;AAElE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,UAAU,EACV,UAAU,EACX,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,KAAK,QAAS,MAAM,iCAAqB,MACnB,CAAC;AAEpC,eAAO,MAAM,aAAa,aACd,UAAU,UACZ,gBAAgB;;;CAIxB,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,QAAQ,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAKpC;AAED,eAAO,MAAM,SAAS,MAAO,GAAG,KAAG,CAAC,IAAI,MAAkC,CAAC;AAE3E,eAAO,MAAM,YAAY,aACb,UAAU,aACV,QAAQ,KACjB,UAKF,CAAC;AAEF,eAAO,MAAM,oBAAoB,aACrB,UAAU,oBACF,SAAS,mCAEjB,QAAQ,KACjB,UAOF,CAAC;AAEF,eAAO,MAAM,UAAU,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alNodesBoundsParams<NodeType> = {
|
|
|
64
64
|
* @internal
|
|
65
65
|
*/
|
|
66
66
|
export declare const getInternalNodesBounds: <NodeType extends InternalNodeBase | NodeDragItem>(nodeLookup: Map<string, NodeType>, params?: GetInternalNodesBoundsParams<NodeType>) => Rect;
|
|
67
|
-
export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(nodes: Map<string, InternalNodeBase<NodeType>>, rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean
|
|
67
|
+
export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(nodes: Map<string, InternalNodeBase<NodeType>>, rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean) => InternalNodeBase<NodeType>[];
|
|
68
68
|
/**
|
|
69
69
|
* Get all connecting edges for a given set of nodes
|
|
70
70
|
* @param nodes - Nodes you want to get the connected edges for
|
|
@@ -72,7 +72,7 @@ export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(node
|
|
|
72
72
|
* @returns Array of edges that connect any of the given nodes with each other
|
|
73
73
|
*/
|
|
74
74
|
export declare const getConnectedEdges: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(nodes: NodeType[], edges: EdgeType[]) => EdgeType[];
|
|
75
|
-
export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Options extends FitViewOptionsBase<NodeBase>>({
|
|
75
|
+
export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Options extends FitViewOptionsBase<NodeBase>>({ nodes, width, height, panZoom, minZoom, maxZoom }: Params, options?: Omit<Options, 'nodes' | 'includeHiddenNodes'>): Promise<boolean>;
|
|
76
76
|
/**
|
|
77
77
|
* This function calculates the next position of a node, taking into account the node's extent, parent node, and origin.
|
|
78
78
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/utils/graph.ts"],"names":[],"mappings":"AACA,OAAO,EACL,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QAAQ,CAAC,EAAE,CAAC;IACnC,aAAa,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IACnC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;CACzD,GAAG,OAAO,CAAC;IACV,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,CAAC,CAoDD"}
|
package/dist/utils/store.d.ts
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
import { NodeBase, NodeOrigin, InternalNodeBase,
|
|
1
|
+
import { NodeBase, NodeOrigin, InternalNodeBase, NodeLookup, ParentLookup, NodeDimensionChange, NodePositionChange, XYPosition, ConnectionLookup, EdgeLookup, EdgeBase, PanZoomInstance, Transform, CoordinateExtent } from '@aloudata/ink-core';
|
|
2
2
|
import { ParentExpandChild } from '../types/utils/types';
|
|
3
|
-
type UpdateNodesOptions<NodeType extends NodeBase> = {
|
|
4
|
-
nodeOrigin?: NodeOrigin;
|
|
5
|
-
elevateNodesOnSelect?: boolean;
|
|
6
|
-
defaults?: Partial<NodeType>;
|
|
7
|
-
checkEquality?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>): void;
|
|
10
|
-
export declare function updateNodeInternals<NodeType extends InternalNodeBase>(updates: Map<string, InternalNodeUpdate>, nodeLookup: NodeLookup<NodeType>, parentLookup: ParentLookup<NodeType>, domNode: HTMLElement | null, nodeOrigin?: NodeOrigin): {
|
|
11
|
-
changes: (NodeDimensionChange | NodePositionChange)[];
|
|
12
|
-
updatedInternals: boolean;
|
|
13
|
-
};
|
|
14
3
|
export declare const getNodePositionWithOrigin: (node: InternalNodeBase | NodeBase, nodeOrigin?: NodeOrigin) => {
|
|
15
4
|
position: XYPosition;
|
|
16
5
|
positionAbsolute: XYPosition;
|
|
17
6
|
};
|
|
18
7
|
export declare function updateConnectionLookup(connectionLookup: ConnectionLookup, edgeLookup: EdgeLookup, edges: EdgeBase[]): void;
|
|
19
|
-
export declare function adoptUserNodes<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, InternalNodeBase<NodeType>>, parentLookup: Map<string, InternalNodeBase<NodeType>[]>, options?: UpdateNodesOptions<NodeType>): void;
|
|
20
8
|
export declare function handleExpandParent(children: ParentExpandChild[], nodeLookup: NodeLookup, parentLookup: ParentLookup, nodeOrigin?: NodeOrigin): (NodeDimensionChange | NodePositionChange)[];
|
|
21
9
|
export declare function panBy({ delta, panZoom, transform, translateExtent, width, height, }: {
|
|
22
10
|
delta: XYPosition;
|
|
@@ -26,5 +14,4 @@ export declare function panBy({ delta, panZoom, transform, translateExtent, widt
|
|
|
26
14
|
width: number;
|
|
27
15
|
height: number;
|
|
28
16
|
}): boolean;
|
|
29
|
-
export {};
|
|
30
17
|
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/utils/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/utils/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,gBAAgB,EAEhB,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAElB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,QAAQ,EAER,eAAe,EACf,SAAS,EACT,gBAAgB,EAEjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAQzD,eAAO,MAAM,yBAAyB,SAC9B,gBAAgB,GAAG,QAAQ,eACrB,UAAU,KACrB;IAAE,QAAQ,EAAE,UAAU,CAAC;IAAC,gBAAgB,EAAE,UAAU,CAAA;CAmBtD,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,QAAQ,EAAE,QA+BlB;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,iBAAiB,EAAE,EAC7B,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,UAAU,CAAC,EAAE,UAAU,GACtB,CAAC,mBAAmB,GAAG,kBAAkB,CAAC,EAAE,CAqF9C;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,OAAO,EACP,SAAS,EACT,eAAe,EACf,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,gBAAgB,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,WAyBA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/ink-flow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"css": "postcss src/styles/{base,style}.css --config ./../ --dir dist "
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@aloudata/ink-core": "
|
|
17
|
+
"@aloudata/ink-core": "1.0.11",
|
|
18
18
|
"classnames": "^2.3.1",
|
|
19
19
|
"lodash": "^4.17.21",
|
|
20
20
|
"zustand": "^4.5.2"
|