Skip to content

Commit

Permalink
v0.4.0-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiaozero committed Dec 9, 2024
1 parent 092a6c0 commit 8bf83d6
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 10 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## [0.4.0-rc](https://github.com/thaw-ui/thaw/compare/v0.4.0-beta5...v0.4.0-rc) (2024-12-09)

### Features

* Adds `SSRMountStyleProvider` component, closes [#335](https://github.com/thaw-ui/thaw/pull/335).

### Bug Fixs

* Clicking the outer part of the `Popover` component does not close, closes [#334](https://github.com/thaw-ui/thaw/pull/334).
* Clicking the outer part of the `Menu` component does not close, closes [#334](https://github.com/thaw-ui/thaw/pull/334).

### Breaking Changes

* `PopoverTrigger` can only contain one child, closes [#330](https://github.com/thaw-ui/thaw/pull/330).
* `Tooltip` can only contain one child, closes [#330](https://github.com/thaw-ui/thaw/pull/330).
* `Menu` can only contain one child, closes [#330](https://github.com/thaw-ui/thaw/pull/330).

## [0.4.0-beta5](https://github.com/thaw-ui/thaw/compare/v0.4.0-beta4...v0.4.0-beta5) (2024-11-26)

### Features
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ exclude = ["examples"]
rust-version = "1.79"

[workspace.dependencies]
thaw = { version = "0.4.0-beta5", path = "./thaw" }
thaw_components = { version = "0.2.0-beta5", path = "./thaw_components" }
thaw_macro = { version = "0.1.0-beta5", path = "./thaw_macro" }
thaw_utils = { version = "0.1.0-beta5", path = "./thaw_utils" }
thaw = { version = "0.4.0-rc", path = "./thaw" }
thaw_components = { version = "0.2.0-rc", path = "./thaw_components" }
thaw_macro = { version = "0.1.0-rc", path = "./thaw_macro" }
thaw_utils = { version = "0.1.0-rc", path = "./thaw_utils" }

leptos = { version = "0.7.0" }
leptos_meta = { version = "0.7.0" }
leptos_router = { version = "0.7.0" }
reactive_stores = { version = "0.1.0-rc1" }
reactive_stores = { version = "0.1.0" }
34 changes: 33 additions & 1 deletion demo_markdown/docs/_guide/server_sider_rendering.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Server Sider Rendering

## SSRMountStyleProvider

In SSR mode, please use `SSRMountStyleProvider` component to wrap `html` tag.

Refer to [ssr_axum/src/app.rs](https://github.com/thaw-ui/thaw/blob/main/examples/ssr_axum/src/app.rs).

```rust
view! {
<SSRMountStyleProvider>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<AutoReload options=leptos_options.clone() />
<HydrationScripts options=leptos_options.clone()/>
<MetaTags/>
</head>
<body>
<App/>
</body>
</html>
</SSRMountStyleProvider>
}
```

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.

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.

## Features

To enable the ssr mode, the following configurations are required:

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

### cargo-leptos
## cargo-leptos

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.

Expand Down
2 changes: 1 addition & 1 deletion thaw/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thaw"
version = "0.4.0-beta5"
version = "0.4.0-rc"
edition = "2021"
keywords = ["web", "leptos", "ui", "thaw", "component"]
readme = "../README.md"
Expand Down
2 changes: 1 addition & 1 deletion thaw_components/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thaw_components"
version = "0.2.0-beta5"
version = "0.2.0-rc"
edition = "2021"
keywords = ["leptos", "thaw", "components"]
readme = "../README.md"
Expand Down
2 changes: 1 addition & 1 deletion thaw_macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thaw_macro"
version = "0.1.0-beta5"
version = "0.1.0-rc"
edition = "2021"
keywords = ["leptos", "thaw", "macro"]
readme = "../README.md"
Expand Down
2 changes: 1 addition & 1 deletion thaw_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thaw_utils"
version = "0.1.0-beta5"
version = "0.1.0-rc"
edition = "2021"
keywords = ["leptos", "thaw", "utils"]
readme = "../README.md"
Expand Down

0 comments on commit 8bf83d6

Please sign in to comment.