@elyx-code/project-logic-tree 0.0.6463 → 0.0.6464

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.ts CHANGED
@@ -7883,6 +7883,12 @@ export declare function getParentCanvasEntity(entity: EntityState): CanvasEntity
7883
7883
 
7884
7884
  export declare function getParentCanvasEntityFromTransfer(entity: Element_2 | ElementTransfer | ElementShallowTransfer | IGenericReference, allKnownEntities: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>): DraggableElement | DraggableElementTransfer | DraggableElementShallowTransfer | null;
7885
7885
 
7886
+ /**
7887
+ * Most entities will be part of a logic chain that starts at an entry point entity
7888
+ * We we need to find the entry point entity that is the parent of the given entity
7889
+ * @param entity The entity to find the entry point for
7890
+ * @returns The entry point entity if found, or null if not found
7891
+ */
7886
7892
  export declare function getParentEntryPoint(entity: EntityState): EntryPointEntityState | null;
7887
7893
 
7888
7894
  export declare function getParentExecutableEntity(entity: EntityState): ExecutableEntityState | null;
@@ -8331,6 +8337,13 @@ export declare function getRelationalDBInstanceNameFromEntityId(entityId: string
8331
8337
 
8332
8338
  export declare function getRootEntryPointScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
8333
8339
 
8340
+ /**
8341
+ * Recursively access 'parent' property until we find the first parent entity that can own scope, or the project
8342
+ * @param entity EntityState or Element that has a 'parent' property
8343
+ * @param project ProjectState to check against
8344
+ * @param _initialEntity Initial entity to check against, used for recursion
8345
+ * @returns EntityWithLogicScopeState or ProjectState that owns the scope, or null if no valid scope owner is found
8346
+ */
8334
8347
  export declare function getScopeOwner(entity: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState, _initialEntity?: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer | null): EntityWithLogicScopeState | ProjectState | null;
8335
8348
 
8336
8349
  declare function getSelectClauseFromSelectStatement(selectStatement: SelectStmt): SelectClause;