@flowgram.ai/free-layout-core 0.4.12 → 0.4.14

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PlaygroundConfigEntity, CommandService, PlaygroundDragEvent, EntityData } from '@flowgram.ai/core';
2
- export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, usePlaygroundLatest, useRefresh, useService } from '@flowgram.ai/core';
2
+ export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, useRefresh, useService } from '@flowgram.ai/core';
3
3
  import { NodeFormProps } from '@flowgram.ai/node';
4
4
  import { FlowOperationBaseService, FlowNodeType, FlowOperationBaseServiceImpl, FlowNodeEntityOrId, FlowNodeEntity } from '@flowgram.ai/document';
5
5
  import { W as WorkflowHoverService, a as WorkflowDocument, b as WorkflowLinesManager, c as WorkflowSelectService, d as WorkflowDocumentOptions, L as LineEventProps, N as NodesDragEvent, e as WorkflowNodeJSON, f as WorkflowPortEntity, g as WorkflowLineEntity, O as OnDragLineEnd, h as WorkflowJSON, i as LineCenterPoint, j as WorkflowPorts, k as WorkflowPortType, l as LinePoint, m as WorkflowPort, n as LineRenderType, o as WorkflowLineRenderContribution, p as LinePosition } from './workflow-line-entity-IbhMSbBs.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PlaygroundConfigEntity, CommandService, PlaygroundDragEvent, EntityData } from '@flowgram.ai/core';
2
- export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, usePlaygroundLatest, useRefresh, useService } from '@flowgram.ai/core';
2
+ export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, useRefresh, useService } from '@flowgram.ai/core';
3
3
  import { NodeFormProps } from '@flowgram.ai/node';
4
4
  import { FlowOperationBaseService, FlowNodeType, FlowOperationBaseServiceImpl, FlowNodeEntityOrId, FlowNodeEntity } from '@flowgram.ai/document';
5
5
  import { W as WorkflowHoverService, a as WorkflowDocument, b as WorkflowLinesManager, c as WorkflowSelectService, d as WorkflowDocumentOptions, L as LineEventProps, N as NodesDragEvent, e as WorkflowNodeJSON, f as WorkflowPortEntity, g as WorkflowLineEntity, O as OnDragLineEnd, h as WorkflowJSON, i as LineCenterPoint, j as WorkflowPorts, k as WorkflowPortType, l as LinePoint, m as WorkflowPort, n as LineRenderType, o as WorkflowLineRenderContribution, p as LinePosition } from './workflow-line-entity-DcecHiNc.js';
package/dist/index.js CHANGED
@@ -79,7 +79,6 @@ __export(src_exports, {
79
79
  usePlayground: () => import_core25.usePlayground,
80
80
  usePlaygroundContainer: () => import_core25.usePlaygroundContainer,
81
81
  usePlaygroundContext: () => import_core25.usePlaygroundContext,
82
- usePlaygroundLatest: () => import_core25.usePlaygroundLatest,
83
82
  usePlaygroundReadonlyState: () => usePlaygroundReadonlyState,
84
83
  useRefresh: () => import_core25.useRefresh,
85
84
  useService: () => import_core25.useService,
@@ -2788,7 +2787,7 @@ var WorkflowDragService = class {
2788
2787
  const targetNode = event.currentTarget;
2789
2788
  domNode = cloneNode ? cloneNode(e) : targetNode.cloneNode(true);
2790
2789
  const bounds = targetNode.getBoundingClientRect();
2791
- startPos = { x: bounds.left, y: bounds.top };
2790
+ startPos = { x: bounds.left + window.scrollX, y: bounds.top + window.scrollY };
2792
2791
  import_utils16.domUtils.setStyle(domNode, {
2793
2792
  zIndex: 1e3,
2794
2793
  position: "absolute",
@@ -3734,7 +3733,6 @@ var WorkflowDocumentContainerModule = new import_inversify10.ContainerModule(
3734
3733
  usePlayground,
3735
3734
  usePlaygroundContainer,
3736
3735
  usePlaygroundContext,
3737
- usePlaygroundLatest,
3738
3736
  usePlaygroundReadonlyState,
3739
3737
  useRefresh,
3740
3738
  useService,