@elyx-code/project-logic-tree 0.0.6341 → 0.0.6344

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
@@ -172,6 +172,11 @@ export declare class ActionOutputMapState extends OutputMapState implements IAct
172
172
  toJSON(seenEntities?: Set<EntityId>): IActionOutputMap | IOutputMapReference;
173
173
  }
174
174
 
175
+ export declare function addDisabledReasons(existingDisbledResons: CanvasEntityDisabledReason[], newReasons: CanvasEntityDisabledReason[]): {
176
+ hasChanged: boolean;
177
+ reasons: CanvasEntityDisabledReason[];
178
+ };
179
+
175
180
  export declare function afterLiteralValueAsTypeChangeSideEffects(newValue: ValueAsTypeState | ValueAsTypeState[] | null, entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
176
181
 
177
182
  export declare function afterLiteralValueAsTypeDeleteSideEffects(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
@@ -234,6 +239,12 @@ export declare const ALL_BUILT_IN_TOP_LEVEL_ENTITIES: ElementTransfer[];
234
239
 
235
240
  export declare const ALL_BUILT_IN_VALUE_DESCRIPTORS: IValueDescriptorTransfer[];
236
241
 
242
+ export declare const ALL_CONNECTION_DISABLED_REASONS: CanvasEntityConnectionDisabledReason[];
243
+
244
+ export declare const ALL_OTHER_DISABLED_REASONS: CanvasEntityOtherDisabledReason[];
245
+
246
+ export declare const ALL_TESTING_DISABLED_REASONS: CanvasEntityTestingDisabledReason[];
247
+
237
248
  declare class AllColumnsSelector implements ISearchNode {
238
249
  owner: SearchStatementState;
239
250
  parent: DataSource | null;
@@ -287,6 +298,74 @@ export declare const appendToListOperationSecondListDataType: IDataTypeTransfer;
287
298
 
288
299
  export declare function applyNewScope(self: CallableEntityState, changeSet: ChangeSet | null): void;
289
300
 
301
+ export declare class Area {
302
+ ids: string[];
303
+ entity: CanvasEntityState | ProjectState;
304
+ entityCardHeight: number;
305
+ entityCardWidth: number;
306
+ index: number;
307
+ childEntities: CanvasEntityState[];
308
+ children: Area[];
309
+ parents: Area[];
310
+ calculationEntryPoint: Area;
311
+ _onlyEntities: CanvasEntityState[] | null;
312
+ private _changeSet;
313
+ constructor(entity: CanvasEntityState | ProjectState, index: number, calculationEntryPoint?: Area | null, changeSet?: ChangeSet);
314
+ static autoGenerateLayout(entryPointEntity: CanvasEntityState | ProjectState, changeSet: ChangeSet | null, onlyEntities?: CanvasEntityState[]): CanvasEntityState[];
315
+ static recursivelyAssembleChildrenAreas(renderedParents: Area[]): void;
316
+ get onlyEntities(): CanvasEntityState[] | null;
317
+ get changeSet(): ChangeSet | null;
318
+ set changeSet(changeSet: ChangeSet | null);
319
+ findAreaInChildrenFromEntity(entity: CanvasEntityState): Area | null;
320
+ findAreaFromEntity(entity: CanvasEntityState): Area | null;
321
+ addParent(parent: Area): void;
322
+ static resolveIds(parent: Area, index: number): string[];
323
+ getSortedChildren(): void;
324
+ calculateCardSize(): void;
325
+ static getBoundriesOfTwoAreas(area1: ICoordinates, area2: ICoordinates): ICoordinates;
326
+ static getBoundriedOfCombinedAreas(areas: Area[], until: Area[]): ICoordinates;
327
+ getFullAreaUntilAny(areas: Area[]): ICoordinates;
328
+ getFullAreaUntilAreaOrAnyChildren(childArea: Area): ICoordinates;
329
+ getFullAreaUntil(childArea: Area): ICoordinates;
330
+ get fullBranchArea(): ICoordinates;
331
+ get ownEntityArea(): ICoordinates;
332
+ get ownEntityPlusBufferArea(): ICoordinates;
333
+ static filterOutRepeatedAreas(areas: Area[]): Area[];
334
+ getEarliestId(idA: string, idB: string): string;
335
+ getEarliestLevel(): number;
336
+ countColumns(): number;
337
+ getLatestId(idA: string, idB: string): string;
338
+ getLatestLevel(): number;
339
+ smoothPosition(): void;
340
+ shiftDownUntilAny(areas: Area[], amount: number): Area[];
341
+ shiftRightUntilAny(areas: Area[], amount: number): void;
342
+ shiftRight(amount: number): void;
343
+ shiftDownAlone(amount: number): void;
344
+ centerHeaderVerticallyOverCombinedAllParentsHeaderHeight(): void;
345
+ centerHeaderVerticallyOverCombinedAllChildrenHeaderHeight(): number;
346
+ resolveChildrenOverlaps(): void;
347
+ static getEarliestParentInChain(area: Area): Area;
348
+ flattenEarlierSiblings(seenSiblings?: Set<string>): Area[];
349
+ flattenSiblings(seenSiblings?: Set<string>): Area[];
350
+ flattenChildren(seenChildren?: Set<string>): Area[];
351
+ flattenParents(seenParents?: Set<string>): Area[];
352
+ getAreaIfRendered(entity: CanvasEntityState): Area | null;
353
+ getLowerSiblings(): Area[];
354
+ getLowerAreas(): Area[];
355
+ adjustVerticallyToAvoidOverlaps(alreadyShiftedAreas?: Area[]): Area[];
356
+ move(entity: CanvasEntityState, coordinates: {
357
+ x: number;
358
+ y: number;
359
+ } | {
360
+ y: number;
361
+ } | {
362
+ x: number;
363
+ }): void;
364
+ addChild(index: number): Area | null;
365
+ flattenChildEntities(seenEntities?: Set<string>): CanvasEntityState[];
366
+ next(onLevelComplete: (renderedLevel: Area[]) => void): void;
367
+ }
368
+
290
369
  export declare enum ArgumentDeclarationDependencyField {
291
370
  DataTypeEntity = "data-type-entity",
292
371
  Implements = "implements"
@@ -1166,6 +1245,16 @@ export declare const CACHED_PROJECTS_BY_ID: {
1166
1245
  [id: string]: ProjectState;
1167
1246
  };
1168
1247
 
1248
+ export declare function calculateCardSize(entity: CanvasEntityState): {
1249
+ height: number;
1250
+ width: number;
1251
+ };
1252
+
1253
+ export declare function calculateMethodCardSize(entity: FunctionDeclarationState): {
1254
+ height: number;
1255
+ width: number;
1256
+ };
1257
+
1169
1258
  export declare function calculateNewParentBasedOnCallers(self: CallableEntityState): EntityWithLogicScopeState | ProjectState;
1170
1259
 
1171
1260
  export declare const CALLABLE_ENTITIES_EXPLANATION: string;
@@ -1225,10 +1314,68 @@ export declare type CallerEntityTypesUnion = CallerEntity | CallerEntityTransfer
1225
1314
 
1226
1315
  export declare const CALLS_UPDATE_EXPLANATION = "Caller to callee relationships can be updated with the 'add_caller' and 'remove_caller' generation action with the properties: 'callerEntityId', a 'calleeEntityId'. For adding a caller, you can optionally add a boolean property 'fromError' (if the caller calls when an error occured in its execution).\nEither of these two actions will only affect the one relationship between the given caller and callee and ignore any others present in either entity.";
1227
1316
 
1317
+ export declare const CANVAS_BASE_X: number;
1318
+
1319
+ export declare const CANVAS_BASE_Y: number;
1320
+
1321
+ export declare const CANVAS_CARD_HEADER_CENTER_HEIGHT = 32;
1322
+
1323
+ export declare const CANVAS_CARD_WIDTH = 280;
1324
+
1325
+ export declare const CANVAS_COMPLEX_CARD_HEIGHT = 300;
1326
+
1327
+ export declare const CANVAS_HORIZONTAL_BUFFER_BETWEEN_CARDS = 270;
1328
+
1329
+ export declare const CANVAS_SIMPLE_CARD_HEIGHT = 65;
1330
+
1331
+ export declare const CANVAS_SIZE = 40000;
1332
+
1333
+ export declare const CANVAS_VERTICAL_BUFFER_BETWEEN_CARDS = 90;
1334
+
1335
+ export declare enum CanvasEntityConnectionDisabledReason {
1336
+ ValuesAlreadyConnected = "values-already-connected",
1337
+ CannotReadMoreThanOneValue = "cannot-read-more-than-one-value",
1338
+ CannotReadValueFromChildren = "cannot-read-value-from-children",
1339
+ CannotWriteValueToChildren = "cannot-write-value-to-children",
1340
+ CannotBeCalledByChildren = "cannot-be-called-by-children",
1341
+ ExecutionsAlreadyConnected = "executions-already-connected",
1342
+ DataTypesNotCompatible = "data-types-not-compatible",
1343
+ CannotCallAncestor = "cannot-call-ancestor",
1344
+ CannotWriteValueToAncestor = "cannot-write-value-to-ancestor",
1345
+ NotInScope = "not-in-scope",
1346
+ IsNotValueWrittingEntity = "is-not-value-writting-entity",
1347
+ IsNotValueReadingEntity = "is-not-value-reading-entity",
1348
+ ContinueOrBreakStatementCalledFromOutsideLoop = "continue-or-break-statement-called-from-outside-loop",
1349
+ ElementInLoopBodyCallingOutsideLoop = "element-in-loop-body-calling-outside-loop",
1350
+ CallerIsInHigherScope = "caller-is-in-higher-scope",
1351
+ CallerIsInLowerScope = "caller-is-in-lower-scope",
1352
+ CallIsInHigherScope = "call-is-in-higher-scope",
1353
+ CallIsInLowerScope = "call-is-in-lower-scope",
1354
+ OtherIncompatibleScopeReason = "other-incompatible-scope-reason"
1355
+ }
1356
+
1357
+ export declare type CanvasEntityDisabledReason = CanvasEntityConnectionDisabledReason | CanvasEntityTestingDisabledReason | CanvasEntityOtherDisabledReason;
1358
+
1359
+ export declare enum CanvasEntityOtherDisabledReason {
1360
+ Suggestion = "suggestion",
1361
+ CanvasGloballyDisabled = "canvas-globally-disabled"
1362
+ }
1363
+
1228
1364
  export declare type CanvasEntityState = InstalledProjectState | DefinitionEntityState | FunctionDeclarationState | GlobalEventState | VariableState | ConditionState | OperationState | FunctionCallState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState;
1229
1365
 
1366
+ export declare enum CanvasEntityTestingDisabledReason {
1367
+ NotPartOfOngoingTest = "not-part-of-ongoing-test",
1368
+ CannotBeAddedToTest = "cannot-be-added-to-test"
1369
+ }
1370
+
1230
1371
  export declare function capitalizeFirstLetter(value: string): string;
1231
1372
 
1373
+ export declare const CARD_FOOTER_HEIGHT = 38;
1374
+
1375
+ export declare const CARD_PROPERTIES_SECTION_PADDING: number;
1376
+
1377
+ export declare const CARD_PROPERTIES_SECTION_SINGLE_PADDING = 10;
1378
+
1232
1379
  export declare class ChangeSet {
1233
1380
  id: string;
1234
1381
  seenEntities: EntityId[];
@@ -2500,6 +2647,8 @@ export declare type ElementTransfer = IProjectTransfer | IInstalledProjectTransf
2500
2647
 
2501
2648
  export declare type ElementTypesUnion = ProjectTypesUnion | InstalledProjectTypesUnion | DefinitionEntityTypesUnion | GlobalEventTypesUnion | FunctionDeclarationTypesUnion | FunctionCallTypesUnion | PropertyTypesUnion | VariableDeclarationTypesUnion | VariableInstanceTypesUnion | OperationTypesUnion | ConditionTypesUnion | ArgumentDeclarationTypesUnion | InputMapTypesUnion | ReturnDeclarationTypesUnion | OutputMapTypesUnion | DataTypeTypesUnion | ReturnStatementTypesUnion | BreakStatementTypesUnion | ContinueStatementTypesUnion | LoopTypesUnion | ActionDescriptorTypesUnion | SearchTypesUnion | PrimitiveEntityTypesUnion | LiteralValueTypesUnion | ValueDescriptorTypesUnion | BuiltInBaseEntityTypesUnion | InternalCallTypesUnion;
2502
2649
 
2650
+ export declare function emitSideEffects(changeSet: ChangeSet): ChangeSet;
2651
+
2503
2652
  export declare const endpointBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
2504
2653
 
2505
2654
  export declare const endpointBuiltInBaseEntityRef: IBuiltInBaseEntityReference;
@@ -2920,6 +3069,10 @@ export declare const enumPrototype: IPrimitiveEntityTransfer;
2920
3069
 
2921
3070
  export declare const enumPrototypeRef: IPrimitiveEntityReference;
2922
3071
 
3072
+ export declare const ERROR_PROPERTY_HEIGHT = 52;
3073
+
3074
+ export declare function errorCodeToMessage(errorCode: string): string;
3075
+
2923
3076
  export declare const EVENT_TYPES: EntityType[];
2924
3077
 
2925
3078
  export declare type EventEntity = IGlobalEvent;
@@ -3584,6 +3737,8 @@ export declare function generateIdFromStrategy(entity: EntityState, project: Pro
3584
3737
 
3585
3738
  export declare function generateMutablePropertiesExplanation(entityToUpdate: EntityState): string;
3586
3739
 
3740
+ export declare function generatePlaceholderValueStore(id: string, project: ProjectState): IValueStoreClient;
3741
+
3587
3742
  export declare function generateRandomBoolean(_: IAutogenerationRandomBoolean): boolean;
3588
3743
 
3589
3744
  export declare function generateRandomDate(options: IAutogenerationRandomDate): Date;
@@ -8487,6 +8642,13 @@ export declare interface IContinueStatementTransfer extends ITerminationStatemen
8487
8642
  parent: ILoop | ILoopReference;
8488
8643
  }
8489
8644
 
8645
+ export declare interface ICoordinates {
8646
+ top: number;
8647
+ left: number;
8648
+ bottom: number;
8649
+ right: number;
8650
+ }
8651
+
8490
8652
  declare interface IDataSource {
8491
8653
  entity: DefinitionEntityState | null;
8492
8654
  query: NestedSearchStatement | null;
@@ -8647,29 +8809,31 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
8647
8809
  onLogicLoadingCompleteCallback: null | ((chunk: any) => void);
8648
8810
  onRenderedCallback: null | (() => void);
8649
8811
  onProjectSetupErrorCallback: null | ((error: any) => void);
8650
- constructor(projectId: EntityId, socket?: IWebsocketsClient | null, events?: Events): IEditor;
8651
8812
  get execution(): Execution | null;
8652
8813
  get project(): ProjectState;
8653
8814
  get lastExecutionResults(): EfimeralValueStore;
8654
8815
  get undoableStackValueIndex(): number;
8655
8816
  set undoableStackValueIndex(value: number);
8656
8817
  get PROJECT_NOTIFICATIONS_CHANNEL(): string;
8818
+ getAccessToken(): Promise<string | null>;
8657
8819
  onProjectHeadLoaded(callback: (projectState: ProjectState) => void): void;
8658
8820
  onLogicLoadingComplete(callback: (chunk: any) => void): void;
8659
- onRendered(callback: () => void): void;
8660
8821
  onProjectSetupError(callback: (error: any) => void): void;
8661
8822
  removeValueByOwnerId(entityId: EntityId): void;
8662
8823
  removeValue(dynamicValue: IDynamicValue): void;
8663
- handleNotificationChannelsMessage(message: IOutgoingWSMessage<string, {
8824
+ handleIncommingWebsocketMessage(message: {
8825
+ [key: string]: any;
8826
+ }): Promise<void>;
8827
+ handleNotificationChannelsMessage(message: {
8664
8828
  data: {
8665
8829
  channels: IChannelConnections[];
8666
8830
  sessionId: string;
8667
8831
  };
8668
- }>): void;
8669
- handlePersistChangeSetMessage(message: IOutgoingWSMessage<string, PersistChangeSetEntityActionRequestPayload>): void;
8832
+ }): void;
8833
+ handlePersistChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): void;
8670
8834
  getLogic(options?: {
8671
8835
  mockLogic?: ProjectState;
8672
- }): Promise<void>;
8836
+ }): Promise<ProjectState | null>;
8673
8837
  undo(): Promise<void>;
8674
8838
  redo(): Promise<void>;
8675
8839
  injectLocalImplementationOfSearchExecution(): void;
@@ -8747,8 +8911,8 @@ export declare interface IExecutionCallbackContext {
8747
8911
  }
8748
8912
 
8749
8913
  export declare interface IExecutionClient {
8750
- onBeforeEntityExecution?: (entity: EntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
8751
- onEntityExecuted?: (entity: EntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
8914
+ onBeforeEntityExecution?: (entity: TestableEntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
8915
+ onEntityExecuted?: (entity: TestableEntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
8752
8916
  }
8753
8917
 
8754
8918
  export declare interface IExecutionResult {
@@ -9886,7 +10050,7 @@ export declare interface IProjectTransfer extends IProject_meta {
9886
10050
  searches: (ISearch | ISearchTransfer)[];
9887
10051
  }
9888
10052
 
9889
- declare interface IProjectVersionTransitionConfig {
10053
+ export declare interface IProjectVersionTransitionConfig {
9890
10054
  transitionalChangeSet: ChangeSet;
9891
10055
  transitionTime: string;
9892
10056
  timeOfOriginalTargetChanges: string;
@@ -10337,7 +10501,6 @@ export declare interface ITest extends Execution {
10337
10501
  entitiesRelatedToExecution: TestableEntityState[];
10338
10502
  validation: IDynamicValue[];
10339
10503
  persistExecutionValues: boolean;
10340
- constructor(project: IEditor, entryPoint: DraggablePlayableEntityState): ITest;
10341
10504
  initExecutionValueStores(): void;
10342
10505
  pause(): Promise<void>;
10343
10506
  stop(): Promise<void>;
@@ -11156,6 +11319,10 @@ export { loopValidation }
11156
11319
 
11157
11320
  export declare function lowercaseFirstLetter(value: string): string;
11158
11321
 
11322
+ export declare const MAIN_VALUE_PROPERTY_HEADER_HEIGHT = 44;
11323
+
11324
+ export declare const MAIN_VALUE_SUB_PROPERTY_HEIGHT = 35;
11325
+
11159
11326
  export declare const manualFlowActionDescriptorDeclarationArgumentDeclaration: IValueDescriptorTransfer;
11160
11327
 
11161
11328
  export declare const manualFlowActionDescriptorDeclarationArgumentDeclarationDataType: IDataTypeTransfer;
@@ -11184,6 +11351,8 @@ export declare function mapActionDescriptorToTypeItRepresents(entity: EntityStat
11184
11351
 
11185
11352
  export declare function mapRecord(record: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer> | undefined, entityIdMaps: Map<EntityId, EntityId>): Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
11186
11353
 
11354
+ export declare function mergeArraysOfStringsWithoutDuplicates(arr1: string[], arr2: string[]): string[];
11355
+
11187
11356
  export declare function mergeEntityErrorsList(oldErrors: EntityError[], newErrors: EntityError[]): EntityError[];
11188
11357
 
11189
11358
  export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
@@ -11210,6 +11379,8 @@ export declare const moreThanOrEqualConditionRightHandArgumentDataTypeParentRef:
11210
11379
 
11211
11380
  export declare const moreThanOrEqualConditionRightHandArgumentParentRef: IActionDescriptorReference;
11212
11381
 
11382
+ export declare const NESTED_PROPERTY_HEIGHT = 26;
11383
+
11213
11384
  declare class NestedSearchStatement implements ISearchNode {
11214
11385
  owner: SearchStatementState;
11215
11386
  statement: SearchStatementState | null;
@@ -12217,6 +12388,8 @@ export declare function propagateNewStaticPropertyValueAsTypeToVariables(entity:
12217
12388
 
12218
12389
  export declare function propagateNewStaticPropertyValueToVariables(entity: PropertyState, project: ProjectState, newValue: LiteralValueType, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
12219
12390
 
12391
+ export declare const PROPERTY_HEIGHT = 39;
12392
+
12220
12393
  export declare const PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION = "A property entity, is neither a value reading, or a value writting entity, but they are often confused with one.\nA 'property' can have a default value through its nested 'data-type' entity.\nThe 'property' entity only represents the data field in the declaration, and it can't write or read values.\nWhen a 'definition-entity' is instantiated as a variable, any writes or reads to its properties are done through 'input-map's and 'output-map's.";
12221
12394
 
12222
12395
  export declare enum PropertyDependencyField {
@@ -12369,8 +12542,163 @@ export { propertyValidation }
12369
12542
 
12370
12543
  export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
12371
12544
 
12545
+ export declare const READABLE_ENTITY_TYPES: {
12546
+ "primitive-entity": {
12547
+ singular: string;
12548
+ plural: string;
12549
+ shortSingular: string;
12550
+ shortPlural: string;
12551
+ };
12552
+ "definition-entity": {
12553
+ singular: string;
12554
+ plural: string;
12555
+ shortSingular: string;
12556
+ shortPlural: string;
12557
+ };
12558
+ "built-in-base-entity": {
12559
+ singular: string;
12560
+ plural: string;
12561
+ shortSingular: string;
12562
+ shortPlural: string;
12563
+ };
12564
+ property: {
12565
+ singular: string;
12566
+ plural: string;
12567
+ shortSingular: string;
12568
+ shortPlural: string;
12569
+ };
12570
+ "function-declaration": {
12571
+ singular: string;
12572
+ plural: string;
12573
+ shortSingular: string;
12574
+ shortPlural: string;
12575
+ };
12576
+ "function-call": {
12577
+ singular: string;
12578
+ plural: string;
12579
+ shortSingular: string;
12580
+ shortPlural: string;
12581
+ };
12582
+ "global-event": {
12583
+ singular: string;
12584
+ plural: string;
12585
+ shortSingular: string;
12586
+ shortPlural: string;
12587
+ };
12588
+ project: {
12589
+ singular: string;
12590
+ plural: string;
12591
+ shortSingular: string;
12592
+ shortPlural: string;
12593
+ };
12594
+ "variable-declaration": {
12595
+ singular: string;
12596
+ plural: string;
12597
+ shortSingular: string;
12598
+ shortPlural: string;
12599
+ };
12600
+ "variable-instance": {
12601
+ singular: string;
12602
+ plural: string;
12603
+ shortSingular: string;
12604
+ shortPlural: string;
12605
+ };
12606
+ condition: {
12607
+ singular: string;
12608
+ plural: string;
12609
+ shortSingular: string;
12610
+ shortPlural: string;
12611
+ };
12612
+ operation: {
12613
+ singular: string;
12614
+ plural: string;
12615
+ shortSingular: string;
12616
+ shortPlural: string;
12617
+ };
12618
+ "return-statement": {
12619
+ singular: string;
12620
+ plural: string;
12621
+ shortSingular: string;
12622
+ shortPlural: string;
12623
+ };
12624
+ "installed-project": {
12625
+ singular: string;
12626
+ plural: string;
12627
+ shortSingular: string;
12628
+ shortPlural: string;
12629
+ };
12630
+ search: {
12631
+ singular: string;
12632
+ plural: string;
12633
+ shortSingular: string;
12634
+ shortPlural: string;
12635
+ };
12636
+ loop: {
12637
+ singular: string;
12638
+ plural: string;
12639
+ shortSingular: string;
12640
+ shortPlural: string;
12641
+ };
12642
+ "action-descriptor": {
12643
+ singular: string;
12644
+ plural: string;
12645
+ shortSingular: string;
12646
+ shortPlural: string;
12647
+ };
12648
+ "internal-call": {
12649
+ singular: string;
12650
+ plural: string;
12651
+ shortSingular: string;
12652
+ shortPlural: string;
12653
+ };
12654
+ "break-statement": {
12655
+ singular: string;
12656
+ plural: string;
12657
+ shortSingular: string;
12658
+ shortPlural: string;
12659
+ };
12660
+ "continue-statement": {
12661
+ singular: string;
12662
+ plural: string;
12663
+ shortSingular: string;
12664
+ shortPlural: string;
12665
+ };
12666
+ "argument-declaration": {
12667
+ singular: string;
12668
+ plural: string;
12669
+ shortSingular: string;
12670
+ shortPlural: string;
12671
+ };
12672
+ "input-map": {
12673
+ singular: string;
12674
+ plural: string;
12675
+ shortSingular: string;
12676
+ shortPlural: string;
12677
+ };
12678
+ "output-map": {
12679
+ singular: string;
12680
+ plural: string;
12681
+ shortSingular: string;
12682
+ shortPlural: string;
12683
+ };
12684
+ "return-declaration": {
12685
+ singular: string;
12686
+ plural: string;
12687
+ shortSingular: string;
12688
+ shortPlural: string;
12689
+ };
12690
+ "value-descriptor": {
12691
+ singular: string;
12692
+ plural: string;
12693
+ shortSingular: string;
12694
+ shortPlural: string;
12695
+ };
12696
+ };
12697
+
12372
12698
  export declare function readValueFromWritter(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
12373
12699
 
12700
+ export declare function rebaseStack<T = any>(undoableStackValueIndex: number, history: T[], newItem: T): number;
12701
+
12374
12702
  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;
12375
12703
 
12376
12704
  export declare const relationalDatabaseBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
@@ -12429,6 +12757,11 @@ export declare const relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType
12429
12757
 
12430
12758
  export declare const relationalDatabaseBuiltInBaseEntityUsernamePropertyRef: IPropertyReference;
12431
12759
 
12760
+ export declare function removeDisabledReasons(existingDisbledResons: CanvasEntityDisabledReason[], reasonsToRemove: CanvasEntityDisabledReason[]): {
12761
+ hasChanged: boolean;
12762
+ reasons: CanvasEntityDisabledReason[];
12763
+ };
12764
+
12432
12765
  export declare function resolveActionDescriptorName(actionDescriptor: ActionDescriptorState): string;
12433
12766
 
12434
12767
  declare function resolveAreThereConflictingColumnsInSelectAll(allColumnsSelector: AllColumnsSelector | null): boolean;
@@ -12439,6 +12772,8 @@ export declare function resolveBaseEntityName(baseEntities: BaseEntityNames[]):
12439
12772
 
12440
12773
  export declare function resolveBuiltInBaseEntityDataTypeLabel(entity: BuiltInBaseEntityState): string;
12441
12774
 
12775
+ export declare function resolveCardSubheader(entity: CanvasEntityState): string;
12776
+
12442
12777
  export declare function resolveClonedEntityProject(newParent: EntityState | null, self: EntityState): ProjectState;
12443
12778
 
12444
12779
  export declare function resolveConditionOperatorLabel(condition: ConditionState): "and" | "or" | "is equal to" | "is not equal to" | "is greater than" | "is greater than or equal to" | "is less than" | "is less than or equal to" | "is empty" | "is not empty" | undefined;
@@ -12453,18 +12788,26 @@ export declare function resolveDataTypeEntityOrNestedChildrenFromLiteralValue(va
12453
12788
  abstract?: boolean;
12454
12789
  }, changeSet: ChangeSet | null, rootEntityCreated: DefinitionEntityState): IChangeSet<DataTypeState>;
12455
12790
 
12791
+ export declare function resolveDatatypeIconName(dataType: DataTypeState): "definition-entity" | "number" | "boolean" | "uuid" | "list" | "text" | "date-time";
12792
+
12456
12793
  export declare function resolveDataTypeLabel(dataType: DataTypeState | null): string;
12457
12794
 
12458
12795
  export declare function resolveDefinitionEntityDataTypeLabel(entity: DefinitionEntityState): string;
12459
12796
 
12797
+ export declare function resolveDefinitionEntitySubheader(entity: DefinitionEntityState): string;
12798
+
12460
12799
  export declare function resolveEntityDataTypeLabel(entity: PropertyState | EntityWithValueState | ValueDescriptorState): string;
12461
12800
 
12462
12801
  export declare function resolveEntityName(entity: EntityPayloadUnion, project: ProjectState): string;
12463
12802
 
12803
+ export declare function resolveEntitySubheader(entity: VariableState | DefinitionEntityState | LoopState | SearchState | FunctionDeclarationState | GlobalEventState | ReturnStatementState | BreakStatementState | ContinueStatementState | BuiltInBaseEntityState): string;
12804
+
12464
12805
  export declare function resolveFirstCallsSecond(first: DraggableExecutableEntityState, second: DraggableCallableEntityState): boolean;
12465
12806
 
12466
12807
  export declare function resolveFirstWritesSecond(first: ValueWritingEntityState, second: ValueReadingEntityState): boolean;
12467
12808
 
12809
+ export declare function resolveFunctionDeclarationCardSubheader(entity: FunctionDeclarationState): string;
12810
+
12468
12811
  export declare function resolveInputMapNextStandaloneValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12469
12812
 
12470
12813
  export declare function resolveInputMapNextValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
@@ -12477,6 +12820,8 @@ export declare function resolveInputMapValue(entity: InputMapState, context: IVa
12477
12820
 
12478
12821
  export declare function resolveInputMapValueAsPropertyOfAnObject(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12479
12822
 
12823
+ export declare function resolveMethodCardSubheader(entity: FunctionDeclarationState): string;
12824
+
12480
12825
  export declare function resolveNextValue(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
12481
12826
 
12482
12827
  export declare function resolveOutputMapValue(entity: OutputMapState, context: IValueResolutionContext): IDynamicValue | null;
@@ -13355,6 +13700,8 @@ export declare enum StandaloneOperatorTypes {
13355
13700
  NotEmpty = "not-empty"
13356
13701
  }
13357
13702
 
13703
+ export declare const STATIC_PROPERTY_HEIGHT = 49;
13704
+
13358
13705
  export declare const STRING_OPERATIONS: {
13359
13706
  [key: string]: IActionDescriptorTransfer;
13360
13707
  };
@@ -13488,6 +13835,18 @@ export declare function toLowerCaseKebabCase(str: string): string;
13488
13835
 
13489
13836
  export declare function toPascalCase(str: string): string;
13490
13837
 
13838
+ export declare function transitionProjectVersion(from: ChangeSet | 'initial', to: ChangeSet | 'initial', project: ProjectState): IProjectVersionTransitionConfig;
13839
+
13840
+ export declare function translateLogicErrorCode(error: EntityError): string;
13841
+
13842
+ export declare function translateLogicErrorCodeShort(error: EntityError): string;
13843
+
13844
+ export declare function translateLogicErrorCodeShortWithEntityName(error: EntityError): string;
13845
+
13846
+ export declare function translateLogicErrorCodeWithEntityName(error: EntityError): string;
13847
+
13848
+ export declare function traverseChangeSet(changeSet: ChangeSet, onAdded: (entity: UserManagedEntityState) => void, onUpdated: (entity: UserManagedEntityState) => void, onRemoved: (entity: UserManagedEntityState) => void): void;
13849
+
13491
13850
  export declare class Traverser {
13492
13851
  order: EntityId[];
13493
13852
  flatRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>;