@aloudata/ink-flow 1.0.20 → 1.0.22

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.
Files changed (36) hide show
  1. package/dist/components/BatchProvider/index.d.ts.map +1 -1
  2. package/dist/components/Handle/index.d.ts.map +1 -1
  3. package/dist/components/StoreUpdater/index.d.ts +1 -1
  4. package/dist/components/StoreUpdater/index.d.ts.map +1 -1
  5. package/dist/container/InkFlow/index.d.ts.map +1 -1
  6. package/dist/container/InkFlow/init-values.d.ts +1 -1
  7. package/dist/container/InkFlow/init-values.d.ts.map +1 -1
  8. package/dist/hooks/useEdgesState.d.ts +2 -2
  9. package/dist/hooks/useEdgesState.d.ts.map +1 -1
  10. package/dist/hooks/useInkFlow.d.ts.map +1 -1
  11. package/dist/hooks/useNodesState.d.ts +2 -2
  12. package/dist/hooks/useNodesState.d.ts.map +1 -1
  13. package/dist/index.cjs.js +11 -3
  14. package/dist/index.cjs.js.map +1 -1
  15. package/dist/index.esm.js +11 -3
  16. package/dist/index.esm.js.map +1 -1
  17. package/dist/store/index.d.ts.map +1 -1
  18. package/dist/store/initialState.d.ts.map +1 -1
  19. package/dist/types/general.d.ts +13 -2
  20. package/dist/types/general.d.ts.map +1 -1
  21. package/dist/types/instance.d.ts +0 -4
  22. package/dist/types/instance.d.ts.map +1 -1
  23. package/dist/types/layout.d.ts +37 -0
  24. package/dist/types/layout.d.ts.map +1 -0
  25. package/dist/types/props.d.ts +1 -3
  26. package/dist/types/props.d.ts.map +1 -1
  27. package/dist/types/store.d.ts +10 -2
  28. package/dist/types/store.d.ts.map +1 -1
  29. package/dist/utils/general.d.ts.map +1 -1
  30. package/dist/utils/layout.d.ts +23 -0
  31. package/dist/utils/layout.d.ts.map +1 -0
  32. package/dist/utils/node.d.ts +2 -5
  33. package/dist/utils/node.d.ts.map +1 -1
  34. package/dist/utils/positions.d.ts.map +1 -1
  35. package/dist/utils/store.d.ts.map +1 -1
  36. package/package.json +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAY9C;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAiEtC;AAED,wBAAgB,eAAe;eAjFlB,KAAK,CAAC,GAAG,CAAC;eAEV,KAAK,CAAC,GAAG,CAAC;EAuFtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAY9C;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAqDtC;AAED,wBAAgB,eAAe;eArElB,KAAK,CAAC,GAAG,CAAC;eAEV,KAAK,CAAC,GAAG,CAAC;EA2EtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Handle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAUf,OAAO,EAGL,WAAW,IAAI,iBAAiB,EAEhC,SAAS,EAIV,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,WACf,SAAQ,iBAAiB,EACvB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;IAC5C,8CAA8C;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAmPD;;GAEG;AACH,eAAO,MAAM,MAAM,8GArKT,IACJ,OAAI,CAoKkD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Handle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AAUf,OAAO,EAGL,WAAW,IAAI,iBAAiB,EAEhC,SAAS,EAIV,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,WACf,SAAQ,iBAAiB,EACvB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;IAC5C,8CAA8C;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAmPD;;GAEG;AACH,eAAO,MAAM,MAAM,8GArKT,IACJ,OAAG,CAoKmD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Node, Edge, InkFlowProps } from '../../types';
2
- declare const InkFlowFieldsToTrack: readonly ["nodes", "edges", "defaultNodes", "defaultEdges", "nodesDraggable", "minZoom", "maxZoom", "nodeExtent", "onNodesChange", "onEdgesChange", "elementsSelectable", "translateExtent", "defaultEdgeOptions", "fitView", "fitViewOptions", "nodeOrigin", "autoLayout", "layoutConfig", "centerConfig", "layoutTypes"];
2
+ declare const InkFlowFieldsToTrack: readonly ["layoutConfig", "nodes", "edges", "defaultNodes", "defaultEdges", "nodesDraggable", "minZoom", "maxZoom", "nodeExtent", "elementsSelectable", "translateExtent", "defaultEdgeOptions", "fitView", "fitViewOptions", "nodeOrigin", "autoLayout", "centerConfig", "layoutTypes"];
3
3
  type InkFlowFieldsToTrack = (typeof InkFlowFieldsToTrack)[number];
4
4
  type StoreUpdaterProps<NodeType extends Node = Node, EdgeType extends Edge = Edge> = Pick<InkFlowProps<NodeType, EdgeType>, InkFlowFieldsToTrack> & {
5
5
  rfId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StoreUpdater/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,IAAI,EACJ,IAAI,EAEJ,YAAY,EAEb,MAAM,aAAa,CAAC;AAKrB,QAAA,MAAM,oBAAoB,4TA0DhB,CAAC;AAEX,KAAK,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,KAAK,iBAAiB,CACpB,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,IAC1B,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,oBAAoB,CAAC,GAAG;IACjE,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA6BF,wBAAgB,YAAY,CAC1B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,OA6D7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StoreUpdater/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,IAAI,EACJ,IAAI,EAEJ,YAAY,EAGb,MAAM,aAAa,CAAC;AAKrB,QAAA,MAAM,oBAAoB,0RAwDhB,CAAC;AAEX,KAAK,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,KAAK,iBAAiB,CACpB,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,IAC1B,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,oBAAoB,CAAC,GAAG;IACjE,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAgCF,wBAAgB,YAAY,CAC1B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,OA+E7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/container/InkFlow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;yBAmB3C,QAAQ,SAAS,IAAI,SAAS,QAAQ,SAAS,IAAI,qGA+FzD,IAAK,OAAO;AAyCvB,wBAAwC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/container/InkFlow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;yBAmB3C,QAAQ,SAAS,IAAI,SAAS,QAAQ,SAAS,IAAI,qGA8F1D,IAAA,OAAK;AAsCf,wBAAwC"}
@@ -1,7 +1,7 @@
1
1
  import { NodeOrigin, Viewport } from '@aloudata/ink-core';
2
2
  export declare const defaultNodeOrigin: NodeOrigin;
3
3
  export declare const defaultViewport: Viewport;
4
- export declare const defaultLayoutConfig: {
4
+ export declare const DEFAULT_LAYOUT_CONFIG: {
5
5
  type: string;
6
6
  options: {
7
7
  rankdir: string;
@@ -1 +1 @@
1
- {"version":3,"file":"init-values.d.ts","sourceRoot":"","sources":["../../../src/container/InkFlow/init-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,iBAAiB,EAAE,UAAmB,CAAC;AACpD,eAAO,MAAM,eAAe,EAAE,QAAkC,CAAC;AAEjE,eAAO,MAAM,mBAAmB;;;;;;;CAO/B,CAAC"}
1
+ {"version":3,"file":"init-values.d.ts","sourceRoot":"","sources":["../../../src/container/InkFlow/init-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,iBAAiB,EAAE,UAAmB,CAAC;AACpD,eAAO,MAAM,eAAe,EAAE,QAAkC,CAAC;AAEjE,eAAO,MAAM,qBAAqB;;;;;;;CAOjC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { type Dispatch, type SetStateAction } from 'react';
2
- import { Edge, OnEdgesChange } from '../types';
3
- export declare function useEdgesState<EdgeType extends Edge = Edge>(initialEdges: EdgeType[]): [EdgeType[], Dispatch<SetStateAction<EdgeType[]>>, OnEdgesChange<EdgeType>];
2
+ import { Edge } from '../types';
3
+ export declare function useEdgesState<EdgeType extends Edge = Edge>(initialEdges: EdgeType[]): [EdgeType[], Dispatch<SetStateAction<EdgeType[]>>];
4
4
  //# sourceMappingURL=useEdgesState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEdgesState.d.ts","sourceRoot":"","sources":["../../src/hooks/useEdgesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACxD,YAAY,EAAE,QAAQ,EAAE,GACvB,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAQ7E"}
1
+ {"version":3,"file":"useEdgesState.d.ts","sourceRoot":"","sources":["../../src/hooks/useEdgesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACxD,YAAY,EAAE,QAAQ,EAAE,GACvB,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAIpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"useInkFlow.d.ts","sourceRoot":"","sources":["../../src/hooks/useInkFlow.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,IAAI,EAA8B,MAAM,UAAU,CAAC;AASlE,OAAO,EAAkB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpE;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,KACzB,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAuOvC"}
1
+ {"version":3,"file":"useInkFlow.d.ts","sourceRoot":"","sources":["../../src/hooks/useInkFlow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,IAAI,EAA8B,MAAM,UAAU,CAAC;AASlE,OAAO,EAAkB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpE;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC5B,QAAQ,SAAS,IAAI,GAAG,IAAI,KACzB,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAiOvC"}
@@ -1,4 +1,4 @@
1
1
  import { type Dispatch, type SetStateAction } from 'react';
2
- import { Node, OnNodesChange } from '../types';
3
- export declare function useNodesState<NodeType extends Node>(initialNodes: NodeType[]): [NodeType[], Dispatch<SetStateAction<NodeType[]>>, OnNodesChange<NodeType>];
2
+ import { Node } from '../types';
3
+ export declare function useNodesState<NodeType extends Node>(initialNodes: NodeType[]): [NodeType[], Dispatch<SetStateAction<NodeType[]>>];
4
4
  //# sourceMappingURL=useNodesState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNodesState.d.ts","sourceRoot":"","sources":["../../src/hooks/useNodesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAW/C,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,EACjD,YAAY,EAAE,QAAQ,EAAE,GACvB,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAmK7E"}
1
+ {"version":3,"file":"useNodesState.d.ts","sourceRoot":"","sources":["../../src/hooks/useNodesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,EACjD,YAAY,EAAE,QAAQ,EAAE,GACvB,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAIpD"}