@flowgram.ai/free-layout-core 0.1.0-alpha.15 → 0.1.0-alpha.17
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 +327 -124
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +91 -226
- package/dist/index.d.ts +91 -226
- package/dist/index.js +327 -125
- package/dist/index.js.map +1 -1
- package/dist/typings/index.d.mts +4 -5
- package/dist/typings/index.d.ts +4 -5
- package/dist/typings/workflow-drag.d.mts +1 -2
- package/dist/typings/workflow-drag.d.ts +1 -2
- package/dist/typings/workflow-drag.js.map +1 -1
- package/dist/typings/workflow-json.d.mts +3 -4
- package/dist/typings/workflow-json.d.ts +3 -4
- package/dist/typings/workflow-line.d.mts +3 -4
- package/dist/typings/workflow-line.d.ts +3 -4
- package/dist/typings/workflow-node.d.mts +2 -3
- package/dist/typings/workflow-node.d.ts +2 -3
- package/dist/typings/workflow-registry.d.mts +3 -4
- package/dist/typings/workflow-registry.d.ts +3 -4
- package/dist/typings/workflow-sub-canvas.d.mts +6 -1
- package/dist/typings/workflow-sub-canvas.d.ts +6 -1
- package/dist/{workflow-line-entity-IbhMSbBs.d.mts → workflow-node-entity-B-9mEm2k.d.mts} +401 -222
- package/dist/{workflow-line-entity-DcecHiNc.d.ts → workflow-node-entity-DvBGZ5Ve.d.ts} +401 -222
- package/package.json +12 -12
- package/dist/workflow-sub-canvas-IQzlYvPD.d.mts +0 -25
- package/dist/workflow-sub-canvas-IQzlYvPD.d.ts +0 -25
package/dist/typings/index.d.mts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { L as LineCenterPoint, x as LineColor, y as LineColors, g as LineEventProps, w as LinePoint, v as LinePointLocation, m as LinePosition, k as LineRenderType, u as LineType, C as NodesDragEndEvent, N as NodesDragEvent, B as NodesDragStartEvent, D as NodesDraggingEvent, O as OnDragLineEnd, s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, t as WorkflowNodeMeta, A as WorkflowSubCanvas, E as onDragLineEndParams } from '../workflow-node-entity-B-9mEm2k.mjs';
|
|
2
2
|
export { WorkflowEdgeJSON } from './workflow-edge.mjs';
|
|
3
3
|
export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.mjs';
|
|
4
|
-
export { a as WorkflowSubCanvas } from '../workflow-sub-canvas-IQzlYvPD.mjs';
|
|
5
4
|
export { NodePostionUpdateEvent, WorkflowOperationBaseService } from './workflow-operation.mjs';
|
|
6
|
-
import '@flowgram.ai/utils';
|
|
7
|
-
import '@flowgram.ai/core';
|
|
8
5
|
import '@flowgram.ai/document';
|
|
9
|
-
import '@flowgram.ai/
|
|
6
|
+
import '@flowgram.ai/core';
|
|
7
|
+
import '@flowgram.ai/utils';
|
|
10
8
|
import 'react';
|
|
9
|
+
import '@flowgram.ai/form-core';
|
|
11
10
|
import '@flowgram.ai/node';
|
|
12
11
|
|
|
13
12
|
/**
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { L as LineCenterPoint, x as LineColor, y as LineColors, g as LineEventProps, w as LinePoint, v as LinePointLocation, m as LinePosition, k as LineRenderType, u as LineType, C as NodesDragEndEvent, N as NodesDragEvent, B as NodesDragStartEvent, D as NodesDraggingEvent, O as OnDragLineEnd, s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, t as WorkflowNodeMeta, A as WorkflowSubCanvas, E as onDragLineEndParams } from '../workflow-node-entity-DvBGZ5Ve.js';
|
|
2
2
|
export { WorkflowEdgeJSON } from './workflow-edge.js';
|
|
3
3
|
export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.js';
|
|
4
|
-
export { a as WorkflowSubCanvas } from '../workflow-sub-canvas-IQzlYvPD.js';
|
|
5
4
|
export { NodePostionUpdateEvent, WorkflowOperationBaseService } from './workflow-operation.js';
|
|
6
|
-
import '@flowgram.ai/utils';
|
|
7
|
-
import '@flowgram.ai/core';
|
|
8
5
|
import '@flowgram.ai/document';
|
|
9
|
-
import '@flowgram.ai/
|
|
6
|
+
import '@flowgram.ai/core';
|
|
7
|
+
import '@flowgram.ai/utils';
|
|
10
8
|
import 'react';
|
|
9
|
+
import '@flowgram.ai/form-core';
|
|
11
10
|
import '@flowgram.ai/node';
|
|
12
11
|
|
|
13
12
|
/**
|
|
@@ -2,7 +2,6 @@ import 'react';
|
|
|
2
2
|
import '@flowgram.ai/utils';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
|
-
export {
|
|
6
|
-
import '../workflow-sub-canvas-IQzlYvPD.mjs';
|
|
5
|
+
export { g as LineEventProps, C as NodesDragEndEvent, N as NodesDragEvent, B as NodesDragStartEvent, D as NodesDraggingEvent, O as OnDragLineEnd, E as onDragLineEndParams } from '../workflow-node-entity-B-9mEm2k.mjs';
|
|
7
6
|
import '@flowgram.ai/form-core';
|
|
8
7
|
import './workflow-edge.mjs';
|
|
@@ -2,7 +2,6 @@ import 'react';
|
|
|
2
2
|
import '@flowgram.ai/utils';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
|
-
export {
|
|
6
|
-
import '../workflow-sub-canvas-IQzlYvPD.js';
|
|
5
|
+
export { g as LineEventProps, C as NodesDragEndEvent, N as NodesDragEvent, B as NodesDragStartEvent, D as NodesDraggingEvent, O as OnDragLineEnd, E as onDragLineEndParams } from '../workflow-node-entity-DvBGZ5Ve.js';
|
|
7
6
|
import '@flowgram.ai/form-core';
|
|
8
7
|
import './workflow-edge.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/typings/workflow-drag.ts"],"sourcesContent":["/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport type React from 'react';\n\nimport { type PositionSchema } from '@flowgram.ai/utils';\nimport { type FlowNodeEntity } from '@flowgram.ai/document';\nimport { PlaygroundDrag, type PlaygroundDragEvent } from '@flowgram.ai/core';\n\nimport { type WorkflowLineEntity, type WorkflowPortEntity } from '../entities';\n\nexport interface LineEventProps {\n type: 'onDrag' | 'onDragEnd';\n onDragNodeId?: string;\n event?: MouseEvent;\n}\n\ninterface INodesDragEvent {\n type: string;\n nodes: FlowNodeEntity[];\n startPositions: PositionSchema[];\n dragEvent: PlaygroundDragEvent;\n triggerEvent: MouseEvent | React.MouseEvent;\n dragger: PlaygroundDrag;\n}\n\nexport interface NodesDragStartEvent extends INodesDragEvent {\n type: 'onDragStart';\n}\n\nexport interface NodesDragEndEvent extends INodesDragEvent {\n type: 'onDragEnd';\n}\n\nexport interface NodesDraggingEvent extends INodesDragEvent {\n type: 'onDragging';\n positions: PositionSchema[];\n}\n\nexport type NodesDragEvent = NodesDragStartEvent | NodesDraggingEvent | NodesDragEndEvent;\n\nexport type onDragLineEndParams = {\n fromPort
|
|
1
|
+
{"version":3,"sources":["../../src/typings/workflow-drag.ts"],"sourcesContent":["/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport type React from 'react';\n\nimport { type PositionSchema } from '@flowgram.ai/utils';\nimport { type FlowNodeEntity } from '@flowgram.ai/document';\nimport { PlaygroundDrag, type PlaygroundDragEvent } from '@flowgram.ai/core';\n\nimport { type WorkflowLineEntity, type WorkflowPortEntity } from '../entities';\n\nexport interface LineEventProps {\n type: 'onDrag' | 'onDragEnd';\n onDragNodeId?: string;\n event?: MouseEvent;\n}\n\ninterface INodesDragEvent {\n type: string;\n nodes: FlowNodeEntity[];\n startPositions: PositionSchema[];\n dragEvent: PlaygroundDragEvent;\n triggerEvent: MouseEvent | React.MouseEvent;\n dragger: PlaygroundDrag;\n}\n\nexport interface NodesDragStartEvent extends INodesDragEvent {\n type: 'onDragStart';\n}\n\nexport interface NodesDragEndEvent extends INodesDragEvent {\n type: 'onDragEnd';\n}\n\nexport interface NodesDraggingEvent extends INodesDragEvent {\n type: 'onDragging';\n positions: PositionSchema[];\n}\n\nexport type NodesDragEvent = NodesDragStartEvent | NodesDraggingEvent | NodesDragEndEvent;\n\nexport type onDragLineEndParams = {\n fromPort?: WorkflowPortEntity;\n toPort?: WorkflowPortEntity;\n mousePos: PositionSchema;\n line?: WorkflowLineEntity;\n originLine?: WorkflowLineEntity;\n event: PlaygroundDragEvent;\n};\n\nexport type OnDragLineEnd = (params: onDragLineEndParams) => Promise<void>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export { u as WorkflowContentChangeEvent, t as WorkflowContentChangeType, h as WorkflowJSON } from '../workflow-line-entity-IbhMSbBs.mjs';
|
|
1
|
+
export { s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-B-9mEm2k.mjs';
|
|
3
2
|
import './workflow-edge.mjs';
|
|
4
3
|
import '@flowgram.ai/document';
|
|
5
|
-
import '@flowgram.ai/utils';
|
|
6
4
|
import '@flowgram.ai/core';
|
|
7
|
-
import '@flowgram.ai/
|
|
5
|
+
import '@flowgram.ai/utils';
|
|
8
6
|
import 'react';
|
|
7
|
+
import '@flowgram.ai/form-core';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export { u as WorkflowContentChangeEvent, t as WorkflowContentChangeType, h as WorkflowJSON } from '../workflow-line-entity-DcecHiNc.js';
|
|
1
|
+
export { s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-DvBGZ5Ve.js';
|
|
3
2
|
import './workflow-edge.js';
|
|
4
3
|
import '@flowgram.ai/document';
|
|
5
|
-
import '@flowgram.ai/utils';
|
|
6
4
|
import '@flowgram.ai/core';
|
|
7
|
-
import '@flowgram.ai/
|
|
5
|
+
import '@flowgram.ai/utils';
|
|
8
6
|
import 'react';
|
|
7
|
+
import '@flowgram.ai/form-core';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
|
-
export {
|
|
3
|
-
import '@flowgram.ai/core';
|
|
2
|
+
export { L as LineCenterPoint, x as LineColor, y as LineColors, w as LinePoint, v as LinePointLocation, m as LinePosition, k as LineRenderType, u as LineType, l as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-B-9mEm2k.mjs';
|
|
4
3
|
import '@flowgram.ai/document';
|
|
5
|
-
import '
|
|
4
|
+
import '@flowgram.ai/core';
|
|
5
|
+
import 'react';
|
|
6
6
|
import '@flowgram.ai/form-core';
|
|
7
7
|
import './workflow-edge.mjs';
|
|
8
|
-
import 'react';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
|
-
export {
|
|
3
|
-
import '@flowgram.ai/core';
|
|
2
|
+
export { L as LineCenterPoint, x as LineColor, y as LineColors, w as LinePoint, v as LinePointLocation, m as LinePosition, k as LineRenderType, u as LineType, l as WorkflowLineRenderContribution, z as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-DvBGZ5Ve.js';
|
|
4
3
|
import '@flowgram.ai/document';
|
|
5
|
-
import '
|
|
4
|
+
import '@flowgram.ai/core';
|
|
5
|
+
import 'react';
|
|
6
6
|
import '@flowgram.ai/form-core';
|
|
7
7
|
import './workflow-edge.js';
|
|
8
|
-
import 'react';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
|
-
|
|
4
|
-
export { e as WorkflowNodeJSON, v as WorkflowNodeMeta } from '../workflow-line-entity-IbhMSbBs.mjs';
|
|
3
|
+
export { h as WorkflowNodeJSON, t as WorkflowNodeMeta } from '../workflow-node-entity-B-9mEm2k.mjs';
|
|
5
4
|
import './workflow-edge.mjs';
|
|
6
5
|
import '@flowgram.ai/core';
|
|
7
|
-
import '@flowgram.ai/form-core';
|
|
8
6
|
import 'react';
|
|
7
|
+
import '@flowgram.ai/form-core';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
|
-
|
|
4
|
-
export { e as WorkflowNodeJSON, v as WorkflowNodeMeta } from '../workflow-line-entity-DcecHiNc.js';
|
|
3
|
+
export { h as WorkflowNodeJSON, t as WorkflowNodeMeta } from '../workflow-node-entity-DvBGZ5Ve.js';
|
|
5
4
|
import './workflow-edge.js';
|
|
6
5
|
import '@flowgram.ai/core';
|
|
7
|
-
import '@flowgram.ai/form-core';
|
|
8
6
|
import 'react';
|
|
7
|
+
import '@flowgram.ai/form-core';
|
|
@@ -1,12 +1,11 @@
|
|
|
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 {
|
|
5
|
-
import { v as WorkflowNodeMeta, f as WorkflowPortEntity, b as WorkflowLinesManager } from '../workflow-line-entity-IbhMSbBs.mjs';
|
|
6
|
-
import '@flowgram.ai/utils';
|
|
4
|
+
import { t as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-B-9mEm2k.mjs';
|
|
7
5
|
import '@flowgram.ai/core';
|
|
8
|
-
import '
|
|
6
|
+
import '@flowgram.ai/utils';
|
|
9
7
|
import 'react';
|
|
8
|
+
import './workflow-edge.mjs';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
@@ -1,12 +1,11 @@
|
|
|
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 {
|
|
5
|
-
import { v as WorkflowNodeMeta, f as WorkflowPortEntity, b as WorkflowLinesManager } from '../workflow-line-entity-DcecHiNc.js';
|
|
6
|
-
import '@flowgram.ai/utils';
|
|
4
|
+
import { t as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-DvBGZ5Ve.js';
|
|
7
5
|
import '@flowgram.ai/core';
|
|
8
|
-
import '
|
|
6
|
+
import '@flowgram.ai/utils';
|
|
9
7
|
import 'react';
|
|
8
|
+
import './workflow-edge.js';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as WorkflowSubCanvas } from '../workflow-node-entity-B-9mEm2k.mjs';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
|
+
import '@flowgram.ai/core';
|
|
4
|
+
import '@flowgram.ai/utils';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '@flowgram.ai/form-core';
|
|
7
|
+
import './workflow-edge.mjs';
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as WorkflowSubCanvas } from '../workflow-node-entity-DvBGZ5Ve.js';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
|
+
import '@flowgram.ai/core';
|
|
4
|
+
import '@flowgram.ai/utils';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '@flowgram.ai/form-core';
|
|
7
|
+
import './workflow-edge.js';
|