reflex-components-plotly 0.9.7a1__tar.gz → 0.10.0__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.
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/.gitignore +8 -1
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/CHANGELOG.md +12 -1
- reflex_components_plotly-0.10.0/PKG-INFO +21 -0
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/pyproject.toml +12 -3
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/src/reflex_components_plotly/plotly.py +16 -6
- reflex_components_plotly-0.9.7a1/PKG-INFO +0 -15
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/README.md +0 -0
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/news/.gitkeep +0 -0
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/src/reflex_components_plotly/__init__.py +0 -0
- {reflex_components_plotly-0.9.7a1 → reflex_components_plotly-0.10.0}/src/reflex_components_plotly/plotly.pyi +0 -0
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
.mypy_cache/
|
|
8
8
|
assets/external/*
|
|
9
9
|
dist/*
|
|
10
|
-
examples/
|
|
10
|
+
# Only the tracked examples; private apps under examples/ stay ignored. The
|
|
11
|
+
# pattern has a separator in the middle, so it is anchored to this directory
|
|
12
|
+
# and leaves the examples that live inside packages and tests alone.
|
|
13
|
+
examples/*
|
|
14
|
+
!examples/README.md
|
|
15
|
+
!examples/ruff.toml
|
|
16
|
+
!examples/playground/
|
|
11
17
|
.web
|
|
12
18
|
.states
|
|
13
19
|
.idea
|
|
@@ -21,6 +27,7 @@ requirements.txt
|
|
|
21
27
|
.pyi_generator_diff
|
|
22
28
|
reflex.db
|
|
23
29
|
.codspeed
|
|
30
|
+
.reflex-bench/
|
|
24
31
|
.env
|
|
25
32
|
.env.*
|
|
26
33
|
node_modules
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
## v0.
|
|
1
|
+
## v0.10.0 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### Breaking Changes
|
|
4
|
+
|
|
5
|
+
- Require Python 3.11 or newer; Python 3.10 is no longer supported. ([#7449](https://github.com/reflex-dev/reflex/issues/7449))
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- Normalize string Plotly layout titles to the `{"title": {"text": "..."}}` format required by Plotly.js. ([#7226](https://github.com/reflex-dev/reflex/issues/7226))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## v0.9.7 (2026-09-21)
|
|
2
13
|
|
|
3
14
|
### Bug Fixes
|
|
4
15
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: reflex-components-plotly
|
|
3
|
+
Version: 0.10.0
|
|
4
|
+
Summary: Reflex plotly components.
|
|
5
|
+
Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
|
|
6
|
+
Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Requires-Dist: reflex-base>=0.10.0
|
|
16
|
+
Requires-Dist: reflex-components-core>=0.10.0
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# reflex-components-plotly
|
|
20
|
+
|
|
21
|
+
Reflex plotly components.
|
|
@@ -6,12 +6,20 @@ license.text = "Apache-2.0"
|
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
authors = [{ name = "Khaleel Al-Adhami", email = "khaleel@reflex.dev" }]
|
|
8
8
|
maintainers = [{ name = "Khaleel Al-Adhami", email = "khaleel@reflex.dev" }]
|
|
9
|
-
requires-python = ">=3.
|
|
9
|
+
requires-python = ">=3.11"
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Programming Language :: Python :: 3",
|
|
12
|
+
"Programming Language :: Python :: 3.11",
|
|
13
|
+
"Programming Language :: Python :: 3.12",
|
|
14
|
+
"Programming Language :: Python :: 3.13",
|
|
15
|
+
"Programming Language :: Python :: 3.14",
|
|
16
|
+
"Programming Language :: Python :: 3.15",
|
|
17
|
+
]
|
|
10
18
|
dependencies = [
|
|
11
19
|
# The unversioned "mergician" import resolves against the pin in
|
|
12
20
|
# reflex-base's PackageJson.DEPENDENCIES.
|
|
13
|
-
"reflex-base >= 0.
|
|
14
|
-
"reflex-components-core >= 0.
|
|
21
|
+
"reflex-base >= 0.10.0",
|
|
22
|
+
"reflex-components-core >= 0.10.0",
|
|
15
23
|
]
|
|
16
24
|
|
|
17
25
|
[tool.hatch.version]
|
|
@@ -20,6 +28,7 @@ source = "uv-dynamic-versioning"
|
|
|
20
28
|
[tool.uv-dynamic-versioning]
|
|
21
29
|
pattern-prefix = "reflex-components-plotly-"
|
|
22
30
|
fallback-version = "0.0.0dev0"
|
|
31
|
+
bump = true
|
|
23
32
|
|
|
24
33
|
[tool.hatch.build]
|
|
25
34
|
# Include uncommitted pyi stubs generated for this package.
|
|
@@ -215,6 +215,15 @@ class Plotly(NoSSRComponent):
|
|
|
215
215
|
codes = [
|
|
216
216
|
"const removeUndefined = (obj) => {Object.keys(obj).forEach(key => obj[key] === undefined && delete obj[key]); return obj}",
|
|
217
217
|
"""
|
|
218
|
+
const _rxNormalizePlotlyLayout = (layout) => {
|
|
219
|
+
if (!layout || typeof layout !== "object" || typeof layout.title !== "string") {
|
|
220
|
+
return layout;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return {...layout, title: {text: layout.title}};
|
|
224
|
+
}
|
|
225
|
+
""",
|
|
226
|
+
"""
|
|
218
227
|
const extractPoints = (points) => {
|
|
219
228
|
if (!points) return [];
|
|
220
229
|
return points.map(point => {
|
|
@@ -323,10 +332,9 @@ const _rxGetPlotlyLocaleConfig = (config, locale, plotlyLocales) => {
|
|
|
323
332
|
figure = self.data.to(dict) if self.data is not None else Var.create({})
|
|
324
333
|
merge_dicts = [] # Data will be merged and spread from these dict Vars
|
|
325
334
|
if self.layout is not None:
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
layout_dict = LiteralVar.create({"layout": self.layout})
|
|
335
|
+
layout_dict = Var(
|
|
336
|
+
_js_expr=f"{{layout: _rxNormalizePlotlyLayout({self.layout})}}"
|
|
337
|
+
)
|
|
330
338
|
merge_dicts.append(layout_dict)
|
|
331
339
|
if self.template is not None:
|
|
332
340
|
template_dict = LiteralVar.create({"layout": {"template": self.template}})
|
|
@@ -337,8 +345,10 @@ const _rxGetPlotlyLocaleConfig = (config, locale, plotlyLocales) => {
|
|
|
337
345
|
*tag.special_props,
|
|
338
346
|
# Merge all dictionaries and spread the result over props.
|
|
339
347
|
Var(
|
|
340
|
-
_js_expr=
|
|
341
|
-
|
|
348
|
+
_js_expr=(
|
|
349
|
+
f"{{ ...mergician({figure!s}, "
|
|
350
|
+
f"...{Var.create(merge_dicts)!s}) }}"
|
|
351
|
+
),
|
|
342
352
|
),
|
|
343
353
|
]
|
|
344
354
|
)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: reflex-components-plotly
|
|
3
|
-
Version: 0.9.7a1
|
|
4
|
-
Summary: Reflex plotly components.
|
|
5
|
-
Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
|
|
6
|
-
Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
|
|
7
|
-
License: Apache-2.0
|
|
8
|
-
Requires-Python: >=3.10
|
|
9
|
-
Requires-Dist: reflex-base>=0.9.12a1
|
|
10
|
-
Requires-Dist: reflex-components-core>=0.9.0
|
|
11
|
-
Description-Content-Type: text/markdown
|
|
12
|
-
|
|
13
|
-
# reflex-components-plotly
|
|
14
|
-
|
|
15
|
-
Reflex plotly components.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|