htmx.org 2.0.8 → 4.0.0-alpha2

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 (48) hide show
  1. package/README.md +2 -2
  2. package/dist/editors/jetbrains/htmx.svg +46 -0
  3. package/dist/editors/jetbrains/htmx_dark.svg +46 -0
  4. package/dist/ext/hx-live.js +624 -0
  5. package/dist/ext/hx-live.min.js +1 -0
  6. package/dist/ext/hx-live.min.js.map +1 -0
  7. package/dist/ext/hx-optimistic.js +81 -0
  8. package/dist/ext/hx-optimistic.min.js +1 -0
  9. package/dist/ext/hx-optimistic.min.js.map +1 -0
  10. package/dist/ext/hx-preload.js +83 -0
  11. package/dist/ext/hx-preload.min.js +1 -0
  12. package/dist/ext/hx-preload.min.js.map +1 -0
  13. package/dist/htmx.esm.js +2093 -5184
  14. package/dist/htmx.esm.min.js +1 -0
  15. package/dist/htmx.esm.min.js.map +1 -0
  16. package/dist/htmx.js +2093 -5185
  17. package/dist/htmx.min.js +1 -1
  18. package/dist/htmx.min.js.map +1 -0
  19. package/package.json +44 -81
  20. package/dist/ext/README.md +0 -9
  21. package/dist/ext/ajax-header.js +0 -11
  22. package/dist/ext/alpine-morph.js +0 -20
  23. package/dist/ext/class-tools.js +0 -97
  24. package/dist/ext/client-side-templates.js +0 -100
  25. package/dist/ext/debug.js +0 -15
  26. package/dist/ext/disable-element.js +0 -20
  27. package/dist/ext/event-header.js +0 -41
  28. package/dist/ext/head-support.js +0 -146
  29. package/dist/ext/include-vals.js +0 -28
  30. package/dist/ext/json-enc.js +0 -16
  31. package/dist/ext/loading-states.js +0 -189
  32. package/dist/ext/method-override.js +0 -15
  33. package/dist/ext/morphdom-swap.js +0 -21
  34. package/dist/ext/multi-swap.js +0 -50
  35. package/dist/ext/path-deps.js +0 -63
  36. package/dist/ext/path-params.js +0 -15
  37. package/dist/ext/preload.js +0 -151
  38. package/dist/ext/rails-method.js +0 -14
  39. package/dist/ext/remove-me.js +0 -31
  40. package/dist/ext/response-targets.js +0 -135
  41. package/dist/ext/restored.js +0 -19
  42. package/dist/ext/sse.js +0 -374
  43. package/dist/ext/ws.js +0 -481
  44. package/dist/htmx.amd.js +0 -5347
  45. package/dist/htmx.cjs.js +0 -5345
  46. package/dist/htmx.esm.d.ts +0 -219
  47. package/dist/htmx.min.js.gz +0 -0
  48. /package/{editors → dist/editors}/jetbrains/htmx.web-types.json +0 -0
package/README.md CHANGED
@@ -41,7 +41,7 @@ By removing these arbitrary constraints htmx completes HTML as a
41
41
 
42
42
  The [`hx-post`](https://htmx.org/attributes/hx-post) and [`hx-swap`](https://htmx.org/attributes/hx-swap) attributes tell htmx:
43
43
 
44
- > "When a user clicks on this button, issue an AJAX request to /clicked, and replace the entire button with the response"
44
+ > When a user clicks on this button, issue an AJAX request to /clicked, and replace the entire button with the response
45
45
 
46
46
  htmx is the successor to [intercooler.js](http://intercoolerjs.org)
47
47
 
@@ -61,7 +61,7 @@ Note there is an old broken package called `htmx`. This is `htmx.org`.
61
61
  * <https://htmx.org/docs>
62
62
 
63
63
  ## contributing
64
- Want to contribute? Check out our [contribution guidelines](CONTRIBUTING.md)
64
+ Want to contribute? Check out our [contribution guidelines](dev/CONTRIBUTING.md)
65
65
 
66
66
  No time? Then [become a sponsor](https://github.com/sponsors/bigskysoftware#sponsors)
67
67
 
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="16"
4
+ height="16"
5
+ viewBox="0 0 256 256"
6
+ version="1.1"
7
+ id="svg13"
8
+ sodipodi:docname="htmx.svg"
9
+ inkscape:version="1.2.1 (9c6d41e, 2022-07-14)"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ xmlns:svg="http://www.w3.org/2000/svg">
14
+ <defs
15
+ id="defs17" />
16
+ <sodipodi:namedview
17
+ id="namedview15"
18
+ pagecolor="#505050"
19
+ bordercolor="#eeeeee"
20
+ borderopacity="1"
21
+ inkscape:showpageshadow="0"
22
+ inkscape:pageopacity="0"
23
+ inkscape:pagecheckerboard="0"
24
+ inkscape:deskcolor="#505050"
25
+ showgrid="false"
26
+ inkscape:zoom="32"
27
+ inkscape:cx="0.859375"
28
+ inkscape:cy="8.90625"
29
+ inkscape:window-width="1489"
30
+ inkscape:window-height="998"
31
+ inkscape:window-x="0"
32
+ inkscape:window-y="25"
33
+ inkscape:window-maximized="0"
34
+ inkscape:current-layer="svg13" />
35
+ <path
36
+ fill="#3d72d7"
37
+ d="M 92.875785,213.11596 140.82049,41.850192 a 2.3748439,2.8675381 0 0 1 2.49698,-1.93354 l 19.88084,2.45789 a 2.3748439,2.8675381 0 0 1 2.022,3.752378 l -46.81835,168.90619 a 2.3748439,2.8675381 0 0 1 -2.2527,1.96631 l -21.034336,-0.0983 a 2.3748439,2.8675381 0 0 1 -2.239139,-3.78515 z"
38
+ id="path9"
39
+ style="stroke-width:1.49119" />
40
+ <path
41
+ fill="#333333"
42
+ d="m 33.830382,133.30008 c -1.592276,0.75375 -1.583229,1.4802 0.02714,2.17933 16.438443,7.17704 32.28883,13.91165 47.551159,20.20386 0.727419,0.30748 1.219852,1.12423 1.234919,2.04824 -0.214237,10.63702 -0.384508,19.1784 -0.401503,28.62622 -0.325692,1.01593 -1.52099,1.31634 -2.353315,0.90122 L 2.3060265,148.37514 c -0.357622,-0.18597 -0.5802653,-0.61873 -0.556392,-1.08148 l 0.123809,-25.31188 c 0.024863,-0.63224 0.8744512,-1.12426 1.7082134,-1.57743 L 79.440954,81.143657 c 0.804287,-0.421268 2.617287,0.182689 2.875279,1.21475 -0.180356,10.46196 0.296376,20.583873 0.286657,29.345013 -0.018,0.48554 -0.274377,0.9112 -0.651386,1.08148 -16.752569,7.66439 -33.358905,14.70553 -48.121122,20.51518 z m 189.580388,-0.27856 -48.43324,-20.41687 c -0.0776,-10.64493 -0.0238,-13.917539 0.0176,-30.506823 0.1719,-0.546198 0.98658,-0.599141 1.44798,-0.446206 27.0655,12.611655 55.00987,27.040189 77.98987,38.588869 0.52473,0.26218 0.78709,0.73737 0.78709,1.42558 l 0.0407,25.7423 c -0.001,0.63571 -0.31626,1.2093 -0.80066,1.45835 l -77.22992,38.50694 c -1.24994,0.10087 -2.28748,-0.64701 -2.43862,-1.68019 -0.12039,-9.77693 -0.0127,-18.13379 -0.11264,-28.51909 0.0323,-0.59314 0.35336,-1.10357 0.81423,-1.29449 16.72794,-6.80562 32.70951,-13.7314 47.94471,-20.77736 1.56513,-0.72098 1.5561,-1.41465 -0.0271,-2.08101 z"
43
+ id="path11"
44
+ style="stroke-width:1.49119"
45
+ sodipodi:nodetypes="ccccccccccccccccccccccccccccsc" />
46
+ </svg>
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="16"
4
+ height="16"
5
+ viewBox="0 0 256 256"
6
+ version="1.1"
7
+ id="svg287"
8
+ sodipodi:docname="htmx_dark.svg"
9
+ inkscape:version="1.2.1 (9c6d41e, 2022-07-14)"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ xmlns:svg="http://www.w3.org/2000/svg">
14
+ <defs
15
+ id="defs291" />
16
+ <sodipodi:namedview
17
+ id="namedview289"
18
+ pagecolor="#505050"
19
+ bordercolor="#eeeeee"
20
+ borderopacity="1"
21
+ inkscape:showpageshadow="0"
22
+ inkscape:pageopacity="0"
23
+ inkscape:pagecheckerboard="0"
24
+ inkscape:deskcolor="#505050"
25
+ showgrid="false"
26
+ inkscape:zoom="27.40625"
27
+ inkscape:cx="6.3854048"
28
+ inkscape:cy="7.3705815"
29
+ inkscape:window-width="1259"
30
+ inkscape:window-height="820"
31
+ inkscape:window-x="2060"
32
+ inkscape:window-y="25"
33
+ inkscape:window-maximized="0"
34
+ inkscape:current-layer="svg287" />
35
+ <path
36
+ fill="#3d72d7"
37
+ d="m 92.80931,211.93595 47.9447,-171.265771 a 2.3748439,2.8675381 0 0 1 2.49698,-1.93354 l 19.88084,2.45789 a 2.3748439,2.8675381 0 0 1 2.022,3.75238 L 118.33548,213.8531 a 2.3748439,2.8675381 0 0 1 -2.2527,1.96631 l -21.034331,-0.0983 a 2.3748439,2.8675381 0 0 1 -2.239139,-3.78515 z"
38
+ id="path9"
39
+ style="stroke-width:1.49119" />
40
+ <path
41
+ fill="#333333"
42
+ d="m 33.763907,132.12007 c -1.592276,0.75375 -1.583229,1.4802 0.02714,2.17933 16.438443,7.17704 32.28883,13.91165 47.551159,20.20386 0.727419,0.30748 1.219852,1.12423 1.234919,2.04824 -0.214237,10.63702 -0.384508,19.1784 -0.401503,28.62622 -0.325692,1.01593 -1.52099,1.31634 -2.353315,0.90122 L 2.2395547,147.19513 c -0.35763,-0.18597 -0.58027,-0.61873 -0.5564,-1.08148 l 0.12381,-25.31188 c 0.0249,-0.63224 0.87445,-1.12426 1.70822,-1.57743 L 79.374479,79.963647 c 0.804287,-0.42127 2.617287,0.18269 2.875279,1.21475 -0.180356,10.46196 0.296376,20.583873 0.286657,29.345013 -0.018,0.48554 -0.274377,0.9112 -0.651386,1.08148 -16.752569,7.66439 -33.358905,14.70553 -48.121122,20.51518 z m 189.580383,-0.27856 -48.43324,-20.41687 c -0.0776,-10.64493 -0.0238,-13.917543 0.0176,-30.506823 0.1719,-0.5462 0.98658,-0.59914 1.44798,-0.44621 27.0655,12.61166 55.00987,27.040193 77.98987,38.588873 0.52473,0.26218 0.78709,0.73737 0.78709,1.42558 l 0.0407,25.7423 c -0.001,0.63571 -0.31626,1.2093 -0.80066,1.45835 l -77.22992,38.50694 c -1.24994,0.10087 -2.28748,-0.64701 -2.43862,-1.68019 -0.12039,-9.77693 -0.0127,-18.13379 -0.11264,-28.51909 0.0323,-0.59314 0.35336,-1.10357 0.81423,-1.29449 16.72794,-6.80562 32.70951,-13.7314 47.94471,-20.77736 1.56513,-0.72098 1.5561,-1.41465 -0.0271,-2.08101 z"
43
+ id="path11"
44
+ style="stroke-width:1.49119;fill:#f5f5f5;fill-opacity:1"
45
+ sodipodi:nodetypes="ccccccccccccccccccccccccccccsc" />
46
+ </svg>