Skip to content

Commit 5dae541

Browse files
committed
Added dash-table package and artifacts
1 parent b2fa799 commit 5dae541

18 files changed

+89
-76
lines changed

dash/dash_table/DataTable.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -668,13 +668,19 @@ class DataTable(Component):
668668
implemented using d3's currency format, but you can use this
669669
for other symbols such as measurement units.
670670
671-
- markdown_options (dict; default { link_target: '_blank'}):
671+
- markdown_options (dict; default { link_target: '_blank', html: False}):
672672
The `markdown_options` property allows customization of the
673673
markdown cells behavior.
674674
675675
`markdown_options` is a dict with keys:
676676
677-
- link_target (string | a value equal to: '_blank', '_parent', '_self', '_top'; required):
677+
- html (boolean; optional):
678+
(default: False) If True, html may be used in markdown cells
679+
Be careful enabling html if the content being rendered can
680+
come from an untrusted user, as this may create an XSS
681+
vulnerability.
682+
683+
- link_target (string | a value equal to: '_blank', '_parent', '_self', '_top'; optional):
678684
(default: '_blank'). The link's behavior (_blank opens the
679685
link in a new tab, _parent opens the link in the parent frame,
680686
_self opens the link in the current tab, and _top opens the

dash/dash_table/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
_this_module = _sys.modules[__name__]
3232

33+
3334
async_resources = ["export", "table", "highlight"]
3435

3536
_js_dist = []

dash/dash_table/async-export.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/async-export.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/async-highlight.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/async-highlight.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/async-table.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/async-table.js.LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Copyright (c) 2017 Jed Watson.
2+
Copyright (c) 2018 Jed Watson.
33
Licensed under the MIT License (MIT), see
44
http://jedwatson.github.io/classnames
55
*/

dash/dash_table/async-table.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/bundle.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/demo.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/demo.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash_table/metadata.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -539,14 +539,19 @@
539539
}
540540
],
541541
"description": "(default: '_blank'). The link's behavior (_blank opens the link in a\nnew tab, _parent opens the link in the parent frame, _self opens the link in the\ncurrent tab, and _top opens the link in the top frame) or a string",
542-
"required": true
542+
"required": false
543+
},
544+
"html": {
545+
"name": "bool",
546+
"description": "(default: False) If True, html may be used in markdown cells\nBe careful enabling html if the content being rendered can come\nfrom an untrusted user, as this may create an XSS vulnerability.",
547+
"required": false
543548
}
544549
}
545550
},
546551
"required": false,
547552
"description": "The `markdown_options` property allows customization of the markdown cells behavior.",
548553
"defaultValue": {
549-
"value": "{\n link_target: '_blank'\n}",
554+
"value": "{\n link_target: '_blank',\n html: false\n}",
550555
"computed": false
551556
}
552557
},

dash/dash_table/package-info.json

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-table",
3-
"version": "4.11.3",
3+
"version": "4.12.1",
44
"description": "Dash table",
55
"repository": {
66
"type": "git",
@@ -12,6 +12,7 @@
1212
"homepage": "https://github.com/plotly/dash-table",
1313
"main": "dash_table/bundle.js",
1414
"scripts": {
15+
"prepare": "husky install",
1516
"preprivate::test.server": "run-s private::wait_dash*",
1617
"private::build": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack --bail",
1718
"private::build:js": "run-s \"private::build -- --mode production\"",
@@ -29,7 +30,7 @@
2930
"private::test.unit": "karma start karma.conf.js --single-run",
3031
"build.watch": "webpack serve --disable-host-check --content-base dash_table --mode development --config webpack.dev.config.js",
3132
"build": "run-s private::build:js private::build:backends",
32-
"postbuild": "es-check es5 dash_table/*.js",
33+
"postbuild": "es-check es5 dash_table/bundle.js dash_table/async-*.js",
3334
"format": "run-s private::format.*",
3435
"lint": "run-s private::lint.*",
3536
"test.server": "pytest --nopercyfinalize tests/selenium",
@@ -41,85 +42,84 @@
4142
"maintainer": "Ryan Patrick Kyle <[email protected]>",
4243
"license": "MIT",
4344
"devDependencies": {
44-
"@babel/cli": "^7.13.10",
45-
"@babel/core": "^7.13.10",
45+
"@babel/cli": "^7.14.5",
46+
"@babel/core": "^7.14.6",
4647
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
47-
"@babel/plugin-transform-regenerator": "^7.12.13",
48+
"@babel/plugin-transform-regenerator": "^7.14.5",
4849
"@babel/polyfill": "^7.12.1",
49-
"@babel/preset-env": "^7.13.10",
50-
"@babel/preset-react": "^7.12.13",
50+
"@babel/preset-env": "^7.14.7",
51+
"@babel/preset-react": "^7.14.5",
5152
"@fortawesome/fontawesome-svg-core": "^1.2.35",
5253
"@fortawesome/free-regular-svg-icons": "^5.15.3",
5354
"@fortawesome/free-solid-svg-icons": "^5.15.3",
5455
"@fortawesome/react-fontawesome": "^0.1.14",
5556
"@percy/storybook": "^3.3.1",
5657
"@plotly/dash-component-plugins": "^1.2.0",
5758
"@plotly/webpack-dash-dynamic-import": "^1.2.0",
58-
"@storybook/builder-webpack5": "^6.2.0-alpha.30",
59-
"@storybook/cli": "^6.2.0-beta.10",
60-
"@storybook/react": "^6.2.0-beta.10",
59+
"@storybook/builder-webpack5": "^6.3.2",
60+
"@storybook/cli": "^6.3.2",
61+
"@storybook/manager-webpack5": "^6.3.2",
62+
"@storybook/react": "^6.3.2",
6163
"@storybook/semver": "^7.3.2",
62-
"@types/chai": "^4.2.15",
63-
"@types/d3-format": "^2.0.0",
64-
"@types/highlight.js": "^10.1.0",
65-
"@types/mocha": "^8.2.1",
64+
"@types/chai": "^4.2.20",
65+
"@types/d3-format": "^3.0.1",
66+
"@types/mocha": "^8.2.3",
6667
"@types/papaparse": "^5.2.5",
67-
"@types/ramda": "^0.26.21",
68-
"@types/react": "^17.0.3",
69-
"@types/react-dom": "^17.0.2",
70-
"@types/react-select": "^3.0.16",
71-
"@typescript-eslint/eslint-plugin": "^4.18.0",
72-
"@typescript-eslint/parser": "^4.18.0",
68+
"@types/ramda": "^0.27.42",
69+
"@types/react": "^16.14.8",
70+
"@types/react-dom": "^16.9.13",
71+
"@types/react-select": "^4.0.16",
72+
"@typescript-eslint/eslint-plugin": "^4.28.2",
73+
"@typescript-eslint/parser": "^4.28.2",
7374
"babel-loader": "^8.2.2",
7475
"chai": "^4.3.4",
75-
"css-loader": "^5.1.3",
76+
"css-loader": "^5.2.6",
7677
"css.escape": "^1.5.1",
77-
"d3-format": "^2.0.0",
78-
"es-check": "^5.2.3",
79-
"eslint": "^7.22.0",
80-
"eslint-config-prettier": "^8.1.0",
78+
"d3-format": "^3.0.1",
79+
"es-check": "^5.2.4",
80+
"eslint": "^7.30.0",
81+
"eslint-config-prettier": "^8.3.0",
8182
"fast-isnumeric": "^1.1.4",
8283
"file-loader": "^6.2.0",
83-
"highlight.js": "^10.6.0",
84-
"husky": "^5.1.3",
85-
"karma": "^6.2.0",
84+
"highlight.js": "^11.0.1",
85+
"husky": "^7.0.1",
86+
"karma": "^6.3.4",
8687
"karma-chrome-launcher": "^3.1.0",
8788
"karma-mocha": "^2.0.1",
88-
"karma-typescript": "^5.5.0",
89+
"karma-typescript": "^5.5.1",
8990
"karma-webpack": "^5.0.0",
9091
"less": "^4.1.1",
91-
"less-loader": "^8.0.0",
92-
"mocha": "^8.3.2",
92+
"less-loader": "^10.0.1",
93+
"mocha": "^9.0.2",
9394
"npm-run-all": "^4.1.5",
94-
"papaparse": "^5.3.0",
95-
"prettier": "^2.2.1",
95+
"papaparse": "^5.3.1",
96+
"prettier": "^2.3.2",
9697
"ramda": "^0.27.1",
9798
"raw-loader": "^4.0.2",
98-
"react": "^17.0.1",
99-
"react-docgen": "^5.3.1",
100-
"react-dom": "^17.0.1",
99+
"react": "^16.14.0",
100+
"react-docgen": "^5.4.0",
101+
"react-dom": "^16.14.0",
101102
"react-select": "^1.3.0",
102103
"regenerator-runtime": "^0.13.7",
103104
"remarkable": "^2.0.1",
104105
"sheetclip": "^0.3.0",
105-
"style-loader": "^2.0.0",
106-
"ts-loader": "^8.0.18",
107-
"ts-node": "^9.1.1",
108-
"typescript": "^4.2.3",
109-
"webpack": "^5.27.0",
110-
"webpack-cli": "^4.5.0",
106+
"style-loader": "^3.0.0",
107+
"ts-loader": "^9.2.3",
108+
"typescript": "^4.3.5",
109+
"webpack": "^5.43.0",
110+
"webpack-cli": "^4.7.2",
111111
"webpack-dev-server": "^3.11.2",
112112
"webpack-preprocessor": "^0.1.12",
113-
"xlsx": "^0.16.9"
113+
"xlsx": "^0.17.0"
114114
},
115115
"files": [
116116
"/dash_table/async-*{.js,.map}",
117117
"/dash_table/bundle*{.js,.map}"
118118
],
119119
"peerDependencies": {
120120
"prop-types": "^15.7.2",
121-
"react": ">=17",
122-
"react-dom": ">=17"
121+
"react": ">=16",
122+
"react-dom": ">=16"
123123
},
124124
"engines": {
125125
"node": ">=12.0.0",

dash/dcc/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@
7676
_js_dist.extend(
7777
[
7878
{
79-
"relative_package_path": "dcc/{}.min.js".format(_this_module),
79+
"relative_package_path": "dcc/{}.js".format(_this_module),
8080
"external_url": (
8181
"https://unpkg.com/dash-core-components@{}"
82-
"/dash_core_components/dash_core_components.min.js"
82+
"/dash_core_components/dash_core_components.js"
8383
).format(__version__),
8484
"namespace": "dash",
8585
},
8686
{
87-
"relative_package_path": "dcc/{}.min.js.map".format(_this_module),
87+
"relative_package_path": "dcc/{}.js.map".format(_this_module),
8888
"external_url": (
8989
"https://unpkg.com/dash-core-components@{}"
90-
"/dash_core_components/dash_core_components.min.js.map"
90+
"/dash_core_components/dash_core_components.js.map"
9191
).format(__version__),
9292
"namespace": "dash",
9393
"dynamic": True,

packages/dash-core-components/dash_core_components_base/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@
7676
_js_dist.extend(
7777
[
7878
{
79-
"relative_package_path": "dcc/{}.min.js".format(_this_module),
79+
"relative_package_path": "dcc/{}.js".format(_this_module),
8080
"external_url": (
8181
"https://unpkg.com/dash-core-components@{}"
82-
"/dash_core_components/dash_core_components.min.js"
82+
"/dash_core_components/dash_core_components.js"
8383
).format(__version__),
8484
"namespace": "dash",
8585
},
8686
{
87-
"relative_package_path": "dcc/{}.min.js.map".format(_this_module),
87+
"relative_package_path": "dcc/{}.js.map".format(_this_module),
8888
"external_url": (
8989
"https://unpkg.com/dash-core-components@{}"
90-
"/dash_core_components/dash_core_components.min.js.map"
90+
"/dash_core_components/dash_core_components.js.map"
9191
).format(__version__),
9292
"namespace": "dash",
9393
"dynamic": True,

packages/dash-table/dash_table_base/__init__.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,19 @@
3030

3131
_this_module = _sys.modules[__name__]
3232

33+
3334
async_resources = ["export", "table", "highlight"]
3435

3536
_js_dist = []
3637

3738
_js_dist.extend(
3839
[
3940
{
40-
"relative_package_path": "async-{}.js".format(async_resource),
41+
"relative_package_path": "dash_table/async-{}.js".format(async_resource),
4142
"external_url": (
4243
"https://unpkg.com/dash-table@{}" "/dash_table/async-{}.js"
4344
).format(__version__, async_resource),
44-
"namespace": package_name,
45+
"namespace": "dash",
4546
"async": True,
4647
}
4748
for async_resource in async_resources
@@ -51,11 +52,11 @@
5152
_js_dist.extend(
5253
[
5354
{
54-
"relative_package_path": "async-{}.js.map".format(async_resource),
55+
"relative_package_path": "dash_table/async-{}.js.map".format(async_resource),
5556
"external_url": (
5657
"https://unpkg.com/dash-table@{}" "/dash_table/async-{}.js.map"
5758
).format(__version__, async_resource),
58-
"namespace": package_name,
59+
"namespace": "dash",
5960
"dynamic": True,
6061
}
6162
for async_resource in async_resources
@@ -65,18 +66,18 @@
6566
_js_dist.extend(
6667
[
6768
{
68-
"relative_package_path": "bundle.js",
69+
"relative_package_path": "dash_table/bundle.js",
6970
"external_url": (
7071
"https://unpkg.com/dash-table@{}/dash_table/bundle.js"
7172
).format(__version__),
72-
"namespace": package_name,
73+
"namespace": "dash",
7374
},
7475
{
75-
"relative_package_path": "bundle.js.map",
76+
"relative_package_path": "dash_table/bundle.js.map",
7677
"external_url": (
7778
"https://unpkg.com/dash-table@{}/dash_table/bundle.js.map"
7879
).format(__version__),
79-
"namespace": package_name,
80+
"namespace": "dash",
8081
"dynamic": True,
8182
},
8283
]

0 commit comments

Comments
 (0)