Commit graph

595 commits

Author SHA1 Message Date
Marc-Stefan Cassola
86ebd5b531
Update README.md 2024-09-25 19:57:07 +01:00
Maccesch
10b1a8a0e8 added use_textarea_autosize 2024-09-15 20:41:51 +02:00
Maccesch
82e7655d14 use_websocket now returns a signal for the websocket instance 2024-09-05 00:54:08 +01:00
Maccesch
1a189cf7a4 fixed use_color_mode with cookie enabled.
fixes #170
2024-09-02 18:21:21 +01:00
Maccesch
08b7d7e932 fixed unstable apis flag for use_web_lock
fixes #169
2024-09-02 12:19:51 +01:00
Maccesch
ae1676c786 properly handle web-sys unstable apis config in the new function template 2024-09-02 12:12:11 +01:00
Maccesch
365b705bf5 release 0.13.1
closes #103
2024-09-01 20:31:32 +01:00
Maccesch
c60d32bf5a added use_web_lock 2024-09-01 20:26:47 +01:00
Maccesch
851d209e2a updated changelog 2024-09-01 12:47:46 +01:00
Maccesch
16c8194073 updated changelog 2024-09-01 12:30:33 +01:00
Maccesch
60e1f140cb added use_window_size
closes #163
2024-08-31 16:09:11 +01:00
Marc-Stefan Cassola
38b988d453
Merge pull request #164 from zakstucke/main 2024-08-28 16:42:34 +01:00
Zak Stucke
b6d7ca340b Docs 2024-08-28 10:09:03 +03:00
Maccesch
9b0a7b6c1b updated changelog 2024-08-28 03:33:28 +01:00
Maccesch
c242e51936 chore: rustfmt 2024-08-28 02:59:31 +01:00
Maccesch
074685acab updated docs and changelog 2024-08-28 02:57:26 +01:00
Zak Stucke
b765dd5798 Added web-sys to websocket feature 2024-08-27 19:19:47 +03:00
Zak Stucke
00ced832b2 Allow for lazy protocols with use_websocket 2024-08-27 17:54:21 +03:00
Maccesch
04bcb6b319 made sync_signal more robust 2024-08-26 21:38:41 +01:00
Maccesch
26938f8e52 made sync_signal more robust 2024-08-26 12:02:39 +01:00
Maccesch
c9377fe1f9 added use_toggle 2024-08-24 23:22:37 +01:00
Maccesch
1ba0b03965 updated book and template with features 2024-08-24 22:50:02 +01:00
Marc-Stefan Cassola
55f5ff9557
Merge pull request #160 from BakerNet/bugfix/reconnect-after-cleanup
bugfix: error when cleanup happens after reconnect attempt is on timeout
2024-08-24 12:39:05 +01:00
Maccesch
97c678c4a1 fixed examples 2024-08-24 12:38:11 +01:00
Marc-Stefan Cassola
ff5f6a62a0
Merge pull request #155 from hcandelaria/use_web_notification
Feat: Enhance UseWebNotificationOptions and ShowOptions with additional field
2024-08-24 12:10:22 +01:00
Hector Candelaria
54a04ac382 Docs: Update vibration pattern documentation and convert helper function
- Updated comment for `vibrate` to describe the `Vec<u16>` format for vibration patterns.
- Modified `vibration_pattern_to_jsvalue` to accept a slice (`&[u16]`) and convert it to a `JsValue` array.
2024-08-23 23:39:42 -04:00
Hector Candelaria
81f09cb278 Merge branch 'main' into use_web_notification 2024-08-23 22:22:13 -04:00
BakerNet
856a64dd18 fix error when cleanup happens after reconnect attempt is on timeout 2024-08-23 18:02:02 -07:00
Maccesch
2d3f513216 implemented different types support for sending and receiving using use_websocket 2024-08-23 19:59:59 +01:00
Hector Candelaria
5133c0308c Doc: update vibrate doc type to reflect new type
- Updated the `vibrate` type in the docs to Vec<u16>.
2024-08-23 00:01:25 -04:00
Hector Candelaria
2443c695e9 Chore: Apply cargo fmt to ensure code formatting
- Reformatted the code for `watch_debounced` & `watch_throttled` to pass `cargo fmt --check`
2024-08-22 23:24:26 -04:00
Hector Candelaria
3eadd9cf1a Feat: Update vibrate type to Rust type
- Updated `vibrate` type to `Vec<u16>` to improve SSR and type safety.
- Added new helper function `vibration_patter_to_jsvalue` to convert `Vec<u16>` to `JsValue`.
2024-08-22 23:22:02 -04:00
Maccesch
3fbe9c66d2 added features for every function.
fixes #152
2024-08-22 23:06:55 -04:00
Maccesch
b07b6b7cfd added features for every function.
fixes #152
2024-08-22 13:37:32 +01:00
Hector Candelaria
4ff32e7dce Docs: Correct default value for silent field
- Updated comments to reflect that the default value for `silent` is
  `null`, not `false`.
2024-08-21 21:54:03 -04:00
Hector Candelaria
9cb0e386aa Feat: Add vibrate field to use_web_notification
- Implemented `vibrate` option in `UseWebNotificationOptions` and
  `ShowOptions` structures allowing specifying vibration patterns for
  notifications.
2024-08-21 21:54:03 -04:00
Marc-Stefan Cassola
480b1fa4ee
Merge pull request #88 from luckynumberke7in/main
Add methods to UseDocument
2024-08-21 22:03:11 +01:00
Ke7in
44cab1027d fix cargo fmt issues
Forgot to set up "cargo fmt" on save --new system.
2024-08-21 16:41:04 -04:00
Ke7in
09b08f64f5 Update "hidden" in use_document
Changed to hide elements by default on server.
2024-08-20 21:40:23 -04:00
Marc-Stefan Cassola
9874f80c84
Merge pull request #153 from hcandelaria/use_prefers_reduced_motion
Feat: Add prefers-reduced-motion API implementation
2024-08-19 11:35:11 +01:00
Hector Candelaria
9f8adfc1f1 Chore: Apply cargo fmt to ensure code formatting compliance
Reformatted the code to pass `cargo fmt --check`
2024-08-18 18:57:04 -04:00
Hector Candelaria
0021e4aed5 Docs: Add BooleanDisplay import to demo
Included the `BooleanDisplay` import in the demo.
2024-08-18 18:43:35 -04:00
Hector Candelaria
f5a37f6c7f Docs: Update See also references in media query functions
- Added `use_prefers_reduced_motion` in the documentation for
  `use_media_query`, `use_preferred_contrast`, and `use_preferred_dark`
  functions to include links to related functions.
2024-08-18 17:19:50 -04:00
Hector Candelaria
6d57bdf7f5 Feat: Add prefers-reduced-motion API implementation
Implemented the `use_prefers_reduced_motion` function to create a
reactive interface for detecting the user's reduced motion preference
via the `prefers-reduced-motion` media query.
2024-08-18 17:17:06 -04:00
Maccesch
8324c70742 release 0.12.0 2024-08-14 03:43:00 +01:00
Marc-Stefan Cassola
30e6c9351b
Merge pull request #146 from carloskiki/mouse-coord-type
Rework of `UseMouseCoordType`
2024-08-14 03:31:46 +01:00
Marc-Stefan Cassola
ee7934fd7d
Merge branch 'main' into mouse-coord-type 2024-08-14 03:26:14 +01:00
Charles Edward Gagnon
f245bf07d0 fix some clippy lints 2024-08-13 22:11:43 -04:00
Maccesch
d2e968249b updated changelog 2024-08-13 18:36:18 +01:00
Maccesch
16a65b100d fixed the codecs chapter in the book to refer to crate codee 2024-08-13 18:32:50 +01:00