@elyx-code/project-logic-tree 0.0.6395 → 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
@@ -3801,6 +3801,8 @@ export declare enum ExtensionPermissions {
3801
3801
  export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorContext, '_editor'> = IEditorContext, TProjectLogicContext extends DefaultProjectLogicContext = DefaultProjectLogicContext> implements Omit<IEventsBus, 'destroy'> {
3802
3802
  private events;
3803
3803
  private extensionsRegistry;
3804
+ private initialized;
3805
+ private initializedContexts;
3804
3806
  onResolveEditorContextCallback: () => TEditorContext | null;
3805
3807
  onResolveProjectLogicContextCallback: () => TProjectLogicContext | null;
3806
3808
  onResolveGUIContextCallback: () => null;
@@ -3817,10 +3819,12 @@ export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorConte
3817
3819
  requestModule<T>(moduleId: string): T;
3818
3820
  register(extension: IRegisteredExtension<any>): void;
3819
3821
  initAll(): Promise<void>;
3822
+ initForReady(): Promise<void>;
3820
3823
  destroyAll(): Promise<void>;
3821
3824
  on<Arguments extends any[]>(eventName: string, callback: EventCallback<Arguments>): void;
3822
3825
  emit<Arguments extends any[]>(eventName: string, ...args: Arguments): void;
3823
3826
  off<Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>): void;
3827
+ contextAvailable(contextType: ExtensionContextType): Promise<void>;
3824
3828
  }
3825
3829
 
3826
3830
  export declare enum ExtentionPriority {
@@ -9797,7 +9801,7 @@ declare interface IExtensionContextBase extends Omit<IEventsBus, 'destroy'> {
9797
9801
 
9798
9802
  export declare interface IExtensionModuleCore {
9799
9803
  /** Called once on editor startup */
9800
- init?(contexts: DefaultExtensionContext[]): Promise<void> | void;
9804
+ init?(contexts: IExtensionContext[]): Promise<void> | void;
9801
9805
  /** Cleanup hook */
9802
9806
  destroy?(): Promise<void> | void;
9803
9807
  }