@flowgram.ai/free-layout-core 1.0.11 → 1.0.13

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.
@@ -1,4 +1,4 @@
1
- export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-C6bFzfXc.mjs';
1
+ export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-SVLYk05w.mjs';
2
2
  export { WorkflowEdgeJSON } from './workflow-edge.mjs';
3
3
  export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.mjs';
4
4
  export { NodePostionUpdateEvent, WorkflowOperationBaseService } from './workflow-operation.mjs';
@@ -1,4 +1,4 @@
1
- export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-03Q7Fvv6.js';
1
+ export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-D-7FR64B.js';
2
2
  export { WorkflowEdgeJSON } from './workflow-edge.js';
3
3
  export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.js';
4
4
  export { NodePostionUpdateEvent, WorkflowOperationBaseService } from './workflow-operation.js';
@@ -2,6 +2,6 @@ import 'react';
2
2
  import '@flowgram.ai/utils';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
5
- export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-C6bFzfXc.mjs';
5
+ export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-SVLYk05w.mjs';
6
6
  import '@flowgram.ai/form-core';
7
7
  import './workflow-edge.mjs';
@@ -2,6 +2,6 @@ import 'react';
2
2
  import '@flowgram.ai/utils';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
5
- export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-03Q7Fvv6.js';
5
+ export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-D-7FR64B.js';
6
6
  import '@flowgram.ai/form-core';
7
7
  import './workflow-edge.js';
@@ -1,4 +1,4 @@
1
- export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-C6bFzfXc.mjs';
1
+ export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-SVLYk05w.mjs';
2
2
  import './workflow-edge.mjs';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
@@ -1,4 +1,4 @@
1
- export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-03Q7Fvv6.js';
1
+ export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-D-7FR64B.js';
2
2
  import './workflow-edge.js';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
@@ -1,5 +1,5 @@
1
1
  import '@flowgram.ai/utils';
2
- export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-C6bFzfXc.mjs';
2
+ export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-SVLYk05w.mjs';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  import '@flowgram.ai/utils';
2
- export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-03Q7Fvv6.js';
2
+ export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-D-7FR64B.js';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
5
5
  import 'react';
@@ -1,6 +1,6 @@
1
1
  import '@flowgram.ai/utils';
2
2
  import '@flowgram.ai/document';
3
- export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-C6bFzfXc.mjs';
3
+ export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-SVLYk05w.mjs';
4
4
  import './workflow-edge.mjs';
5
5
  import '@flowgram.ai/core';
6
6
  import 'react';
@@ -1,6 +1,6 @@
1
1
  import '@flowgram.ai/utils';
2
2
  import '@flowgram.ai/document';
3
- export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-03Q7Fvv6.js';
3
+ export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-D-7FR64B.js';
4
4
  import './workflow-edge.js';
5
5
  import '@flowgram.ai/core';
6
6
  import 'react';
@@ -1,6 +1,6 @@
1
1
  import { IPoint, Event } from '@flowgram.ai/utils';
2
2
  import { FlowNodeEntity, FlowOperationBaseService, FlowNodeEntityOrId } from '@flowgram.ai/document';
3
- import { W as WorkflowJSON } from '../workflow-node-entity-C6bFzfXc.mjs';
3
+ import { W as WorkflowJSON } from '../workflow-node-entity-SVLYk05w.mjs';
4
4
  import '@flowgram.ai/core';
5
5
  import 'react';
6
6
  import '@flowgram.ai/form-core';
@@ -1,6 +1,6 @@
1
1
  import { IPoint, Event } from '@flowgram.ai/utils';
2
2
  import { FlowNodeEntity, FlowOperationBaseService, FlowNodeEntityOrId } from '@flowgram.ai/document';
3
- import { W as WorkflowJSON } from '../workflow-node-entity-03Q7Fvv6.js';
3
+ import { W as WorkflowJSON } from '../workflow-node-entity-D-7FR64B.js';
4
4
  import '@flowgram.ai/core';
5
5
  import 'react';
6
6
  import '@flowgram.ai/form-core';
@@ -1,7 +1,7 @@
1
1
  import { FormMeta } from '@flowgram.ai/node';
2
2
  import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
3
3
  import { FlowNodeRegistry } from '@flowgram.ai/document';
4
- import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-C6bFzfXc.mjs';
4
+ import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-SVLYk05w.mjs';
5
5
  import '@flowgram.ai/core';
6
6
  import '@flowgram.ai/utils';
7
7
  import 'react';
@@ -1,7 +1,7 @@
1
1
  import { FormMeta } from '@flowgram.ai/node';
2
2
  import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
3
3
  import { FlowNodeRegistry } from '@flowgram.ai/document';
4
- import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-03Q7Fvv6.js';
4
+ import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-D-7FR64B.js';
5
5
  import '@flowgram.ai/core';
6
6
  import '@flowgram.ai/utils';
7
7
  import 'react';
@@ -1,4 +1,4 @@
1
- export { B as WorkflowSubCanvas } from '../workflow-node-entity-C6bFzfXc.mjs';
1
+ export { B as WorkflowSubCanvas } from '../workflow-node-entity-SVLYk05w.mjs';
2
2
  import '@flowgram.ai/document';
3
3
  import '@flowgram.ai/core';
4
4
  import '@flowgram.ai/utils';
@@ -1,4 +1,4 @@
1
- export { B as WorkflowSubCanvas } from '../workflow-node-entity-03Q7Fvv6.js';
1
+ export { B as WorkflowSubCanvas } from '../workflow-node-entity-D-7FR64B.js';
2
2
  import '@flowgram.ai/document';
3
3
  import '@flowgram.ai/core';
4
4
  import '@flowgram.ai/utils';
@@ -584,6 +584,7 @@ declare class WorkflowLinesManager {
584
584
  protected _lineType: LineRenderType;
585
585
  protected onAvailableLinesChangeEmitter: Emitter<WorkflowContentChangeEvent>;
586
586
  protected onForceUpdateEmitter: Emitter<void>;
587
+ protected defaultUIState: Partial<WorkflowLineUIState> | undefined;
587
588
  hoverService: WorkflowHoverService;
588
589
  selectService: WorkflowSelectService;
589
590
  protected readonly entityManager: EntityManager;
@@ -598,6 +599,7 @@ declare class WorkflowLinesManager {
598
599
  readonly onForceUpdate: _flowgram_ai_utils.Event<void>;
599
600
  readonly contributionFactories: WorkflowLineRenderContributionFactory[];
600
601
  init(doc: WorkflowDocument): void;
602
+ setDefaultUIState(defaultUIState: Partial<WorkflowLineUIState>): void;
601
603
  forceUpdate(): void;
602
604
  get lineType(): LineRenderType;
603
605
  get lineColor(): LineColor;
@@ -676,6 +678,7 @@ interface WorkflowLineEntityOpts extends EntityOpts, WorkflowLinePortInfo {
676
678
  linesManager: WorkflowLinesManager;
677
679
  drawingTo?: LinePoint;
678
680
  drawingFrom?: LinePoint;
681
+ uiState?: Partial<WorkflowLineUIState>;
679
682
  }
680
683
  interface WorkflowLineInfo extends WorkflowLinePortInfo {
681
684
  drawingTo?: LinePoint;
@@ -584,6 +584,7 @@ declare class WorkflowLinesManager {
584
584
  protected _lineType: LineRenderType;
585
585
  protected onAvailableLinesChangeEmitter: Emitter<WorkflowContentChangeEvent>;
586
586
  protected onForceUpdateEmitter: Emitter<void>;
587
+ protected defaultUIState: Partial<WorkflowLineUIState> | undefined;
587
588
  hoverService: WorkflowHoverService;
588
589
  selectService: WorkflowSelectService;
589
590
  protected readonly entityManager: EntityManager;
@@ -598,6 +599,7 @@ declare class WorkflowLinesManager {
598
599
  readonly onForceUpdate: _flowgram_ai_utils.Event<void>;
599
600
  readonly contributionFactories: WorkflowLineRenderContributionFactory[];
600
601
  init(doc: WorkflowDocument): void;
602
+ setDefaultUIState(defaultUIState: Partial<WorkflowLineUIState>): void;
601
603
  forceUpdate(): void;
602
604
  get lineType(): LineRenderType;
603
605
  get lineColor(): LineColor;
@@ -676,6 +678,7 @@ interface WorkflowLineEntityOpts extends EntityOpts, WorkflowLinePortInfo {
676
678
  linesManager: WorkflowLinesManager;
677
679
  drawingTo?: LinePoint;
678
680
  drawingFrom?: LinePoint;
681
+ uiState?: Partial<WorkflowLineUIState>;
679
682
  }
680
683
  interface WorkflowLineInfo extends WorkflowLinePortInfo {
681
684
  drawingTo?: LinePoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowgram.ai/free-layout-core",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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": "^5.0.9",
37
- "@flowgram.ai/core": "1.0.11",
38
- "@flowgram.ai/form-core": "1.0.11",
39
- "@flowgram.ai/document": "1.0.11",
40
- "@flowgram.ai/node": "1.0.11",
41
- "@flowgram.ai/reactive": "1.0.11",
42
- "@flowgram.ai/utils": "1.0.11"
37
+ "@flowgram.ai/core": "1.0.13",
38
+ "@flowgram.ai/document": "1.0.13",
39
+ "@flowgram.ai/node": "1.0.13",
40
+ "@flowgram.ai/reactive": "1.0.13",
41
+ "@flowgram.ai/form-core": "1.0.13",
42
+ "@flowgram.ai/utils": "1.0.13"
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": "^3.2.4",
56
- "@flowgram.ai/eslint-config": "1.0.11",
57
- "@flowgram.ai/ts-config": "1.0.11"
56
+ "@flowgram.ai/eslint-config": "1.0.13",
57
+ "@flowgram.ai/ts-config": "1.0.13"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "react": ">=16.8",