@elyx-code/project-logic-tree 0.0.6211 → 0.0.6213
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/definitions/mock/default-mock/entities/animal.d.ts +3 -1
- package/dist/index.js +4461 -4411
- package/dist/index.umd.cjs +95 -95
- package/dist/tree/state/literal-value/literal-value.d.ts +1 -0
- package/dist/tree/state/literal-value/literal-value.test.d.ts +1 -0
- package/dist/tree/utils/index.d.ts +3 -5
- package/package.json +1 -1
|
@@ -71,6 +71,7 @@ export declare class LiteralValueState extends VersionedState implements BaseSta
|
|
|
71
71
|
modifiedData: ILiteralValueGenerationTarget;
|
|
72
72
|
};
|
|
73
73
|
get valueAsType(): ValueAsTypeState | ValueAsTypeState[] | null;
|
|
74
|
+
get isFinal(): boolean;
|
|
74
75
|
validateGeneratedUpdate(data: Partial<ILiteralValueGenerationTarget>): {
|
|
75
76
|
errors: EntityGenerationError[];
|
|
76
77
|
modifiedData: Partial<ILiteralValueGenerationTarget>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseEntityNames, ElementGenerationTarget, ElementShallowTransfer, ElementTransfer, EntityType, Element, IGenericReference, EntityId, ValueReadingEntity, IActionDescriptor, IActionDescriptorTransfer, IArgumentDeclaration, IArgumentDeclarationTransfer, DraggableElement, Reference, IBreakStatement, IBreakStatementTransfer, IBuiltInBaseEntity, IBuiltInBaseEntityTransfer, ICondition, IConditionTransfer, IContinueStatement, IContinueStatementTransfer, CallableEntity, CallableEntityTransfer, CallerEntity, CallerEntityTransfer, IDefinitionEntity, IDefinitionEntityTransfer, IDataType, IDataTypeTransfer, IFunctionCall, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationTransfer, IGlobalEvent, IGlobalEventTransfer, IInputMap, IInputMapTransfer, IInstalledProject, IInstalledProjectTransfer, IInternalCall, IInternalCallTransfer, ILiteralValue, ILiteralValueTransfer, ILoop, ILoopTransfer, IOperation, IOperationTransfer, IOutputMap, IOutputMapTransfer, IPrimitiveEntity, IPrimitiveEntityTransfer, IProject, IProjectTransfer, IProperty, IPropertyTransfer, IReturnDeclaration, IReturnDeclarationTransfer, IReturnStatement, IReturnStatementTransfer, ISearch, ISearchTransfer, IValueDescriptor, IValueDescriptorTransfer, IVariableDeclarationTransfer, IVariableDeclaration, IVariableInstance, IVariableInstanceTransfer, DraggableElementTransfer, ValueReadingEntityTransfer, IActionDescriptorShallowTransfer, IDataTypeShallowTransfer, IDefinitionEntityShallowTransfer, IFunctionDeclarationShallowTransfer, IInstalledProjectShallowTransfer, ILoopShallowTransfer, IOperationShallowTransfer, ILiteralValueShallowTransfer, IPrimitiveEntityShallowTransfer, IProjectShallowTransfer, IPropertyShallowTransfer, IReturnDeclarationShallowTransfer, IReturnStatementShallowTransfer, ISearchShallowTransfer, IValueDescriptorShallowTransfer, IVariableDeclarationShallowTransfer, IVariableInstanceShallowTransfer, IFunctionCallShallowTransfer, IGlobalEventShallowTransfer, IInputMapShallowTransfer, IInternalCallShallowTransfer, CallableEntityShallowTransfer, IOutputMapShallowTransfer, IConditionShallowTransfer, IContinueStatementShallowTransfer, IBreakStatementShallowTransfer, IArgumentDeclarationShallowTransfer, IBuiltInBaseEntityShallowTransfer, DraggableElementShallowTransfer } from '../../definitions';
|
|
2
|
-
import { DraggableCallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, DraggableExecutableEntityState, DraggablePassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState, EntityWithValueState, VariableState, BuiltInBaseEntityState, TerminationState,
|
|
2
|
+
import { DraggableCallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, DraggableExecutableEntityState, DraggablePassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState, EntityWithValueState, VariableState, BuiltInBaseEntityState, TerminationState, ExecutableEntityState, ValueDescriptorState, CallableEntityState, CallerEntityState, PassThroughCallableEntityState, PrimitiveEntityState, InternalCallState, IChangeSet, IRecordChangeSet, ChangeSet } from '../state';
|
|
3
3
|
import { FunctionCallState } from '../state/function-call';
|
|
4
4
|
import { InputMapState } from '../state/input-map';
|
|
5
5
|
import { VariableDeclarationState } from '../state/variable-declaration';
|
|
@@ -7,8 +7,6 @@ import { ArgumentDeclarationState } from '../state/argument-declaration';
|
|
|
7
7
|
import { ReturnDeclarationState } from '../state/return-declaration';
|
|
8
8
|
import { OutputMapState } from '../state/output-map';
|
|
9
9
|
import { ConditionState } from '../state/condition';
|
|
10
|
-
import { ReturnStatementState } from '../state/return-statement';
|
|
11
|
-
import { FunctionDeclarationState } from '../state/function-declaration';
|
|
12
10
|
import { ProjectState } from '../state/project/project';
|
|
13
11
|
import { PropertyState } from '../state/property';
|
|
14
12
|
import { OperationState } from '../state/operation';
|
|
@@ -198,7 +196,7 @@ export declare function getHeadIfPartOfDetachedBranch(entity: CanvasEntityState,
|
|
|
198
196
|
export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
|
|
199
197
|
export declare function checkIsMethod(entity: EntityState): boolean;
|
|
200
198
|
export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
|
|
201
|
-
export declare function getPrototypeByType(type: EntityType):
|
|
199
|
+
export declare function getPrototypeByType(type: EntityType): EntityStateConstructor | null;
|
|
202
200
|
export declare function getScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | ProjectState | null;
|
|
203
201
|
export declare function getRootEntryPointScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
|
|
204
202
|
export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | ProjectState, child: EntityWithLogicScopeState | ProjectState, project: ProjectState): boolean;
|
|
@@ -282,6 +280,6 @@ export declare function fromChangeSetToRecordChangeSet<TSelf extends {
|
|
|
282
280
|
id: string;
|
|
283
281
|
type: EntityType;
|
|
284
282
|
} = EntityState>(changeSet: IChangeSet<TSelf, TGeneric>): IRecordChangeSet<TSelf, TGeneric>;
|
|
285
|
-
export declare function checkHasMetadataChanged(
|
|
283
|
+
export declare function checkHasMetadataChanged(currentEntityState: EntityState, newMetadata: Partial<Element | ElementTransfer | ElementShallowTransfer>): boolean;
|
|
286
284
|
export declare function getRecusriveParentsIds(entity: Element | ElementTransfer | ElementShallowTransfer | EntityState, allKnownEntities?: Record<EntityId, Element | ElementTransfer | ElementShallowTransfer | EntityState>): EntityId[];
|
|
287
285
|
export declare function getTouchedCanvasEntitiesFromChangeSet(changeSet: ChangeSet): CanvasEntityState[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6213",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|