Simon Hartley
5a7899dca0
Correct lint command in contribution guidelines ( #2950 )
2024-10-08 08:51:36 +02:00
Carson Gross
d6e17abb13
final doc fix
v2.0.3
2024-10-04 11:53:03 -06: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
gparmigiani
b4aff2340d
add F# server-examples ( #2886 )
...
add F# server-examples.md
2024-09-22 12:07:17 -04:00
Jon Sterling
653794436b
fix typo in rest-explained.md ( #2924 )
2024-09-22 12:02:40 -04:00
Carson Gross
b71af75f1a
fix
2024-09-20 11:11:05 -06:00
Carson Gross
c2a29ce574
Merge remote-tracking branch 'origin/master'
2024-09-20 10:48:36 -06:00
Carson Gross
d61b000d73
add Tony's essay
2024-09-20 10:48:26 -06:00
Ben Croker
02aa8fd718
Fix docs for htmx.config.scrollBehavior
( #2918 )
...
* Update docs.md
* Update reference.md
* Update api.md
* Fix links
---------
Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
2024-09-19 09:33:37 +02:00
Keeper-of-the-Keys
7f8105a905
[Documentation] Add more information about other swap strategies ( #2889 )
...
* Add more information about other swap strategies
* Change suggested by @MichaelWest22
* Grammar error as per comments from @Telroshan
* Clarification requested by @Telroshan
2024-09-18 09:22:43 +02:00
MichaelWest22
0023cd85f0
[Documentation] Config default update for methodsThatUseUrlParams ( #2911 )
...
Config default update
2024-09-16 10:09:38 +02:00
MichaelWest22
6ce6a1a77b
Documentation 3xx redirects can't send headers ( #2904 )
...
* 3xx redirects can't send headers
* fix response-headers links
2024-09-15 09:29:39 +02:00
shouya
e6a2ea15a2
Documentation for dynamic hx-vals ( #2898 )
...
* add test for spread operator in hx-vals
* update documentation
Closes #2885
2024-09-13 10:19:21 +02:00
Carson Gross
2b8acfa2ca
Merge remote-tracking branch 'origin/master'
2024-09-10 07:10:10 -06:00
Carson Gross
25f26127b9
link ACM paper
2024-09-10 07:10:01 -06:00
MichaelWest22
230262cf93
Documentation of svg oob swaps ( #2882 )
...
* Slipery SVGs
* remove a
* Fix typo and punctuation
* Also add code syntax for tags
---------
Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
2024-09-08 10:21:56 +02:00
Jared Foy
73f529e3c3
Update hx-select.md ( #2881 )
2024-09-08 10:10:07 +02:00