@elyx-code/project-logic-tree 0.0.6386 → 0.0.6388
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 +19 -17
- package/dist/index.js +11550 -11572
- package/dist/index.umd.cjs +116 -116
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2486,6 +2486,8 @@ export declare const dateValueAutogenerationSchema: z_2.ZodUnion<[z_2.ZodObject<
|
|
|
2486
2486
|
rangeEnd: null;
|
|
2487
2487
|
}>]>;
|
|
2488
2488
|
|
|
2489
|
+
export declare const DEFAULT_BASE_EXTENSIONS_CONTEXT: IBaseExtensionsContext;
|
|
2490
|
+
|
|
2489
2491
|
export declare const DEFAULT_EXECUTION_INSTANCE_PARENT_CONTEXT: IExecutionInstanceParentContext;
|
|
2490
2492
|
|
|
2491
2493
|
export declare const DEFAULT_PROJECT_INSTANCE_PARENT_CONTEXT: IProjectInstanceParentContext;
|
|
@@ -2822,7 +2824,7 @@ export declare enum DynamicValueTypes {
|
|
|
2822
2824
|
|
|
2823
2825
|
export declare const EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS: IEditableEntityPersistanceRepository;
|
|
2824
2826
|
|
|
2825
|
-
declare interface EditorContext extends ExtensionContextBase {
|
|
2827
|
+
export declare interface EditorContext extends ExtensionContextBase {
|
|
2826
2828
|
logic: ProjectLogicContext;
|
|
2827
2829
|
}
|
|
2828
2830
|
|
|
@@ -3439,9 +3441,9 @@ export declare class ExplicitInfrastructureResource extends InfrastructureResour
|
|
|
3439
3441
|
resolveDeterministicResourceId(): string;
|
|
3440
3442
|
}
|
|
3441
3443
|
|
|
3442
|
-
declare type ExtensionContext = EditorContext;
|
|
3444
|
+
export declare type ExtensionContext = EditorContext;
|
|
3443
3445
|
|
|
3444
|
-
declare class ExtensionContextBase implements IExtensionContextBase {
|
|
3446
|
+
export declare class ExtensionContextBase implements IExtensionContextBase {
|
|
3445
3447
|
readonly registry: ExtensionsRegistry;
|
|
3446
3448
|
readonly contextType: ExtensionContextType;
|
|
3447
3449
|
constructor(registry: ExtensionsRegistry, contextType: ExtensionContextType);
|
|
@@ -3450,14 +3452,14 @@ declare class ExtensionContextBase implements IExtensionContextBase {
|
|
|
3450
3452
|
off<Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>): void;
|
|
3451
3453
|
}
|
|
3452
3454
|
|
|
3453
|
-
declare enum ExtensionContextType {
|
|
3455
|
+
export declare enum ExtensionContextType {
|
|
3454
3456
|
Logic = "logic",
|
|
3455
3457
|
GUI = "gui",
|
|
3456
3458
|
Editor = "editor",
|
|
3457
3459
|
Compile = "compile"
|
|
3458
3460
|
}
|
|
3459
3461
|
|
|
3460
|
-
declare interface ExtensionManifest {
|
|
3462
|
+
export declare interface ExtensionManifest {
|
|
3461
3463
|
id: string;
|
|
3462
3464
|
version: string;
|
|
3463
3465
|
description?: string;
|
|
@@ -3467,16 +3469,16 @@ declare interface ExtensionManifest {
|
|
|
3467
3469
|
dependencies?: string[];
|
|
3468
3470
|
}
|
|
3469
3471
|
|
|
3470
|
-
declare type ExtensionModule<T extends object = {}> = T & ExtensionModuleCore;
|
|
3472
|
+
export declare type ExtensionModule<T extends object = {}> = T & ExtensionModuleCore;
|
|
3471
3473
|
|
|
3472
|
-
declare interface ExtensionModuleCore {
|
|
3474
|
+
export declare interface ExtensionModuleCore {
|
|
3473
3475
|
/** Called once on editor startup */
|
|
3474
3476
|
init?(contexts: ExtensionContext[]): Promise<void> | void;
|
|
3475
3477
|
/** Cleanup hook */
|
|
3476
3478
|
destroy?(): Promise<void> | void;
|
|
3477
3479
|
}
|
|
3478
3480
|
|
|
3479
|
-
declare enum ExtensionPermissions {
|
|
3481
|
+
export declare enum ExtensionPermissions {
|
|
3480
3482
|
OnCompileBefore = "on:compile:before:DefinitionEntity",
|
|
3481
3483
|
OnCompileDefault = "on:compile:default:DefinitionEntity",
|
|
3482
3484
|
OnCompileAfter = "on:compile:after:DefinitionEntity",
|
|
@@ -3487,7 +3489,7 @@ declare enum ExtensionPermissions {
|
|
|
3487
3489
|
UpdateGUIGlobalTheme = "update:gui:global:theme"
|
|
3488
3490
|
}
|
|
3489
3491
|
|
|
3490
|
-
declare class ExtensionsRegistry implements Omit<IEventsBus, 'destroy'> {
|
|
3492
|
+
export declare class ExtensionsRegistry implements Omit<IEventsBus, 'destroy'> {
|
|
3491
3493
|
private events;
|
|
3492
3494
|
private extensions;
|
|
3493
3495
|
constructor(events?: Events);
|
|
@@ -3502,7 +3504,7 @@ declare class ExtensionsRegistry implements Omit<IEventsBus, 'destroy'> {
|
|
|
3502
3504
|
off<Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>): void;
|
|
3503
3505
|
}
|
|
3504
3506
|
|
|
3505
|
-
declare enum ExtentionPriority {
|
|
3507
|
+
export declare enum ExtentionPriority {
|
|
3506
3508
|
High = 1,
|
|
3507
3509
|
Normal = 5,
|
|
3508
3510
|
Low = 10
|
|
@@ -8848,8 +8850,8 @@ export declare interface IBaseEventTransfer extends IBaseEvent_meta {
|
|
|
8848
8850
|
calls: (CallableEntity | CallableEntityTransfer)[];
|
|
8849
8851
|
}
|
|
8850
8852
|
|
|
8851
|
-
declare interface IBaseExtensionsContext {
|
|
8852
|
-
|
|
8853
|
+
export declare interface IBaseExtensionsContext {
|
|
8854
|
+
requestModule: <T>(moduleId: string) => T;
|
|
8853
8855
|
}
|
|
8854
8856
|
|
|
8855
8857
|
export declare interface IBaseVariable extends IBaseVariableTransfer, IChildEntity {
|
|
@@ -9325,7 +9327,7 @@ export declare interface IEditableEntityPersistanceRepository extends IReadOnlyE
|
|
|
9325
9327
|
APILoadVersion<T extends Array<any> = any[]>(entityId: EntityId, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
|
|
9326
9328
|
}
|
|
9327
9329
|
|
|
9328
|
-
export declare interface IEditor extends IUndoableInterface, IValueResolutionContext,
|
|
9330
|
+
export declare interface IEditor extends IUndoableInterface, IValueResolutionContext, IProjectInstanceParentContext {
|
|
9329
9331
|
ready: boolean;
|
|
9330
9332
|
hasLoadedLogic: boolean;
|
|
9331
9333
|
destroyed: boolean;
|
|
@@ -9381,7 +9383,7 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
|
|
|
9381
9383
|
resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
|
|
9382
9384
|
publish(): Promise<void>;
|
|
9383
9385
|
loadActivePublication(publicationId: string): Promise<IPublication>;
|
|
9384
|
-
requestModule<T = any>(moduleId: string): T
|
|
9386
|
+
requestModule<T = any>(moduleId: string): T;
|
|
9385
9387
|
}
|
|
9386
9388
|
|
|
9387
9389
|
export declare interface IEntityActionRequestPayload<P extends {
|
|
@@ -10605,7 +10607,7 @@ export declare interface IProjectGenerationTarget extends IProject_base {
|
|
|
10605
10607
|
}
|
|
10606
10608
|
|
|
10607
10609
|
export declare interface IProjectInstanceParentContext extends IProjectStaticParentContext {
|
|
10608
|
-
|
|
10610
|
+
requestActiveDynamicValue: (valueOwner: EntityWithValueState) => IDynamicValue | null;
|
|
10609
10611
|
events: Events;
|
|
10610
10612
|
}
|
|
10611
10613
|
|
|
@@ -12708,7 +12710,7 @@ export declare type ProjectDomain = string;
|
|
|
12708
12710
|
|
|
12709
12711
|
export declare type ProjectFetchResult = null | IProjectFetchResult;
|
|
12710
12712
|
|
|
12711
|
-
declare class ProjectLogicContext extends ExtensionContextBase implements IProject {
|
|
12713
|
+
export declare class ProjectLogicContext extends ExtensionContextBase implements IProject {
|
|
12712
12714
|
private readonly _project;
|
|
12713
12715
|
constructor(registry: ExtensionsRegistry, _project: ProjectState);
|
|
12714
12716
|
readonly id: EntityId;
|
|
@@ -13500,7 +13502,7 @@ export declare function rebaseStack<T = any>(undoableStackValueIndex: number, hi
|
|
|
13500
13502
|
|
|
13501
13503
|
export declare type Reference = IGenericReference | IFunctionDeclarationReference | IInstalledProjectReference | IDataTypeReference | IVariableDeclarationReference | IVariableInstanceReference | IOperationReference | IDefinitionEntityReference | IPrimitiveEntityReference | IProjectReference | IGlobalEventReference | IFunctionDeclarationReference | IFunctionDeclarationReference | IPropertyReference | IFunctionCallReference | IArgumentDeclarationReference | IInputMapReference | IOutputMapReference | IReturnDeclarationReference | IConditionReference | IReturnStatementReference | IBreakStatementReference | IContinueStatementReference | ILoopReference | IActionDescriptorReference | ISearchReference | ILiteralValueReference | IBuiltInBaseEntityReference | IValueDescriptorReference | IInternalCallReference;
|
|
13502
13504
|
|
|
13503
|
-
declare interface RegisteredExtension<T extends object = {}> {
|
|
13505
|
+
export declare interface RegisteredExtension<T extends object = {}> {
|
|
13504
13506
|
manifest: ExtensionManifest;
|
|
13505
13507
|
module: ExtensionModule<T>;
|
|
13506
13508
|
}
|