@deephaven/dashboard 0.53.1-layout-manager.4 → 0.54.1-beta.0
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 layoutManager = useContext(LayoutManagerContext);
|
|
8
|
+
if (layoutManager == null) {
|
|
9
|
+
throw new Error('LayoutManager not available, did you add a LayoutManagerContext.Provider to the tree?');
|
|
10
10
|
}
|
|
11
|
-
return
|
|
11
|
+
return layoutManager;
|
|
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","layoutManager","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 layoutManager = useContext(LayoutManagerContext);\n if (layoutManager == null) {\n throw new Error(\n 'LayoutManager not available, did you add a LayoutManagerContext.Provider to the tree?'\n );\n }\n return layoutManager;\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,aAAa,GAAGH,UAAU,CAACC,oBAAoB,CAAC;EACtD,IAAIE,aAAa,IAAI,IAAI,EAAE;IACzB,MAAM,IAAIC,KAAK,CACb,uFACF,CAAC;EACH;EACA,OAAOD,aAAa;AACtB;AAEA,eAAeD,gBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/dashboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.1-beta.0+724c84e4",
|
|
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.
|
|
26
|
-
"@deephaven/golden-layout": "^0.
|
|
27
|
-
"@deephaven/jsapi-bootstrap": "^0.
|
|
28
|
-
"@deephaven/log": "^0.
|
|
29
|
-
"@deephaven/react-hooks": "^0.
|
|
30
|
-
"@deephaven/redux": "^0.
|
|
31
|
-
"@deephaven/utils": "^0.
|
|
25
|
+
"@deephaven/components": "^0.54.1-beta.0+724c84e4",
|
|
26
|
+
"@deephaven/golden-layout": "^0.54.1-beta.0+724c84e4",
|
|
27
|
+
"@deephaven/jsapi-bootstrap": "^0.54.1-beta.0+724c84e4",
|
|
28
|
+
"@deephaven/log": "^0.54.1-beta.0+724c84e4",
|
|
29
|
+
"@deephaven/react-hooks": "^0.54.1-beta.0+724c84e4",
|
|
30
|
+
"@deephaven/redux": "^0.54.1-beta.0+724c84e4",
|
|
31
|
+
"@deephaven/utils": "^0.54.1-beta.0+724c84e4",
|
|
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.
|
|
45
|
+
"@deephaven/mocks": "^0.54.1-beta.0+724c84e4",
|
|
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": "724c84e40aa8a716f10f39c33019a5301bfd5dab"
|
|
55
55
|
}
|