Greg Johnston
45d4ebccd8
fix: `cargo doc` in projects using `#[server]` ( #476 )
2023-02-05 19:12:32 -05:00
Greg Johnston
e0bf8f5b6d
fix: fix `node_ref` in SSR ( #471 )
2023-02-04 15:37:59 -05:00
Greg Johnston
5ace580edb
fix: don't override element event listeners with component event listeners ( closes #461 ) ( #470 )
2023-02-04 15:37:48 -05:00
Roland Fredenhagen
5d612d9740
error on non meta input for prop attribute ( #469 )
2023-02-04 13:17:04 -05:00
g-re-g
c4e693e01e
Derive debug in server macro ( #458 )
2023-02-03 17:38:29 -05:00
Greg Johnston
2be4e8d959
docs: add new `Children` types to macro docs ( #454 )
2023-02-03 12:51:37 -05:00
Greg Johnston
bb9df8937d
feature: allow `on:` event listeners on `<Component/>` nodes ( #448 )
2023-02-02 23:24:03 -05:00
martin frances
65465cad78
leptos_macro: Machete - Removed unused deps. ( #441 )
2023-02-02 16:59:49 -05:00
Greg Johnston
53f7677258
Fix top-level SVG elements in SSR ( #435 )
2023-02-01 20:36:50 -05:00
Greg Johnston
e1bcf77b03
docs: Document `inner_html` attribute ( #429 )
2023-02-01 19:21:08 -05:00
IcosaHedron
63a7a4dec1
Several Minor Updates on Examples ( #427 )
2023-02-01 19:20:34 -05:00
jquesada2016
1f6a326268
fixes cx not found on components marked with #[component(transparent)] ( #423 )
2023-02-01 11:17:20 -05:00
Greg Johnston
0efc39db8b
fix: Make all fragment rendering lazy ( closes #299 and #421 ) ( #425 )
...
Make all fragment rendering lazy (closes #299 and #421 )
2023-02-01 06:47:12 -05:00
Greg Johnston
cbf2f73e95
fix: HTML entity issues in `axum_errors` example ( #424 )
2023-01-31 23:39:31 -05:00
Greg Johnston
45eee12b18
Fix issues with attribute names in SSR ( #418 )
2023-01-31 11:57:05 -05:00
Greg Johnston
42e50327a6
Fix `<option>` and `<use>` top-level types in SSR ( #416 )
2023-01-30 20:10:07 -05:00
martin frances
465cbc36be
Minor: Bump typed-builder from 0.11 to 0.12. ( #409 )
2023-01-30 19:17:09 -05:00
Greg Johnston
ce6a093f9f
oops
2023-01-29 17:11:02 -05:00
Greg Johnston
f07fa0e0be
escape attributes
2023-01-29 16:55:28 -05:00
Greg Johnston
43ad91512a
Fixes boolean attributes in SSR ( closes #405 )
2023-01-29 16:29:06 -05:00
Greg Johnston
116d23f2c3
Revert "fix: Fixes boolean attributes in HTML fast-path (closes issue #405 )"
...
This reverts commit 2ecb345a79
.
2023-01-29 16:27:28 -05:00
Greg Johnston
2ecb345a79
fix: Fixes boolean attributes in HTML fast-path (closes issue #405 )
2023-01-29 16:02:47 -05:00
Greg Johnston
1563d237d0
Check uniqueness of server function names at registration time ( #388 )
...
* Check uniqueness of server function names at registration time, and stop leaking src file path in release mode
* Fix missing dev-dependency
2023-01-27 06:57:32 -05:00
Greg Johnston
b861f84e40
Fix a large number of small issues in docs ( #386 )
...
* Fix example links in docs
* Restore missing CSR READMEs
* Document need to enable features on `leptos_router` and `leptos_meta`
* Add "Is it production ready?" to FAQs
* Document which types are provided as contexts in server integrations
* Fix broken links and other issues in docs
2023-01-26 21:44:01 -05:00
Greg Johnston
62812af5b2
Allow unused `cx` in server fn arguments ( #385 )
...
* Suppress warning for unused `cx` in server function arguments
2023-01-26 21:43:39 -05:00
Greg Johnston
a2ea1d8483
Reorganize snake-case `#[component]` docs and please `clippy` ( #362 )
2023-01-23 11:14:04 -05:00
Greg Johnston
fd6e63796e
Merge pull request #354 from jclmnop/feat/allow-snake-case-components
...
Allow snake case components
2023-01-22 16:46:47 -05:00
jclmnop
39cddfc82d
update docs for component macro
2023-01-22 17:13:24 +00:00
jclmnop
d1333a3402
modify component attribute macro to allow snake_case fn names
2023-01-22 14:04:36 +00:00
Greg Johnston
a75abb9e04
Merge pull request #351 from leptos-rs/view-styling
...
Add support for `class = ...`, in `view` macro to support scoped styling
2023-01-21 12:56:21 -05:00
Greg Johnston
bf1ef1b7c2
Fix missing {} after cleaning up unnecessary formats
2023-01-21 11:42:52 -05:00
Greg Johnston
a22a693de7
Add support for `class = ...,` in `view` macro to support scoped styling solutions
2023-01-21 09:52:05 -05:00
Greg Johnston
ed6d6ae4b0
Add `node_ref` to docs
2023-01-21 07:26:06 -05:00
Greg Johnston
89ee88d75e
Add SVG `<script>`, `<style>`, and `<title>` to set of ambiguous elements — closes #349
2023-01-21 07:23:32 -05:00
Greg Johnston
c1c74ead0f
Get view-macro SSR optimization working
2023-01-20 09:47:16 -05:00
Greg Johnston
ebe5bf4600
Merge pull request #330 from martinfrances107/typed_builder
...
typed-builder inconsistent version.
2023-01-17 13:53:58 -05:00
Martin
586e9be99a
Minor - type-builder version is inconsistent.
2023-01-17 17:23:05 +00:00
Martin
1fe93fd588
Minor: For each sub crate the landing page should be the root README.md.
2023-01-17 17:05:09 +00:00
Greg Johnston
e17afd4559
Handle custom elements correctly
2023-01-14 14:09:23 -05:00
Greg Johnston
7ff044cef6
Merge pull request #308 from Indrazar/main
...
Update Generated API URL on Windows Attempt #2
2023-01-13 07:30:03 -05:00
hakesson
884297706a
Search https://github.com/gbj/ and replace with https://github.com/leptos-rs/
2023-01-13 09:03:11 +01:00
indrazar
2afe8e202a
update url for Windows directories attempt 2
2023-01-12 22:07:55 -05:00
Greg Johnston
cdf709fb09
`0.1.0`
2023-01-12 09:57:08 -05:00
Martin
1621b86d8f
Minor: "leptos.workspace = true" is invalid.
2023-01-11 17:09:10 +00:00
Greg Johnston
b8cafeb650
Merge pull request #289 from gbj/forbid-unsafe
...
Forbid `unsafe` code in all packages
2023-01-09 20:45:28 -05:00
Greg Johnston
c050456a47
Use a runtime warning about SVG <a/> instead of a macro warning on all ambiguous tags
2023-01-09 20:31:51 -05:00
Greg Johnston
4df3687463
Forbid unsafe code in all packages
2023-01-09 19:48:51 -05:00
Martin
3d25e86c23
Policy change: Workflow now enforce "cargo fmt".
2023-01-09 12:44:30 +00:00
Dylan Maloy
35601d8284
update abort_opt_message
2023-01-08 16:47:02 -05:00
Dylan Maloy
49bc7d2a27
init
2023-01-08 16:35:43 -05:00
Greg Johnston
aa7c7367dc
Merge pull request #277 from martinfrances107/clippy_hackernews
...
examples/hackernews - Cargo clippy fixes.
2023-01-08 14:10:57 -05:00
Greg Johnston
70808c5262
Merge pull request #272 from DPM97/component_lifetimes
...
fix component macro lifetime parsing
2023-01-08 14:07:00 -05:00
Martin
ef52a01838
examples/hackernews - Cargo clippy fixes.
2023-01-08 13:33:53 +00:00
Martin
8875939a27
Minor: Removed Clippy::needless_borrrow issues.
2023-01-08 10:42:25 +00:00
Dylan Maloy
1f29d29947
init
2023-01-08 00:15:00 -05:00
Greg Johnston
343e8c8abe
Update macro docs to reflect newly-available class syntax.
2023-01-07 22:02:23 -05:00
Greg Johnston
656d20cb65
Don't panic in proc macro, use proc_macro_error instead.
2023-01-07 21:32:52 -05:00
Greg Johnston
a0a66b75dd
Allow complex class names with ("class-[name]-42", value) syntax.
2023-01-07 21:29:26 -05:00
Greg Johnston
f2842cf14e
`children` should take `FnOnce(Scope) -> Fragment`, to ease need of cloning etc.
2023-01-07 17:04:58 -05:00
Greg Johnston
7f47134058
Merge pull request #265 from martinfrances107/needless_borrowed_reference
...
Clippy: Minor needless_borrowed_reference.
2023-01-07 14:21:58 -05:00
Greg Johnston
af7b93fa1e
Merge pull request #128 from akesson/workspace-features
...
Workspace features
2023-01-07 14:19:56 -05:00
Martin
916f30a07b
Clippy: Minor needless_borrowed_reference.
2023-01-07 18:28:42 +00:00
hakesson
b852e459a9
Unify workspace dependencies
2023-01-07 18:00:37 +01:00
hakesson
681f10ec8d
Workspace-based versioning
2023-01-07 17:35:02 +01:00
Martin
7acc309f66
Minor: Clippy format!() all variables now inlined.
2023-01-07 15:46:47 +00:00
Greg Johnston
64bf01c59e
Reduce CI load with skipped feature sets
2023-01-05 11:08:07 -05:00
Greg Johnston
e8c1bf5055
`#[prop]` docs
2023-01-04 11:10:03 -05:00
Greg Johnston
af1a4492e8
`leptos_macro` improvements to `class:`, `prop:`, `on:`, `:undelegated`, and events
2023-01-04 00:25:53 -05:00
Greg Johnston
6b1b4463a0
Fix server docs
2023-01-03 23:22:06 -05:00
Greg Johnston
0da88f39cd
Improve docs and debugging tools for server functions ( closes #225 )
2023-01-03 20:05:47 -05:00
Greg Johnston
8d14972808
Merge branch 'main' of https://github.com/gbj/leptos
2023-01-03 15:52:33 -05:00
Greg Johnston
441eb1697e
Reduce CI load by omitting `tracing` feature from CI testing
2023-01-03 15:52:29 -05:00
Greg Johnston
78d965cc91
Merge pull request #220 from jquesada2016/view_on_undelegated
...
added on:eventname:undelegated support
2023-01-03 13:07:22 -05:00
Jose Quesada
28dce925b0
relaxed `parse_event` to be undelegated only when `:undelegated` appears at the end of the event
2023-01-03 08:54:52 -06:00
Greg Johnston
755ceb7d75
`0.1.0-beta`
2023-01-02 16:35:00 -05:00
Greg Johnston
edbd3612b3
stable for `leptos_macro`
2023-01-02 13:04:56 -05:00
Jose Quesada
1344f113c5
added on:eventname:undelegated support
2023-01-02 10:36:08 -06:00
Greg Johnston
d5f8d3a9b7
Merge pull request #206 from jquesada2016/199
...
fixed components only rendering `<() />` on release
2022-12-31 09:22:09 -05:00
Jose Quesada
2a1b531bd2
fixed components only rendering `<() />` on release
2022-12-31 08:08:14 -06:00
Ramon Klass
c3a7ef0357
ambiguous tags inherit the type of their parent
2022-12-30 23:38:51 +01:00
Greg Johnston
4b1fce4c9c
Revert "Merge branch 'main' into pr/119"
...
This reverts commit 63f680f37d
, reversing
changes made to 50ba796f49
.
2022-12-28 15:06:46 -05:00
Greg Johnston
63f680f37d
Merge branch 'main' into pr/119
2022-12-28 14:21:54 -05:00
Jose Quesada
4340fbfc78
Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2
2022-12-28 10:52:06 -06:00
Jose Quesada
4e1753fc71
moved `#[component]` tracing support behind a `tracing` feature flag
2022-12-28 10:51:55 -06:00
Greg Johnston
f30310a64a
Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2
2022-12-28 11:33:29 -05:00
Greg Johnston
e3c4e9f6a4
chores: fix failing tests, update docs, suppress warnings
2022-12-28 11:33:26 -05:00
Jose Quesada
494deef9b6
maybe possibly perhaps fixed broken tracing dep
2022-12-28 09:53:11 -06:00
Jose Quesada
0da8d0113c
added `clone:` to components in `view!` macro to help with move dilemmaa
2022-12-28 09:24:52 -06:00
Jose Quesada
0e179d0cb5
component move fix would break scope continuity
...
This reverts commit 4dd5768a66
.
2022-12-28 07:36:05 -06:00
Jose Quesada
4dd5768a66
fixed move dilema on component children
2022-12-27 20:14:10 -06:00
Jose Quesada
b3c4c77dee
now unwrapping type when documenting a field which has `#[prop(strip_option)]`
2022-12-27 12:20:14 -06:00
Greg Johnston
3179b2a9e5
Remove duplicate
2022-12-26 17:25:18 -05:00
Greg Johnston
2bd0c38304
Properly detect and namespace SVG/MathML
2022-12-26 08:21:36 -05:00
Greg Johnston
9dc30da3e9
Fix component children example in docs
2022-12-26 08:03:40 -05:00
Greg Johnston
98e3f5a155
Remove dev-deps for publish
2022-12-25 23:11:08 -05:00
Greg Johnston
5540bb8e8c
Bump version to `0.1.0-alpha`
2022-12-25 22:58:07 -05:00
Greg Johnston
e05778726b
Update docs
2022-12-25 16:06:29 -05:00
Jose Quesada
ae506fced6
fixed name mismatch
2022-12-23 14:51:27 -06:00
Jose Quesada
86394105dd
fixed name collision within components so that recursion is possible
2022-12-23 14:47:57 -06:00
Greg Johnston
391fe89542
`0.0.21`
2022-12-23 13:01:15 -05:00
Greg Johnston
7c25cd9200
Use `#[component]` macro for core components, deleting `leptos_core` package
2022-12-22 16:46:48 -05:00
Jose Quesada
34b4917837
updated component doc formatting
2022-12-22 13:10:41 -06:00
Greg Johnston
351389c2bf
Correct types in SSR
2022-12-21 20:47:30 -05:00
Greg Johnston
58748af63b
Fix `_ref` API in macro
2022-12-19 20:10:09 -05:00
Greg Johnston
5ee8b20770
Clear warnings
2022-12-19 07:35:18 -05:00
Greg Johnston
51b0ec3204
Clear warnings in `view` macro
2022-12-19 07:26:31 -05:00
Greg Johnston
c103c8f05b
Suppress warnings about unused `Scope` variable in components
2022-12-19 07:22:25 -05:00
Greg Johnston
83c8f8b0cb
Clear warnings in `#[component]` macro
2022-12-19 07:20:55 -05:00
Greg Johnston
3195ab4ffc
Get `Suspense`/`Transition` hydration working
2022-12-18 07:38:51 -05:00
Jose Quesada
ae16c2f96d
prepending `::` to `leptos` imports
2022-12-16 16:37:47 -06:00
Jose Quesada
6cfd2ba04e
added prop docs to props builder
2022-12-16 08:51:07 -06:00
Jose Quesada
cd178c5c85
using `format_ident` instead of `Ident::new`
2022-12-16 08:25:52 -06:00
Jose Quesada
688b0a6b73
started fine-tunning `view` macro spans
2022-12-16 07:30:13 -06:00
Jose Quesada
3e508b16f3
impl `#[component(transparent)]`
2022-12-15 13:40:58 -06:00
Jose Quesada
3b99d2d4fd
added tracing support to `component` macro
2022-12-15 12:01:16 -06:00
Greg Johnston
1b0aa4d903
Disable macro SSR until I've added IDs
2022-12-15 08:36:46 -05:00
Greg Johnston
01013b00e5
Implement classes in SSR macro path
2022-12-15 07:56:31 -05:00
Jose Quesada
218c4d3c90
moved body back inside itself to allow forwarding attributes
2022-12-14 12:57:43 -06:00
Jose Quesada
5f95776a08
Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2
2022-12-14 12:24:16 -06:00
Jose Quesada
adee33a08e
initial impl of `#[prop()]`
2022-12-14 12:15:41 -06:00
Greg Johnston
e3e0460371
Disable SSR macr until node ID generation is done
2022-12-14 10:57:37 -05:00
Greg Johnston
6e4448dae6
SSR work with missing node IDs
2022-12-14 10:56:48 -05:00
Jose Quesada
b37a36a003
allowing clippy lint for too many arguments on components
2022-12-14 07:34:31 -06:00
Greg Johnston
1c8b640855
Update `#[component]` docs
2022-12-14 06:44:14 -05:00
Jose Quesada
a7a35857bb
now tracking scope name
2022-12-13 14:33:34 -06:00
Jose Quesada
caa919b257
Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2
2022-12-13 14:15:42 -06:00
Jose Quesada
4c123884de
reverted to redeclaring the component fn within itself
2022-12-13 14:15:23 -06:00
Greg Johnston
5e06eb1a99
Correct use of `cx`
2022-12-13 15:14:41 -05:00
Greg Johnston
cc0bf20c9d
Use the correct identifier for `cx` here
2022-12-13 15:06:21 -05:00
Jose Quesada
eeaccfc815
moved fn block into `Component::new`
2022-12-13 13:23:51 -06:00
Greg Johnston
621976c92c
Add correct import for doctest
2022-12-13 14:14:04 -05:00
Jose Quesada
39e809f686
initial impl of `component` macro with inline doc comments and `TypedBuilder` overrides
2022-12-13 12:44:30 -06:00
Greg Johnston
b2d7ad2afd
Fix a couple issues with intra-doc links
2022-12-13 13:10:04 -05:00
Greg Johnston
73b21487b9
Add more entry-level docs for `#[component]` macro
2022-12-13 13:06:37 -05:00
Jose Quesada
286c95136f
Merge branch 'leptos_dom_v2' into leptos_dom_v2_component
2022-12-13 07:38:51 -06:00
Greg Johnston
5ca169ac06
Properly handle `Scope` when creating component children
2022-12-13 07:42:14 -05:00
Jose Quesada
a75cbee133
started working on component macro
2022-12-12 18:33:12 -06:00
Jose Quesada
99ff73c721
applied fix per gbj's suggested
2022-12-12 16:23:15 -06:00
Greg Johnston
8a0e56aff5
Properly namespace Fragment when used
2022-12-12 13:39:50 -05:00
Greg Johnston
c4cc3e944b
Merge in changes from `main`
2022-12-12 09:26:46 -05:00
Greg Johnston
43ffa1bcd7
Use `Fn() -> Fragment` for component children, and update router and Suspense/Transition
2022-12-10 22:12:08 -05:00
Greg Johnston
9d43eb5503
Tweak handling of component children
2022-12-10 19:42:08 -05:00
Greg Johnston
6c29d85b8d
Remove `into_view` in `view` and `component` macros
2022-12-10 19:21:46 -05:00
Greg Johnston
18bd2162cf
Docs in component macro
2022-12-10 16:21:58 -05:00
Greg Johnston
f9cc57acb9
Fix attributes in view macro
2022-12-10 08:32:30 -05:00
Greg Johnston
9a114eb595
Avoid name conflicts between functions to create elements and local variables
2022-12-09 14:36:25 -05:00
Greg Johnston
64a5d75ec4
`.into()` calls were interfering with components that have generic props
2022-12-09 13:09:02 -05:00
Greg Johnston
eb40f9f7c7
Remove `leptos_dom/ssr` dependencies
2022-12-08 19:32:46 -05:00
Greg Johnston
08be1ba622
Fix warnings
2022-12-08 19:28:23 -05:00
Greg Johnston
605398bcea
Only use `default` for `Option<T>`
2022-12-08 19:27:45 -05:00