Skip to content

Commit c2d6dce

Browse files
author
Marc-André Rivet
committed
- Merge remote-tracking branch 'origin/dev'
- update renderer artifacts - stricten dash dependencies versions
2 parents 904f0e3 + a9db3a0 commit c2d6dce

30 files changed

+659
-254
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# These owners will be the default owners for everything in
22
# the repo. Unless a later match takes precedence
3-
* @alexcjohnson @byronz @Marc-Andre-Rivet
3+
* @alexcjohnson @Marc-Andre-Rivet
44

5-
_r_* @alexcjohnson @byronz @Marc-Andre-Rivet @rpkyle
5+
_r_* @alexcjohnson @Marc-Andre-Rivet @rpkyle

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ venv/
1414
ENV/
1515
env.bak/
1616
venv.bak/
17+
vv
1718

1819
# IDE
1920
.idea/*
@@ -64,4 +65,4 @@ npm-debug*
6465

6566
dash_renderer/
6667
digest.json
67-
VERSION.txt
68+
VERSION.txt

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,42 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [1.8.0] - 2020-01-14
6+
### Added
7+
- [#1073](https://github.com/plotly/dash/pull/1073) Two new functions to simplify usage handling URLs and pathnames: `app.get_relative_path` & `app.trim_relative_path`.
8+
These functions are particularly useful for apps deployed on Dash Enterprise where the apps served under a URL prefix (the app name) which is unlike apps served on localhost:8050.
9+
- `app.get_relative_path` returns a path with the config setting `requests_pathname_prefix` prefixed. Use `app.get_relative_path` anywhere you would provide a relative pathname, like `dcc.Link(href=app.relative_path('/page-2'))` or even as an alternative to `app.get_asset_url` with e.g. `html.Img(src=app.get_relative_path('/assets/logo.png'))`.
10+
- `app.trim_relative_path` a path with `requests_pathname_prefix` and leading & trailing
11+
slashes stripped from it. Use this function in callbacks that deal with `dcc.Location` `pathname`
12+
routing.
13+
Example usage:
14+
```python
15+
app.layout = html.Div([
16+
dcc.Location(id='url'),
17+
html.Div(id='content')
18+
])
19+
@app.callback(Output('content', 'children'), [Input('url', 'pathname')])
20+
def display_content(path):
21+
page_name = app.strip_relative_path(path)
22+
if not page_name: # None or ''
23+
return html.Div([
24+
html.Img(src=app.get_relative_path('/assets/logo.png')),
25+
dcc.Link(href=app.get_relative_path('/page-1')),
26+
dcc.Link(href=app.get_relative_path('/page-2')),
27+
])
28+
elif page_name == 'page-1':
29+
return chapters.page_1
30+
if page_name == "page-2":
31+
return chapters.page_2
32+
```
33+
34+
### Changed
35+
- [#1035](https://github.com/plotly/dash/pull/1035) Simplify our build process.
36+
- [#1074](https://github.com/plotly/dash/pull/1045) Error messages when providing an incorrect property to a component have been improved: they now specify the component type, library, version, and ID (if available).
37+
38+
### Fixed
39+
- [#1037](https://github.com/plotly/dash/pull/1037) Fix no_update test to allow copies, such as those stored and retrieved from a cache.
40+
541
## [1.7.0] - 2019-11-27
642
### Added
743
- [#967](https://github.com/plotly/dash/pull/967) Add support for defining

dash-renderer/dash_renderer/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22

33
__file__
4-
__version__ = "1.2.2"
4+
__version__ = "1.2.3"
55

66
_js_dist_dependencies = [
77
{
@@ -42,7 +42,7 @@
4242
{
4343
"relative_package_path": "{}.min.js".format(__name__),
4444
"dev_package_path": "{}.dev.js".format(__name__),
45-
"external_url": "https://unpkg.com/[email protected].2"
45+
"external_url": "https://unpkg.com/[email protected].3"
4646
"/dash_renderer/dash_renderer.min.js",
4747
"namespace": "dash_renderer",
4848
},

dash-renderer/dash_renderer/dash_renderer.dev.js

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

dash-renderer/dash_renderer/dash_renderer.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.

dash-renderer/digest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"MD5 (dash_renderer.dev.js)":"9f94b1dfda81223a2f277573cc4d34af",
3-
"MD5 (dash_renderer.min.js)":"50050e60b65a8982d75e83b7760324dd",
2+
"MD5 (dash_renderer.dev.js)":"561787639c4e4e6dfc2ed334f8b9c08e",
3+
"MD5 (dash_renderer.min.js)":"b89f7fc48aecc81250a3a002f0f0a5a0",
44
"MD5 ([email protected])":"ed6472b73ae010eee88282933a04c2a1",
55
"MD5 ([email protected])":"85947944e396a28895fad5f553eee36f",
66
"MD5 ([email protected])":"e3053393609bd2744010498629a43597",
77
"MD5 ([email protected])":"d7f8afaf3370a228c8d5c802c9d9a102",
88
"MD5 ([email protected])":"fad5842bd019c3878795ec52059f47fc",
99
"MD5 ([email protected])":"bb95f4cd851114c374c3858e9c51da10",
1010
"MD5 ([email protected])":"f808b8e8ab51b0d9525795db3768cd86",
11-
"dash-renderer":"1.2.2"
11+
"dash-renderer":"1.2.3"
1212
}

dash-renderer/package-lock.json

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

dash-renderer/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-renderer",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "render dash components in react",
55
"main": "dash_renderer/dash_renderer.min.js",
66
"scripts": {
@@ -23,7 +23,6 @@
2323
"react": "16.8.6",
2424
"react-dom": "16.8.6",
2525
"prop-types": "15.7.2",
26-
"check-prop-types": "1.1.2",
2726
"cookie": "^0.3.1",
2827
"dependency-graph": "^0.5.0",
2928
"radium": "^0.22.1",
@@ -32,7 +31,6 @@
3231
"redux": "^3.4.0",
3332
"redux-actions": "^0.9.1",
3433
"redux-thunk": "^2.0.1",
35-
"uniqid": "^5.0.3",
3634
"viz.js": "1.8.0"
3735
},
3836
"devDependencies": {
@@ -59,7 +57,6 @@
5957
"prettier-eslint": "^8.8.2",
6058
"prettier-eslint-cli": "^4.7.1",
6159
"prettier-stylelint": "^0.4.2",
62-
"raw-loader": "^3.1.0",
6360
"style-loader": "^1.0.0",
6461
"webpack": "^4.39.3",
6562
"webpack-cli": "^3.3.8",

dash-renderer/src/TreeContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {notifyObservers, updateProps} from './actions';
2525
import isSimpleComponent from './isSimpleComponent';
2626
import {recordUiEdit} from './persistence';
2727
import ComponentErrorBoundary from './components/error/ComponentErrorBoundary.react';
28-
import checkPropTypes from 'check-prop-types';
28+
import checkPropTypes from './checkPropTypes';
2929

3030
function validateComponent(componentDefinition) {
3131
if (type(componentDefinition) === 'Array') {

0 commit comments

Comments
 (0)