reflex-components-plotly 0.9.4__tar.gz → 0.9.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,14 @@
1
+ ## v0.9.5 (2026-08-28)
2
+
3
+ ### Features
4
+
5
+ - The generated client-only wrapper for each plotly component now carries the component's name, so React DevTools shows `ClientSide(Plot)` instead of an anonymous wrapper. ([#6945](https://github.com/reflex-dev/reflex/issues/6945))
6
+
7
+ ### Miscellaneous
8
+
9
+ - Internal logging migrated from the legacy console helpers to standard python `logging` per-module loggers. ([#6864](https://github.com/reflex-dev/reflex/issues/6864))
10
+
11
+
1
12
  ## v0.9.4 (2026-08-04)
2
13
 
3
14
  ### Miscellaneous
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: reflex-components-plotly
3
- Version: 0.9.4
3
+ Version: 0.9.5
4
4
  Summary: Reflex plotly components.
5
5
  Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
6
6
  Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
@@ -20,8 +20,8 @@ pattern-prefix = "reflex-components-plotly-"
20
20
  fallback-version = "0.0.0dev0"
21
21
 
22
22
  [tool.hatch.build]
23
- targets.sdist.artifacts = ["*.pyi"]
24
- targets.wheel.artifacts = ["*.pyi"]
23
+ # Include uncommitted pyi stubs generated for this package.
24
+ artifacts = ["/src/**/*.pyi"]
25
25
 
26
26
  [tool.hatch.build.hooks.reflex-pyi]
27
27
  dependencies = [
@@ -2,21 +2,24 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import json
6
+ import logging
5
7
  from typing import TYPE_CHECKING, Any, TypedDict, TypeVar
6
8
 
7
9
  from reflex_base.components.component import Component, NoSSRComponent, field
8
10
  from reflex_base.event import EventHandler, no_args_event_spec
9
- from reflex_base.utils import console
10
11
  from reflex_base.utils.imports import ImportDict, ImportVar
11
12
  from reflex_base.vars.base import LiteralVar, Var
12
13
  from reflex_components_core.core.cond import color_mode_cond
13
14
 
15
+ logger = logging.getLogger(__name__)
16
+
14
17
  try:
15
18
  from plotly.graph_objs import Figure
16
19
  from plotly.graph_objs.layout import Template
17
20
 
18
21
  except ImportError:
19
- console.warn("Plotly is not installed. Please run `pip install plotly`.")
22
+ logger.warning("Plotly is not installed. Please run `pip install plotly`.")
20
23
  if not TYPE_CHECKING:
21
24
  Figure = Any
22
25
  Template = Any
@@ -374,7 +377,7 @@ def dynamic_plotly_import(name: str, package: str) -> str:
374
377
  return f"""
375
378
  const {name} = ClientSide(() =>
376
379
  {library_import}{mod_import}
377
- )
380
+ , {json.dumps(name)})
378
381
  """
379
382
 
380
383
 
@@ -3,21 +3,22 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
+ import logging
6
7
  from collections.abc import Mapping, Sequence
7
8
  from typing import TYPE_CHECKING, Any, TypedDict, TypeVar
8
9
 
9
10
  from reflex_base.components.component import NoSSRComponent
10
11
  from reflex_base.event import EventType, PointerEventInfo
11
- from reflex_base.utils import console
12
12
  from reflex_base.utils.imports import ImportDict
13
13
  from reflex_base.vars.base import Var
14
14
  from reflex_components_core.core.breakpoints import Breakpoints
15
15
 
16
+ logger = logging.getLogger(__name__)
16
17
  try:
17
18
  from plotly.graph_objs import Figure
18
19
  from plotly.graph_objs.layout import Template
19
20
  except ImportError:
20
- console.warn("Plotly is not installed. Please run `pip install plotly`.")
21
+ logger.warning("Plotly is not installed. Please run `pip install plotly`.")
21
22
  if not TYPE_CHECKING:
22
23
  Figure = Any
23
24
  Template = Any