@deephaven/dashboard 0.53.1-beta.4 → 0.53.1-beta.5
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.
- package/dist/Dashboard.d.ts.map +1 -1
- package/dist/Dashboard.js +15 -11
- package/dist/Dashboard.js.map +1 -1
- package/dist/layout/LayoutManagerContext.d.ts +5 -0
- package/dist/layout/LayoutManagerContext.d.ts.map +1 -0
- package/dist/layout/LayoutManagerContext.js +4 -0
- package/dist/layout/LayoutManagerContext.js.map +1 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout/index.js +2 -0
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/useLayoutManager.d.ts +7 -0
- package/dist/layout/useLayoutManager.d.ts.map +1 -0
- package/dist/layout/useLayoutManager.js +14 -0
- package/dist/layout/useLayoutManager.js.map +1 -0
- package/package.json +10 -10
package/dist/Dashboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../src/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,yBAAyB,EACzB,aAAa,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,4BAA4B,CAAC;AAIpC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../src/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,yBAAyB,EACzB,aAAa,EAKd,MAAM,OAAO,CAAC;AAEf,OAAO,YAAY,MAAM,0BAA0B,CAAC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
import PanelPlaceholder from "./PanelPlaceholder.js";
|
|
12
12
|
import DashboardLayout from "./DashboardLayout.js";
|
|
13
13
|
import "./Dashboard.css";
|
|
14
|
+
import { LayoutManagerContext } from "./layout/index.js";
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
var RESIZE_THROTTLE = 100;
|
|
@@ -79,17 +80,20 @@ export function Dashboard(_ref) {
|
|
|
79
80
|
children: [/*#__PURE__*/_jsx("div", {
|
|
80
81
|
className: "w-100 h-100",
|
|
81
82
|
ref: layoutElement
|
|
82
|
-
}), isInitialized && layout && /*#__PURE__*/_jsx(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
}), isInitialized && layout && /*#__PURE__*/_jsx(LayoutManagerContext.Provider, {
|
|
84
|
+
value: layout,
|
|
85
|
+
children: /*#__PURE__*/_jsx(DashboardLayout, {
|
|
86
|
+
emptyDashboard: emptyDashboard,
|
|
87
|
+
id: id,
|
|
88
|
+
layout: layout,
|
|
89
|
+
layoutConfig: layoutConfig,
|
|
90
|
+
onLayoutChange: onLayoutConfigChange,
|
|
91
|
+
onLayoutInitialized: onLayoutInitialized,
|
|
92
|
+
hydrate: hydrate,
|
|
93
|
+
dehydrate: dehydrate,
|
|
94
|
+
panelWrapper: panelWrapper,
|
|
95
|
+
children: children
|
|
96
|
+
})
|
|
93
97
|
})]
|
|
94
98
|
});
|
|
95
99
|
}
|
package/dist/Dashboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","names":["React","useEffect","useMemo","useRef","useState","throttle","GoldenLayout","LayoutUtils","PanelPlaceholder","DashboardLayout","jsx","_jsx","jsxs","_jsxs","RESIZE_THROTTLE","DEFAULT_CALLBACK","undefined","EMPTY_OBJECT","Object","freeze","Dashboard","_ref","id","children","emptyDashboard","layoutConfig","layoutSettings","onLayoutConfigChange","onGoldenLayoutChange","onLayoutInitialized","fallbackComponent","hydrate","dehydrate","panelWrapper","layoutElement","isInitialized","setIsInitialized","layout","setLayout","initDashboard","current","config","_objectSpread","makeDefaultLayout","settings","assign","content","newLayout","onInit","off","on","setFallbackComponent","init","destroy","handleResize","isInitialised","updateSize","initResizeEventListner","window","addEventListener","removeEventListener","className","ref","onLayoutChange"],"sources":["../src/Dashboard.tsx"],"sourcesContent":["import React, {\n ComponentType,\n ForwardRefExoticComponent,\n RefAttributes,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport throttle from 'lodash.throttle';\nimport GoldenLayout from '@deephaven/golden-layout';\nimport type { ItemConfigType } from '@deephaven/golden-layout';\nimport './layout/GoldenLayout.scss';\nimport LayoutUtils from './layout/LayoutUtils';\nimport PanelPlaceholder from './PanelPlaceholder';\nimport DashboardLayout from './DashboardLayout';\nimport {\n PanelDehydrateFunction,\n PanelHydrateFunction,\n PanelProps,\n} from './DashboardPlugin';\nimport './Dashboard.scss';\n\nconst RESIZE_THROTTLE = 100;\n\nconst DEFAULT_CALLBACK = (): void => undefined;\n\nconst EMPTY_OBJECT = Object.freeze({});\n\nexport type DashboardProps = {\n id?: string;\n children?: React.ReactNode | React.ReactNode[];\n emptyDashboard?: React.ReactNode;\n layoutConfig?: ItemConfigType[];\n layoutSettings?: Record<string, unknown>;\n onLayoutConfigChange?: () => void;\n onGoldenLayoutChange?: (goldenLayout: GoldenLayout) => void;\n onLayoutInitialized?: () => void;\n fallbackComponent?: ForwardRefExoticComponent<\n PanelProps & RefAttributes<HTMLDivElement>\n >;\n hydrate?: PanelHydrateFunction;\n dehydrate?: PanelDehydrateFunction;\n\n /** Component to wrap each panel with */\n panelWrapper?: ComponentType;\n};\n\nexport function Dashboard({\n id = 'default',\n children,\n emptyDashboard,\n layoutConfig,\n layoutSettings = EMPTY_OBJECT,\n onLayoutConfigChange = DEFAULT_CALLBACK,\n onGoldenLayoutChange = DEFAULT_CALLBACK,\n onLayoutInitialized = DEFAULT_CALLBACK,\n fallbackComponent = PanelPlaceholder,\n hydrate,\n dehydrate,\n panelWrapper,\n}: DashboardProps): JSX.Element {\n const layoutElement = useRef<HTMLDivElement>(null);\n const [isInitialized, setIsInitialized] = useState(false);\n const [layout, setLayout] = useState<GoldenLayout>();\n\n useEffect(\n function initDashboard() {\n if (!layoutElement.current) {\n setLayout(undefined);\n return;\n }\n const config = {\n ...LayoutUtils.makeDefaultLayout(),\n };\n if (config.settings === undefined) {\n config.settings = {};\n }\n Object.assign(config.settings, layoutSettings);\n\n // Load our content later after plugins have registered\n config.content = [];\n\n const newLayout = new GoldenLayout(config, layoutElement.current);\n\n const onInit = (): void => {\n newLayout.off('initialised', onInit);\n setIsInitialized(true);\n };\n newLayout.on('initialised', onInit);\n\n if (fallbackComponent != null) {\n newLayout.setFallbackComponent(fallbackComponent);\n }\n\n newLayout.init();\n\n setLayout(newLayout);\n\n onGoldenLayoutChange(newLayout);\n\n return () => {\n newLayout.destroy();\n };\n },\n [\n layoutSettings,\n fallbackComponent,\n onGoldenLayoutChange,\n setIsInitialized,\n setLayout,\n ]\n );\n\n const handleResize = useMemo(\n () =>\n throttle(() => {\n if (layout != null && layout.isInitialised) {\n layout?.updateSize();\n }\n }, RESIZE_THROTTLE),\n [layout]\n );\n\n useEffect(\n function initResizeEventListner() {\n window.addEventListener('resize', handleResize);\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n },\n [handleResize]\n );\n\n return (\n <div className=\"dashboard-container w-100 h-100\">\n <div className=\"w-100 h-100\" ref={layoutElement} />\n {isInitialized && layout && (\n <DashboardLayout\n
|
|
1
|
+
{"version":3,"file":"Dashboard.js","names":["React","useEffect","useMemo","useRef","useState","throttle","GoldenLayout","LayoutUtils","PanelPlaceholder","DashboardLayout","LayoutManagerContext","jsx","_jsx","jsxs","_jsxs","RESIZE_THROTTLE","DEFAULT_CALLBACK","undefined","EMPTY_OBJECT","Object","freeze","Dashboard","_ref","id","children","emptyDashboard","layoutConfig","layoutSettings","onLayoutConfigChange","onGoldenLayoutChange","onLayoutInitialized","fallbackComponent","hydrate","dehydrate","panelWrapper","layoutElement","isInitialized","setIsInitialized","layout","setLayout","initDashboard","current","config","_objectSpread","makeDefaultLayout","settings","assign","content","newLayout","onInit","off","on","setFallbackComponent","init","destroy","handleResize","isInitialised","updateSize","initResizeEventListner","window","addEventListener","removeEventListener","className","ref","Provider","value","onLayoutChange"],"sources":["../src/Dashboard.tsx"],"sourcesContent":["import React, {\n ComponentType,\n ForwardRefExoticComponent,\n RefAttributes,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport throttle from 'lodash.throttle';\nimport GoldenLayout from '@deephaven/golden-layout';\nimport type { ItemConfigType } from '@deephaven/golden-layout';\nimport './layout/GoldenLayout.scss';\nimport LayoutUtils from './layout/LayoutUtils';\nimport PanelPlaceholder from './PanelPlaceholder';\nimport DashboardLayout from './DashboardLayout';\nimport {\n PanelDehydrateFunction,\n PanelHydrateFunction,\n PanelProps,\n} from './DashboardPlugin';\nimport './Dashboard.scss';\nimport { LayoutManagerContext } from './layout';\n\nconst RESIZE_THROTTLE = 100;\n\nconst DEFAULT_CALLBACK = (): void => undefined;\n\nconst EMPTY_OBJECT = Object.freeze({});\n\nexport type DashboardProps = {\n id?: string;\n children?: React.ReactNode | React.ReactNode[];\n emptyDashboard?: React.ReactNode;\n layoutConfig?: ItemConfigType[];\n layoutSettings?: Record<string, unknown>;\n onLayoutConfigChange?: () => void;\n onGoldenLayoutChange?: (goldenLayout: GoldenLayout) => void;\n onLayoutInitialized?: () => void;\n fallbackComponent?: ForwardRefExoticComponent<\n PanelProps & RefAttributes<HTMLDivElement>\n >;\n hydrate?: PanelHydrateFunction;\n dehydrate?: PanelDehydrateFunction;\n\n /** Component to wrap each panel with */\n panelWrapper?: ComponentType;\n};\n\nexport function Dashboard({\n id = 'default',\n children,\n emptyDashboard,\n layoutConfig,\n layoutSettings = EMPTY_OBJECT,\n onLayoutConfigChange = DEFAULT_CALLBACK,\n onGoldenLayoutChange = DEFAULT_CALLBACK,\n onLayoutInitialized = DEFAULT_CALLBACK,\n fallbackComponent = PanelPlaceholder,\n hydrate,\n dehydrate,\n panelWrapper,\n}: DashboardProps): JSX.Element {\n const layoutElement = useRef<HTMLDivElement>(null);\n const [isInitialized, setIsInitialized] = useState(false);\n const [layout, setLayout] = useState<GoldenLayout>();\n\n useEffect(\n function initDashboard() {\n if (!layoutElement.current) {\n setLayout(undefined);\n return;\n }\n const config = {\n ...LayoutUtils.makeDefaultLayout(),\n };\n if (config.settings === undefined) {\n config.settings = {};\n }\n Object.assign(config.settings, layoutSettings);\n\n // Load our content later after plugins have registered\n config.content = [];\n\n const newLayout = new GoldenLayout(config, layoutElement.current);\n\n const onInit = (): void => {\n newLayout.off('initialised', onInit);\n setIsInitialized(true);\n };\n newLayout.on('initialised', onInit);\n\n if (fallbackComponent != null) {\n newLayout.setFallbackComponent(fallbackComponent);\n }\n\n newLayout.init();\n\n setLayout(newLayout);\n\n onGoldenLayoutChange(newLayout);\n\n return () => {\n newLayout.destroy();\n };\n },\n [\n layoutSettings,\n fallbackComponent,\n onGoldenLayoutChange,\n setIsInitialized,\n setLayout,\n ]\n );\n\n const handleResize = useMemo(\n () =>\n throttle(() => {\n if (layout != null && layout.isInitialised) {\n layout?.updateSize();\n }\n }, RESIZE_THROTTLE),\n [layout]\n );\n\n useEffect(\n function initResizeEventListner() {\n window.addEventListener('resize', handleResize);\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n },\n [handleResize]\n );\n\n return (\n <div className=\"dashboard-container w-100 h-100\">\n <div className=\"w-100 h-100\" ref={layoutElement} />\n {isInitialized && layout && (\n <LayoutManagerContext.Provider value={layout}>\n <DashboardLayout\n emptyDashboard={emptyDashboard}\n id={id}\n layout={layout}\n layoutConfig={layoutConfig}\n onLayoutChange={onLayoutConfigChange}\n onLayoutInitialized={onLayoutInitialized}\n hydrate={hydrate}\n dehydrate={dehydrate}\n panelWrapper={panelWrapper}\n >\n {children}\n </DashboardLayout>\n </LayoutManagerContext.Provider>\n )}\n </div>\n );\n}\n\nexport default Dashboard;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAIVC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,YAAY,MAAM,0BAA0B;AAAC;AAAA,OAG7CC,WAAW;AAAA,OACXC,gBAAgB;AAAA,OAChBC,eAAe;AAAA;AAAA,SAObC,oBAAoB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAE7B,IAAMC,eAAe,GAAG,GAAG;AAE3B,IAAMC,gBAAgB,GAAGA,CAAA,KAAYC,SAAS;AAE9C,IAAMC,YAAY,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,CAAC;AAqBtC,OAAO,SAASC,SAASA,CAAAC,IAAA,EAaO;EAAA,IAbN;IACxBC,EAAE,GAAG,SAAS;IACdC,QAAQ;IACRC,cAAc;IACdC,YAAY;IACZC,cAAc,GAAGT,YAAY;IAC7BU,oBAAoB,GAAGZ,gBAAgB;IACvCa,oBAAoB,GAAGb,gBAAgB;IACvCc,mBAAmB,GAAGd,gBAAgB;IACtCe,iBAAiB,GAAGvB,gBAAgB;IACpCwB,OAAO;IACPC,SAAS;IACTC;EACc,CAAC,GAAAZ,IAAA;EACf,IAAMa,aAAa,GAAGhC,MAAM,CAAiB,IAAI,CAAC;EAClD,IAAM,CAACiC,aAAa,EAAEC,gBAAgB,CAAC,GAAGjC,QAAQ,CAAC,KAAK,CAAC;EACzD,IAAM,CAACkC,MAAM,EAAEC,SAAS,CAAC,GAAGnC,QAAQ,CAAe,CAAC;EAEpDH,SAAS,CACP,SAASuC,aAAaA,CAAA,EAAG;IACvB,IAAI,CAACL,aAAa,CAACM,OAAO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-0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutManagerContext.js","names":["React","LayoutManagerContext","createContext","undefined"],"sources":["../../src/layout/LayoutManagerContext.ts"],"sourcesContent":["import React from 'react';\nimport GoldenLayout from '@deephaven/golden-layout';\n\nexport const LayoutManagerContext: React.Context<GoldenLayout | undefined> =\n React.createContext<GoldenLayout | undefined>(undefined);\n\nexport default LayoutManagerContext;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,OAAO,IAAMC,oBAA6D,gBACxED,KAAK,CAACE,aAAa,CAA2BC,SAAS,CAAC;AAE1D,eAAeF,oBAAoB"}
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export { default as LayoutManagerContext } from './LayoutManagerContext';
|
|
1
2
|
export { default as LayoutUtils } from './LayoutUtils';
|
|
2
3
|
export { default as GLPropTypes } from './GLPropTypes';
|
|
3
4
|
export { default as useDashboardPanel } from './useDashboardPanel';
|
|
5
|
+
export { default as useLayoutManager } from './useLayoutManager';
|
|
4
6
|
export { default as useListener } from './useListener';
|
|
5
7
|
export { default as usePanelRegistration } from './usePanelRegistration';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/layout/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export { default as LayoutManagerContext } from "./LayoutManagerContext.js";
|
|
1
2
|
export { default as LayoutUtils } from "./LayoutUtils.js";
|
|
2
3
|
export { default as GLPropTypes } from "./GLPropTypes.js";
|
|
3
4
|
export { default as useDashboardPanel } from "./useDashboardPanel.js";
|
|
5
|
+
export { default as useLayoutManager } from "./useLayoutManager.js";
|
|
4
6
|
export { default as useListener } from "./useListener.js";
|
|
5
7
|
export { default as usePanelRegistration } from "./usePanelRegistration.js";
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
package/dist/layout/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","LayoutUtils","GLPropTypes","useDashboardPanel","useListener","usePanelRegistration"],"sources":["../../src/layout/index.ts"],"sourcesContent":["export { default as LayoutUtils } from './LayoutUtils';\nexport { default as GLPropTypes } from './GLPropTypes';\nexport { default as useDashboardPanel } from './useDashboardPanel';\nexport { default as useListener } from './useListener';\nexport { default as usePanelRegistration } from './usePanelRegistration';\n"],"mappings":"SAASA,OAAO,IAAIC,
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","LayoutManagerContext","LayoutUtils","GLPropTypes","useDashboardPanel","useLayoutManager","useListener","usePanelRegistration"],"sources":["../../src/layout/index.ts"],"sourcesContent":["export { default as LayoutManagerContext } from './LayoutManagerContext';\nexport { default as LayoutUtils } from './LayoutUtils';\nexport { default as GLPropTypes } from './GLPropTypes';\nexport { default as useDashboardPanel } from './useDashboardPanel';\nexport { default as useLayoutManager } from './useLayoutManager';\nexport { default as useListener } from './useListener';\nexport { default as usePanelRegistration } from './usePanelRegistration';\n"],"mappings":"SAASA,OAAO,IAAIC,oBAAoB;AAAA,SAC/BD,OAAO,IAAIE,WAAW;AAAA,SACtBF,OAAO,IAAIG,WAAW;AAAA,SACtBH,OAAO,IAAII,iBAAiB;AAAA,SAC5BJ,OAAO,IAAIK,gBAAgB;AAAA,SAC3BL,OAAO,IAAIM,WAAW;AAAA,SACtBN,OAAO,IAAIO,oBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayoutManager.d.ts","sourceRoot":"","sources":["../../src/layout/useLayoutManager.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,0BAA0B,CAAC;AAGrD;;GAEG;AACH,iBAAS,gBAAgB,IAAI,aAAa,CAQzC;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import LayoutManagerContext from "./LayoutManagerContext.js";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve the current LayoutManager from the context
|
|
5
|
+
*/
|
|
6
|
+
function useLayoutManager() {
|
|
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
|
+
}
|
|
11
|
+
return layoutManager;
|
|
12
|
+
}
|
|
13
|
+
export default useLayoutManager;
|
|
14
|
+
//# sourceMappingURL=useLayoutManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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.53.1-beta.
|
|
3
|
+
"version": "0.53.1-beta.5+0a6965a4",
|
|
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-beta.
|
|
26
|
-
"@deephaven/golden-layout": "^0.53.1-beta.
|
|
27
|
-
"@deephaven/jsapi-bootstrap": "^0.53.1-beta.
|
|
28
|
-
"@deephaven/log": "^0.53.1-beta.
|
|
29
|
-
"@deephaven/react-hooks": "^0.53.1-beta.
|
|
30
|
-
"@deephaven/redux": "^0.53.1-beta.
|
|
31
|
-
"@deephaven/utils": "^0.53.1-beta.
|
|
25
|
+
"@deephaven/components": "^0.53.1-beta.5+0a6965a4",
|
|
26
|
+
"@deephaven/golden-layout": "^0.53.1-beta.5+0a6965a4",
|
|
27
|
+
"@deephaven/jsapi-bootstrap": "^0.53.1-beta.5+0a6965a4",
|
|
28
|
+
"@deephaven/log": "^0.53.1-beta.5+0a6965a4",
|
|
29
|
+
"@deephaven/react-hooks": "^0.53.1-beta.5+0a6965a4",
|
|
30
|
+
"@deephaven/redux": "^0.53.1-beta.5+0a6965a4",
|
|
31
|
+
"@deephaven/utils": "^0.53.1-beta.5+0a6965a4",
|
|
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-beta.
|
|
45
|
+
"@deephaven/mocks": "^0.53.1-beta.5+0a6965a4",
|
|
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": "0a6965a41953470cb032ef44d93497fa438783e4"
|
|
55
55
|
}
|