symfony-expression-editor 0.1.0
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/CHANGELOG.md +7 -0
- package/README.md +21 -0
- package/dist/index.cjs +1886 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +1884 -0
- package/example.html +46 -0
- package/package.json +48 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Symfony Expression Editor Web Component
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
### What
|
|
5
|
+
|
|
6
|
+
Enhance regular `<textarea>` element with linting, syntax highlighting, autocompletion etc.
|
|
7
|
+
Contains styles so that it looks like built-in **Bootstrap 5.3** component. Editor styles are reactive to `data-bs-theme` attributes.
|
|
8
|
+
|
|
9
|
+
### Why
|
|
10
|
+
|
|
11
|
+
Configuring CodeMirror and making it blend into UI can be tricky
|
|
12
|
+
|
|
13
|
+
### How to use
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
17
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/symfony-expression-editor@1.0.0/+esm"></script>
|
|
18
|
+
<textarea class="form-control" is="expression-editor" rows="1">'foobar' starts with 'foo'</textarea>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+

|