@agentix-e/spel-editor 1.1.1 → 1.1.3

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/README.md +34 -1
  2. package/package.json +17 -11
package/README.md CHANGED
@@ -3,7 +3,24 @@
3
3
  > Web-embeddable Spring Expression Language (SpEL) editor.
4
4
  > Based on CodeMirror 6 + spel-ts v1.1.0. Framework-agnostic Web Component.
5
5
 
6
- [![GitHub](https://img.shields.io/npm/v/@agentix-e/spel-editor)](https://www.npmjs.com/package/@agentix-e/spel-editor)
6
+ [![CI](https://github.com/AgentiX-E/spel-editor/actions/workflows/ci.yml/badge.svg)](https://github.com/AgentiX-E/spel-editor/actions/workflows/ci.yml)
7
+ [![npm](https://img.shields.io/npm/v/@agentix-e/spel-editor?color=blue)](https://www.npmjs.com/package/@agentix-e/spel-editor)
8
+ [![Docs](https://img.shields.io/badge/docs-TypeDoc-blue)](https://AgentiX-E.github.io/spel-editor/api/)
9
+ [![Coverage](https://img.shields.io/badge/coverage-report-blue)](https://AgentiX-E.github.io/spel-editor/coverage/)
10
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
11
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.8-blue)](https://www.typescriptlang.org/)
12
+ [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D18-green)](https://nodejs.org/)
13
+
14
+ ## What is @agentix-e/spel-editor?
15
+
16
+ `@agentix-e/spel-editor` is a **drop-in Web Component** that adds a full-featured SpEL expression editor to any web application. Built on CodeMirror 6 and powered by `@agentix-e/spel-ts` for real-time syntax validation, it provides syntax highlighting, auto-completion, diagnostics, and hover tooltips — with zero framework lock-in. Optionally integrates with `@agentix-e/nl2spel` for natural-language-to-SpEL generation.
17
+
18
+ ### When should I use it?
19
+
20
+ - You're building a **rules engine UI** that users edit SpEL expressions in
21
+ - You need a **code editor for expression languages** (not general-purpose code)
22
+ - You want **natural language input** converted to valid SpEL (via optional NL2SpEL integration)
23
+ - You need a **framework-agnostic** component that works with React, Vue, Angular, Svelte, or plain HTML
7
24
 
8
25
  ## Quick Start
9
26
 
@@ -39,6 +56,8 @@ npm install @agentix-e/spel-editor
39
56
 
40
57
  ## API Reference
41
58
 
59
+ > 📚 Full TypeDoc API documentation: [AgentiX-E.github.io/spel-editor/api/](https://AgentiX-E.github.io/spel-editor/api/)
60
+
42
61
  ### Properties (Attributes)
43
62
 
44
63
  | Property | Attribute | Type | Default | Description |
@@ -224,6 +243,20 @@ npm install @agentix-e/nl2spel-webllm @mlc-ai/web-llm
224
243
  | **DeepSeek / OpenAI** | `+ nl2spel-openai` | ✅ Required | ✅ Yes | `npm install` + API key |
225
244
  | **Browser-local LLM** | `+ nl2spel-webllm` | ❌ None | ❌ No | 1.5 GB model download |
226
245
 
246
+ ## FAQ
247
+
248
+ ### Which frameworks does it support?
249
+ All of them. `@agentix-e/spel-editor` is a native Web Component (`<spel-editor>`) that works with React, Vue, Angular, Svelte, or plain HTML with no framework-specific wrappers needed.
250
+
251
+ ### Do I need to install spel-ts separately?
252
+ No. `@agentix-e/spel-ts` is a direct dependency and is bundled automatically. NL2SpEL integration is an optional peer dependency — install it only if you need natural language → SpEL generation.
253
+
254
+ ### Can I customize the appearance?
255
+ Yes. 12 CSS custom properties (`--spel-bg`, `--spel-font-family`, `--spel-border-color`, etc.) give you complete visual control without forking or CSS hacks.
256
+
257
+ ### How does the NL integration work?
258
+ Three modes: **Pattern matching** (offline, zero deps), **LLM API** (DeepSeek/OpenAI, requires API key), and **browser-local LLM** (WebGPU + Gemma, ~1.5 GB model download). Choose based on your latency, privacy, and cost requirements.
259
+
227
260
  ## License
228
261
 
229
262
  MIT © AgentiX-E
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agentix-e/spel-editor",
3
- "version": "1.1.1",
4
- "description": "Web-embeddable Spring Expression Language (SpEL) editor — CodeMirror 6 + spel-ts powered",
3
+ "version": "1.1.3",
4
+ "description": "Web-embeddable Spring Expression Language (SpEL) editor — CodeMirror 6 + spel-ts powered, framework-agnostic Web Component with NL2SpEL integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "node": ">=18"
35
35
  },
36
36
  "dependencies": {
37
- "@agentix-e/spel-ts": "^1.1.0",
37
+ "@agentix-e/spel-ts": "^1.2.2",
38
38
  "@codemirror/autocomplete": "^6.0.0",
39
39
  "@codemirror/commands": "^6.0.0",
40
40
  "@codemirror/language": "^6.0.0",
@@ -52,8 +52,8 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "@agentix-e/nl2spel": "^1.1.2",
56
- "@agentix-e/nl2spel-openai": "^1.1.2",
55
+ "@agentix-e/nl2spel": "^1.3.0",
56
+ "@agentix-e/nl2spel-openai": "^1.3.0",
57
57
  "@playwright/test": "^1.61.1",
58
58
  "@vitest/coverage-v8": "^3.0.0",
59
59
  "jsdom": "^29.1.1",
@@ -65,12 +65,16 @@
65
65
  },
66
66
  "keywords": [
67
67
  "spel",
68
- "editor",
68
+ "spel-editor",
69
69
  "code-editor",
70
- "expression-language",
71
- "spring",
72
- "codemirror",
73
- "web-component"
70
+ "expression-editor",
71
+ "codemirror6",
72
+ "web-component",
73
+ "spring-expression-language",
74
+ "typescript",
75
+ "syntax-highlighting",
76
+ "autocomplete",
77
+ "nl2spel"
74
78
  ],
75
79
  "license": "MIT",
76
80
  "author": "AgentiX-E",
@@ -83,7 +87,9 @@
83
87
  },
84
88
  "homepage": "https://github.com/AgentiX-E/spel-editor#readme",
85
89
  "pnpm": {
86
- "onlyBuiltDependencies": ["esbuild"]
90
+ "onlyBuiltDependencies": [
91
+ "esbuild"
92
+ ]
87
93
  },
88
94
  "publishConfig": {
89
95
  "access": "public"