@deephaven/app-utils 0.60.1-object-fetcher.7 → 0.61.1-alpha-widget-types.1
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/components/ConnectionBootstrap.d.ts.map +1 -1
- package/dist/components/ConnectionBootstrap.js +4 -17
- package/dist/components/ConnectionBootstrap.js.map +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -2
- package/dist/components/index.js.map +1 -1
- package/dist/plugins/remote-component.config.d.ts +2 -0
- package/dist/plugins/remote-component.config.d.ts.map +1 -1
- package/dist/plugins/remote-component.config.js +2 -0
- package/dist/plugins/remote-component.config.js.map +1 -1
- package/package.json +19 -18
- package/dist/components/ConnectionContext.d.ts +0 -5
- package/dist/components/ConnectionContext.d.ts.map +0 -1
- package/dist/components/ConnectionContext.js +0 -4
- package/dist/components/ConnectionContext.js.map +0 -1
- package/dist/components/useConnection.d.ts +0 -9
- package/dist/components/useConnection.d.ts.map +0 -1
- package/dist/components/useConnection.js +0 -12
- package/dist/components/useConnection.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/ConnectionBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ConnectionBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/ConnectionBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,GACT,EAAE,wBAAwB,GAAG,GAAG,CAAC,OAAO,CAgExC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
2
2
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
3
|
-
import React, {
|
|
3
|
+
import React, { useEffect, useState } from 'react';
|
|
4
4
|
import { LoadingOverlay } from '@deephaven/components';
|
|
5
|
-
import {
|
|
5
|
+
import { useApi, useClient } from '@deephaven/jsapi-bootstrap';
|
|
6
|
+
import { ConnectionContext } from '@deephaven/jsapi-components';
|
|
6
7
|
import Log from '@deephaven/log';
|
|
7
|
-
import { assertNotNull } from '@deephaven/utils';
|
|
8
|
-
import ConnectionContext from "./ConnectionContext.js";
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
var log = Log.module('@deephaven/app-utils.ConnectionBootstrap');
|
|
11
10
|
/**
|
|
@@ -58,15 +57,6 @@ export function ConnectionBootstrap(_ref) {
|
|
|
58
57
|
var removerFn = connection.addEventListener(api.IdeConnection.EVENT_SHUTDOWN, handleShutdown);
|
|
59
58
|
return removerFn;
|
|
60
59
|
}, [api, connection]);
|
|
61
|
-
var objectFetcher = useCallback( /*#__PURE__*/function () {
|
|
62
|
-
var _ref2 = _asyncToGenerator(function* (descriptor) {
|
|
63
|
-
assertNotNull(connection, 'connection');
|
|
64
|
-
return connection.getObject(sanitizeVariableDescriptor(descriptor));
|
|
65
|
-
});
|
|
66
|
-
return function (_x) {
|
|
67
|
-
return _ref2.apply(this, arguments);
|
|
68
|
-
};
|
|
69
|
-
}(), [connection]);
|
|
70
60
|
if (connection == null || error != null) {
|
|
71
61
|
return /*#__PURE__*/_jsx(LoadingOverlay, {
|
|
72
62
|
"data-testid": "connection-bootstrap-loading",
|
|
@@ -76,10 +66,7 @@ export function ConnectionBootstrap(_ref) {
|
|
|
76
66
|
}
|
|
77
67
|
return /*#__PURE__*/_jsx(ConnectionContext.Provider, {
|
|
78
68
|
value: connection,
|
|
79
|
-
children:
|
|
80
|
-
value: objectFetcher,
|
|
81
|
-
children: children
|
|
82
|
-
})
|
|
69
|
+
children: children
|
|
83
70
|
});
|
|
84
71
|
}
|
|
85
72
|
export default ConnectionBootstrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionBootstrap.js","names":["React","
|
|
1
|
+
{"version":3,"file":"ConnectionBootstrap.js","names":["React","useEffect","useState","LoadingOverlay","useApi","useClient","ConnectionContext","Log","jsx","_jsx","log","module","ConnectionBootstrap","_ref","children","api","client","error","setError","connection","setConnection","initConnection","isCanceled","loadConnection","_loadConnection","apply","arguments","_asyncToGenerator","newConnection","getAsIdeConnection","e","listenForShutdown","handleShutdown","event","detail","info","concat","JSON","stringify","removerFn","addEventListener","IdeConnection","EVENT_SHUTDOWN","isLoading","errorMessage","undefined","Provider","value"],"sources":["../../src/components/ConnectionBootstrap.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { LoadingOverlay } from '@deephaven/components';\nimport { useApi, useClient } from '@deephaven/jsapi-bootstrap';\nimport type { IdeConnection } from '@deephaven/jsapi-types';\nimport { ConnectionContext } from '@deephaven/jsapi-components';\nimport Log from '@deephaven/log';\n\nconst log = Log.module('@deephaven/app-utils.ConnectionBootstrap');\n\nexport type ConnectionBootstrapProps = {\n /**\n * The children to render wrapped with the ConnectionContext.\n * Will not render children until the connection is created.\n */\n children: React.ReactNode;\n};\n\n/**\n * ConnectionBootstrap component. Handles initializing the connection.\n */\nexport function ConnectionBootstrap({\n children,\n}: ConnectionBootstrapProps): JSX.Element {\n const api = useApi();\n const client = useClient();\n const [error, setError] = useState<unknown>();\n const [connection, setConnection] = useState<IdeConnection>();\n useEffect(\n function initConnection() {\n let isCanceled = false;\n async function loadConnection(): Promise<void> {\n try {\n const newConnection = await client.getAsIdeConnection();\n if (isCanceled) {\n return;\n }\n setConnection(newConnection);\n } catch (e) {\n if (isCanceled) {\n return;\n }\n setError(e);\n }\n }\n loadConnection();\n return () => {\n isCanceled = true;\n };\n },\n [api, client]\n );\n\n useEffect(\n function listenForShutdown() {\n if (connection == null) return;\n\n function handleShutdown(event: CustomEvent): void {\n const { detail } = event;\n log.info('Shutdown', `${JSON.stringify(detail)}`);\n setError(`Server shutdown: ${detail ?? 'Unknown reason'}`);\n }\n\n const removerFn = connection.addEventListener(\n api.IdeConnection.EVENT_SHUTDOWN,\n handleShutdown\n );\n return removerFn;\n },\n [api, connection]\n );\n\n if (connection == null || error != null) {\n return (\n <LoadingOverlay\n data-testid=\"connection-bootstrap-loading\"\n isLoading={connection == null}\n errorMessage={error != null ? `${error}` : undefined}\n />\n );\n }\n\n return (\n <ConnectionContext.Provider value={connection}>\n {children}\n </ConnectionContext.Provider>\n );\n}\n\nexport default ConnectionBootstrap;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,MAAM,EAAEC,SAAS,QAAQ,4BAA4B;AAE9D,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,OAAOC,GAAG,MAAM,gBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjC,IAAMC,GAAG,GAAGH,GAAG,CAACI,MAAM,CAAC,0CAA0C,CAAC;AAUlE;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAAAC,IAAA,EAEO;EAAA,IAFN;IAClCC;EACwB,CAAC,GAAAD,IAAA;EACzB,IAAME,GAAG,GAAGX,MAAM,CAAC,CAAC;EACpB,IAAMY,MAAM,GAAGX,SAAS,CAAC,CAAC;EAC1B,IAAM,CAACY,KAAK,EAAEC,QAAQ,CAAC,GAAGhB,QAAQ,CAAU,CAAC;EAC7C,IAAM,CAACiB,UAAU,EAAEC,aAAa,CAAC,GAAGlB,QAAQ,CAAgB,CAAC;EAC7DD,SAAS,CACP,SAASoB,cAAcA,CAAA,EAAG;IACxB,IAAIC,UAAU,GAAG,KAAK;IAAC,SACRC,cAAcA,CAAA;MAAA,OAAAC,eAAA,CAAAC,KAAA,OAAAC,SAAA;IAAA;IAAA,SAAAF,gBAAA;MAAAA,eAAA,GAAAG,iBAAA,CAA7B,aAA+C;QAC7C,IAAI;UACF,IAAMC,aAAa,SAASZ,MAAM,CAACa,kBAAkB,CAAC,CAAC;UACvD,IAAIP,UAAU,EAAE;YACd;UACF;UACAF,aAAa,CAACQ,aAAa,CAAC;QAC9B,CAAC,CAAC,OAAOE,CAAC,EAAE;UACV,IAAIR,UAAU,EAAE;YACd;UACF;UACAJ,QAAQ,CAACY,CAAC,CAAC;QACb;MACF,CAAC;MAAA,OAAAN,eAAA,CAAAC,KAAA,OAAAC,SAAA;IAAA;IACDH,cAAc,CAAC,CAAC;IAChB,OAAO,MAAM;MACXD,UAAU,GAAG,IAAI;IACnB,CAAC;EACH,CAAC,EACD,CAACP,GAAG,EAAEC,MAAM,CACd,CAAC;EAEDf,SAAS,CACP,SAAS8B,iBAAiBA,CAAA,EAAG;IAC3B,IAAIZ,UAAU,IAAI,IAAI,EAAE;IAExB,SAASa,cAAcA,CAACC,KAAkB,EAAQ;MAChD,IAAM;QAAEC;MAAO,CAAC,GAAGD,KAAK;MACxBvB,GAAG,CAACyB,IAAI,CAAC,UAAU,KAAAC,MAAA,CAAKC,IAAI,CAACC,SAAS,CAACJ,MAAM,CAAC,CAAE,CAAC;MACjDhB,QAAQ,qBAAAkB,MAAA,CAAqBF,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,gBAAgB,CAAE,CAAC;IAC5D;IAEA,IAAMK,SAAS,GAAGpB,UAAU,CAACqB,gBAAgB,CAC3CzB,GAAG,CAAC0B,aAAa,CAACC,cAAc,EAChCV,cACF,CAAC;IACD,OAAOO,SAAS;EAClB,CAAC,EACD,CAACxB,GAAG,EAAEI,UAAU,CAClB,CAAC;EAED,IAAIA,UAAU,IAAI,IAAI,IAAIF,KAAK,IAAI,IAAI,EAAE;IACvC,oBACER,IAAA,CAACN,cAAc;MACb,eAAY,8BAA8B;MAC1CwC,SAAS,EAAExB,UAAU,IAAI,IAAK;MAC9ByB,YAAY,EAAE3B,KAAK,IAAI,IAAI,MAAAmB,MAAA,CAAMnB,KAAK,IAAK4B;IAAU,CACtD,CAAC;EAEN;EAEA,oBACEpC,IAAA,CAACH,iBAAiB,CAACwC,QAAQ;IAACC,KAAK,EAAE5B,UAAW;IAAAL,QAAA,EAC3CA;EAAQ,CACiB,CAAC;AAEjC;AAEA,eAAeF,mBAAmB"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export * from './AppBootstrap';
|
|
2
2
|
export * from './AuthBootstrap';
|
|
3
3
|
export * from './ConnectionBootstrap';
|
|
4
|
-
export * from './ConnectionContext';
|
|
5
4
|
export * from './FontBootstrap';
|
|
6
5
|
export * from './FontsLoaded';
|
|
7
6
|
export * from './PluginsBootstrap';
|
|
8
7
|
export * from './ThemeBootstrap';
|
|
9
|
-
export * from './useConnection';
|
|
10
8
|
export * from './useServerConfig';
|
|
11
9
|
export * from './useUser';
|
|
12
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export * from "./AppBootstrap.js";
|
|
2
2
|
export * from "./AuthBootstrap.js";
|
|
3
3
|
export * from "./ConnectionBootstrap.js";
|
|
4
|
-
export * from "./ConnectionContext.js";
|
|
5
4
|
export * from "./FontBootstrap.js";
|
|
6
5
|
export * from "./FontsLoaded.js";
|
|
7
6
|
export * from "./PluginsBootstrap.js";
|
|
8
7
|
export * from "./ThemeBootstrap.js";
|
|
9
|
-
export * from "./useConnection.js";
|
|
10
8
|
export * from "./useServerConfig.js";
|
|
11
9
|
export * from "./useUser.js";
|
|
12
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["export * from './AppBootstrap';\nexport * from './AuthBootstrap';\nexport * from './ConnectionBootstrap';\nexport * from './
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["export * from './AppBootstrap';\nexport * from './AuthBootstrap';\nexport * from './ConnectionBootstrap';\nexport * from './FontBootstrap';\nexport * from './FontsLoaded';\nexport * from './PluginsBootstrap';\nexport * from './ThemeBootstrap';\nexport * from './useServerConfig';\nexport * from './useUser';\n"],"mappings":""}
|
|
@@ -12,6 +12,7 @@ import * as DeephavenAuthPlugins from '@deephaven/auth-plugins';
|
|
|
12
12
|
import * as DeephavenChart from '@deephaven/chart';
|
|
13
13
|
import * as DeephavenComponents from '@deephaven/components';
|
|
14
14
|
import * as DeephavenDashboard from '@deephaven/dashboard';
|
|
15
|
+
import * as DeephavenDashboardCorePlugins from '@deephaven/dashboard-core-plugins';
|
|
15
16
|
import * as DeephavenIcons from '@deephaven/icons';
|
|
16
17
|
import * as DeephavenIrisGrid from '@deephaven/iris-grid';
|
|
17
18
|
import * as DeephavenJsapiBootstrap from '@deephaven/jsapi-bootstrap';
|
|
@@ -29,6 +30,7 @@ export declare const resolve: {
|
|
|
29
30
|
'@deephaven/chart': typeof DeephavenChart;
|
|
30
31
|
'@deephaven/components': typeof DeephavenComponents;
|
|
31
32
|
'@deephaven/dashboard': typeof DeephavenDashboard;
|
|
33
|
+
'@deephaven/dashboard-core-plugins': typeof DeephavenDashboardCorePlugins;
|
|
32
34
|
'@deephaven/icons': typeof DeephavenIcons;
|
|
33
35
|
'@deephaven/iris-grid': typeof DeephavenIrisGrid;
|
|
34
36
|
'@deephaven/jsapi-bootstrap': typeof DeephavenJsapiBootstrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-component.config.d.ts","sourceRoot":"","sources":["../../src/plugins/remote-component.config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,aAAa,CAAC;AAC1C,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,oBAAoB,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,iBAAiB,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,uBAAuB,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,wBAAwB,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAGrD,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"remote-component.config.d.ts","sourceRoot":"","sources":["../../src/plugins/remote-component.config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,aAAa,CAAC;AAC1C,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,oBAAoB,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,6BAA6B,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,iBAAiB,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,uBAAuB,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,wBAAwB,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAGrD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC"}
|
|
@@ -12,6 +12,7 @@ import * as DeephavenAuthPlugins from '@deephaven/auth-plugins';
|
|
|
12
12
|
import * as DeephavenChart from '@deephaven/chart';
|
|
13
13
|
import * as DeephavenComponents from '@deephaven/components';
|
|
14
14
|
import * as DeephavenDashboard from '@deephaven/dashboard';
|
|
15
|
+
import * as DeephavenDashboardCorePlugins from '@deephaven/dashboard-core-plugins';
|
|
15
16
|
import * as DeephavenIcons from '@deephaven/icons';
|
|
16
17
|
import * as DeephavenIrisGrid from '@deephaven/iris-grid';
|
|
17
18
|
import * as DeephavenJsapiBootstrap from '@deephaven/jsapi-bootstrap';
|
|
@@ -32,6 +33,7 @@ export var resolve = {
|
|
|
32
33
|
'@deephaven/chart': DeephavenChart,
|
|
33
34
|
'@deephaven/components': DeephavenComponents,
|
|
34
35
|
'@deephaven/dashboard': DeephavenDashboard,
|
|
36
|
+
'@deephaven/dashboard-core-plugins': DeephavenDashboardCorePlugins,
|
|
35
37
|
'@deephaven/icons': DeephavenIcons,
|
|
36
38
|
'@deephaven/iris-grid': DeephavenIrisGrid,
|
|
37
39
|
'@deephaven/jsapi-bootstrap': DeephavenJsapiBootstrap,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-component.config.js","names":["react","redux","reactRedux","ReactDOM","AdobeReactSpectrum","DeephavenAuthPlugins","DeephavenChart","DeephavenComponents","DeephavenDashboard","DeephavenIcons","DeephavenIrisGrid","DeephavenJsapiBootstrap","DeephavenJsapiComponents","DeephavenJsapiUtils","DeephavenLog","DeephavenReactHooks","DeephavenPlugin","resolve"],"sources":["../../src/plugins/remote-component.config.ts"],"sourcesContent":["/**\n * remote-component.config.js\n *\n * Dependencies for Remote Components\n */\nimport react from 'react';\nimport * as redux from 'redux';\nimport * as reactRedux from 'react-redux';\nimport ReactDOM from 'react-dom';\nimport * as AdobeReactSpectrum from '@adobe/react-spectrum';\nimport * as DeephavenAuthPlugins from '@deephaven/auth-plugins';\nimport * as DeephavenChart from '@deephaven/chart';\nimport * as DeephavenComponents from '@deephaven/components';\nimport * as DeephavenDashboard from '@deephaven/dashboard';\nimport * as DeephavenIcons from '@deephaven/icons';\nimport * as DeephavenIrisGrid from '@deephaven/iris-grid';\nimport * as DeephavenJsapiBootstrap from '@deephaven/jsapi-bootstrap';\nimport * as DeephavenJsapiComponents from '@deephaven/jsapi-components';\nimport * as DeephavenJsapiUtils from '@deephaven/jsapi-utils';\nimport DeephavenLog from '@deephaven/log';\nimport * as DeephavenReactHooks from '@deephaven/react-hooks';\nimport * as DeephavenPlugin from '@deephaven/plugin';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const resolve = {\n react,\n 'react-dom': ReactDOM,\n redux,\n 'react-redux': reactRedux,\n '@adobe/react-spectrum': AdobeReactSpectrum,\n '@deephaven/auth-plugins': DeephavenAuthPlugins,\n '@deephaven/chart': DeephavenChart,\n '@deephaven/components': DeephavenComponents,\n '@deephaven/dashboard': DeephavenDashboard,\n '@deephaven/icons': DeephavenIcons,\n '@deephaven/iris-grid': DeephavenIrisGrid,\n '@deephaven/jsapi-bootstrap': DeephavenJsapiBootstrap,\n '@deephaven/jsapi-components': DeephavenJsapiComponents,\n '@deephaven/jsapi-utils': DeephavenJsapiUtils,\n '@deephaven/log': DeephavenLog,\n '@deephaven/plugin': DeephavenPlugin,\n '@deephaven/react-hooks': DeephavenReactHooks,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAO,KAAKC,UAAU,MAAM,aAAa;AACzC,OAAOC,QAAQ,MAAM,WAAW;AAChC,OAAO,KAAKC,kBAAkB,MAAM,uBAAuB;AAC3D,OAAO,KAAKC,oBAAoB,MAAM,yBAAyB;AAC/D,OAAO,KAAKC,cAAc,MAAM,kBAAkB;AAClD,OAAO,KAAKC,mBAAmB,MAAM,uBAAuB;AAC5D,OAAO,KAAKC,kBAAkB,MAAM,sBAAsB;AAC1D,OAAO,KAAKC,cAAc,MAAM,kBAAkB;AAClD,OAAO,KAAKC,iBAAiB,MAAM,sBAAsB;AACzD,OAAO,KAAKC,uBAAuB,MAAM,4BAA4B;AACrE,OAAO,KAAKC,wBAAwB,MAAM,6BAA6B;AACvE,OAAO,KAAKC,mBAAmB,MAAM,wBAAwB;AAC7D,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAO,KAAKC,mBAAmB,MAAM,wBAAwB;AAC7D,OAAO,KAAKC,eAAe,MAAM,mBAAmB;;AAEpD;AACA,OAAO,IAAMC,OAAO,GAAG;
|
|
1
|
+
{"version":3,"file":"remote-component.config.js","names":["react","redux","reactRedux","ReactDOM","AdobeReactSpectrum","DeephavenAuthPlugins","DeephavenChart","DeephavenComponents","DeephavenDashboard","DeephavenDashboardCorePlugins","DeephavenIcons","DeephavenIrisGrid","DeephavenJsapiBootstrap","DeephavenJsapiComponents","DeephavenJsapiUtils","DeephavenLog","DeephavenReactHooks","DeephavenPlugin","resolve"],"sources":["../../src/plugins/remote-component.config.ts"],"sourcesContent":["/**\n * remote-component.config.js\n *\n * Dependencies for Remote Components\n */\nimport react from 'react';\nimport * as redux from 'redux';\nimport * as reactRedux from 'react-redux';\nimport ReactDOM from 'react-dom';\nimport * as AdobeReactSpectrum from '@adobe/react-spectrum';\nimport * as DeephavenAuthPlugins from '@deephaven/auth-plugins';\nimport * as DeephavenChart from '@deephaven/chart';\nimport * as DeephavenComponents from '@deephaven/components';\nimport * as DeephavenDashboard from '@deephaven/dashboard';\nimport * as DeephavenDashboardCorePlugins from '@deephaven/dashboard-core-plugins';\nimport * as DeephavenIcons from '@deephaven/icons';\nimport * as DeephavenIrisGrid from '@deephaven/iris-grid';\nimport * as DeephavenJsapiBootstrap from '@deephaven/jsapi-bootstrap';\nimport * as DeephavenJsapiComponents from '@deephaven/jsapi-components';\nimport * as DeephavenJsapiUtils from '@deephaven/jsapi-utils';\nimport DeephavenLog from '@deephaven/log';\nimport * as DeephavenReactHooks from '@deephaven/react-hooks';\nimport * as DeephavenPlugin from '@deephaven/plugin';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const resolve = {\n react,\n 'react-dom': ReactDOM,\n redux,\n 'react-redux': reactRedux,\n '@adobe/react-spectrum': AdobeReactSpectrum,\n '@deephaven/auth-plugins': DeephavenAuthPlugins,\n '@deephaven/chart': DeephavenChart,\n '@deephaven/components': DeephavenComponents,\n '@deephaven/dashboard': DeephavenDashboard,\n '@deephaven/dashboard-core-plugins': DeephavenDashboardCorePlugins,\n '@deephaven/icons': DeephavenIcons,\n '@deephaven/iris-grid': DeephavenIrisGrid,\n '@deephaven/jsapi-bootstrap': DeephavenJsapiBootstrap,\n '@deephaven/jsapi-components': DeephavenJsapiComponents,\n '@deephaven/jsapi-utils': DeephavenJsapiUtils,\n '@deephaven/log': DeephavenLog,\n '@deephaven/plugin': DeephavenPlugin,\n '@deephaven/react-hooks': DeephavenReactHooks,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAO,KAAKC,UAAU,MAAM,aAAa;AACzC,OAAOC,QAAQ,MAAM,WAAW;AAChC,OAAO,KAAKC,kBAAkB,MAAM,uBAAuB;AAC3D,OAAO,KAAKC,oBAAoB,MAAM,yBAAyB;AAC/D,OAAO,KAAKC,cAAc,MAAM,kBAAkB;AAClD,OAAO,KAAKC,mBAAmB,MAAM,uBAAuB;AAC5D,OAAO,KAAKC,kBAAkB,MAAM,sBAAsB;AAC1D,OAAO,KAAKC,6BAA6B,MAAM,mCAAmC;AAClF,OAAO,KAAKC,cAAc,MAAM,kBAAkB;AAClD,OAAO,KAAKC,iBAAiB,MAAM,sBAAsB;AACzD,OAAO,KAAKC,uBAAuB,MAAM,4BAA4B;AACrE,OAAO,KAAKC,wBAAwB,MAAM,6BAA6B;AACvE,OAAO,KAAKC,mBAAmB,MAAM,wBAAwB;AAC7D,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAO,KAAKC,mBAAmB,MAAM,wBAAwB;AAC7D,OAAO,KAAKC,eAAe,MAAM,mBAAmB;;AAEpD;AACA,OAAO,IAAMC,OAAO,GAAG;EACrBlB,KAAK;EACL,WAAW,EAAEG,QAAQ;EACrBF,KAAK;EACL,aAAa,EAAEC,UAAU;EACzB,uBAAuB,EAAEE,kBAAkB;EAC3C,yBAAyB,EAAEC,oBAAoB;EAC/C,kBAAkB,EAAEC,cAAc;EAClC,uBAAuB,EAAEC,mBAAmB;EAC5C,sBAAsB,EAAEC,kBAAkB;EAC1C,mCAAmC,EAAEC,6BAA6B;EAClE,kBAAkB,EAAEC,cAAc;EAClC,sBAAsB,EAAEC,iBAAiB;EACzC,4BAA4B,EAAEC,uBAAuB;EACrD,6BAA6B,EAAEC,wBAAwB;EACvD,wBAAwB,EAAEC,mBAAmB;EAC7C,gBAAgB,EAAEC,YAAY;EAC9B,mBAAmB,EAAEE,eAAe;EACpC,wBAAwB,EAAED;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/app-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.1-alpha-widget-types.1+e0474e61",
|
|
4
4
|
"description": "Deephaven App Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,22 +29,23 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@adobe/react-spectrum": "^3.29.0",
|
|
32
|
-
"@deephaven/auth-plugins": "^0.
|
|
33
|
-
"@deephaven/chart": "^0.
|
|
34
|
-
"@deephaven/components": "^0.
|
|
35
|
-
"@deephaven/console": "^0.
|
|
36
|
-
"@deephaven/dashboard": "^0.
|
|
37
|
-
"@deephaven/
|
|
38
|
-
"@deephaven/
|
|
39
|
-
"@deephaven/
|
|
40
|
-
"@deephaven/jsapi-
|
|
41
|
-
"@deephaven/jsapi-
|
|
42
|
-
"@deephaven/jsapi-
|
|
43
|
-
"@deephaven/
|
|
44
|
-
"@deephaven/
|
|
45
|
-
"@deephaven/
|
|
46
|
-
"@deephaven/
|
|
47
|
-
"@deephaven/
|
|
32
|
+
"@deephaven/auth-plugins": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
33
|
+
"@deephaven/chart": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
34
|
+
"@deephaven/components": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
35
|
+
"@deephaven/console": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
36
|
+
"@deephaven/dashboard": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
37
|
+
"@deephaven/dashboard-core-plugins": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
38
|
+
"@deephaven/icons": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
39
|
+
"@deephaven/iris-grid": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
40
|
+
"@deephaven/jsapi-bootstrap": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
41
|
+
"@deephaven/jsapi-components": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
42
|
+
"@deephaven/jsapi-types": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
43
|
+
"@deephaven/jsapi-utils": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
44
|
+
"@deephaven/log": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
45
|
+
"@deephaven/plugin": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
46
|
+
"@deephaven/react-hooks": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
47
|
+
"@deephaven/redux": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
48
|
+
"@deephaven/utils": "^0.61.1-alpha-widget-types.1+e0474e61",
|
|
48
49
|
"@paciolan/remote-component": "2.13.0",
|
|
49
50
|
"@paciolan/remote-module-loader": "^3.0.2",
|
|
50
51
|
"fira": "mozilla/fira#4.202"
|
|
@@ -64,5 +65,5 @@
|
|
|
64
65
|
"publishConfig": {
|
|
65
66
|
"access": "public"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "e0474e61faee8d68ce337da7e61e1d2770bd5e38"
|
|
68
69
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionContext.d.ts","sourceRoot":"","sources":["../../src/components/ConnectionContext.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAO,MAAM,iBAAiB,+CAA4C,CAAC;AAE3E,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionContext.js","names":["createContext","ConnectionContext"],"sources":["../../src/components/ConnectionContext.ts"],"sourcesContent":["import { createContext } from 'react';\nimport type { IdeConnection } from '@deephaven/jsapi-types';\n\nexport const ConnectionContext = createContext<IdeConnection | null>(null);\n\nexport default ConnectionContext;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,OAAO;AAGrC,OAAO,IAAMC,iBAAiB,gBAAGD,aAAa,CAAuB,IAAI,CAAC;AAE1E,eAAeC,iBAAiB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IdeConnection } from '@deephaven/jsapi-types';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve the connection for the current context.
|
|
4
|
-
*
|
|
5
|
-
* @returns Connection for the current context
|
|
6
|
-
*/
|
|
7
|
-
export declare function useConnection(): IdeConnection;
|
|
8
|
-
export default useConnection;
|
|
9
|
-
//# sourceMappingURL=useConnection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useConnection.d.ts","sourceRoot":"","sources":["../../src/components/useConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,aAAa,CAK7C;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useContextOrThrow } from '@deephaven/react-hooks';
|
|
2
|
-
import { ConnectionContext } from "./ConnectionContext.js";
|
|
3
|
-
/**
|
|
4
|
-
* Retrieve the connection for the current context.
|
|
5
|
-
*
|
|
6
|
-
* @returns Connection for the current context
|
|
7
|
-
*/
|
|
8
|
-
export function useConnection() {
|
|
9
|
-
return useContextOrThrow(ConnectionContext, 'No IdeConnection available in useConnection. Was code wrapped in ConnectionContext.Provider?');
|
|
10
|
-
}
|
|
11
|
-
export default useConnection;
|
|
12
|
-
//# sourceMappingURL=useConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useConnection.js","names":["useContextOrThrow","ConnectionContext","useConnection"],"sources":["../../src/components/useConnection.ts"],"sourcesContent":["import type { IdeConnection } from '@deephaven/jsapi-types';\nimport { useContextOrThrow } from '@deephaven/react-hooks';\nimport { ConnectionContext } from './ConnectionContext';\n\n/**\n * Retrieve the connection for the current context.\n *\n * @returns Connection for the current context\n */\nexport function useConnection(): IdeConnection {\n return useContextOrThrow(\n ConnectionContext,\n 'No IdeConnection available in useConnection. Was code wrapped in ConnectionContext.Provider?'\n );\n}\n\nexport default useConnection;\n"],"mappings":"AACA,SAASA,iBAAiB,QAAQ,wBAAwB;AAAC,SAClDC,iBAAiB;AAE1B;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAA,EAAkB;EAC7C,OAAOF,iBAAiB,CACtBC,iBAAiB,EACjB,8FACF,CAAC;AACH;AAEA,eAAeC,aAAa"}
|