2147 Commits

Author SHA1 Message Date
Nicolas Appriou
1e1b7cf94a
escape colons in querySelector (#1314)
thank you!
2023-04-01 17:36:15 -06:00
Carson Gross
32edfba6f2 fix 2023-03-31 13:55:47 -06:00
Carson Gross
c11b84120d better example 2023-03-31 13:53:16 -06:00
Carson Gross
2a2fc75c0a formatting 2023-03-31 12:44:55 -06:00
Carson Gross
9a73bdf0d5 formatting 2023-03-31 12:40:08 -06:00
Carson Gross
afcda982e0 1.9.0 www stuff 2023-03-31 12:38:20 -06:00
Carson Gross
39853f0cc6 view transition demo 2023-03-31 12:37:01 -06:00
Carson Gross
5e12b33ed1 1.9.0 release prep 2023-03-31 07:07:34 -06:00
Carson Gross
0ae246053e update changelog 2023-03-31 06:54:42 -06:00
Carson Gross
b4e6c5cbd5 hx-on attribute 2023-03-31 06:44:01 -06:00
Carson Gross
2713a3ada0 Merge branch 'dev' into hx-on-experiment
# Conflicts:
#	src/htmx.js
#	test/scratch/scratch.html
2023-03-31 05:12:32 -06:00
Carson Gross
f02a02904a Architectural sympathy essay 2023-03-30 10:48:02 -06:00
Carson Gross
44dc3255af Merge remote-tracking branch 'origin/dev' into dev 2023-03-28 14:15:13 -06:00
Carson Gross
fd87ffd516 Experimental support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API) 2023-03-28 14:15:00 -06:00
Mark Croxton
8cd3a480a7
Nullify unreachable references to dom nodes inside setTimeout(), to allow garbage collection. (#1330) 2023-03-28 13:28:39 -06:00
Alexander Petros
5a5ebd7693
Add support for "naked" triggers and htmx:trigger event (#1327)
The `htmx:trigger` event is fired whenever an HTMX AJAX request would
be. Now, `hx-trigger` can also be specified on an element without an
AJAX request, which will simply fire the `htmx:trigger` event on the
action specified by the attribute, and do nothing else.

This pattern allows for specifying client-side actions that don't
require a network request, while remaining within the HTMX control
paradigm.
2023-03-28 09:14:16 -06:00
Carson Gross
a96189ed5e another take on generalized event handling w/ and hx-on attribute 2023-03-18 21:03:18 -06:00
Carson Gross
36780c034f bump version 2023-03-15 16:25:52 -06:00
Carson Gross
09565cde1b fix hamburger 2023-03-15 15:43:49 -06:00
Patricio Del Boca
560b314074
Remove reference to Python 2 in README.md (#1321) 2023-03-13 17:14:11 -06:00
Carson Gross
58558a10ce jeeze this is ridiculous 2023-03-02 16:54:47 -07:00
Carson Gross
8c75dad6e6 release cleanup 2023-03-02 16:51:39 -07:00
Carson Gross
d20919ad6c release cleanup 2023-03-02 16:46:48 -07:00
Carson Gross
5785e0c8e7 update SHA v1.8.6 2023-03-02 14:48:34 -07:00
Carson Gross
15d4cacbf3 prep 1.8.6 tests 2023-03-02 13:13:01 -07:00
Carson Gross
6a81e177e2 update changelog 2023-03-02 13:01:46 -07:00
Carson Gross
5de968e933 Merge branch 'master' into dev 2023-03-02 12:49:03 -07:00
Fredrik Vaeng Røtnes
03a286648d
Fix typo in comment (#1308) 2023-03-01 12:18:46 -07:00
Deniz Akşimşek
017a37119d
Vanquish Sass (#1312) 2023-03-01 12:02:01 -07:00
Aral Balkan
315f797a21
Closes #1243: Document Python 2 dependency (#1245)
(And very minor formatting clean-up.)
2023-02-24 11:04:18 -07:00
Aral Balkan
f79fec8176
Fixes #1246: ws extension socketWrapper methods are undefined (#1247) 2023-02-24 11:03:45 -07:00
Epidiah Ravachol
a6701de473
class-tools extension only handling the last operation fix (#1258)
* fix class-tools issue

* Popped performOperation and toggleOperation out of processClassList
2023-02-24 11:02:51 -07:00
Eric Kwoka
746b9cd1ab
🏷️ types ajax return (#1265) 2023-02-24 11:02:15 -07:00
Carson Gross
f84029badb fix https://github.com/bigskysoftware/htmx/issues/1264
update target to result of `beforeSwap` event
2023-02-24 11:01:53 -07:00
Carson Gross
26bd4002d0 Merge remote-tracking branch 'origin/dev' into dev 2023-02-23 13:48:14 -07:00
Carson Gross
bed3d25d2c fix https://github.com/bigskysoftware/htmx/issues/1259
store initial value on init of event listener so first trigger has correct value to compare against
2023-02-23 13:48:05 -07:00
Ahmed Lemine
160e2a4fc2
Closed open div's (#1239)
Closed two 'div' tags in the initial state code and in the response code that were never closed.
2023-02-23 07:27:42 -07:00
Aral Balkan
ee09ae7a51
Closes #1241: Add wsConnecting event (#1248)
* Closes #1241: Add wsConnecting event

* Remove redundant tests

(The separate tests for connecting, open, and close events are handled by the one lifecycle event test which both tests that the events are called as expected and in the order expected.)

* Add event.type to detail object of wsConnecting event

(This makes the event polymorphic for this property path with the other lifecycle events – wsOpen and wsClose – which proxy the underlying socket’s event object. This means all lifecycle events can be handled by one handler – e.g., a status indication function – if desired.)

* Minor: Add missing semicolon

* Document wsConnecting event

(And fix two tiny grammar issues.)
2023-02-23 07:23:50 -07:00
Derek Kniffin
a85ad4ac67
Update UMD wrapper to include ESM support (#1263)
thank you!
2023-02-23 07:23:34 -07:00
Dave Gaeddert
66d59283e3
Add delete to docs.md swapping list (#1209) 2023-02-22 12:31:08 -07:00
Ahmed Lemine
a7affc95d0
Fixed typo (#1238)
Fixed "for simplicities sake" to "For simplicity’s sake".
Fixed "The div has the same id in the original an in the new content" to "The div has the same id in the original and in the new content".
2023-02-22 12:30:47 -07:00
Carson Gross
704739d1f0 fix https://github.com/bigskysoftware/htmx/issues/1236
handle single quotes in ids properly by escaping them in selectors
2023-02-16 11:11:50 -07:00
Carson Gross
ef02709a3e bump version 2023-02-16 09:25:34 -07:00
Carson Gross
34b2d8f022 Merge branch 'master' into dev 2023-02-16 09:24:18 -07:00
Niels Dequeker
91573d1c45
Fix typo for the hx-sync documentation (#1255)
thank you!
2023-02-16 09:18:21 -07:00
Carson Gross
6101b011ca fix link 2023-02-03 08:57:22 -07:00
Carson Gross
2379965032 typo 2023-02-03 08:55:26 -07:00
Denis Palashevskii
a708395d46 Docs: Move extension script URL to the start of the page (#1232)
* Move extension script URL to the start of the page

* Improve visibility of installation instructions on /extensions page
2023-02-02 16:59:03 -07:00
Meet Rajesh Gor
503ed9527a
fix a typo in test-ws example (#1230) 2023-02-02 10:34:35 -07:00
Denis Palashevskii
f44b04f1a1
Docs: Move extension script URL to the start of the page (#1232)
* Move extension script URL to the start of the page

* Improve visibility of installation instructions on /extensions page
2023-02-02 10:34:17 -07:00