-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev'
- update build artifacts
- Loading branch information
Showing
30 changed files
with
433 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import sys | ||
|
||
__file__ | ||
__version__ = "1.2.0" | ||
__version__ = "1.2.2" | ||
|
||
_js_dist_dependencies = [ | ||
{ | ||
|
@@ -42,7 +42,7 @@ | |
{ | ||
"relative_package_path": "{}.min.js".format(__name__), | ||
"dev_package_path": "{}.dev.js".format(__name__), | ||
"external_url": "https://unpkg.com/[email protected].0" | ||
"external_url": "https://unpkg.com/[email protected].2" | ||
"/dash_renderer/dash_renderer.min.js", | ||
"namespace": "dash_renderer", | ||
}, | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"MD5 (dash_renderer.dev.js)":"5c8dd18a7219a02a2bba18fa3745e956", | ||
"MD5 (dash_renderer.min.js)":"42000353e8f0b5f4abf96ea9ee0f3a49", | ||
"MD5 (dash_renderer.dev.js)":"9f94b1dfda81223a2f277573cc4d34af", | ||
"MD5 (dash_renderer.min.js)":"50050e60b65a8982d75e83b7760324dd", | ||
"MD5 ([email protected])":"ed6472b73ae010eee88282933a04c2a1", | ||
"MD5 ([email protected])":"85947944e396a28895fad5f553eee36f", | ||
"MD5 ([email protected])":"e3053393609bd2744010498629a43597", | ||
"MD5 ([email protected])":"d7f8afaf3370a228c8d5c802c9d9a102", | ||
"MD5 ([email protected])":"fad5842bd019c3878795ec52059f47fc", | ||
"MD5 ([email protected])":"bb95f4cd851114c374c3858e9c51da10", | ||
"MD5 ([email protected])":"f808b8e8ab51b0d9525795db3768cd86", | ||
"dash-renderer":"1.2.0" | ||
"dash-renderer":"1.2.2" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {path} from 'ramda'; | ||
import {isReady} from '@plotly/dash-component-plugins'; | ||
|
||
import Registry from '../registry'; | ||
|
||
export default (layout, paths, targets) => { | ||
const promises = []; | ||
targets.forEach(id => { | ||
const pathOfId = paths[id]; | ||
if (!pathOfId) { | ||
return; | ||
} | ||
|
||
const target = path(pathOfId, layout); | ||
if (!target) { | ||
return; | ||
} | ||
|
||
const component = Registry.resolve(target); | ||
const ready = isReady(component); | ||
|
||
if (ready && typeof ready.then === 'function') { | ||
promises.push(ready); | ||
} | ||
}); | ||
|
||
return promises.length ? Promise.all(promises) : true; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import isAppReady from "../src/actions/isAppReady"; | ||
|
||
const WAIT = 1000; | ||
|
||
describe('isAppReady', () => { | ||
let resolve; | ||
beforeEach(() => { | ||
const promise = new Promise(r => { | ||
resolve = r; | ||
}); | ||
|
||
window.__components = { | ||
a: { _dashprivate_isLazyComponentReady: promise }, | ||
b: {} | ||
}; | ||
}); | ||
|
||
it('executes if app is ready', async () => { | ||
let done = false; | ||
Promise.resolve(isAppReady( | ||
[{ namespace: '__components', type: 'b', props: { id: 'comp1' } }], | ||
{ comp1: [0] }, | ||
['comp1'] | ||
)).then(() => { | ||
done = true | ||
}); | ||
|
||
await new Promise(r => setTimeout(r, WAIT)); | ||
expect(done).toEqual(true); | ||
}); | ||
|
||
it('waits on app to be ready', async () => { | ||
let done = false; | ||
Promise.resolve(isAppReady( | ||
[{ namespace: '__components', type: 'a', props: { id: 'comp1' } }], | ||
{ comp1: [0] }, | ||
['comp1'] | ||
)).then(() => { | ||
done = true | ||
}); | ||
|
||
await new Promise(r => setTimeout(r, WAIT)); | ||
expect(done).toEqual(false); | ||
|
||
resolve(); | ||
|
||
await new Promise(r => setTimeout(r, WAIT)); | ||
expect(done).toEqual(true); | ||
}); | ||
}); |
Oops, something went wrong.