@elyx-code/project-logic-tree 0.0.6751 → 0.0.6753

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
@@ -14263,6 +14263,25 @@ export declare function flattenLoopAsync(entity: ILoop | ILoopTransfer | ILoopSh
14263
14263
  allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14264
14264
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14265
14265
 
14266
+ /**
14267
+ * In the draggable canvas, entities are groups as nodes.
14268
+ * Some entity types represent the top nodes, and the rest are nested within them.
14269
+ * With the exception of built-in entities, all entities can be traced up the tree to a top-level draggable node.
14270
+ * This function takes a node entity and flattens it and all its nested entities into a record of entities by their IDs.
14271
+ *
14272
+ * @param entity
14273
+ * @param allKnownEntities
14274
+ * @param seenEntities
14275
+ * @param options
14276
+ * @returns {Record<EntityId, DraggableElementTransfer | DraggableElement | DraggableElementShallowTransfer | CanvasEntityState>}
14277
+ */
14278
+ export declare function flattenNodeAsRecord(entity: DraggableElementTransfer | DraggableElement | DraggableElementShallowTransfer | CanvasEntityState, allKnownEntities: Record<EntityId, DraggableElementTransfer | DraggableElement | DraggableElementShallowTransfer | CanvasEntityState>, seenEntities?: Set<EntityId>, options?: {
14279
+ ignoreBuiltInBaseEntities?: boolean;
14280
+ allBuiltInEntityIds?: Set<EntityId>;
14281
+ entityMaps?: Map<string, string>;
14282
+ debug?: boolean;
14283
+ }): Record<EntityId, UserManagedElementTransfer | UserManagedElement | UserManagedElementShallowTransfer | UserManagedEntityState>;
14284
+
14266
14285
  export declare function flattenOneLevel(list: unknown): any[];
14267
14286
 
14268
14287
  export declare function flattenOperation(entity: IOperation | IOperationTransfer | IOperationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -18999,7 +19018,9 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18999
19018
  * @param {ChangeSet} changeSet The change set to extract the touched canvas entities from
19000
19019
  * @returns {CanvasEntityState[]} An array of touched canvas entities
19001
19020
  */
19002
- export declare function getTouchedCanvasEntitiesFromChangeSet(changeSet: ChangeSet): CanvasEntityState[];
19021
+ export declare function getTouchedCanvasEntitiesFromChangeSet(changeSet: ChangeSet, options?: {
19022
+ shallowMissingActivesError?: boolean;
19023
+ }): CanvasEntityState[];
19003
19024
 
19004
19025
  export declare const getTzOffsetAtArg: IValueDescriptorTransfer;
19005
19026
 
@@ -29544,13 +29565,13 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29544
29565
  dataTypes: DataTypeState[];
29545
29566
  project: ProjectState;
29546
29567
  instances: {
29547
- [id: EntityId]: EntityState;
29568
+ [id: EntityId]: UserManagedEntityState;
29548
29569
  };
29549
29570
  builtInInstances: {
29550
29571
  [id: EntityId]: EntityState;
29551
29572
  };
29552
29573
  deletedInstances: {
29553
- [id: EntityId]: EntityState;
29574
+ [id: EntityId]: UserManagedEntityState;
29554
29575
  };
29555
29576
  errors: EntityError[];
29556
29577
  references: IGenericReference[];
@@ -29660,13 +29681,14 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29660
29681
  isLoopDeclaration(entity: ActionDescriptorState): boolean;
29661
29682
  isConditionDeclaration(entity: ActionDescriptorState): boolean;
29662
29683
  initChildren(changeSet?: ChangeSet | null): ProjectState;
29663
- subscribeInstance(instance: EntityState): ProjectState;
29664
- subscribeDeletedInstance(instance: EntityState): ProjectState;
29684
+ subscribeInstance(instance: UserManagedEntityState): ProjectState;
29685
+ subscribeDeletedInstance(instance: UserManagedEntityState): ProjectState;
29665
29686
  subscribeBuiltInInstance(instance: EntityState): ProjectState;
29666
29687
  subscribe(): ProjectState;
29667
29688
  unsubscribe(): ProjectState;
29668
29689
  unsubscribeInstance(entity: EntityState): ProjectState;
29669
29690
  unsubscribeDeletedInstance(entity: EntityState): ProjectState;
29691
+ unsubscribeBuiltInInstance(entity: EntityState): ProjectState;
29670
29692
  findSubscribedBuiltInInstance(entity: Element_2 | ElementTransfer): EntityState | null;
29671
29693
  get(entityId: EntityId): EntityState | null;
29672
29694
  getDeleted(entityId: EntityId): EntityState | null;