Commit Graph

344 Commits

Author SHA1 Message Date
Ben Croker 3b18b23a1f
Preconnect to youtube [deploy-site] 2025-04-04 17:11:28 -06:00
Ben Croker c780ded239
Add play button [deploy-site] 2025-04-04 11:03:11 -06:00
Ben Croker 72a3e28fea
Add video titles [deploy-site] 2025-04-04 08:44:04 -06:00
Ben Croker 23da089235
Add Videos page [deploy-site] 2025-04-03 21:43:40 -06:00
Ben Croker ffc98aa905
Fix bundler toggle buttons 2025-04-03 19:50:09 -06:00
Ben Croker 83b4af8299
Fix example [deploy-site] 2025-03-31 17:55:00 -06:00
Ben Croker 3379e822fb
Fix docs [deploy-site] 2025-03-30 12:39:18 -06:00
Ben Croker f1e0f80922
Add wildcard support to persist plugin (#807) 2025-03-30 10:58:39 -06:00
Ben Croker ccc7ea427a
Add single/double asterisk wildcards (#806)
* Add single/double asterisk wildcards

* Update release note
2025-03-29 18:37:40 -06:00
Ben Croker 9c36bae809
1.0.0-beta.11 2025-03-29 12:15:41 -06:00
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
Ben Croker 024111f67e
Dispatch `datastar-sse` event on `document` (#803)
* Dispatch `datastar-sse` event on `document`

* Release note

* Fix

* Fixes
2025-03-29 10:15:21 -06:00
Greg H 00d4e87a01
task/doco-dotnet-load_more - added how_tos/load_more.csharpsnippet and corrected dotnet README (#801)
Co-authored-by: Greg Holden <SpiralOSS@users.noreply.github.com>
2025-03-28 19:50:48 -06:00
dpc 48e7a124a4
fix(docs): Clarify file input type derived signals (#800) 2025-03-28 08:35:24 -06:00
Ben Croker 3c34e03b3d
Add timing modifiers (#795) 2025-03-25 08:26:55 -06:00
Ben Croker 41f87ae7b2
Remove link 2025-03-24 18:25:40 -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 a18dbfc539
Break up `on` plugin (#789)
* Break out plugins

* Rename to `data-signal-change`

* Rename plugins

* Break out `on` plugins

* `data-init` → `data-on-load`

* Fixes and errors

* Fix example

* Fix example

* Fix tests

* Fix tooling

* Add release notes

* Fix docs

* Remove `ctx.signals` docs

* Link text

* Update plugin icons

* Icon

* Update editor settings

* Remove expression context page

* Improve docs

* Tweak wording
2025-03-23 21:51:07 -06:00
Ben Croker d7fba2787e
1.0.0-beta.10 2025-03-23 10:15:43 -06:00
Ben Croker e28bb58eee
Remove ability to use key with `data-persist` (#788)
* Remove ability to use key with `data-persist`

* Fix example and test

* Update link
2025-03-23 08:35:42 -06:00
Ben Croker 09bd26ccd2
Persist key default to kebab-case 2025-03-21 21:47:28 -06:00
Ben Croker 2534471565
Mark the target as a fragment merge target (#786)
* Mark the target as a fragment merge target

* Fix test
2025-03-21 19:11:18 -06:00
Casey Link 433bb6e5ab
Clarify that data-computed is a pure function (#778)
* Clarify that data-computed is a pure function

Also make explicit that `data-on-signals-change` is the alternative for
side effects.

* Update attribute_plugins.md

---------

Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
2025-03-20 09:41:41 -06:00
Casey Link c6b1eaca30
Improve casing and modifier docs (#779)
* Emphasize two of the most important facts about d* attributes.

* Expand the attribute casing documentation

The previous top-line message "data-* attributes are case-insensitive", while
true, was very confusing for new users because it is not immedietly clear that
sentence is referring to the HTML spec and not the library of the docs they are reading.

So I've clarified the top-line message, and then expanded the explanation in a
way I hope makes it easier to understand the first time.

* Explain how to use modifiers with `data-signals`

(the object notation variant)

* Clarify it is possible to set both data-signals__ifmissing= and data-signals on the same element

* Update attribute_plugins.md

* Update attribute_plugins.md

---------

Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
2025-03-20 08:08:17 -06:00
Casey Link e991742383
Improve the datastar expression guide (#776)
* Improve the datastar expression guide

After chatting with Anders, I got a list of "things to know" about D* expressions.

This commit expands upon the current docs, adding more facts, examples and some structure.

* Remove redundant heading

* Document usage of common js operators

* Update datastar_expressions.md

---------

Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
2025-03-20 07:58:05 -06:00
Ben Croker 90b8b1cf35
Fix merge fragments with multiple targets (#781)
* Clone fragment before merging

* Add comment

* Add test

* Add release note
2025-03-19 17:49:03 -06:00
Ben Croker db376dfbe4
Rename aliased bundle to `data-star-*` (#772)
* Rename alised bundle to `data-star-*`

* Add release note
2025-03-16 19:46:43 -06:00
Ben Croker 55a3f01318
Ignore keys with plugin names as prefixes (#771)
* Ignore keys with the plugin name as a prefix

* Tweak test

* PR number
2025-03-16 19:37:17 -06:00
Ben Croker 07fd37c9e5
Use svg logo 2025-03-16 08:05:18 -06:00
Ben Croker 6311779c40
Emoji logo 2025-03-16 07:21:12 -06:00
Ben Croker 08b5ac5e3a
Minor improvements 2025-03-16 05:48:47 -06:00
Ben Croker 5a3ee74bf5
Improve docs 2025-03-16 05:05:05 -06:00
Ben Croker 666a45827e
Revert 2025-03-15 20:18:37 -06:00
Ben Croker 1bd119caf6
Default to kebab-case and dispatch `datastar-sse` on element (#761)
* Rename event and dispatch on element

* Add release note

* Upate docs

* Fix test

* Make events bubble up

* Default to kebab-case

* Kebab

* Fix docs

* Default to kebab-case for `data-class-*`

* Fix missing argument

* Finalise docs
2025-03-15 19:32:29 -06:00
Ben Croker c35b85ce4e
Remove settling from SSE events and SDKs (#764)
* Remove settling

* Add release note

* Bump PHP SDK version

* Remove from composer
2025-03-15 16:25:33 -06:00
Ben Croker 9fbd96caed
More improvements 2025-03-13 13:13:38 -06:00
Ben Croker 0ada59177b
Tweak docs 2025-03-13 13:06:10 -06:00
Casey Link 1cb3d0118a
Add index for reference documentation (#763)
* Add index for reference documentation

* Rename index.md to overview.md

* Update routes_reference.go

* Update overview.md

---------

Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
2025-03-13 12:54:19 -06:00
Jérémy 3a561c2faa
Clojure SDK - Ability to gzip sse streams - improvements - new how to code snippet (#747)
* Feature: gzip

Docs: changelog, removed todos
Feature: locking macro for sse generators.
Feature: flowstorm setup
Refactor: the SSE event writing code is now generic
Chore: bumped http-kit version
Feature: new malli schemas + fixes
Docs: adding the how to load more list items doc

* Fix: forgotten closing call

* Docs: fixed text

* Refactor: using write profiles to configure compression and buffering

Docs: modified the docs to reflect the new write profile mechanism
Refactor: changed the malli schema to go with the write profiles

* Feature: better error handling

* Docs: fixed unbalanced brackets / typos

* Docs: fixed example

* Docs: better write profiles docs

* Refactor: consistent namespaced keyword for all option

`:on-open` and `:on-close` options are deprecated

Docs: all callbacks are documented in docstrings
Calling context, return values and exception behavior are documented

* Refactor: using the new callback name everywhere

* Docs: Readme is redone and more docstrings
2025-03-13 09:41:49 -06:00
Ben Croker 92a7a92939
Add `data-on-resize` (#759)
* Add `data-on-resize`

* Add docs and release note

* Revert removals

* Rename element ID

* Fix `package.json` code gen

* Cleanup
2025-03-13 09:41:33 -06:00
Ben Croker d898f92cb9
Improve docs 2025-03-12 18:57:12 -06:00
Casey Link 0201fc6a2e
Add double underscore naming constraint to signal docs (#757)
related to #753
2025-03-12 07:25:30 -06:00
Ben Croker 1c1e52ccce
Improve signal match (#751) 2025-03-09 17:04:26 -06:00
Ben Croker d3aac79e98
Add custom build page to docs (#750)
* Add custom build page to docs

* Improve wording
2025-03-09 17:04:13 -06:00
Ben Croker 65ea56a2e2
Reset indicator on element remove (#749)
* Fix indicator when element removed

* Add test

* Add release note
2025-03-09 09:03:38 -06:00
Ben Croker bf1a64d697
Delay applying plugins (#743)
* Delay applying plugins

* Update readme

* Add passing test

* Use `queueMicrotask`

* Add release note
2025-03-07 16:02:01 -06:00
Ben Croker 4c0bf6dfbd
Fix typos [deploy-site] 2025-03-05 21:22:27 -06:00
Ben Croker 750883a2d1
Fix typos [deploy-site] 2025-03-05 20:35:18 -06:00
Ben Croker 94a691e059
Reduce settle duration [deploy-site] 2025-03-05 20:22:12 -06:00