Commit Graph

20 Commits

Author SHA1 Message Date
Ben Croker 5ba9759fba
Add wildcard support (#805)
* Dispatch `datastar-sse` event on `document`

* Release note

* Fix

* Modify view transition

* Fixes

* Fixes

* Add wildcard support

* Add wildcard to OnSignalChange
2025-03-29 11:11:18 -06:00
Delaney 67ed84ca2a
Trigger SSE error event after retries finished (#794)
* Trigger SSE error event after retries finished
Fixes #785

* Add error event test

* Clean up

* Add release note and docs

---------

Co-authored-by: Ben Croker <ben@putyourlightson.com>
2025-03-24 18:20:06 -06:00
Ben Croker b676dea6eb
Docs fixes 2025-03-24 16:16:36 -06:00
Ben Croker d7fba2787e
1.0.0-beta.10 2025-03-23 10:15:43 -06:00
Ben Croker 5a3ee74bf5
Improve docs 2025-03-16 05:05:05 -06:00
Ben Croker 3cf9802bae
Document SSE events
Fixes #581
2025-02-24 21:40:01 -06:00
Ben Croker 0480644851
Fix typo 2025-02-09 20:33:54 -06:00
Anders Murphy 39849bf23a
First draft of renaming nest/ed to namespace/d (#477)
* First draft of renaming nest/ed to namespace/d

After a lengthy discussion on discord it was suggested that we rename
`nested` signals to `namespaced` signals. For a few reasons:

1. Nested signals are used for namespacing.
2. We don't support or plan to support root nodes being signals
3. Nested signals should not be used to recreate SPAs and are there
   for namespacing convenience (bulk add/remove) not
   lookup (read/watch).
4. The naming was causing confusion.

Not sure if we still need to specify that only nodes are signals now
that nested signals are called namespaced signals.

I haven't renamed the implementation's yet as that's an implementation
detail we can address later.

Link to discord conversation:
https://discord.com/channels/1296224603642925098/1296225503610671224/1327365393563783238

* Fix persist example test

* Update datastar_expressions.md

* Update attribute_plugins.md

---------

Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
2025-01-11 09:32:54 -06:00
Ben Croker e1d30aebdb
Add `@clipboard` to docs [deploy-site] 2025-01-08 12:09:37 -06:00
Ben Croker 05eaa113cd
Fix #447 [deploy-site] 2025-01-03 11:40:54 -06:00
Ben Croker 0483fa80c2
Fix #446 [deploy-site] 2025-01-03 10:26:44 -06:00
Ben Croker bcf016b538
Fix docs, examples and error messages 2025-01-01 20:33:23 -06:00
Delaney abff1d05de
Can `.value` go away? (#429)
* Can .value be removed?
Fixes #428

* get dialog working

* add } to terminators

* Add fujs.svg

* whackamole

* sigh

* recursive regex tag template literals, lol

* Regex example

* (jacks|lack|of|complete|surprise)

* persist fixed

* fix current regex example

* current state

* Update all examples

* regex version of signals, actions and escapement

* Fix Go examples

* fix templates

* Add `@` to actions in examples

* Revert `.Value`

* frontpage

* all test pass

* move to @get/post/put/patch/delete

* Fix up docs and examples

* Add true client size to readme

* Add v1.0.0-beta.1 release notes

* @ → $

* Add space

* Fix more docs and examples

* missed files in merge

---------

Co-authored-by: Ben Croker <ben@putyourlightson.com>
2025-01-01 12:02:26 -06:00
Ben Croker 56ae15a56f
Add tooling to docs 2024-12-21 09:21:07 -06:00
Ben Croker 44f114c53f
Add `form` option to `sse()` action (#400)
* Start form mode

* Require closest form

* Validate form

* Use query selector if string

* Use `for` loop

* Create temporary form if none exists

* Better wording

* Change to `contentType` and `selector` options

* Add release note

* Improve wording

* Remove event listener on invalid form

* Add stricter types, don’t remove event listener

* Prevent default on submit events

* cleanup event listeners

* cleanupFns → cleanupFn

* i hate forms

* Add explanation to example

* Finish docs

---------

Co-authored-by: Delaney Gillilan <delaneygillilan@gmail.com>
2024-12-20 19:47:07 -06:00
Ben Croker b411e9ed72
Add `retryInterval` option to `sse()` action (#393)
* Add `retryInterval` option to `sse()` action

* Add to `sse` plugin too

* Build

* Add release note
2024-12-18 10:39:26 -06:00
Ben Croker 46960ec505
Improve wording [deploy-site] 2024-12-17 16:31:55 -06:00
Ben Croker 2ad2457c93
Wording improvements [deploy-site] 2024-12-17 16:19:39 -06:00
Ben Croker 31e3648cc0
Improve `retry` option descriptions [deploy-site] 2024-12-17 11:06:17 -06:00
Ben Croker 9d6443921b
Rewrite docs (#367)
* Rewrite reference docs

* Tweaks

* More concise

* Make modifier arguments lowercase

* Fix modifier arguments

* Document modifiers, rename `args` to `tags`

* Add social sharing image

* Add JS API page

* Formatting

* Skip element

* Rewrite Going Deeper

* Minor improvements

* Add to Unlearning

* Finish Going Deeper

* Redirect legacy pages

* Finish PR

* add 301s

* Consolidate redirects

---------

Co-authored-by: Delaney Gillilan <delaneygillilan@gmail.com>
2024-12-15 12:12:16 -06:00