Skip to content

Commit

Permalink
Bump Dash to 2.17.0, and dmc to 0.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
emilhe committed May 4, 2024
1 parent 2e10e8b commit 5423105
Show file tree
Hide file tree
Showing 5 changed files with 527 additions and 452 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

All notable changes to this project will be documented in this file.

## [1.0.15] - UNRELEASED
## [1.0.15] - 05-04-24

- Add new `Loading` component
- Add new `Loading` component, which makes it possible to block events (e.g. keyboard input) while a component is loading.
- Add support for client side callbacks in the `TriggerTransform`. Contributed by [lcornelatti](https://github.com/andressommerhoff).

## [1.0.14] - 05-03-24

- Add new `validate` module, which adds an `assert_no_random_ids` that assets that Dash didn't generate any random component ids
- Add new `validate` module, which adds an `assert_no_random_ids` that assets that Dash didn't generate any random component ids.

## [1.0.13] - 05-03-24

### Added

- Add new `pages` module, which introduces the `page components` and `page properties` concepts
- Add new `pages` module, which introduces the `page components` and `page properties` concepts.

## [1.0.12] - 04-02-23

Expand Down
14 changes: 5 additions & 9 deletions dash_extensions/enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,10 @@ def _resolve_callbacks(self) -> Tuple[List[CallbackBlueprint], List[CallbackBlue

# TODO: Include or not? The plugin still seems a bit immature.
def register(self, app: Union[dash.Dash, DashProxy], module, prefix: Union[str, PrefixIdTransform, None]=None, **kwargs):
# Deal with the prefix -> # prefix can be a string but now also custom PrefixIdTransform instance
if isinstance(prefix, str) and prefix:
# Create a PrefixIdTransform if prefix is a non-empty string and append it to transforms.
prefix_transform = PrefixIdTransform(prefix)
self.transforms.append(prefix_transform)
elif prefix is not None:
# Register the prefix as an instance of PrefixIdTransform or similar.
self.transforms.append(prefix)
# Add prefix transform if supplied.
if prefix is not None:
prefix_transform = prefix if isinstance(prefix, PrefixIdTransform) else PrefixIdTransform(prefix)
self.transforms.append(prefix_transform)
# Register the callbacks and page.
self.register_callbacks(app)
dash.register_page(module, layout=self._layout_value, **kwargs)
Expand Down Expand Up @@ -669,7 +665,7 @@ def notification_layout_transform(layout: List[Component]):
import dash_mantine_components as dmc

layout.append(html.Div(id=log_id))
return [dmc.NotificationsProvider(layout)]
return [dmc.NotificationProvider(layout)]

return LogConfig(log_output, get_notification_log_writers(), notification_layout_transform)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-extensions",
"version": "1.0.15rc2",
"version": "1.0.15",
"description": "Extensions for Plotly Dash.",
"main": "build/index.js",
"scripts": {
Expand Down
Loading

0 comments on commit 5423105

Please sign in to comment.