Skip to content

Commit 8ec69cc

Browse files
committed
new build
1 parent 7aa5f17 commit 8ec69cc

21 files changed

+63
-22
lines changed

dash/dash-renderer/build/dash_renderer.dev.js

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

dash/dash-renderer/build/dash_renderer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/demo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/demo.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/Graph.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ class Graph(Component):
263263
- prop_name (string; optional):
264264
Holds which property is loading.
265265
266+
- mathjax (boolean; default False):
267+
If True, loads mathjax v3 (tex-svg) into the page and use it in
268+
the graph.
269+
266270
- prependData (list | dict; optional):
267271
Data that should be prepended to existing traces. Has the form
268272
`[updateData, traceIndices, maxPoints]`, where `updateData` is an
@@ -326,6 +330,7 @@ def __init__(
326330
figure=Component.UNDEFINED,
327331
style=Component.UNDEFINED,
328332
className=Component.UNDEFINED,
333+
mathjax=Component.UNDEFINED,
329334
animate=Component.UNDEFINED,
330335
animation_options=Component.UNDEFINED,
331336
config=Component.UNDEFINED,
@@ -345,6 +350,7 @@ def __init__(
345350
"figure",
346351
"hoverData",
347352
"loading_state",
353+
"mathjax",
348354
"prependData",
349355
"relayoutData",
350356
"responsive",
@@ -368,6 +374,7 @@ def __init__(
368374
"figure",
369375
"hoverData",
370376
"loading_state",
377+
"mathjax",
371378
"prependData",
372379
"relayoutData",
373380
"responsive",

dash/dcc/Markdown.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ class Markdown(Component):
5858
- prop_name (string; optional):
5959
Holds which property is loading.
6060
61+
- mathjax (boolean; default False):
62+
If True, loads mathjax v3 (tex-svg) into the page and use it in
63+
the markdown.
64+
6165
- style (dict; optional):
6266
User-defined inline styles for the rendered Markdown."""
6367

@@ -67,6 +71,7 @@ def __init__(
6771
children=None,
6872
id=Component.UNDEFINED,
6973
className=Component.UNDEFINED,
74+
mathjax=Component.UNDEFINED,
7075
dangerously_allow_html=Component.UNDEFINED,
7176
dedent=Component.UNDEFINED,
7277
highlight_config=Component.UNDEFINED,
@@ -82,6 +87,7 @@ def __init__(
8287
"dedent",
8388
"highlight_config",
8489
"loading_state",
90+
"mathjax",
8591
"style",
8692
]
8793
self._type = "Markdown"
@@ -95,6 +101,7 @@ def __init__(
95101
"dedent",
96102
"highlight_config",
97103
"loading_state",
104+
"mathjax",
98105
"style",
99106
]
100107
self.available_wildcard_properties = []

dash/dcc/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"graph",
4949
"highlight",
5050
"markdown",
51+
"mathjax",
5152
"slider",
5253
"upload",
5354
]

dash/dcc/async-graph.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/async-graph.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/async-markdown.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/async-markdown.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/async-mathjax.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/async-plotlyjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/dash_core_components.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/dash_core_components.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/mathjax.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dcc/metadata.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,6 +2005,17 @@
20052005
"required": false,
20062006
"description": "className of the parent div"
20072007
},
2008+
"mathjax": {
2009+
"type": {
2010+
"name": "bool"
2011+
},
2012+
"required": false,
2013+
"description": "If true, loads mathjax v3 (tex-svg) into the page and use it in the graph",
2014+
"defaultValue": {
2015+
"value": "false",
2016+
"computed": false
2017+
}
2018+
},
20082019
"animate": {
20092020
"type": {
20102021
"name": "bool"
@@ -3542,6 +3553,17 @@
35423553
"required": false,
35433554
"description": "Class name of the container element"
35443555
},
3556+
"mathjax": {
3557+
"type": {
3558+
"name": "bool"
3559+
},
3560+
"required": false,
3561+
"description": "If true, loads mathjax v3 (tex-svg) into the page and use it in the markdown",
3562+
"defaultValue": {
3563+
"value": "false",
3564+
"computed": false
3565+
}
3566+
},
35453567
"dangerously_allow_html": {
35463568
"type": {
35473569
"name": "bool"

dash/dcc/package-info.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-core-components",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "Core component suite for Dash",
55
"repository": {
66
"type": "git",
@@ -23,7 +23,7 @@
2323
"test": "run-s -c lint test:intg test:pyimport",
2424
"test:intg": "pytest --nopercyfinalize --headless tests/integration",
2525
"test:pyimport": "python -m unittest tests/test_dash_import.py",
26-
"prebuild:js": "cp node_modules/plotly.js-dist-min/plotly.min.js dash_core_components_base/plotly.min.js",
26+
"prebuild:js": "cp node_modules/plotly.js-dist-min/plotly.min.js dash_core_components_base/plotly.min.js && cp node_modules/mathjax/es5/tex-svg.js dash_core_components_base/mathjax.js",
2727
"build:js": "webpack --mode production",
2828
"build:backends": "dash-generate-components ./src/components dash_core_components -p package-info.json && cp dash_core_components_base/** dash_core_components/ && dash-generate-components ./src/components dash_core_components -p package-info.json -k RangeSlider,Slider,Dropdown,RadioItems,Checklist,DatePickerSingle,DatePickerRange,Input,Link --r-prefix 'dcc' --r-suggests 'dash,dashHtmlComponents,jsonlite,plotly' --jl-prefix 'dcc' && black dash_core_components",
2929
"build": "run-s prepublishOnly build:js build:backends",
@@ -46,9 +46,10 @@
4646
"fast-isnumeric": "^1.1.4",
4747
"file-saver": "^2.0.5",
4848
"highlight.js": "^11.4.0",
49+
"mathjax": "^3.2.0",
4950
"moment": "^2.29.1",
5051
"node-polyfill-webpack-plugin": "^1.1.4",
51-
"plotly.js-dist-min": "2.9.0",
52+
"plotly.js-dist-min": "2.11.0",
5253
"prop-types": "^15.7.2",
5354
"ramda": "^0.27.1",
5455
"rc-slider": "^9.7.5",
@@ -60,6 +61,7 @@
6061
"react-resize-detector": "^6.7.6",
6162
"react-select-fast-filter-options": "^0.2.3",
6263
"react-virtualized-select": "^3.1.3",
64+
"remark-math": "^3.0.1",
6365
"uniqid": "^5.4.0"
6466
},
6567
"devDependencies": {

dash/dcc/plotly.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)