@constela/language-server 0.1.16 → 0.1.18

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -77,6 +77,7 @@ import { CompletionItemKind } from "vscode-languageserver";
77
77
  var EXPR_TYPES = [
78
78
  { label: "lit", detail: "Literal expression - represents a constant value", kind: CompletionItemKind.Value },
79
79
  { label: "state", detail: "State expression - references a state field", kind: CompletionItemKind.Value },
80
+ { label: "local", detail: "Local state expression - references a component's local state", kind: CompletionItemKind.Value },
80
81
  { label: "var", detail: "Variable expression - references a loop variable or event data", kind: CompletionItemKind.Value },
81
82
  { label: "bin", detail: "Binary expression - arithmetic, comparison, or logical operation", kind: CompletionItemKind.Value },
82
83
  { label: "not", detail: "Not expression - logical negation", kind: CompletionItemKind.Value },
@@ -93,7 +94,8 @@ var EXPR_TYPES = [
93
94
  { label: "validity", detail: "Validity expression - gets form element validation state", kind: CompletionItemKind.Value },
94
95
  { label: "call", detail: "Call expression - calls a method on a target", kind: CompletionItemKind.Method },
95
96
  { label: "lambda", detail: "Lambda expression - anonymous function for array methods", kind: CompletionItemKind.Method },
96
- { label: "array", detail: "Array expression - constructs an array from expressions", kind: CompletionItemKind.Value }
97
+ { label: "array", detail: "Array expression - constructs an array from expressions", kind: CompletionItemKind.Value },
98
+ { label: "obj", detail: "Object expression - constructs an object from key-value pairs", kind: CompletionItemKind.Value }
97
99
  ];
98
100
  var ACTION_STEPS = [
99
101
  { label: "set", detail: "Set step - sets a state field to a new value", kind: CompletionItemKind.Function },
@@ -250,6 +252,10 @@ var EXPR_DOCS = {
250
252
  signature: '{ "expr": "state", "name": string, "path"?: string }',
251
253
  description: "State expression - references a state field"
252
254
  },
255
+ local: {
256
+ signature: '{ "expr": "local", "name": string }',
257
+ description: "Local state expression - references a component's local state"
258
+ },
253
259
  var: {
254
260
  signature: '{ "expr": "var", "name": string, "path"?: string }',
255
261
  description: "Variable expression - references a loop variable or event data"
@@ -317,6 +323,10 @@ var EXPR_DOCS = {
317
323
  array: {
318
324
  signature: '{ "expr": "array", "elements": Expression[] }',
319
325
  description: "Array expression - constructs an array from expressions"
326
+ },
327
+ obj: {
328
+ signature: '{ "expr": "obj", "props": Record<string, Expression> }',
329
+ description: "Object expression - constructs an object from key-value pairs"
320
330
  }
321
331
  };
322
332
  var ACTION_DOCS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/language-server",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Language Server Protocol implementation for Constela DSL",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,8 +23,8 @@
23
23
  "vscode-languageserver-textdocument": "^1.0.12",
24
24
  "vscode-jsonrpc": "^8.2.1",
25
25
  "jsonc-parser": "^3.3.1",
26
- "@constela/core": "0.18.0",
27
- "@constela/compiler": "0.15.6"
26
+ "@constela/compiler": "0.15.8",
27
+ "@constela/core": "0.18.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^20.10.0",