@elyx-code/project-logic-tree 0.0.6394 → 0.0.6397

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
@@ -2609,6 +2609,190 @@ export declare const DEFAULT_PROJECT_STATIC_PARENT_CONTEXT: IProjectStaticParent
2609
2609
 
2610
2610
  export declare const DEFAULT_UUID_MODULE: IUUIDModule;
2611
2611
 
2612
+ export declare class DefaultEditorContext extends ExtensionContextBase<ExtensionContextType.Editor> implements IEditorContext {
2613
+ private readonly _editor;
2614
+ readonly id: string;
2615
+ constructor(extensionsRegistry: ExtensionsRegistry, _editor: IEditor, id?: string);
2616
+ get ready(): boolean;
2617
+ get hasLoadedLogic(): boolean;
2618
+ get destroyed(): boolean;
2619
+ get logicLoadingPromise(): Promise<void> | null;
2620
+ get logic(): ProjectState | null;
2621
+ get branch(): IActiveBranchHeadResult | null;
2622
+ get projectId(): EntityId;
2623
+ get sessionId(): string | null;
2624
+ get userAuthorId(): string;
2625
+ get peerConnections(): Record<string, IChannelConnections>;
2626
+ get test(): ITest | null;
2627
+ get localTestValues(): EfimeralValueStore;
2628
+ get resolvedValues(): EfimeralValueStore;
2629
+ get persistedExecutionResults(): EfimeralValueStore;
2630
+ get publication(): PublicationRun | null;
2631
+ get execution(): Execution | null;
2632
+ get project(): ProjectState;
2633
+ get lastExecutionResults(): EfimeralValueStore;
2634
+ get undoableStackValueIndex(): number;
2635
+ set undoableStackValueIndex(value: number);
2636
+ get PROJECT_NOTIFICATIONS_CHANNEL(): string;
2637
+ getAccessToken(): Promise<string | null>;
2638
+ removeValueByOwnerId(entityId: EntityId): void;
2639
+ removeValue(dynamicValue: IDynamicValue): void;
2640
+ undo(): Promise<void>;
2641
+ redo(): Promise<void>;
2642
+ initTest(entryPoint: TestableEntityState, autoExecute: boolean): Promise<ITest>;
2643
+ removeTest(): Promise<ITest>;
2644
+ copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
2645
+ resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
2646
+ publish(): Promise<void>;
2647
+ loadActivePublication(publicationId: string): Promise<IPublication>;
2648
+ requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
2649
+ }
2650
+
2651
+ export declare type DefaultExtensionContext = DefaultEditorContext | DefaultProjectLogicContext;
2652
+
2653
+ export declare class DefaultProjectLogicContext extends ExtensionContextBase<ExtensionContextType.Logic> implements IProjectLogicContext {
2654
+ private readonly _project;
2655
+ constructor(extensionsRegistry: ExtensionsRegistry, _project: ProjectState);
2656
+ readonly id: EntityId;
2657
+ get type(): EntityType.Project;
2658
+ get name(): string | null;
2659
+ get description(): string | null;
2660
+ get version(): string;
2661
+ get createdAt(): string;
2662
+ get previousVersion(): string | null;
2663
+ get author(): string;
2664
+ get deleted(): boolean;
2665
+ get entities(): DefinitionEntityState[];
2666
+ get projects(): InstalledProjectState[];
2667
+ get functions(): FunctionDeclarationState[];
2668
+ get events(): GlobalEventState[];
2669
+ get variableDeclarations(): VariableDeclarationState[];
2670
+ get variableInstances(): VariableInstanceState[];
2671
+ get conditions(): ConditionState[];
2672
+ get operations(): OperationState[];
2673
+ get functionCalls(): FunctionCallState[];
2674
+ get loops(): LoopState[];
2675
+ get searches(): SearchState[];
2676
+ get primitives(): PrimitiveEntityState[];
2677
+ get builtInBaseEntities(): BuiltInBaseEntityState[];
2678
+ get operationDeclarations(): ActionDescriptorState[];
2679
+ get globalEventActionDescriptors(): ActionDescriptorState[];
2680
+ get loopDeclarations(): ActionDescriptorState[];
2681
+ get loopDeclarationsBodies(): ActionDescriptorState[];
2682
+ get conditionDeclarations(): ActionDescriptorState[];
2683
+ get valueDescriptors(): ValueDescriptorState[];
2684
+ get dataTypes(): DataTypeState[];
2685
+ get errors(): EntityError[];
2686
+ get history(): ChangeSet[];
2687
+ get undoableStackValueIndex(): number;
2688
+ get knownVersions(): Map<string, EntityState> | null;
2689
+ get activeVersion(): boolean;
2690
+ get initialized(): boolean;
2691
+ get startedInitialization(): boolean;
2692
+ closePendingChangeSets(): Promise<void>;
2693
+ closeChangeSet(changeSet: ChangeSet): Promise<void>;
2694
+ toLatestChangeSet(author: string, timestamp: string, // ISO 8601 format
2695
+ self: UserManagedEntityState | null, autoclose?: boolean, autoCloseActionName?: string): ChangeSet;
2696
+ addChangeSet(changeSet: ChangeSet): ChangeSet;
2697
+ discardChangeSet(changeSet: ChangeSet | null): ProjectState;
2698
+ subscribeDependents(dependencies: {
2699
+ entity: UserManagedEntityState;
2700
+ field: string;
2701
+ }[]): UserManagedEntityState;
2702
+ unsubscribeDependents(dependencies: {
2703
+ entity: UserManagedEntityState;
2704
+ field: string;
2705
+ }[]): UserManagedEntityState;
2706
+ syncDependents(changeSet?: ChangeSet | null): IChangeSet<UserManagedEntityState>;
2707
+ onDetachedDependencyRemoved(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
2708
+ onDetachedDependencyRestored(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
2709
+ increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
2710
+ captureVersion(): ProjectState;
2711
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ProjectState>>;
2712
+ updateWithShallowTransfer(transfer: IProjectShallowTransfer, changeSet?: ChangeSet | null): ProjectState;
2713
+ hydrateAncestors(): IChangeSet<ProjectState>;
2714
+ afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ProjectState>;
2715
+ addSelfToProject(_changeSet: ChangeSet | null): IChangeSet<ProjectState>;
2716
+ get instancesList(): EntityState[];
2717
+ isOperationDeclaration(entity: ActionDescriptorState): boolean;
2718
+ isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
2719
+ isLoopDeclaration(entity: ActionDescriptorState): boolean;
2720
+ isConditionDeclaration(entity: ActionDescriptorState): boolean;
2721
+ findSubscribedBuiltInInstance(entity: Element_2 | ElementTransfer): EntityState | null;
2722
+ get(entityId: EntityId): EntityState | null;
2723
+ getDeleted(entityId: EntityId): EntityState | null;
2724
+ getManaged(entityId: EntityId): EntityState | null;
2725
+ getBuiltIn(entityId: EntityId): EntityState | null;
2726
+ findSubscribedInstanceFromReference(entity: Reference): EntityState | null;
2727
+ findSubscribedBuiltInInstanceFromReference(entity: Reference): EntityState | null;
2728
+ metaSync(data: Partial<IProject_meta | IProject | IProjectTransfer | IProjectShallowTransfer>, changeSet?: ChangeSet | null): ProjectState;
2729
+ getAllBuiltInIds(): EntityId[];
2730
+ getAllBuiltIn(): EntityState[];
2731
+ toFlat(seenEntities?: Set<EntityId>): EntityState[];
2732
+ toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
2733
+ toMeta(): IProject_meta;
2734
+ toJSON(seenEntities?: Set<EntityId>): IProjectTransfer | IProjectReference;
2735
+ toJSONClone(options?: IEntityJSONCloneOptions): IProjectTransfer;
2736
+ toReference(options?: IEntityRecursionOptions): IProjectReference;
2737
+ toShallowJSON(options?: IEntityRecursionOptions): IProjectShallowTransfer;
2738
+ toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
2739
+ toGenerationTarget(): IProjectGenerationTarget;
2740
+ toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
2741
+ clearErrors(): ProjectState;
2742
+ validate(): {
2743
+ success: boolean;
2744
+ error: ZodError | null;
2745
+ data: IProjectTransfer | null;
2746
+ };
2747
+ validateChildren(): void;
2748
+ getErrors(): EntityError[];
2749
+ getShallowErrors(): EntityError[];
2750
+ getDefinitionEntity(id: EntityId): DefinitionEntityState | null;
2751
+ addDefinitionEntity(entity: DefinitionEntityState): DefinitionEntityState;
2752
+ addFunctionDeclaration(func: FunctionDeclarationState): FunctionDeclarationState;
2753
+ addFunctionCall(func: FunctionCallState): FunctionCallState;
2754
+ addVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState;
2755
+ addVariableInstance(variable: VariableInstanceState): VariableInstanceState;
2756
+ addInstalledProject(project: InstalledProjectState): ProjectState;
2757
+ addGlobalEvent(event: GlobalEventState): ProjectState;
2758
+ addCondition(condition: ConditionState): ProjectState;
2759
+ addOperation(operation: OperationState): ProjectState;
2760
+ addLoop(loop: LoopState): ProjectState;
2761
+ addSearch(search: SearchState): ProjectState;
2762
+ removeDefinitionEntity(entity: IDefinitionEntity): DefinitionEntityState | null;
2763
+ removeCondition(condition: ICondition): ConditionState | null;
2764
+ removeOperation(operation: IOperation): OperationState | null;
2765
+ removeLoop(loop: ILoop): LoopState | null;
2766
+ removeSearch(search: ISearch): SearchState | null;
2767
+ removeFunctionCall(funcCall: IFunctionCall): FunctionCallState | null;
2768
+ removeVariableInstance(variable: IVariableInstance): VariableInstanceState | null;
2769
+ removeVariableDeclaration(variable: IVariableDeclaration): VariableDeclarationState | null;
2770
+ removeFunctionDeclaration(func: IFunctionDeclaration): FunctionDeclarationState | null;
2771
+ removeInstalledProject(project: IInstalledProject): InstalledProjectState | null;
2772
+ removeGlobalEvent(event: IGlobalEvent): GlobalEventState | null;
2773
+ removeTopLevelVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState | null;
2774
+ getEntryPoints(): EntryPointEntityState[];
2775
+ getTerminationStatements(): TerminationState[];
2776
+ getFunctionDeclaration(id: EntityId): FunctionDeclarationState | null;
2777
+ getConditions(): ConditionState[];
2778
+ getOperations(): OperationState[];
2779
+ getVariables(): VariableState[];
2780
+ getVariableInstances(): VariableInstanceState[];
2781
+ getVariableDeclarations(): VariableDeclarationState[];
2782
+ getLoops(): LoopState[];
2783
+ getSearches(): SearchState[];
2784
+ getBuiltInPersistedEntity(): BuiltInBaseEntityState | null;
2785
+ requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
2786
+ undo(): IProjectVersionTransitionConfig;
2787
+ redo(): IProjectVersionTransitionConfig;
2788
+ applyExternalChangeSet(request: PersistChangeSetEntityActionRequestPayload): ChangeSet;
2789
+ toFullProjectTransfer(): {
2790
+ order: EntityId[];
2791
+ size: number;
2792
+ record: Record<EntityId, UserManagedElementShallowTransfer>;
2793
+ };
2794
+ }
2795
+
2612
2796
  export declare enum DefinitionEntityDependencyField {
2613
2797
  Extends = "extends",
2614
2798
  Implements = "implements"
@@ -2937,45 +3121,6 @@ export declare enum DynamicValueTypes {
2937
3121
 
2938
3122
  export declare const EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS: IEditableEntityPersistanceRepository;
2939
3123
 
2940
- export declare class EditorContext extends ExtensionContextBase<ExtensionContextType.Editor> implements IEditorContext {
2941
- private readonly _editor;
2942
- readonly id: string;
2943
- constructor(extensionsRegistry: ExtensionsRegistry, _editor: IEditor, id?: string);
2944
- get ready(): boolean;
2945
- get hasLoadedLogic(): boolean;
2946
- get destroyed(): boolean;
2947
- get logicLoadingPromise(): Promise<void> | null;
2948
- get logic(): ProjectState | null;
2949
- get branch(): IActiveBranchHeadResult | null;
2950
- get projectId(): EntityId;
2951
- get sessionId(): string | null;
2952
- get userAuthorId(): string;
2953
- get peerConnections(): Record<string, IChannelConnections>;
2954
- get test(): ITest | null;
2955
- get localTestValues(): EfimeralValueStore;
2956
- get resolvedValues(): EfimeralValueStore;
2957
- get persistedExecutionResults(): EfimeralValueStore;
2958
- get publication(): PublicationRun | null;
2959
- get execution(): Execution | null;
2960
- get project(): ProjectState;
2961
- get lastExecutionResults(): EfimeralValueStore;
2962
- get undoableStackValueIndex(): number;
2963
- set undoableStackValueIndex(value: number);
2964
- get PROJECT_NOTIFICATIONS_CHANNEL(): string;
2965
- getAccessToken(): Promise<string | null>;
2966
- removeValueByOwnerId(entityId: EntityId): void;
2967
- removeValue(dynamicValue: IDynamicValue): void;
2968
- undo(): Promise<void>;
2969
- redo(): Promise<void>;
2970
- initTest(entryPoint: TestableEntityState, autoExecute: boolean): Promise<ITest>;
2971
- removeTest(): Promise<ITest>;
2972
- copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
2973
- resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
2974
- publish(): Promise<void>;
2975
- loadActivePublication(publicationId: string): Promise<IPublication>;
2976
- requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
2977
- }
2978
-
2979
3124
  export declare class EfimeralValueStore implements IValueStoreClient {
2980
3125
  initialized: boolean;
2981
3126
  id: string;
@@ -3589,8 +3734,6 @@ export declare class ExplicitInfrastructureResource extends InfrastructureResour
3589
3734
  resolveDeterministicResourceId(): string;
3590
3735
  }
3591
3736
 
3592
- export declare type ExtensionContext = EditorContext | ProjectLogicContext;
3593
-
3594
3737
  export declare class ExtensionContextBase<CT = ExtensionContextType> implements IExtensionContextBase {
3595
3738
  readonly extensionsRegistry: ExtensionsRegistry;
3596
3739
  readonly contextType: CT;
@@ -3655,9 +3798,11 @@ export declare enum ExtensionPermissions {
3655
3798
  UpdateGUIGlobalTheme = "update:gui:global:theme"
3656
3799
  }
3657
3800
 
3658
- export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorContext, '_editor'> = IEditorContext, TProjectLogicContext extends ProjectLogicContext = ProjectLogicContext> implements Omit<IEventsBus, 'destroy'> {
3801
+ export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorContext, '_editor'> = IEditorContext, TProjectLogicContext extends DefaultProjectLogicContext = DefaultProjectLogicContext> implements Omit<IEventsBus, 'destroy'> {
3659
3802
  private events;
3660
3803
  private extensionsRegistry;
3804
+ private initialized;
3805
+ private initializedContexts;
3661
3806
  onResolveEditorContextCallback: () => TEditorContext | null;
3662
3807
  onResolveProjectLogicContextCallback: () => TProjectLogicContext | null;
3663
3808
  onResolveGUIContextCallback: () => null;
@@ -3674,10 +3819,12 @@ export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorConte
3674
3819
  requestModule<T>(moduleId: string): T;
3675
3820
  register(extension: IRegisteredExtension<any>): void;
3676
3821
  initAll(): Promise<void>;
3822
+ initForReady(): Promise<void>;
3677
3823
  destroyAll(): Promise<void>;
3678
3824
  on<Arguments extends any[]>(eventName: string, callback: EventCallback<Arguments>): void;
3679
3825
  emit<Arguments extends any[]>(eventName: string, ...args: Arguments): void;
3680
3826
  off<Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>): void;
3827
+ contextAvailable(contextType: ExtensionContextType): Promise<void>;
3681
3828
  }
3682
3829
 
3683
3830
  export declare enum ExtentionPriority {
@@ -9568,7 +9715,7 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
9568
9715
  initRegistry(): Promise<ExtensionsRegistry<any>>;
9569
9716
  }
9570
9717
 
9571
- declare interface IEditorContext extends ExtensionContextBase<ExtensionContextType.Editor>, Omit<IEditor, 'onLogicLoadingComplete' | 'onLogicLoadingCompleteCallback' | 'onProjectHeadLoaded' | 'onProjectHeadLoadedCallback' | 'onProjectSetupError' | 'onProjectSetupErrorCallback' | 'onRenderedCallback' | 'handleIncommingWebsocketMessage' | 'handleNotificationChannelsMessage' | 'handlePersistChangeSetMessage' | 'getLogic' | 'injectLocalImplementationOfSearchExecution' | 'setup' | 'destroy' | 'requestModule' | 'socket' | 'events' | 'initRegistry' | 'extensionsRegistry' | 'on' | 'emit' | 'off' | 'contextType'> {
9718
+ export declare interface IEditorContext extends ExtensionContextBase<ExtensionContextType.Editor>, Omit<IEditor, 'onLogicLoadingComplete' | 'onLogicLoadingCompleteCallback' | 'onProjectHeadLoaded' | 'onProjectHeadLoadedCallback' | 'onProjectSetupError' | 'onProjectSetupErrorCallback' | 'onRenderedCallback' | 'handleIncommingWebsocketMessage' | 'handleNotificationChannelsMessage' | 'handlePersistChangeSetMessage' | 'getLogic' | 'injectLocalImplementationOfSearchExecution' | 'setup' | 'destroy' | 'requestModule' | 'socket' | 'events' | 'initRegistry' | 'extensionsRegistry' | 'on' | 'emit' | 'off' | 'contextType'> {
9572
9719
  }
9573
9720
 
9574
9721
  export declare interface IEntityActionRequestPayload<P extends {
@@ -9646,13 +9793,15 @@ export declare interface IExecutionResult {
9646
9793
  results: IDynamicValue[];
9647
9794
  }
9648
9795
 
9796
+ export declare type IExtensionContext = IEditorContext | IProjectLogicContext;
9797
+
9649
9798
  declare interface IExtensionContextBase extends Omit<IEventsBus, 'destroy'> {
9650
9799
  extensionsRegistry: ExtensionsRegistry;
9651
9800
  }
9652
9801
 
9653
9802
  export declare interface IExtensionModuleCore {
9654
9803
  /** Called once on editor startup */
9655
- init?(contexts: ExtensionContext[]): Promise<void> | void;
9804
+ init?(contexts: IExtensionContext[]): Promise<void> | void;
9656
9805
  /** Cleanup hook */
9657
9806
  destroy?(): Promise<void> | void;
9658
9807
  }
@@ -10792,6 +10941,9 @@ export declare interface IProjectInstanceParentContext extends IProjectStaticPar
10792
10941
  events: Events;
10793
10942
  }
10794
10943
 
10944
+ export declare interface IProjectLogicContext extends ExtensionContextBase<ExtensionContextType.Logic>, IProject {
10945
+ }
10946
+
10795
10947
  export declare interface IProjectReference extends IGenericReference {
10796
10948
  entityType: EntityType.Project;
10797
10949
  }
@@ -12872,149 +13024,6 @@ export declare type ProjectDomain = string;
12872
13024
 
12873
13025
  export declare type ProjectFetchResult = null | IProjectFetchResult;
12874
13026
 
12875
- export declare class ProjectLogicContext extends ExtensionContextBase implements IProject {
12876
- private readonly _project;
12877
- constructor(extensionsRegistry: ExtensionsRegistry, _project: ProjectState);
12878
- readonly id: EntityId;
12879
- get type(): EntityType.Project;
12880
- get name(): string | null;
12881
- get description(): string | null;
12882
- get version(): string;
12883
- get createdAt(): string;
12884
- get previousVersion(): string | null;
12885
- get author(): string;
12886
- get deleted(): boolean;
12887
- get entities(): DefinitionEntityState[];
12888
- get projects(): InstalledProjectState[];
12889
- get functions(): FunctionDeclarationState[];
12890
- get events(): GlobalEventState[];
12891
- get variableDeclarations(): VariableDeclarationState[];
12892
- get variableInstances(): VariableInstanceState[];
12893
- get conditions(): ConditionState[];
12894
- get operations(): OperationState[];
12895
- get functionCalls(): FunctionCallState[];
12896
- get loops(): LoopState[];
12897
- get searches(): SearchState[];
12898
- get primitives(): PrimitiveEntityState[];
12899
- get builtInBaseEntities(): BuiltInBaseEntityState[];
12900
- get operationDeclarations(): ActionDescriptorState[];
12901
- get globalEventActionDescriptors(): ActionDescriptorState[];
12902
- get loopDeclarations(): ActionDescriptorState[];
12903
- get loopDeclarationsBodies(): ActionDescriptorState[];
12904
- get conditionDeclarations(): ActionDescriptorState[];
12905
- get valueDescriptors(): ValueDescriptorState[];
12906
- get dataTypes(): DataTypeState[];
12907
- get errors(): EntityError[];
12908
- get history(): ChangeSet[];
12909
- get undoableStackValueIndex(): number;
12910
- get knownVersions(): Map<string, EntityState> | null;
12911
- get activeVersion(): boolean;
12912
- get initialized(): boolean;
12913
- get startedInitialization(): boolean;
12914
- closePendingChangeSets(): Promise<void>;
12915
- closeChangeSet(changeSet: ChangeSet): Promise<void>;
12916
- toLatestChangeSet(author: string, timestamp: string, // ISO 8601 format
12917
- self: UserManagedEntityState | null, autoclose?: boolean, autoCloseActionName?: string): ChangeSet;
12918
- addChangeSet(changeSet: ChangeSet): ChangeSet;
12919
- discardChangeSet(changeSet: ChangeSet | null): ProjectState;
12920
- subscribeDependents(dependencies: {
12921
- entity: UserManagedEntityState;
12922
- field: string;
12923
- }[]): UserManagedEntityState;
12924
- unsubscribeDependents(dependencies: {
12925
- entity: UserManagedEntityState;
12926
- field: string;
12927
- }[]): UserManagedEntityState;
12928
- syncDependents(changeSet?: ChangeSet | null): IChangeSet<UserManagedEntityState>;
12929
- onDetachedDependencyRemoved(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
12930
- onDetachedDependencyRestored(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
12931
- increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
12932
- captureVersion(): ProjectState;
12933
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ProjectState>>;
12934
- updateWithShallowTransfer(transfer: IProjectShallowTransfer, changeSet?: ChangeSet | null): ProjectState;
12935
- hydrateAncestors(): IChangeSet<ProjectState>;
12936
- afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ProjectState>;
12937
- addSelfToProject(_changeSet: ChangeSet | null): IChangeSet<ProjectState>;
12938
- get instancesList(): EntityState[];
12939
- isOperationDeclaration(entity: ActionDescriptorState): boolean;
12940
- isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
12941
- isLoopDeclaration(entity: ActionDescriptorState): boolean;
12942
- isConditionDeclaration(entity: ActionDescriptorState): boolean;
12943
- findSubscribedBuiltInInstance(entity: Element_2 | ElementTransfer): EntityState | null;
12944
- get(entityId: EntityId): EntityState | null;
12945
- getDeleted(entityId: EntityId): EntityState | null;
12946
- getManaged(entityId: EntityId): EntityState | null;
12947
- getBuiltIn(entityId: EntityId): EntityState | null;
12948
- findSubscribedInstanceFromReference(entity: Reference): EntityState | null;
12949
- findSubscribedBuiltInInstanceFromReference(entity: Reference): EntityState | null;
12950
- metaSync(data: Partial<IProject_meta | IProject | IProjectTransfer | IProjectShallowTransfer>, changeSet?: ChangeSet | null): ProjectState;
12951
- getAllBuiltInIds(): EntityId[];
12952
- getAllBuiltIn(): EntityState[];
12953
- toFlat(seenEntities?: Set<EntityId>): EntityState[];
12954
- toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
12955
- toMeta(): IProject_meta;
12956
- toJSON(seenEntities?: Set<EntityId>): IProjectTransfer | IProjectReference;
12957
- toJSONClone(options?: IEntityJSONCloneOptions): IProjectTransfer;
12958
- toReference(options?: IEntityRecursionOptions): IProjectReference;
12959
- toShallowJSON(options?: IEntityRecursionOptions): IProjectShallowTransfer;
12960
- toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
12961
- toGenerationTarget(): IProjectGenerationTarget;
12962
- toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
12963
- clearErrors(): ProjectState;
12964
- validate(): {
12965
- success: boolean;
12966
- error: ZodError | null;
12967
- data: IProjectTransfer | null;
12968
- };
12969
- validateChildren(): void;
12970
- getErrors(): EntityError[];
12971
- getShallowErrors(): EntityError[];
12972
- getDefinitionEntity(id: EntityId): DefinitionEntityState | null;
12973
- addDefinitionEntity(entity: DefinitionEntityState): DefinitionEntityState;
12974
- addFunctionDeclaration(func: FunctionDeclarationState): FunctionDeclarationState;
12975
- addFunctionCall(func: FunctionCallState): FunctionCallState;
12976
- addVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState;
12977
- addVariableInstance(variable: VariableInstanceState): VariableInstanceState;
12978
- addInstalledProject(project: InstalledProjectState): ProjectState;
12979
- addGlobalEvent(event: GlobalEventState): ProjectState;
12980
- addCondition(condition: ConditionState): ProjectState;
12981
- addOperation(operation: OperationState): ProjectState;
12982
- addLoop(loop: LoopState): ProjectState;
12983
- addSearch(search: SearchState): ProjectState;
12984
- removeDefinitionEntity(entity: IDefinitionEntity): DefinitionEntityState | null;
12985
- removeCondition(condition: ICondition): ConditionState | null;
12986
- removeOperation(operation: IOperation): OperationState | null;
12987
- removeLoop(loop: ILoop): LoopState | null;
12988
- removeSearch(search: ISearch): SearchState | null;
12989
- removeFunctionCall(funcCall: IFunctionCall): FunctionCallState | null;
12990
- removeVariableInstance(variable: IVariableInstance): VariableInstanceState | null;
12991
- removeVariableDeclaration(variable: IVariableDeclaration): VariableDeclarationState | null;
12992
- removeFunctionDeclaration(func: IFunctionDeclaration): FunctionDeclarationState | null;
12993
- removeInstalledProject(project: IInstalledProject): InstalledProjectState | null;
12994
- removeGlobalEvent(event: IGlobalEvent): GlobalEventState | null;
12995
- removeTopLevelVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState | null;
12996
- getEntryPoints(): EntryPointEntityState[];
12997
- getTerminationStatements(): TerminationState[];
12998
- getFunctionDeclaration(id: EntityId): FunctionDeclarationState | null;
12999
- getConditions(): ConditionState[];
13000
- getOperations(): OperationState[];
13001
- getVariables(): VariableState[];
13002
- getVariableInstances(): VariableInstanceState[];
13003
- getVariableDeclarations(): VariableDeclarationState[];
13004
- getLoops(): LoopState[];
13005
- getSearches(): SearchState[];
13006
- getBuiltInPersistedEntity(): BuiltInBaseEntityState | null;
13007
- requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
13008
- undo(): IProjectVersionTransitionConfig;
13009
- redo(): IProjectVersionTransitionConfig;
13010
- applyExternalChangeSet(request: PersistChangeSetEntityActionRequestPayload): ChangeSet;
13011
- toFullProjectTransfer(): {
13012
- order: EntityId[];
13013
- size: number;
13014
- record: Record<EntityId, UserManagedElementShallowTransfer>;
13015
- };
13016
- }
13017
-
13018
13027
  export declare type ProjectPayloadUnion = ProjectState | ProjectTypesUnion;
13019
13028
 
13020
13029
  export declare const projectPublicationCompletedGlobalEvent: IActionDescriptorTransfer;
@@ -14795,7 +14804,7 @@ export declare type TestableEntityState = ExecutableEntityState;
14795
14804
 
14796
14805
  export declare function toCamelCase(str: string): string;
14797
14806
 
14798
- export declare function toEditorContext(extensionsRegistry: ExtensionsRegistry, editor: IEditor): EditorContext;
14807
+ export declare function toEditorContext(extensionsRegistry: ExtensionsRegistry, editor: IEditor): DefaultEditorContext;
14799
14808
 
14800
14809
  export declare function toEntityState(entity: string | EntityState | IGenericReference | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget, project: ProjectState): EntityState | null;
14801
14810
 
@@ -14805,7 +14814,7 @@ export declare function toLowerCaseKebabCase(str: string): string;
14805
14814
 
14806
14815
  export declare function toPascalCase(str: string): string;
14807
14816
 
14808
- export declare function toProjectLogicContext(extensionsRegistry: ExtensionsRegistry, project: ProjectState): ProjectLogicContext;
14817
+ export declare function toProjectLogicContext(extensionsRegistry: ExtensionsRegistry, project: ProjectState): DefaultProjectLogicContext;
14809
14818
 
14810
14819
  export declare function transitionProjectVersion(from: ChangeSet | 'initial', to: ChangeSet | 'initial', project: ProjectState): IProjectVersionTransitionConfig;
14811
14820