Commit Graph

183 Commits

Author SHA1 Message Date
Greg Johnston 4a0f173bb5 feat: support Suspend in attributes 2024-08-01 19:42:50 -04:00
Greg Johnston 0cf3113812 feat: local resources with .await 2024-08-01 19:42:50 -04:00
Greg Johnston 1dae77d6b4 fix: don't break Routes SSR now that it uses Suspend 2024-08-01 19:42:50 -04:00
Greg Johnston a68653b385 feat: automatically replace Suspense blocks if they are still waiting to be flushed, without JS (replaces PartiallyBlocked) 2024-08-01 19:42:50 -04:00
Luke Naylor f8283f4674 Add missing 'form' attribute for <mo> (#2660)
This attribute seems to be missing in the attribute
table on Mozilla Docs, however does appear in the
compatibility table lower down.
This attribute is also frequently used by temml,
a common generator for mathml content.
2024-08-01 19:42:50 -04:00
Greg Johnston 059c8abd2f chore: clippy 2024-08-01 19:42:50 -04:00
Greg Johnston 6885777c75 support MaybeSignal in view 2024-08-01 19:42:50 -04:00
Greg Johnston 055701ebf6 fix: `<option>` struct generation 2024-08-01 19:42:50 -04:00
Greg Johnston 88af893703 fix: `<option>` struct generation 2024-08-01 19:42:50 -04:00
Greg Johnston 514c51ca30 fix: rebuilding AnyView 2024-08-01 19:42:50 -04:00
Greg Johnston 44eae4c2ed `0.7.0-alpha` 2024-08-01 19:42:50 -04:00
Greg Johnston 61876dff10 fix: correct For behavior when mounting with siblings, and when clearing 2024-08-01 19:42:49 -04:00
Greg Johnston 081f4ec550 chore: cargo fmt 2024-08-01 19:42:49 -04:00
Greg Johnston 598c59b9c2 make RemoveEventHandler a concrete type 2024-08-01 19:42:49 -04:00
Greg Johnston 9de6c5bb4a feat: add ElementExt to give access to the same view APIs at runtime that we do at compile time 2024-08-01 19:42:49 -04:00
Greg Johnston f65eaec9ba feat: add ElementExt to give access to the same view APIs at runtime that we do at compile time 2024-08-01 19:42:49 -04:00
Greg Johnston 095dc78893 remove log 2024-08-01 19:42:49 -04:00
Greg Johnston 3ebea79e05 preliminary work on directives (not useful yet until we have an ElementExt that allows you to do things declaratively from an Element 2024-08-01 19:42:49 -04:00
Greg Johnston fe7c7c3a99 omit () entirely if it is the only child of an HTML element 2024-08-01 19:42:49 -04:00
Greg Johnston 8b142c72f0 fix: don't override a text node's 'next sibling after text' position if it's in Either, now that they don't have separate marker nodes 2024-08-01 19:42:49 -04:00
Greg Johnston 04e09d2005 fix: remove extra comment at end of Suspense now that Either no longer requires it 2024-08-01 19:42:21 -04:00
Greg Johnston 722fd0f6c2 fix: () in templates 2024-08-01 19:42:21 -04:00
Greg Johnston d7e17a2ec9 remove unnecessary logs 2024-08-01 19:42:21 -04:00
Greg Johnston 81c0947ce5 fix reactive styles 2024-08-01 19:42:21 -04:00
Greg Johnston 309a3d504a fix: correctly rebuild reactive attributes to avoid stale signals 2024-08-01 19:42:21 -04:00
luoxiaozero 63f8da2fb5 feat: Attr exposes PhantomData field (#2641) 2024-08-01 19:42:21 -04:00
Greg Johnston f7ee0c4764 chore(ci): add Makefiles for smaller packages 2024-08-01 19:42:21 -04:00
Greg Johnston 10230d6d65 remove most remaining marker/placeholder elements 2024-08-01 19:42:21 -04:00
Greg Johnston 4a80c8b65b fix: can't memoize JS properties, because they can be set between signal updates by user input 2024-08-01 19:42:21 -04:00
Greg Johnston f191bb8324 fix: correctly escape style and class attributes 2024-08-01 19:42:21 -04:00
Greg Johnston e28e5ceb1e catch resource reads inside Signal during Suspense 2024-08-01 19:42:21 -04:00
Greg Johnston 0d867ba016 fix: correctly escape text nodes, except in script/style tags 2024-08-01 19:42:21 -04:00
Greg Johnston 32f77cc42b refactor insert_before_this to find parent lazily, and use it for rebuilding reactive components by replacing their whole contents 2024-08-01 19:42:21 -04:00
Greg Johnston 1afdc4fe1e remove unused leptos_reactive integration 2024-08-01 19:42:20 -04:00
Greg Johnston 36272a0b1b Revert "fix: constrain reactive rendering to Fn(), because using dry_resolve() for Suspense requires idempotent render functions so that they can be called once (to register resources) and called a second time to resolve"
This reverts commit 7ec5c77ba3e8f45bae04a7661a56741f95125adb.
2024-08-01 19:42:20 -04:00
Greg Johnston e0f98dc0fd fix: constrain reactive rendering to Fn(), because using dry_resolve() for Suspense requires idempotent render functions so that they can be called once (to register resources) and called a second time to resolve 2024-08-01 19:42:20 -04:00
Rakshith Ravi 98ea18009d Update import statements in examples (#2625) 2024-08-01 19:41:56 -04:00
Greg Johnston a47759007f chore: clippy 2024-08-01 19:41:55 -04:00
Greg Johnston 3c39674622 refactor to allow rendering Resource directly in view 2024-08-01 19:41:27 -04:00
Greg Johnston 2e40bace88 fix: serialize an empty string into HTML so it still works as a text node 2024-08-01 19:41:27 -04:00
Greg Johnston 0fc47e3a35 add some tracing and debug info to HTML elements 2024-08-01 19:41:13 -04:00
Greg Johnston 93734a5222 allow `.children()` on HTML elements 2024-08-01 19:41:13 -04:00
Greg Johnston c360f0ed0d update wasm-bindgen testing approaches 2024-08-01 19:41:12 -04:00
Greg Johnston 9fd881603f cargo fmt 2024-08-01 19:41:12 -04:00
Greg Johnston 9666c9c0c5 chore: clear up... a few warnings 2024-08-01 19:41:12 -04:00
Greg Johnston 9e8b304b8a update sledgehammer integration 2024-08-01 19:41:12 -04:00
Greg Johnston 02f76dec35 fix regular suspense if nothing was read synchronously 2024-08-01 19:41:11 -04:00
Greg Johnston 4bd99a41e5 missing dry_resolve on Static 2024-08-01 19:41:11 -04:00
Greg Johnston 85d29a5af5 feat: support *either* .await or reactive reads inside Suspense 2024-08-01 19:41:11 -04:00
Greg Johnston 1a68743fcc feat: add Popover API 2024-08-01 19:41:11 -04:00
Greg Johnston 3d9c295613 add missing marker comments for Result 2024-08-01 19:41:11 -04:00
Greg Johnston b2c0068e2c include marker comments in html len 2024-08-01 19:41:11 -04:00
Greg Johnston 12db58a7e0 missing `min` attribute 2024-08-01 19:41:11 -04:00
Greg Johnston 6d474713f6 resolve() on OwnedView 2024-08-01 19:41:11 -04:00
Greg Johnston b936e0352f add IntoAny to tachys prelude 2024-08-01 19:40:57 -04:00
Greg Johnston b5bd70ab94 finish support for innerHTML 2024-08-01 19:40:57 -04:00
Greg Johnston 0dd1932b7f feat: iterating over items in children with ChildrenFragment, ChildrenFragmentFn, ChildrenFragmentMut 2024-08-01 19:40:57 -04:00
Greg Johnston d6e19c0a60 resolve() implementation for AnyView 2024-08-01 19:40:57 -04:00
Greg Johnston 26cf4848db remove support for rendering guards directly, as they are !Send and holding onto them in State is also a bad idea 2024-08-01 19:40:57 -04:00
Greg Johnston 757a5c73c3 support nightly static values for style:key="value" 2024-08-01 19:40:57 -04:00
Greg Johnston 1e9d345831 fix tracing issue 2024-08-01 19:40:57 -04:00
Greg Johnston 5bc97654dc preliminary tracing for tachys 2024-08-01 19:40:57 -04:00
Greg Johnston 49da073fed chore: fix warnings about variable case 2024-08-01 19:40:57 -04:00
Greg Johnston a7b1152910 initial async routing work (to support bundle splitting) 2024-08-01 19:40:57 -04:00
Greg Johnston cebe744a84 support arbitrary attributes on components in view 2024-08-01 19:40:57 -04:00
Greg Johnston e93a34a2c9 full attribute spreading 2024-08-01 19:40:57 -04:00
Greg Johnston 3c13280bf6 stashing 2024-08-01 19:40:57 -04:00
Greg Johnston 45fd9423f8 give a route to upgrade any attribute into a cloneable one 2024-08-01 19:40:56 -04:00
Greg Johnston 7a92208c4f work on attribute spreading 2024-08-01 19:40:56 -04:00
Greg Johnston 8dac92b251 reenable AnyAttr 2024-08-01 19:40:56 -04:00
Greg Johnston 738986415d prep for preview release 2024-08-01 19:40:56 -04:00
Greg Johnston 3406446ebd module restructuring for 0.7 2024-08-01 19:40:56 -04:00
Greg Johnston 53b22a9b74 clear some warnings 2024-08-01 19:40:56 -04:00
Greg Johnston e68730d15f rename TupleBuilder to NextTuple and prep for release 2024-08-01 19:40:56 -04:00
Greg Johnston 2239f04f6b prep for preview release 2024-08-01 19:40:56 -04:00
Greg Johnston ab67bea7ec rename any_error 2024-08-01 19:40:56 -04:00
Greg Johnston 0beef3b2e0 prep for preview release 2024-08-01 19:40:56 -04:00
Greg Johnston 2470637b0b SSR optimizations for binary size, and flat router 2024-08-01 19:40:25 -04:00
Greg Johnston 2934c295b5 work on Axum integration and on error boundaries 2024-08-01 19:40:25 -04:00
Greg Johnston 782cb93743 feat: add <A> 2024-08-01 19:40:25 -04:00
Greg Johnston 464f157186 make placeholder-finding code consistent across container types 2024-08-01 19:40:25 -04:00
Greg Johnston b53e4d8ff8 remove logs 2024-08-01 19:40:25 -04:00
Greg Johnston 13da1e743d remove TryCatch/fallible rendering in favor of better ErrorBoundary model 2024-08-01 19:40:25 -04:00
Greg Johnston 52da0e43ac fix Vec hydration 2024-08-01 19:40:25 -04:00
Greg Johnston 42b99dd912 ErrorBoundary SSR and serialization of errors to support hydration 2024-08-01 19:40:25 -04:00
Greg Johnston 851e1f73fd get types working with nested ErrorBoundary/Suspense 2024-08-01 19:40:25 -04:00
Greg Johnston e11eea1af1 probably as far as I can go with the current SuspenseBoundary approach 2024-08-01 19:40:25 -04:00
Greg Johnston f508cc4510 fix static types 2024-08-01 19:40:25 -04:00
Greg Johnston add3be0ff5 Suspense SSR 2024-08-01 19:40:25 -04:00
Greg Johnston a01640cafd updates toward `todo_app_sqlite` 2024-08-01 19:40:25 -04:00
Greg Johnston e0e67360aa implement rendering traits for signals directly on stable 2024-08-01 19:40:25 -04:00
Greg Johnston 603f9f96c4 working model for Suspense with new version 2024-08-01 19:40:25 -04:00
Greg Johnston f78e675506 probably as far as I can go with the current SuspenseBoundary approach 2024-08-01 19:40:24 -04:00
Greg Johnston cc2714c03d fix ErrorBoundary/Suspense 2024-08-01 19:40:24 -04:00
Greg Johnston c06110128b feat: ErrorBoundary and Suspense 2024-08-01 19:40:24 -04:00
Greg Johnston d7c62622ae feat: ErrorBoundary 2024-08-01 19:40:24 -04:00
Greg Johnston 1edec6c36a fix Cargo.toml merge issues 2024-08-01 19:40:24 -04:00
Greg Johnston 100ed7d926 ErrorBoundary component 2024-08-01 19:40:24 -04:00
Greg Johnston 88b93f40f9 Suspense/Transition components 2024-08-01 19:40:24 -04:00
Greg Johnston f5935c6333 correctly omit HTML-generating code from AnyView 2024-08-01 19:40:24 -04:00