@flowgram.ai/free-layout-core 0.4.1 → 0.4.3
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.js +10 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/typings/index.d.mts +1 -1
- package/dist/typings/index.d.ts +1 -1
- package/dist/typings/workflow-drag.d.mts +1 -1
- package/dist/typings/workflow-drag.d.ts +1 -1
- package/dist/typings/workflow-json.d.mts +1 -1
- package/dist/typings/workflow-json.d.ts +1 -1
- package/dist/typings/workflow-line.d.mts +1 -1
- package/dist/typings/workflow-line.d.ts +1 -1
- package/dist/typings/workflow-node.d.mts +1 -1
- package/dist/typings/workflow-node.d.ts +1 -1
- package/dist/typings/workflow-registry.d.mts +1 -1
- package/dist/typings/workflow-registry.d.ts +1 -1
- package/dist/{workflow-line-entity-DSC3qPV1.d.mts → workflow-line-entity-CauIz5GH.d.mts} +14 -1
- package/dist/{workflow-line-entity-I_VrhJ_t.d.ts → workflow-line-entity-DqPb9Odw.d.ts} +14 -1
- package/package.json +9 -9
package/dist/typings/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { x as LineColor, y as LineColors, L as LineEventProps, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, u as WorkflowNodeMeta, D as onDragLineEndParams } from '../workflow-line-entity-
|
|
1
|
+
export { x as LineColor, y as LineColors, L as LineEventProps, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, u as WorkflowNodeMeta, D as onDragLineEndParams } from '../workflow-line-entity-CauIz5GH.mjs';
|
|
2
2
|
export { WorkflowEdgeJSON } from './workflow-edge.mjs';
|
|
3
3
|
export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.mjs';
|
|
4
4
|
export { a as WorkflowSubCanvas } from '../workflow-sub-canvas-IQzlYvPD.mjs';
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { x as LineColor, y as LineColors, L as LineEventProps, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, u as WorkflowNodeMeta, D as onDragLineEndParams } from '../workflow-line-entity-
|
|
1
|
+
export { x as LineColor, y as LineColors, L as LineEventProps, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, u as WorkflowNodeMeta, D as onDragLineEndParams } from '../workflow-line-entity-DqPb9Odw.js';
|
|
2
2
|
export { WorkflowEdgeJSON } from './workflow-edge.js';
|
|
3
3
|
export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.js';
|
|
4
4
|
export { a as WorkflowSubCanvas } from '../workflow-sub-canvas-IQzlYvPD.js';
|
|
@@ -2,7 +2,7 @@ import 'react';
|
|
|
2
2
|
import '@flowgram.ai/utils';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
|
-
export { L as LineEventProps, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, D as onDragLineEndParams } from '../workflow-line-entity-
|
|
5
|
+
export { L as LineEventProps, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, D as onDragLineEndParams } from '../workflow-line-entity-CauIz5GH.mjs';
|
|
6
6
|
import '../workflow-sub-canvas-IQzlYvPD.mjs';
|
|
7
7
|
import '@flowgram.ai/form-core';
|
|
8
8
|
import './workflow-edge.mjs';
|
|
@@ -2,7 +2,7 @@ import 'react';
|
|
|
2
2
|
import '@flowgram.ai/utils';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
|
-
export { L as LineEventProps, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, D as onDragLineEndParams } from '../workflow-line-entity-
|
|
5
|
+
export { L as LineEventProps, B as NodesDragEndEvent, N as NodesDragEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, O as OnDragLineEnd, D as onDragLineEndParams } from '../workflow-line-entity-DqPb9Odw.js';
|
|
6
6
|
import '../workflow-sub-canvas-IQzlYvPD.js';
|
|
7
7
|
import '@flowgram.ai/form-core';
|
|
8
8
|
import './workflow-edge.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../workflow-sub-canvas-IQzlYvPD.mjs';
|
|
2
|
-
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON } from '../workflow-line-entity-
|
|
2
|
+
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON } from '../workflow-line-entity-CauIz5GH.mjs';
|
|
3
3
|
import './workflow-edge.mjs';
|
|
4
4
|
import '@flowgram.ai/document';
|
|
5
5
|
import '@flowgram.ai/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../workflow-sub-canvas-IQzlYvPD.js';
|
|
2
|
-
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON } from '../workflow-line-entity-
|
|
2
|
+
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, h as WorkflowJSON } from '../workflow-line-entity-DqPb9Odw.js';
|
|
3
3
|
import './workflow-edge.js';
|
|
4
4
|
import '@flowgram.ai/document';
|
|
5
5
|
import '@flowgram.ai/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
|
-
export { x as LineColor, y as LineColors, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-
|
|
2
|
+
export { x as LineColor, y as LineColors, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-CauIz5GH.mjs';
|
|
3
3
|
import '@flowgram.ai/core';
|
|
4
4
|
import '@flowgram.ai/document';
|
|
5
5
|
import '../workflow-sub-canvas-IQzlYvPD.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
|
-
export { x as LineColor, y as LineColors, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-
|
|
2
|
+
export { x as LineColor, y as LineColors, k as LinePoint, w as LinePointLocation, o as LinePosition, m as LineRenderType, v as LineType, n as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-DqPb9Odw.js';
|
|
3
3
|
import '@flowgram.ai/core';
|
|
4
4
|
import '@flowgram.ai/document';
|
|
5
5
|
import '../workflow-sub-canvas-IQzlYvPD.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
3
|
import '../workflow-sub-canvas-IQzlYvPD.mjs';
|
|
4
|
-
export { e as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-line-entity-
|
|
4
|
+
export { e as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-line-entity-CauIz5GH.mjs';
|
|
5
5
|
import './workflow-edge.mjs';
|
|
6
6
|
import '@flowgram.ai/core';
|
|
7
7
|
import '@flowgram.ai/form-core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
3
|
import '../workflow-sub-canvas-IQzlYvPD.js';
|
|
4
|
-
export { e as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-line-entity-
|
|
4
|
+
export { e as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-line-entity-DqPb9Odw.js';
|
|
5
5
|
import './workflow-edge.js';
|
|
6
6
|
import '@flowgram.ai/core';
|
|
7
7
|
import '@flowgram.ai/form-core';
|
|
@@ -2,7 +2,7 @@ import { FormMeta } from '@flowgram.ai/node';
|
|
|
2
2
|
import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
|
|
3
3
|
import { FlowNodeRegistry } from '@flowgram.ai/document';
|
|
4
4
|
import { W as WorkflowNodeEntity } from '../workflow-sub-canvas-IQzlYvPD.mjs';
|
|
5
|
-
import { u as WorkflowNodeMeta, f as WorkflowPortEntity, b as WorkflowLinesManager } from '../workflow-line-entity-
|
|
5
|
+
import { u as WorkflowNodeMeta, f as WorkflowPortEntity, b as WorkflowLinesManager } from '../workflow-line-entity-CauIz5GH.mjs';
|
|
6
6
|
import '@flowgram.ai/utils';
|
|
7
7
|
import '@flowgram.ai/core';
|
|
8
8
|
import './workflow-edge.mjs';
|
|
@@ -2,7 +2,7 @@ import { FormMeta } from '@flowgram.ai/node';
|
|
|
2
2
|
import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
|
|
3
3
|
import { FlowNodeRegistry } from '@flowgram.ai/document';
|
|
4
4
|
import { W as WorkflowNodeEntity } from '../workflow-sub-canvas-IQzlYvPD.js';
|
|
5
|
-
import { u as WorkflowNodeMeta, f as WorkflowPortEntity, b as WorkflowLinesManager } from '../workflow-line-entity-
|
|
5
|
+
import { u as WorkflowNodeMeta, f as WorkflowPortEntity, b as WorkflowLinesManager } from '../workflow-line-entity-DqPb9Odw.js';
|
|
6
6
|
import '@flowgram.ai/utils';
|
|
7
7
|
import '@flowgram.ai/core';
|
|
8
8
|
import './workflow-edge.js';
|
|
@@ -492,7 +492,10 @@ declare class WorkflowDocument extends FlowDocument {
|
|
|
492
492
|
toJSON(): WorkflowJSON;
|
|
493
493
|
dispose(): void;
|
|
494
494
|
/**
|
|
495
|
-
*
|
|
495
|
+
* 批量添加节点
|
|
496
|
+
* @deprecated use 'batchAddFromJSON' instead
|
|
497
|
+
* @param json
|
|
498
|
+
* @param options
|
|
496
499
|
*/
|
|
497
500
|
renderJSON(json: WorkflowJSON, options?: {
|
|
498
501
|
parent?: WorkflowNodeEntity;
|
|
@@ -501,6 +504,16 @@ declare class WorkflowDocument extends FlowDocument {
|
|
|
501
504
|
nodes: WorkflowNodeEntity[];
|
|
502
505
|
edges: WorkflowLineEntity[];
|
|
503
506
|
};
|
|
507
|
+
/**
|
|
508
|
+
* 批量添加节点
|
|
509
|
+
*/
|
|
510
|
+
batchAddFromJSON(json: WorkflowJSON, options?: {
|
|
511
|
+
parent?: WorkflowNodeEntity;
|
|
512
|
+
isClone?: boolean;
|
|
513
|
+
}): {
|
|
514
|
+
nodes: WorkflowNodeEntity[];
|
|
515
|
+
edges: WorkflowLineEntity[];
|
|
516
|
+
};
|
|
504
517
|
private getNodeSubCanvas;
|
|
505
518
|
private getNodeChildren;
|
|
506
519
|
private toLineJSON;
|
|
@@ -492,7 +492,10 @@ declare class WorkflowDocument extends FlowDocument {
|
|
|
492
492
|
toJSON(): WorkflowJSON;
|
|
493
493
|
dispose(): void;
|
|
494
494
|
/**
|
|
495
|
-
*
|
|
495
|
+
* 批量添加节点
|
|
496
|
+
* @deprecated use 'batchAddFromJSON' instead
|
|
497
|
+
* @param json
|
|
498
|
+
* @param options
|
|
496
499
|
*/
|
|
497
500
|
renderJSON(json: WorkflowJSON, options?: {
|
|
498
501
|
parent?: WorkflowNodeEntity;
|
|
@@ -501,6 +504,16 @@ declare class WorkflowDocument extends FlowDocument {
|
|
|
501
504
|
nodes: WorkflowNodeEntity[];
|
|
502
505
|
edges: WorkflowLineEntity[];
|
|
503
506
|
};
|
|
507
|
+
/**
|
|
508
|
+
* 批量添加节点
|
|
509
|
+
*/
|
|
510
|
+
batchAddFromJSON(json: WorkflowJSON, options?: {
|
|
511
|
+
parent?: WorkflowNodeEntity;
|
|
512
|
+
isClone?: boolean;
|
|
513
|
+
}): {
|
|
514
|
+
nodes: WorkflowNodeEntity[];
|
|
515
|
+
edges: WorkflowLineEntity[];
|
|
516
|
+
};
|
|
504
517
|
private getNodeSubCanvas;
|
|
505
518
|
private getNodeChildren;
|
|
506
519
|
private toLineJSON;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowgram.ai/free-layout-core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"homepage": "https://flowgram.ai/",
|
|
5
5
|
"repository": "https://github.com/bytedance/flowgram.ai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"reflect-metadata": "~0.2.2",
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
36
|
"nanoid": "^4.0.2",
|
|
37
|
-
"@flowgram.ai/core": "0.4.
|
|
38
|
-
"@flowgram.ai/document": "0.4.
|
|
39
|
-
"@flowgram.ai/
|
|
40
|
-
"@flowgram.ai/
|
|
41
|
-
"@flowgram.ai/utils": "0.4.
|
|
42
|
-
"@flowgram.ai/reactive": "0.4.
|
|
37
|
+
"@flowgram.ai/core": "0.4.3",
|
|
38
|
+
"@flowgram.ai/document": "0.4.3",
|
|
39
|
+
"@flowgram.ai/node": "0.4.3",
|
|
40
|
+
"@flowgram.ai/form-core": "0.4.3",
|
|
41
|
+
"@flowgram.ai/utils": "0.4.3",
|
|
42
|
+
"@flowgram.ai/reactive": "0.4.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/react": "^12",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"tsup": "^8.0.1",
|
|
54
54
|
"typescript": "^5.8.3",
|
|
55
55
|
"vitest": "^0.34.6",
|
|
56
|
-
"@flowgram.ai/eslint-config": "0.4.
|
|
57
|
-
"@flowgram.ai/ts-config": "0.4.
|
|
56
|
+
"@flowgram.ai/eslint-config": "0.4.3",
|
|
57
|
+
"@flowgram.ai/ts-config": "0.4.3"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">=16.8",
|