@deephaven/dashboard 0.53.1-deephaven-layout.11 → 0.53.1-layout-manager.4
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.
|
@@ -4,11 +4,11 @@ import LayoutManagerContext from "./LayoutManagerContext.js";
|
|
|
4
4
|
* Retrieve the current LayoutManager from the context
|
|
5
5
|
*/
|
|
6
6
|
function useLayoutManager() {
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
throw new Error('
|
|
7
|
+
var layout = useContext(LayoutManagerContext);
|
|
8
|
+
if (layout == null) {
|
|
9
|
+
throw new Error('Layout not available, did you add a LayoutManagerContext.Provider to the tree?');
|
|
10
10
|
}
|
|
11
|
-
return
|
|
11
|
+
return layout;
|
|
12
12
|
}
|
|
13
13
|
export default useLayoutManager;
|
|
14
14
|
//# sourceMappingURL=useLayoutManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutManager.js","names":["useContext","LayoutManagerContext","useLayoutManager","
|
|
1
|
+
{"version":3,"file":"useLayoutManager.js","names":["useContext","LayoutManagerContext","useLayoutManager","layout","Error"],"sources":["../../src/layout/useLayoutManager.ts"],"sourcesContent":["import { useContext } from 'react';\nimport LayoutManager from '@deephaven/golden-layout';\nimport LayoutManagerContext from './LayoutManagerContext';\n\n/**\n * Retrieve the current LayoutManager from the context\n */\nfunction useLayoutManager(): LayoutManager {\n const layout = useContext(LayoutManagerContext);\n if (layout == null) {\n throw new Error(\n 'Layout not available, did you add a LayoutManagerContext.Provider to the tree?'\n );\n }\n return layout;\n}\n\nexport default useLayoutManager;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAAC,OAE5BC,oBAAoB;AAE3B;AACA;AACA;AACA,SAASC,gBAAgBA,CAAA,EAAkB;EACzC,IAAMC,MAAM,GAAGH,UAAU,CAACC,oBAAoB,CAAC;EAC/C,IAAIE,MAAM,IAAI,IAAI,EAAE;IAClB,MAAM,IAAIC,KAAK,CACb,gFACF,CAAC;EACH;EACA,OAAOD,MAAM;AACf;AAEA,eAAeD,gBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/dashboard",
|
|
3
|
-
"version": "0.53.1-
|
|
3
|
+
"version": "0.53.1-layout-manager.4+35156012",
|
|
4
4
|
"description": "Deephaven Dashboard",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@deephaven/components": "^0.53.1-
|
|
26
|
-
"@deephaven/golden-layout": "^0.53.1-
|
|
27
|
-
"@deephaven/jsapi-bootstrap": "^0.53.1-
|
|
28
|
-
"@deephaven/log": "^0.53.1-
|
|
29
|
-
"@deephaven/react-hooks": "^0.53.1-
|
|
30
|
-
"@deephaven/redux": "^0.53.1-
|
|
31
|
-
"@deephaven/utils": "^0.53.1-
|
|
25
|
+
"@deephaven/components": "^0.53.1-layout-manager.4+35156012",
|
|
26
|
+
"@deephaven/golden-layout": "^0.53.1-layout-manager.4+35156012",
|
|
27
|
+
"@deephaven/jsapi-bootstrap": "^0.53.1-layout-manager.4+35156012",
|
|
28
|
+
"@deephaven/log": "^0.53.1-layout-manager.4+35156012",
|
|
29
|
+
"@deephaven/react-hooks": "^0.53.1-layout-manager.4+35156012",
|
|
30
|
+
"@deephaven/redux": "^0.53.1-layout-manager.4+35156012",
|
|
31
|
+
"@deephaven/utils": "^0.53.1-layout-manager.4+35156012",
|
|
32
32
|
"deep-equal": "^2.0.5",
|
|
33
33
|
"lodash.ismatch": "^4.1.1",
|
|
34
34
|
"lodash.throttle": "^4.1.1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-redux": "^7.2.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@deephaven/mocks": "^0.53.1-
|
|
45
|
+
"@deephaven/mocks": "^0.53.1-layout-manager.4+35156012",
|
|
46
46
|
"@types/lodash.ismatch": "^4.4.0"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "35156012036ec087dbc366e5439b85ff6d1f71ff"
|
|
55
55
|
}
|