dash-core-components 2.13.0 → 2.13.1

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.
@@ -47,7 +47,7 @@ var Link = function Link(props) {
47
47
  refresh = props.refresh,
48
48
  setProps = props.setProps;
49
49
  var sanitizedUrl = (0, _react.useMemo)(function () {
50
- return (0, _sanitizeUrl.sanitizeUrl)(href);
50
+ return href ? (0, _sanitizeUrl.sanitizeUrl)(href) : undefined;
51
51
  }, [href]);
52
52
  var updateLocation = function updateLocation(e) {
53
53
  var hasModifiers = e.metaKey || e.shiftKey || e.altKey || e.ctrlKey;
@@ -69,7 +69,7 @@ var Link = function Link(props) {
69
69
  window.scrollTo(0, 0);
70
70
  };
71
71
  (0, _react.useEffect)(function () {
72
- if (sanitizedUrl !== href) {
72
+ if (sanitizedUrl && sanitizedUrl !== href) {
73
73
  setProps({
74
74
  _dash_error: new Error("Dangerous link detected:: ".concat(href))
75
75
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dash-core-components",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "description": "Core component suite for Dash",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,11 +15,11 @@
15
15
  "private::format.black": "black dash_core_components_base/ tests/ setup.py",
16
16
  "private::format.eslint": "eslint src --fix",
17
17
  "private::format.prettier": "prettier --config .prettierrc --write src/**/*.js",
18
- "private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python39') !== 'python36'){process.exit(1)} \" || black --check dash_core_components_base/ tests/ setup.py",
18
+ "private::lint.black": "black --check dash_core_components_base/ tests/ setup.py",
19
19
  "private::lint.eslint": "eslint src",
20
20
  "private::lint.flake8": "flake8 --exclude=dash_core_components,node_modules,venv",
21
21
  "private::lint.prettier": "prettier --config .prettierrc src/**/*.js --list-different",
22
- "prepublishOnly": "rm -rf lib && babel src --out-dir lib --copy-files --config-file ./.lib.babelrc && rm -rf lib/jl/ lib/*.jl",
22
+ "prepublishOnly": "rimraf lib && babel src --out-dir lib --copy-files --config-file ./.lib.babelrc && rimraf --glob lib/jl/ lib/*.jl",
23
23
  "test": "run-s -c lint test:intg test:pyimport",
24
24
  "test:intg": "pytest --nopercyfinalize --headless tests/integration ",
25
25
  "test:pyimport": "python -m unittest tests/test_dash_import.py",
@@ -65,10 +65,10 @@
65
65
  "uniqid": "^5.4.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@babel/cli": "^7.23.4",
69
- "@babel/core": "^7.23.7",
68
+ "@babel/cli": "^7.23.9",
69
+ "@babel/core": "^7.24.0",
70
70
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
71
- "@babel/preset-env": "^7.23.8",
71
+ "@babel/preset-env": "^7.24.0",
72
72
  "@babel/preset-react": "^7.23.3",
73
73
  "@plotly/dash-component-plugins": "^1.2.3",
74
74
  "@plotly/webpack-dash-dynamic-import": "^1.3.0",
@@ -89,8 +89,9 @@
89
89
  "react-jsx-parser": "1.21.0",
90
90
  "style-loader": "^3.3.3",
91
91
  "styled-jsx": "^3.4.4",
92
- "webpack": "^5.90.0",
93
- "webpack-cli": "^5.1.4"
92
+ "webpack": "^5.90.3",
93
+ "webpack-cli": "^5.1.4",
94
+ "rimraf": "^5.0.5"
94
95
  },
95
96
  "optionalDependencies": { "fsevents": "*" },
96
97
  "files": [