@elyx-code/project-logic-tree 0.0.6387 → 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 CHANGED
@@ -8851,7 +8851,7 @@ export declare interface IBaseEventTransfer extends IBaseEvent_meta {
8851
8851
  }
8852
8852
 
8853
8853
  export declare interface IBaseExtensionsContext {
8854
- onRequestModule: <T>(moduleId: string) => T;
8854
+ requestModule: <T>(moduleId: string) => T;
8855
8855
  }
8856
8856
 
8857
8857
  export declare interface IBaseVariable extends IBaseVariableTransfer, IChildEntity {
@@ -9327,7 +9327,7 @@ export declare interface IEditableEntityPersistanceRepository extends IReadOnlyE
9327
9327
  APILoadVersion<T extends Array<any> = any[]>(entityId: EntityId, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
9328
9328
  }
9329
9329
 
9330
- export declare interface IEditor extends IUndoableInterface, IValueResolutionContext, IProjectStaticParentContext, IProjectInstanceParentContext {
9330
+ export declare interface IEditor extends IUndoableInterface, IValueResolutionContext, IProjectInstanceParentContext {
9331
9331
  ready: boolean;
9332
9332
  hasLoadedLogic: boolean;
9333
9333
  destroyed: boolean;
@@ -9383,7 +9383,7 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
9383
9383
  resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
9384
9384
  publish(): Promise<void>;
9385
9385
  loadActivePublication(publicationId: string): Promise<IPublication>;
9386
- requestModule<T = any>(moduleId: string): T | null;
9386
+ requestModule<T = any>(moduleId: string): T;
9387
9387
  }
9388
9388
 
9389
9389
  export declare interface IEntityActionRequestPayload<P extends {
@@ -10607,7 +10607,7 @@ export declare interface IProjectGenerationTarget extends IProject_base {
10607
10607
  }
10608
10608
 
10609
10609
  export declare interface IProjectInstanceParentContext extends IProjectStaticParentContext {
10610
- onRequestActiveDynamicValue: (valueOwner: EntityWithValueState) => IDynamicValue | null;
10610
+ requestActiveDynamicValue: (valueOwner: EntityWithValueState) => IDynamicValue | null;
10611
10611
  events: Events;
10612
10612
  }
10613
10613
 
package/dist/index.js CHANGED
@@ -85640,7 +85640,7 @@ function UEt(d) {
85640
85640
  return null;
85641
85641
  }
85642
85642
  const yL = {
85643
- onRequestModule: (d) => {
85643
+ requestModule: (d) => {
85644
85644
  const u = UEt(d);
85645
85645
  if (u)
85646
85646
  return u;
@@ -85713,69 +85713,6 @@ const jEt = {
85713
85713
  ...yL
85714
85714
  };
85715
85715
  class Xn extends ip {
85716
- // static searchImplementation: (
85717
- // entity: SearchState,
85718
- // inputs: IDynamicValue[]
85719
- // ) => Promise<{
85720
- // data:
85721
- // | {
85722
- // [columnName: string]: any;
85723
- // }
85724
- // | null
85725
- // | {
85726
- // [columnName: string]: any;
85727
- // }[];
85728
- // error: string | null;
85729
- // }> = async () => ({
85730
- // data: null,
85731
- // error: 'Search module not implemented',
85732
- // });
85733
- // static builtInFunctionImplementations: Record<
85734
- // BuiltInFunctionIds,
85735
- // (
85736
- // entity: InternalCallState,
85737
- // inputs: IDynamicValue[]
85738
- // ) => Promise<IExecutionResult>
85739
- // > = {
85740
- // [BuiltInFunctionIds.AbortExecution]: async (
85741
- // entity: InternalCallState,
85742
- // _inputs: IDynamicValue[]
85743
- // ) => {
85744
- // return {
85745
- // value: ExecutionTerminationType.Error,
85746
- // entity: entity,
85747
- // error: null,
85748
- // results: [],
85749
- // };
85750
- // },
85751
- // [BuiltInFunctionIds.SavePersistedEntity]: async (
85752
- // entity: InternalCallState,
85753
- // _inputs: IDynamicValue[]
85754
- // ) => {
85755
- // return {
85756
- // value: ExecutionTerminationType.Error,
85757
- // entity: entity,
85758
- // error: null,
85759
- // results: [],
85760
- // };
85761
- // },
85762
- // [BuiltInFunctionIds.DeletePersistedEntity]: async (
85763
- // entity: InternalCallState,
85764
- // _inputs: IDynamicValue[]
85765
- // ) => {
85766
- // return {
85767
- // value: ExecutionTerminationType.Error,
85768
- // entity: entity,
85769
- // error: null,
85770
- // results: [],
85771
- // };
85772
- // },
85773
- // };
85774
- // static builtInFunctionImplementation: (
85775
- // entity: BuiltInFunctionIds,
85776
- // inputs: IDynamicValue[]
85777
- // ) => Promise<IExecutionResult> = {
85778
- // }
85779
85716
  constructor(i, a, l, p = null, t = jEt) {
85780
85717
  super();
85781
85718
  D(this, "project");
@@ -85842,24 +85779,6 @@ class Xn extends ip {
85842
85779
  lastExecutionResults: this.lastExecutionResults
85843
85780
  };
85844
85781
  }
85845
- // static injectSearchImplementation(
85846
- // implementation: (
85847
- // entity: SearchState,
85848
- // inputs: IDynamicValue[]
85849
- // ) => Promise<{
85850
- // data:
85851
- // | {
85852
- // [columnName: string]: any;
85853
- // }
85854
- // | null
85855
- // | {
85856
- // [columnName: string]: any;
85857
- // }[];
85858
- // error: string | null;
85859
- // }>
85860
- // ): void {
85861
- // Execution.searchImplementation = implementation;
85862
- // }
85863
85782
  skip(i) {
85864
85783
  this.hasEntity(i) && (this.skipped.includes(i) || (this.skipped.push(i), this.onAddToSkippedListCallback && this.onAddToSkippedListCallback(i), nn.includes(i.type) && [
85865
85784
  ...i.successCalls || [],
@@ -85985,7 +85904,7 @@ class Xn extends ip {
85985
85904
  ), Object.values(ts).includes(
85986
85905
  i.declaration.id
85987
85906
  )) {
85988
- const R = this.parentContext.onRequestModule(
85907
+ const R = this.parentContext.requestModule(
85989
85908
  VT.BuiltInFunctionImplementations
85990
85909
  )[i.declaration.id];
85991
85910
  R ? T = await R(i, a) : Ge.warn(
@@ -86201,7 +86120,7 @@ class Xn extends ip {
86201
86120
  type: Ee.ExecutionResult,
86202
86121
  inheritanceLink: null
86203
86122
  };
86204
- const T = await this.parentContext.onRequestModule(
86123
+ const T = await this.parentContext.requestModule(
86205
86124
  VT.SearchNodeImplementation
86206
86125
  ).searchImplementation(i, a), R = y == null ? void 0 : y.getDataType(null), I = tt(
86207
86126
  R,
@@ -103255,7 +103174,7 @@ const iB = {
103255
103174
  ...yL,
103256
103175
  events: new ip()
103257
103176
  }, Wbt = {
103258
- onRequestActiveDynamicValue: (d) => null,
103177
+ requestActiveDynamicValue: (d) => null,
103259
103178
  ...iB
103260
103179
  }, et = class et extends Rr {
103261
103180
  constructor(i, a = {
@@ -103329,7 +103248,7 @@ const iB = {
103329
103248
  );
103330
103249
  }
103331
103250
  static get UUID() {
103332
- return this.parentContext.onRequestModule("uuid");
103251
+ return this.parentContext.requestModule("uuid");
103333
103252
  }
103334
103253
  // Creates a new empty entity transfer object
103335
103254
  static new(i = null) {
@@ -104870,7 +104789,7 @@ const iB = {
104870
104789
  }
104871
104790
  requestActiveDynamicValue(i) {
104872
104791
  var l, p;
104873
- const a = (p = (l = this.parentContext).onRequestActiveDynamicValue) == null ? void 0 : p.call(l, i);
104792
+ const a = (p = (l = this.parentContext).requestActiveDynamicValue) == null ? void 0 : p.call(l, i);
104874
104793
  if (!a) {
104875
104794
  const t = i.getDefaultValue();
104876
104795
  return t ? {
@@ -104883,8 +104802,8 @@ const iB = {
104883
104802
  return a || null;
104884
104803
  }
104885
104804
  requestModule(i) {
104886
- if (this.parentContext.onRequestModule) {
104887
- const a = this.parentContext.onRequestModule(i);
104805
+ if (this.parentContext.requestModule) {
104806
+ const a = this.parentContext.requestModule(i);
104888
104807
  return !a && i === "uuid" ? Hh : a || null;
104889
104808
  }
104890
104809
  return i === "uuid" ? Hh : null;