71 Commits

Author SHA1 Message Date
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
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
Carson Gross
4968c41e8b Merge branch 'master' into dev 2023-01-17 13:07:15 -07:00
Charles-Pierre Astolfi
075e43b567
Escape curly braces in the example (#1175)
Docs on the website are currently rendering incorrectly because of faulty escaping of curly braces (line 80 is rendered has `<p> and  and </> htmx - high power tools for html and </p>`). Unfortunately, this fix breaks the rendering of the file on github (there are extra `{% raw %}` directives), but I think it's better than the other way around.
2023-01-01 10:10:15 -06:00
Denis Palashevskii
36b017bc26
Add events support for WebSockets (#1126)
* Add events support for WebSockets

* Stop reconnection attempts after element has been removed

* Add tests for websockets

* Hide socker wrapper behind a more strict interface to avoid breaking changes in the future

* Fix legacy websocket tests interfering with new extension tests

* Minor doc fixes

* Add `wsBinaryType` configuration option
2022-12-03 16:53:59 -06:00
Carson Gross
6ec00b7bed update head-support.js 2022-10-28 10:17:27 -06:00
Carson Gross
ff8e146282 Merge branch 'master' into dev
# Conflicts:
#	www/extensions.md
2022-10-23 09:20:14 -06:00
Ján Regeš
34582b839c
extensions: added new extension 'multi-swap' with mocha tests and docs (#1096)
* extensions: added new extension 'multi-swap' with mocha tests and docs

* multi-swap extension: removed forgotten debug console.log()

* multi-swap extension: removed forgotten debug comment from mocha test
2022-10-23 08:59:03 -06:00
Carson Gross
7920588963 fix typo 2022-10-18 15:00:37 -06:00
Carson Gross
132d8807c6 fix typo 2022-10-18 15:00:12 -06:00
Carson Gross
9ec6ed4f9c better docs 2022-10-18 13:50:13 -06:00
Carson Gross
accd55d4e8 document the new head-support extension 2022-10-18 13:39:07 -06:00
Bojan Mihelac
0bc938de0e
doc: add missing import in alpine-morph example (#986) 2022-09-30 14:35:12 -06:00
Bojan Mihelac
9155a30510
doc: add note to alpine-morph example (#987) 2022-09-30 14:34:59 -06:00
Carson Gross
f784e7278f merge 1.8 into master 2022-07-12 13:06:30 -06:00
Wilk
45a0946136
Typo, was hs-sse instead of hx-sse (#946) 2022-06-29 15:38:04 -06:00
Carson Gross
0a5fc2cdb9 Merge branch 'master' into dev
# Conflicts:
#	www/docs.md
2022-06-16 14:12:41 -06:00
Jeremy Gorniak
a6e2b6ef83
Small typo fixes (#938) 2022-06-15 17:19:58 -06:00
Denis Palashevskii
5bb2273297
Update websockets extension documentation (#928)
* Update websockets extension documentation

* Add mention of message queuing mechanism
* Expand on the topic of swapping logic

* Expand the example of WebSocket message from the server
2022-06-02 13:03:14 -06:00
Dosenpfand
a576327c74
Fix dead links, typo, trailing white spaces (#924) 2022-05-26 17:02:30 -06:00
Ben Beecher
5b2d1f15c5
Documentation fix (#890) 2022-05-12 16:44:52 -06:00
David Guillot
be85c2c191
feat(ext): add disable-element extension (#869)
* feat(ext): add disable-element extension

* fixup! feat(ext): add disable-element extension
2022-04-08 13:13:03 -06:00
carson
0e69b6d064 Merge remote-tracking branch 'origin/dev' into dev 2022-04-07 13:50:07 -06:00
Denis Palashevskii
70b4ad16f0
Add data-loading-aria-busy directive for loading-states extension (#864)
* Add data-loading-aria-busy directive for loading-states extension; add tests for the extension

* Update docs

* Fix tests of scoped loading states

* Commit test files

* Improve delay tests by using sinon timer

* Add reference to MDN about `aria-busy` attribute
2022-04-07 13:34:41 -06:00
carson
d9f067fbfc narrow example 2022-02-23 14:10:06 -07:00
Alejandro Schmeichler
c50b96129e
Add loading-states extension (#805)
* Add loading-states extension

* Add extension to the extensions list

* Remove duplicate reference to client-side-templates

* Remove duplicate entry to debug

How did this happen?!
2022-02-12 11:13:30 -07:00
makasaurus
8a7228c02a
adding support for hx-trigger="restore" (#668)
* adding support for hx-trigger="restore"

* switching over to an extension + docs + tests

Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
2022-02-04 11:09:18 -07:00
carson
fff0d9d7c7 Merge remote-tracking branch 'origin/master' into dev 2022-01-14 11:39:33 -07:00
Waldir Pimenta
245540fb95
www/extensions/path-deps: rm extra punctuation 2021-12-18 13:11:57 +00:00
Arham Jain
fb5d2a864c
Don't need the send in the value for the attr 2021-11-26 14:05:08 -05:00
Arham Jain
d4e3335618
Fix main websockets example attribute 2021-11-25 22:47:51 -05:00
carson
ee507565d0 Merge branch 'dev' into pull/660
# Conflicts:
#	src/htmx.js
#	www/extensions.md
2021-11-23 13:43:29 -07:00
carson
0330ad6824 Merge remote-tracking branch 'origin/dev' into dev 2021-11-23 13:40:47 -07:00
carson
c96728479a bump version to 1.7.0 2021-11-23 13:40:38 -07:00
Alejandro S
fa312eff99 Fix typo 2021-11-22 07:57:27 -04:00
Alejandro S
e15479aaf2 Add alpine-morph extension 2021-11-22 07:53:25 -04:00
carson
c395c9c2be fixing version 2021-11-21 06:17:07 -07:00
carson
69d4d49363 bumped version in wrong branch 😑 2021-11-21 06:15:32 -07:00
carson
7c9fd4bc93 1.6.0 release prep 2021-11-21 06:10:59 -07:00
Ben Pate
e4b5db52b0 Add documentation for SSE and WS extensions 2021-11-17 20:02:49 -07:00
carson
e67e5ba41b bump version & disambiguate non-swaps from errors 2021-10-30 08:19:54 -06:00
carson
538a8cd51b bump version 2021-09-27 07:57:57 -06:00
carson
d47abff3dd prep for 1.5.1 release 2021-09-06 08:13:04 -06:00
carson
05a0608f52 Merge branch 'master' into dev 2021-07-12 13:38:37 -06:00
carson
3dbf6dba4c bump verison and include in api 2021-07-08 10:44:57 -06:00
Thomas Güttler
412f78530a
fixed type in "unnecessarily" 2021-06-21 09:24:09 +02:00
Will Iverson
b17df2652d Add full HTML example and CORS warning 2021-06-03 17:25:32 -07:00
carson
8372eb14de Merge branch 'dev' 2021-02-13 08:34:08 -07:00
Thomas Güttler
ab18c719f3
fix typo "fot a template" 2021-02-09 10:31:19 +01:00
Andy
2122539b8e Add documentation for morphdom and hx-select 2021-02-06 13:15:57 +00:00