* Fix const function component.
* Show Properties on the function definition.
* Filter certain doc attributes to be applied to type alias. More precise warnings.
* Implement macro-based hook.
* Add fail case.
* Function Component no longer a type alias.
* Clippy!
* Force 'static on generics.
* Fix clippy!
* Fix clippy and trybuild.
* Fix clippy and trybuild.
* Fix clippy.
* BaseComponent was not sealed properly.
* Adjust prelude.
* Public API should use IntoComponent for better ergonomics.
* Fix race condition.
* Fix trybuild.
* Make Html a Result.
* Fix tests.
* Implement Suspense.
* Schedule render when suspension is resumed.
* Shift children into a detached node.
* styled example.
* Update wording a little bit.
* Move hint to hint.
* Add some tests.
* Fix clippy.
* Add docs.
* Add to sidebar.
* Fix syntax highlight.
* Component -> BaseComponent.
* Html -> VNode, HtmlResult = RenderResult<Html>.
* Suspendible Function Component.
* Add a method to create suspension from futures.
* Revert extra changes.
* Fix tests.
* Update documentation.
* Switch to custom trait to make test reliable.
* Fix file permission.
* Fix docs.
* Remove log.
* Fix file permission.
* Fix component name error.
* Make Suspension a future.
* Initial commit
Forked at: 66d506e13329a06f7dce0b55a9427972b8aad3ff
Parent branch: origin/master
* Add the ability to add child nodes conditionally in html!
* WIP
Forked at: 66d506e13329a06f7dce0b55a9427972b8aad3ff
Parent branch: origin/master
* CLEANUP
Forked at: 66d506e13329a06f7dce0b55a9427972b8aad3ff
Parent branch: origin/master
* Experiment
* Failing test
* More tests
* More tests
* Add new HtmlIterable with syntax `for {...}` instead of `{for ...}`
* Remove HtmlIf from HtmlRoot (already done in HtmlTree)
* WIP
* WIP
* WIP
* WIP
* Revert
* CLEANUP
* WIP
* CLEANUP
* Remove IterableNew
* Renamed HtmlBranch to HtmlRootBraced and moved to mod.rs
* Update yew-macro/tests/html_macro/html-if-pass.rs
Co-authored-by: Simon <simon@siku2.io>
* Suggestion
* Oops
* Added ToNodeIterator to HtmlIf
* Improve error spans
* More html!()
* Move tests to not use browser
* Multiple children in if-expr
* Clippy fix
* Clippy fix again
* Re-trigger CI
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* Replacing ParseResult by syn::Result everywhere
* Remove unnecessary &mut
* Attempt to add test on ToNodeIterator
* Clippy fixes
* Still works for some reason
* Revert "Attempt to add test on ToNodeIterator"
This reverts commit 75b1a85c28df36ad8bf61344eef56e06667da3b6.
* fix CI
* add docs on website
* Apply suggestions from code review
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* apparently I can't hide lines on website
* update stderr file
* will this work?
* fix bug where conditions can't be expressions
* better error message
* clippy & fmt
Co-authored-by: Simon <simon@siku2.io>
Co-authored-by: Hamza <muhammadhamza1311@gmail.com>
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* removed unused braces from html_nested marco
* allow specifying test name
* also fix for html! macro
* also fix for html! macro
* remove misplaced #[allow(unused_braces)]
* Remove `web_sys` re-export
Removes re-exporting the `web_sys` dependency from the yew crate and
removes some `web_sys` features that were only enabled for re-exporting.
* re-export events through yew::events
* Reword to use double-dot syntax instead of "with"
* Implement double-dot syntax for props in components
* Update documentation with new syntax
* Update forgotten doc
* Add descriptive comments
* Check props and base expression
* Make compatible with 1.49.0 by removing then
* Fix website tests
* Update error output
* Implicitly convert string literals to String if they are listed as props
* Remove unused keyword
* Rename function for checking if string literal
* Fix weird formatting
* Update code based on review
* Update website/docs/concepts/html/components.md
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* Base expression span includes dot2 now
* Improve specificity of error message
* Chain together error messages
* Add an example failure case to illustrate combined error message
* Update based on review comments
* Fix missing clones
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* Add no_implicit_prelude to derive_props test
* Add no_implicit_prelude to html_macro tests
* Fix function_component macro tests
function_component macro tests weren't being run by try build due to
change in dir name. Imports corrected now that function_component is now
in yew.
Adds no_implicit_prelude to *-pass tests
* Add no_implicit_prelude to props_macro tests
* fix typo in comment
* yew: partial event listener multiplexer
web_sys implementaion compiles but the std_web implementation is unfinished. Keeping this only to commit curretn progress before reverting std_web.
* yew: partial event listener multiplexer
Feature parity with master, except for bubbling.
* yew/listener: fix and test synchronous listeners
* yew/listener: add placeholder comments
* yew/listener: passive listener test
* yew: extend and fix APIs and docs
* yew/listener: event bubbling
* clippy: ignore warning
* Update yew/src/callback.rs
Co-authored-by: Simon <simon@siku2.io>
* Update yew/src/html/listener/listener_stdweb.rs
Co-authored-by: Simon <simon@siku2.io>
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* yew/listner: remove redundant function
* yew/listner: restore delibarate formatting
* yew/callback: make Flags a newtype
* yew/listener: use utility function
* yew/listener: deferred listeners
* yew/listner: input and change tests
* yew/listener: optimize listener registration
* yew/listener: remove benchmark placeholders
Seems easybench-wasm does not support specifying a module path.
* yew/callback: revert CallbackOnce -> Once
* yew: convert listener_tests to a build flag
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* yew: fix doc comments
* yew: simplify iteration
* yew/remove unneeded default passive listeners
* yew/listeners: DRY some more
* yew/listener: fix clippy warnings
* yew/listeners: remove legacy comment
* yew/listeners: document stopping propagation
* yew/listeners: update tests
* ci: see how test run on stable
* ci: let's find the new MSRV
* ci: try to run integration tests only on stable
* yew/test: clean up residual dirty state
* yew/listeners: minor doc string and inline fixes
* yew/listener: document reasonning for function
Co-authored-by: Simon <simon@siku2.io>
onsubmit takes a `SubmitEvent` which is not available in web_sys.
`SubmitEvent` does not inherit from `FocusEvent` so
`FocusEvent::related_target` panics too!
As with onformdata onsubmit will use `Event` to remain safe and requires
users to define their own type or use Reflect api.
Trybuild change because of the new comment.
* update rust version for macro test to 1.51
* enable const generic tests
* run integration tests using MSRV
* am blind
* clippy, fmt
* apply suggestion
* time for more hygiene
* update corresponding tests
* while I'm at it
* now let's fix the actual issue
* fix the publish examples CI while I'm at it
* resolve clippy warnings