* 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.
* Implement .into_inner() for Json
This allows users to use .into_inner() the same way it would be possible
in the serde crate. Previously, it was only possible via dump.0 (which
looks gross), or Json(dump).
* Fix an error using HtmlBlock
The definition uses {content, brace} but the usage used [brace, content}
* Update packages/yew/src/format/json.rs
Co-authored-by: Simon <simon@siku2.io>
* 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