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 ADDED
@@ -0,0 +1,7 @@
1
+ CHANGELOG
2
+ =========
3
+
4
+ 0.1.0
5
+ ---
6
+
7
+ * Initial release
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
+ ![image](https://github.com/user-attachments/assets/4681f02b-f974-429e-a6df-559c2069ab7c)