htmx.org 2.0.4 → 2.0.6
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/README.md +3 -5
- package/dist/ext/response-targets.js +1 -1
- package/dist/htmx.amd.js +485 -436
- package/dist/htmx.cjs.js +485 -436
- package/dist/htmx.esm.d.ts +8 -2
- package/dist/htmx.esm.js +485 -436
- package/dist/htmx.js +485 -436
- package/dist/htmx.min.js +1 -1
- package/dist/htmx.min.js.gz +0 -0
- package/editors/jetbrains/htmx.web-types.json +398 -85
- package/package.json +32 -15
package/README.md
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
## introduction
|
|
11
11
|
|
|
12
12
|
htmx allows you to access [AJAX](https://htmx.org/docs#ajax), [CSS Transitions](https://htmx.org/docs#css_transitions),
|
|
13
|
-
[WebSockets](https://htmx.org/
|
|
13
|
+
[WebSockets](https://htmx.org/extensions/ws/) and [Server Sent Events](https://htmx.org/extensions/sse/)
|
|
14
14
|
directly in HTML, using [attributes](https://htmx.org/reference#attributes), so you can build
|
|
15
15
|
[modern user interfaces](https://htmx.org/examples) with the [simplicity](https://en.wikipedia.org/wiki/HATEOAS) and
|
|
16
16
|
[power](https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm) of hypertext
|
|
17
17
|
|
|
18
|
-
htmx is small ([~14k min.gz'd](https://
|
|
18
|
+
htmx is small ([~14k min.gz'd](https://cdn.jsdelivr.net/npm/htmx.org/dist/)),
|
|
19
19
|
[dependency-free](https://github.com/bigskysoftware/htmx/blob/master/package.json) &
|
|
20
20
|
[extendable](https://htmx.org/extensions)
|
|
21
21
|
|
|
@@ -32,7 +32,7 @@ By removing these arbitrary constraints htmx completes HTML as a
|
|
|
32
32
|
## quick start
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
|
-
<script src="https://
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.6/dist/htmx.min.js"></script>
|
|
36
36
|
<!-- have a button POST a click via AJAX -->
|
|
37
37
|
<button hx-post="/clicked" hx-swap="outerHTML">
|
|
38
38
|
Click Me
|
|
@@ -99,8 +99,6 @@ At this point you can modify `/src/htmx.js` to add features, and then add tests
|
|
|
99
99
|
htmx uses the [mocha](https://mochajs.org/) testing framework, the [chai](https://www.chaijs.com/) assertion framework
|
|
100
100
|
and [sinon](https://sinonjs.org/releases/v9/fake-xhr-and-server/) to mock out AJAX requests. They are all OK.
|
|
101
101
|
|
|
102
|
-
You can also run live tests and demo of the WebSockets and Server-Side Events extensions with `npm run ws-tests`
|
|
103
|
-
|
|
104
102
|
## haiku
|
|
105
103
|
|
|
106
104
|
*javascript fatigue:<br/>
|