3137 Commits

Author SHA1 Message Date
Adam Johnson
9bae00b698
Update installing download link to v2 (#2791) 2024-08-09 12:07:00 -04:00
ekzyis
f925e83b95
Add HTML comment and catch-all to responseHandling config via <meta> tag (#2793)
* Add HTML comment that was removed

* Add catch-all

---------

Co-authored-by: ekzyis <ekzyis@ekzy.is>
2024-08-09 11:49:24 -04:00
Serge Bornow
bb733a88f1
Update CONTRIBUTING.md - fixing a link (#2795)
* Update CONTRIBUTING.md  - fixing a link, wording

Excited to see this unframework framework as a long time (since 1998 coder) HTML appreciator. 

I wanted to learn about extensions but noticed a broken link that others might stumble upon. 

Consider rephrasing a question to invite a person to contribute their issue. (this can be ignored if you like).

* Update CONTRIBUTING.md

Removed change to grammar/style of writing back to original.
Providing a more updated reference to extensions with greater detail.
2024-08-09 17:23:45 +02:00
Carson Gross
b61077697d changelog for release 2024-08-05 14:07:57 -06:00
Carson Gross
0322b8782e release prep 2024-08-05 13:54:49 -06:00
Carson Gross
82355a741d release prep 2024-08-05 13:53:33 -06:00
Carson Gross
97b8c68dd3 release prep 2024-08-05 13:53:08 -06:00
Carson Gross
b1d6135dca add htmx:trigger for throttled events too 2024-08-05 13:48:37 -06:00
Kyungmin Bae
27412551a5
fix: Fire htmx:trigger event on delayed triggers (#2411)
* Add test on htmx:trigger for delayed triggers

* Fire htmx:trigger event on delayed triggers
2024-08-05 13:47:58 -06:00
Carson Gross
df3fd8fe28 Merge remote-tracking branch 'origin/dev' into dev 2024-08-05 13:46:28 -06:00
Carson Gross
42343d9194 Merge branch 'master' into dev 2024-08-05 13:41:37 -06:00
Carson Gross
eb32358873 add a catchall to the docs 2024-08-05 13:41:28 -06:00
ekzyis
e2b671d2f5
Fix example for responseHandling config via <meta> tag (#2715)
The current example throws this error:

  htmx.js:2914 SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)
    at JSON.parse (<anonymous>)
    at parseJSON (htmx.js:816:19)
    at getMetaConfig (htmx.js:4902:14)
    at mergeMetaConfig (htmx.js:4909:24)
    at HTMLDocument.<anonymous> (htmx.js:4917:5)

Co-authored-by: ekzyis <ekzyis@ekzy.is>
2024-08-05 13:40:16 -06:00
pokonski
ee9b0e0390
Do not boost forms with method="dialog" (#2752)
* Do not boost forms with method="dialog"

* Clean up
2024-08-05 13:38:51 -06:00
Vincent
941e94fb98
Fix file upload through htmx.ajax (#2778)
* Fix File values handling in formDataFromObject

Fixes #2630

* Test file input upload + htmx.ajax file upload
2024-08-05 13:38:21 -06:00
Carson Gross
084df38c31 only removed templates explicitly used for encapsulating oob swaps
fixes https://github.com/bigskysoftware/htmx/issues/2776
2024-08-05 13:37:31 -06:00
Carson Gross
ce46e436fd handle situation where body has been deleted
fixes https://github.com/bigskysoftware/htmx/issues/2710
2024-08-05 13:18:03 -06:00
Carson Gross
89dc9bea2e Merge remote-tracking branch 'origin/dev' into dev 2024-08-05 13:12:22 -06:00
Carson Gross
0ace4a731c scan through all siblings (not just until the first non-element) when doing an outerHTML swap to add things to settle
fixes https://github.com/bigskysoftware/htmx/issues/2787
2024-08-05 13:12:13 -06:00
Carson Gross
df16ed8e96 manual test for keeping indicators visible 2024-08-05 12:29:33 -06:00
Carson Gross
e99d8976f5 Manual test to ensure disabled elements are scrubbed when saving history 2024-08-05 12:22:51 -06:00
M Somerville
13b44b7897
Fix inlineStyleNonce typo in reference (#2785) 2024-08-03 19:45:37 +02:00
Carson Gross
a575ad20f0 use attributes rather than request count since we are working on a clone of the original DOM 2024-08-01 13:44:31 -06:00
Carson Gross
115f2cf210 remove disabled attributes from anything disabled due to an htmx request when snapshotting for history 2024-08-01 12:59:42 -06:00
Carson Gross
116c8619d5 allow response actions (such as full page refreshes) to retain htmx indicators during the response handling 2024-08-01 12:56:24 -06:00
Jonas Högman
45d4bec43f
Fix typo in update-other-content.md (#2783)
Co-authored-by: Jonas Hogman <jonas.hogman@seb.se>
2024-08-01 11:27:06 +02:00
Alexandre Spaeth
a30e96b553
Fix package.json configuration for types (#2769)
* Generate .d.ts file from the esm module (#2733)

* Fix types annotation filename in package.json (#2734)

---------

Co-authored-by: Alexandre Spaeth <alex_erson@users.noreply.github.com>
2024-07-29 17:54:06 -04:00
Ben Croker
a44a1b3c34
Add ability to trigger an event on another element using HX-Trigger response header (#2768)
* Update htmx.js

* Update htmx.js

* Update headers.js

* Update htmx.js

* Update htmx.js

* Update htmx.js

* Update hx-trigger.md
2024-07-29 10:33:24 -06:00
Jan-Niklas W.
0f70de7c0f
docs: update jetbrains sponsor logo (#2551)
* docs: update jetbrains sponsor logo

* docs: support light and dark theme for jetbrains logo

---------

Co-authored-by: Jan-Niklas Wortmann <jan-niklas.wortmann@jetbrains.com>
2024-07-26 00:32:59 -04:00
Igor Berlenko
49b5dae073
fixed typo in hx-trigger.js (#2728)
Update hx-trigger.js
2024-07-26 00:27:22 -04:00
Alexandre Spaeth
6a800e8085
Generate .d.ts file from the esm module (#2733) (#2734)
Co-authored-by: Alexandre Spaeth <alex_erson@users.noreply.github.com>
2024-07-26 00:26:59 -04:00
Vincent
81b401a83d
Fix: stringify objects when appending them to FormData (#2748) 2024-07-26 00:24:24 -04:00
Vincent
bec3657a81
Fix: values order with non-GET requests (#2749)
Fix values order with non-GET requests #2703
2024-07-26 00:22:59 -04:00
Daniel J. Summers
45566e126e
Bump Zola version to 0.19.1 (#2739) 2024-07-17 22:07:07 -06:00
Bobae Kang
bc0eebfb3e
Stop center aligning docs nav on small screen (#2740) 2024-07-17 20:09:04 -06:00
ASMag
4a2289d1ca
Update README.md - fix url to htmx extensions (#2732)
Update README.md

fix url to htmx extensions
2024-07-17 08:58:39 +02:00
Ben Croker
1c1e4faab9
Fix default scrollBehavior value in docs (#2729)
* Update reference.md

* Update htmx.js

* Update reference.md
2024-07-16 08:18:11 +02:00
dependabot[bot]
7ce7b4878b
Bump ws from 8.14.2 to 8.17.1 (#2718)
Bumps [ws](https://github.com/websockets/ws) from 8.14.2 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.14.2...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-13 14:17:06 -04:00
Johannes Przymusinski
cbb2b46de2
fix: type definitions for HtmxExtension (#2721) 2024-07-13 19:44:08 +02:00
Ronald Cantillo
1136d26353
fix: example buttons in darkmode (#2719) 2024-07-13 09:17:59 +02:00
Kyah Rindlisbacher
c8418332de
Correct hx-delete doc-url to https://htmx.org/attributes/hx-delete/ (#2716) 2024-07-13 09:07:04 +02:00
Carson Gross
79e084542c update CHANGELOG.md v2.0.1 2024-07-12 11:21:54 -06:00
Carson Gross
2f38ac7c55 add sha as an npm command and update for release 2024-07-12 11:16:04 -06:00
Carson Gross
2925d2c30e update changelog 2024-07-12 11:14:29 -06:00
Carson Gross
b2791a7b62 update release 2024-07-12 11:13:32 -06:00
Carson Gross
c3ecbcc8d8 update release 2024-07-12 11:13:29 -06:00
Carson Gross
f751aba86f remove only top level files to keep the legacy extensions 2024-07-12 11:12:56 -06:00
Carson Gross
ee13ae744a Merge remote-tracking branch 'origin/dev' into dev 2024-07-12 11:12:20 -06:00
Kuberdenis
0f3b2b4a92
Let templates have plaintext as contents (fixes 2702) (#2708)
let templates have plaintext as contents (fixes 2702)
2024-07-12 11:11:42 -06:00
Carson Gross
f38e057397 Merge branch 'master' into dev 2024-07-11 18:50:16 -06:00