3129 Commits

Author SHA1 Message Date
Carson Gross
3517c734e5 add sponsor 2024-10-27 16:49:43 -06:00
Carson Gross
3a105a900b Merge remote-tracking branch 'origin/master' 2024-10-17 07:35:17 -06:00
Carson Gross
10658a049b remove 2024-10-17 07:35:09 -06:00
grugBraid
b6af863e52
Add link to contact-app built in Blazor (#2970)
* Added htmx contact app using Blazor SSR

* add back whitespace
2024-10-17 09:46:09 +02:00
Carson Gross
c5e82ba49f Merge remote-tracking branch 'origin/master' 2024-10-14 06:16:56 -06:00
Carson Gross
0d217e9b09 add photoquest to webring.md 2024-10-14 06:16:47 -06:00
Paweł Korzeniewski
0ce391e924
Use correct extended CSS selector name in hx-trigger notes section (#2964) 2024-10-13 10:08:10 +02:00
youssame
56ca3eeef2
docs: Fix typo in URL to prevent broken link redirect (#2962)
Doc: Fix typo in URL to prevent broken link redirect
2024-10-11 18:21:42 +02:00
MichaelWest22
1242977d11
improve hx-preserve documentation (#2949) 2024-10-07 18:58:49 +02:00
eikek
8a60c695bf
Add htmx4s to scala server-examples (#2722)
Add htmx4s to scala examples
2024-10-05 09:40:57 +02:00
Viktor Szépe
e64ca1ff38
Fix typos in docs (#2943) 2024-10-05 09:38:40 +02:00
Carson Gross
defcf160d8 add moveBefore() demo 2024-10-04 13:15:07 -06:00
Carson Gross
b19e2f7dab add moveBefore() demo 2024-10-04 13:04:58 -06:00
Carson Gross
52f8076dcf Merge remote-tracking branch 'origin/master' 2024-10-04 11:53:48 -06:00
Carson Gross
d6e17abb13 final doc fix v2.0.3 2024-10-04 11:53:03 -06:00
Bracken
08369730b6
Clarify event filter uses in hx-trigger (#2914)
* Clarify event filter uses in hx-trigger

* Change hx-trigger event filter example to avoid ambiguity

input is both a tag and an event.

* Document the scope difference between standard selector and event filter

from:input listens to the page and click[event.target.matches('input')] listens to the element.

* Document that event filters as an alternative to CSS selectors require eval

* Move note about eval to standard event filters section.

* Simplify the referenced to standard event filters in the standard event modifiers section, and link to the standard event filters section instead.

* End quote in the correct place in standard event modifier doc.

* Correct language on how event filters from:body receive events.

* hx-trigger filter example catches click events specifically.
2024-10-04 09:26:09 +02:00
Carson Gross
5b2fe2c19c move general extension docs back to htmx.org/extensions and include core extension documentation on the site 2024-10-03 18:52:59 -06:00
Carson Gross
f4e67863d9 release prep 2024-10-02 22:06:56 -06:00
MichaelWest22
033d295ef9
fix es6 tsc checks complaining on newer s regex flag (#2938) 2024-10-02 22:05:40 -06:00
Carson Gross
56f801f69d release prep 2024-10-02 21:09:37 -06:00
Carson Gross
2fc32b368c release prep 2024-10-02 20:22:11 -06:00
Carson Gross
9b9bb7b5fa release prep 2024-10-02 20:20:57 -06:00
Carson Gross
d9b4ada06b release prep 2024-10-02 20:19:43 -06:00
Carson Gross
1c4d378d03 fix formatting 2024-10-02 20:11:29 -06:00
Carson Gross
c7278c448e fix test (firefox, safari) 2024-10-02 20:09:11 -06:00
Carson Gross
a440bcdb41 Merge branch 'master' into dev 2024-10-02 19:58:39 -06:00
Carson Gross
1537833ae0 Merge remote-tracking branch 'origin/dev' into dev 2024-10-02 19:58:30 -06:00
MichaelWest22
958fef20d9
Add shadowRoot host selector (#2866) 2024-10-02 19:46:11 -06:00
Jonathan
99285cd5c3
fix for hx-swab-oob within web components (#2846)
* Failing test for oob-swap within web components

* hx-swap-oob respects shadow roots

* Lint and type fixes

* fix jsdoc types for rootNode parameter

* Fix for linter issue I was confused about before

* oob swaps handle global correctly

* swap uses contextElement if available, document if not

Previous a commit made swapOptions.contextElement a required field. This
could have harmful ramifications for extensions and users, so instead,
the old behavior of assuming document as a root will be used if the
contextElement is not provided.

* rootNode parameter is optional in oobSwap

If not provided, it will fall back to using document as rootNode. jsdocs
have been updated for oobSwap and findAndSwapElements accordingly.
2024-10-02 19:44:41 -06:00
Nathan
8c6582679b
Better graceful degradation of boosted form element (#2802)
* better graceful degradation of form elt

* smaller

* move fix and add tests
2024-10-02 19:44:13 -06:00
aeccue
c24adef38f
[FIX] Properly remove request indicators (#2860)
Deduct request count before removing request indicators

Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
2024-10-02 19:43:19 -06:00
MichaelWest22
0e1eeec8b4
remove extra hx-swap-oob attribute that is not used in the page (#2823)
remove extra hx-swap-oob tag that is not used in the page
2024-10-02 19:40:54 -06:00
Eric Kwoka
b23b2f034e
🐛 Prevents erroring on null vals (#2799)
* 🐛 Prevents erroring on null vals

* 🚧 Applies same fix in FormProxy

* 🧪 Adds Test for null in FormDataProxy
2024-10-02 19:21:02 -06:00
MichaelWest22
5b550e5c49
Optimize Head regex (#2781)
* remove shared tag regex utility function that is no longer really needed

* fix head-support manual test to point to externally hosted extension

* minimize regex
2024-10-02 19:20:23 -06:00
MichaelWest22
b98e4f2b12
fix htmx.ajax defaulting to swap body when target not found (#2878)
* ajax helper handle no target

* allow source only targeting

* Add tests

* Handle source set but invalid target set

* Improve source logic

* missed #

* improve readiblity and add inline comment
2024-10-02 19:18:22 -06:00
Joerg Sonnenberger
df92b295d6
Change hx-trigger's changed modifier to work for independent trigger specifications (#2891)
* Adjust hx-trigger's changed modifier for multiple sources

The `changed` trigger modifier can see different event targets, either due
to the `from` modifier or event bubbling. The existing behavior trigger
only for one node (`from` modifier) or inconsistently (bubbling).

Use a nested weak map to keep track of the last value per distinguished
(trigger specification, event target node) pair. The weak map ensures
that Garbage Collection can still recycle the nodes.

If a event target was not seen via `from`, it is assumed changed for the
first time the trigger is hit.

* Add test case for separate triggers with changed modifier
2024-10-02 19:17:25 -06:00
Jackie Li
4916ce4d02
fix #2932: check parent is null for swap delete (#2933)
* fix #2932: check parent is null for swap

* fix test in swap when parent elt deleted
2024-10-02 19:08:39 -06:00
MichaelWest22
4a8172325e
enable hx-preserve handing for oob swaps (#2934)
* Add support for oob swaps with hx-preserve

* Add tests

* Documentation

* Impove fix to handle when oob swaps shouldSwap set false
2024-10-02 19:02:46 -06:00
Carson Gross
c069f208b2 clean up the formatting for the gumroad essay 2024-10-02 19:01:16 -06:00
Sahil Lavingia
42e51a191e
gumroad essay (#2936)
* gumroad essay

* cp

* cp

* cp

* updates based on feedback

* cp

* cp

* cp
2024-10-02 18:44:36 -06:00
Carson Gross
d0a84a451c sub in tracebit logo 2024-10-02 15:59:24 -06:00
Carson Gross
eeeba484cf add cased to sponsors replacing codacy 2024-10-01 12:15:50 -06:00
MichaelWest22
d528c9d94d
Handle Space before comma in Trigger Spec (#2903)
* strip space after trigger spec

* Add test

* handle addiional case
2024-09-25 13:12:37 -06:00
MichaelWest22
3d1a2e5202
[bug] load trigger stops hx-disabled-elt getting re-enabled (#2925)
* allow disable-elt on load to function

* Update requestCount fallback
2024-09-25 12:13:25 -06:00
Carson Gross
b8c92b8071 Merge branch 'master' into dev 2024-09-25 12:07:51 -06:00
Simon Hartley
aad0fbc7ed
Add a link to the extensions site on the docs page (#2930)
Add a link to the extensions site in the docs page
2024-09-25 09:40:55 +02:00
Luis Eduardo
27b5bcc438
Improved documentation for htmx:confirm event and examples for implementing sweetalert (#2926)
* Add detail.question and detail.issueRequest(skipConfirmation=false) documentation to htmx:confirm event

* Update htmx:confirm event documentation

* Update htmx:confirm event documentation

* Update htmx:confirm event documentation

* Modify htmx:confirm event documentation
2024-09-25 09:39:28 +02:00
Brooke Kuhlmann
44c4de41cc
Added htmx before transition reference link (#2929)
This is missing from the reference page but properly documented on the events page. This simply links the two together so anyone can quickly jump between the two.

Milestone: patch
2024-09-25 09:29:56 +02:00
Carson Gross
1ef814b0be Merge remote-tracking branch 'origin/master' 2024-09-22 20:39:18 -06:00
Carson Gross
9fd8aa80b5 lmao 2024-09-22 20:39:08 -06:00