Skip to content

Commit 8bf83d6

Browse files
committed
v0.4.0-rc
1 parent 092a6c0 commit 8bf83d6

File tree

7 files changed

+59
-10
lines changed

7 files changed

+59
-10
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## [0.4.0-rc](https://github.com/thaw-ui/thaw/compare/v0.4.0-beta5...v0.4.0-rc) (2024-12-09)
2+
3+
### Features
4+
5+
* Adds `SSRMountStyleProvider` component, closes [#335](https://github.com/thaw-ui/thaw/pull/335).
6+
7+
### Bug Fixs
8+
9+
* Clicking the outer part of the `Popover` component does not close, closes [#334](https://github.com/thaw-ui/thaw/pull/334).
10+
* Clicking the outer part of the `Menu` component does not close, closes [#334](https://github.com/thaw-ui/thaw/pull/334).
11+
12+
### Breaking Changes
13+
14+
* `PopoverTrigger` can only contain one child, closes [#330](https://github.com/thaw-ui/thaw/pull/330).
15+
* `Tooltip` can only contain one child, closes [#330](https://github.com/thaw-ui/thaw/pull/330).
16+
* `Menu` can only contain one child, closes [#330](https://github.com/thaw-ui/thaw/pull/330).
17+
118
## [0.4.0-beta5](https://github.com/thaw-ui/thaw/compare/v0.4.0-beta4...v0.4.0-beta5) (2024-11-26)
219

320
### Features

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ exclude = ["examples"]
1414
rust-version = "1.79"
1515

1616
[workspace.dependencies]
17-
thaw = { version = "0.4.0-beta5", path = "./thaw" }
18-
thaw_components = { version = "0.2.0-beta5", path = "./thaw_components" }
19-
thaw_macro = { version = "0.1.0-beta5", path = "./thaw_macro" }
20-
thaw_utils = { version = "0.1.0-beta5", path = "./thaw_utils" }
17+
thaw = { version = "0.4.0-rc", path = "./thaw" }
18+
thaw_components = { version = "0.2.0-rc", path = "./thaw_components" }
19+
thaw_macro = { version = "0.1.0-rc", path = "./thaw_macro" }
20+
thaw_utils = { version = "0.1.0-rc", path = "./thaw_utils" }
2121

2222
leptos = { version = "0.7.0" }
2323
leptos_meta = { version = "0.7.0" }
2424
leptos_router = { version = "0.7.0" }
25-
reactive_stores = { version = "0.1.0-rc1" }
25+
reactive_stores = { version = "0.1.0" }

demo_markdown/docs/_guide/server_sider_rendering.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Server Sider Rendering
22

3+
## SSRMountStyleProvider
4+
5+
In SSR mode, please use `SSRMountStyleProvider` component to wrap `html` tag.
6+
7+
Refer to [ssr_axum/src/app.rs](https://github.com/thaw-ui/thaw/blob/main/examples/ssr_axum/src/app.rs).
8+
9+
```rust
10+
view! {
11+
<SSRMountStyleProvider>
12+
<!DOCTYPE html>
13+
<html lang="en">
14+
<head>
15+
<meta charset="utf-8"/>
16+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
17+
<AutoReload options=leptos_options.clone() />
18+
<HydrationScripts options=leptos_options.clone()/>
19+
<MetaTags/>
20+
</head>
21+
<body>
22+
<App/>
23+
</body>
24+
</html>
25+
</SSRMountStyleProvider>
26+
}
27+
```
28+
29+
For [start-axum](https://github.com/leptos-rs/start-axum), it is in the [src/app.rs](https://github.com/leptos-rs/start-axum/blob/main/src/app.rs#L9) file.
30+
31+
For [start-actix](https://github.com/leptos-rs/start-actix), it is in the [src/main.rs](https://github.com/leptos-rs/start-actix/blob/943b1ad428072267f32217de4c62896f2bf70459/src/main.rs#L33) file.
32+
33+
## Features
34+
335
To enable the ssr mode, the following configurations are required:
436

537
```toml
@@ -12,7 +44,7 @@ To enable the hydrate mode, the following configurations are required:
1244
thaw = { ..., features = ["hydrate"] }
1345
```
1446

15-
### cargo-leptos
47+
## cargo-leptos
1648

1749
If you use [cargo-leptos](https://github.com/leptos-rs/cargo-leptos), Remember to add thaw to your `Cargo.toml` file in the corresponding feature, e.g.
1850

thaw/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thaw"
3-
version = "0.4.0-beta5"
3+
version = "0.4.0-rc"
44
edition = "2021"
55
keywords = ["web", "leptos", "ui", "thaw", "component"]
66
readme = "../README.md"

thaw_components/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thaw_components"
3-
version = "0.2.0-beta5"
3+
version = "0.2.0-rc"
44
edition = "2021"
55
keywords = ["leptos", "thaw", "components"]
66
readme = "../README.md"

thaw_macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thaw_macro"
3-
version = "0.1.0-beta5"
3+
version = "0.1.0-rc"
44
edition = "2021"
55
keywords = ["leptos", "thaw", "macro"]
66
readme = "../README.md"

thaw_utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thaw_utils"
3-
version = "0.1.0-beta5"
3+
version = "0.1.0-rc"
44
edition = "2021"
55
keywords = ["leptos", "thaw", "utils"]
66
readme = "../README.md"

0 commit comments

Comments
 (0)