@elyx-code/project-logic-tree 0.0.6079 → 0.0.6081
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.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40635,7 +40635,7 @@ function Ys(r, e) {
|
|
|
40635
40635
|
function Fn(r) {
|
|
40636
40636
|
const e = [];
|
|
40637
40637
|
if (r.parent === r.project)
|
|
40638
|
-
r.calledBy.length
|
|
40638
|
+
!r.calledBy.length && r.type !== n.VariableDeclaration && e.push(
|
|
40639
40639
|
new wr({
|
|
40640
40640
|
id: `${r.id}--${M.DisconnectedCallableEntity}`,
|
|
40641
40641
|
code: M.DisconnectedCallableEntity,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -351,7 +351,7 @@ ${a} is not a template, but ${o} is. A data type that provides an entity as a "t
|
|
|
351
351
|
Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${n.CustomEntity}' or a '${n.PrimitiveEntity}'.`:t.type===Ft.IncompatibleCustomEntities?`${l}
|
|
352
352
|
Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.`:t.type===Ft.IncompatiblePrimitiveEntities?`${l}
|
|
353
353
|
${a} is of primitive type '${((p=r.getDataType())==null?void 0:p.entity).name}' and ${o} is of primitive type '${((y=e.getDataType())==null?void 0:y.entity).name}'. They must be of the same primitive type to be connected.`:t.type===Ft.IncompatibleBuiltInBaseEntities?`${l}
|
|
354
|
-
Both point to a built-in-base-entity. But${a} is of built-in base type '${((h=r.getDataType())==null?void 0:h.entity).name}' and ${o} is of built-in base type '${((m=e.getDataType())==null?void 0:m.entity).name}'. They must be of the same built-in base type to be connected.`:l}function Ua(r,e){const t=[];if(r.readsValue){const i=e.project.get(N(r.readsValue));if(e.project.getBuiltIn(N(r.readsValue)))t.push(new E({id:`${e.id}--${f.InvalidBuiltInEntityReference}`,code:f.InvalidBuiltInEntityReference,severity:T.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to a built-in entity with id '${r.readsValue}'. Only user-created entities can be referenced.`,issue:null}));else if(!i)t.push(new E({id:`${e.id}--${f.ReferencedEntityNotFound}`,code:f.ReferencedEntityNotFound,severity:T.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity was not found in the project state.`,issue:null}));else{const s=er(i);if(s)t.push(new E({id:`${e.id}--${f.InvalidBuiltInEntityReference}`,code:f.InvalidBuiltInEntityReference,severity:T.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${C(s,e.project)}) higher up in the tree.`,issue:null}));else{const o=Ou({...e.toGenerationTarget(),...r},i);t.push(...o);const l=Ut(e.getDataType(),i.getDataType());l.compatible||t.push(new E({id:`${e.id}--${S.ReaderWriterIncompatibleDataType}`,code:S.ReaderWriterIncompatibleDataType,severity:T.Error,message:eA(e,i,l),issue:null}))}}}return{errors:t,modifiedData:r}}function Cn(r){const e=[];if(r.parent===r.project)r.calledBy.length
|
|
354
|
+
Both point to a built-in-base-entity. But${a} is of built-in base type '${((h=r.getDataType())==null?void 0:h.entity).name}' and ${o} is of built-in base type '${((m=e.getDataType())==null?void 0:m.entity).name}'. They must be of the same built-in base type to be connected.`:l}function Ua(r,e){const t=[];if(r.readsValue){const i=e.project.get(N(r.readsValue));if(e.project.getBuiltIn(N(r.readsValue)))t.push(new E({id:`${e.id}--${f.InvalidBuiltInEntityReference}`,code:f.InvalidBuiltInEntityReference,severity:T.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to a built-in entity with id '${r.readsValue}'. Only user-created entities can be referenced.`,issue:null}));else if(!i)t.push(new E({id:`${e.id}--${f.ReferencedEntityNotFound}`,code:f.ReferencedEntityNotFound,severity:T.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity was not found in the project state.`,issue:null}));else{const s=er(i);if(s)t.push(new E({id:`${e.id}--${f.InvalidBuiltInEntityReference}`,code:f.InvalidBuiltInEntityReference,severity:T.Error,message:`The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${C(s,e.project)}) higher up in the tree.`,issue:null}));else{const o=Ou({...e.toGenerationTarget(),...r},i);t.push(...o);const l=Ut(e.getDataType(),i.getDataType());l.compatible||t.push(new E({id:`${e.id}--${S.ReaderWriterIncompatibleDataType}`,code:S.ReaderWriterIncompatibleDataType,severity:T.Error,message:eA(e,i,l),issue:null}))}}}return{errors:t,modifiedData:r}}function Cn(r){const e=[];if(r.parent===r.project)!r.calledBy.length&&r.type!==n.VariableDeclaration&&e.push(new Tr({id:`${r.id}--${M.DisconnectedCallableEntity}`,code:M.DisconnectedCallableEntity,severity:T.Warning,message:`This '${r.type}' entity "${C(r,r.project)}" with id "${r.id}" is globally declared and isn't called by any other entity.
|
|
355
355
|
Globally declared callable entities will not be part of any logic execution when the project is published.
|
|
356
356
|
To useful to the project when it is published, entities need to be called by a chain of logic that traces itself back to an entry point. Entry points can be either '${n.GlobalEvent}' or '${n.FunctionDeclaration}'.
|
|
357
357
|
The only use for declaring global callable entities is for a 'variable-declaration' entity to be available globally in the project's scope, since its instances can be used inside lower scopes.
|
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.6081",
|
|
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",
|