@deephaven/app-utils 0.37.4-logout.21 → 0.37.4-relative-links.2
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@deephaven/components/scss/BaseStyleSheet.scss';
|
|
3
3
|
export type AppBootstrapProps = {
|
|
4
|
-
/** URL of the
|
|
5
|
-
|
|
4
|
+
/** URL of the server. */
|
|
5
|
+
serverUrl: string;
|
|
6
6
|
/** URL of the plugins to load. */
|
|
7
7
|
pluginsUrl: string;
|
|
8
8
|
/** Font class names to load. */
|
|
@@ -16,6 +16,6 @@ export type AppBootstrapProps = {
|
|
|
16
16
|
* AppBootstrap component. Handles loading the fonts, client, and authentication.
|
|
17
17
|
* Will display the children when everything is loaded and authenticated.
|
|
18
18
|
*/
|
|
19
|
-
export declare function AppBootstrap({
|
|
19
|
+
export declare function AppBootstrap({ fontClassNames, pluginsUrl, serverUrl, children, }: AppBootstrapProps): JSX.Element;
|
|
20
20
|
export default AppBootstrap;
|
|
21
21
|
//# sourceMappingURL=AppBootstrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/AppBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,gDAAgD,CAAC;AAaxD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,
|
|
1
|
+
{"version":3,"file":"AppBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/AppBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,gDAAgD,CAAC;AAaxD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAElB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IAEnB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,cAAc,EACd,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,eA6BnB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -6,7 +6,7 @@ import FontBootstrap from "./FontBootstrap.js";
|
|
|
6
6
|
import PluginsBootstrap from "./PluginsBootstrap.js";
|
|
7
7
|
import AuthBootstrap from "./AuthBootstrap.js";
|
|
8
8
|
import ConnectionBootstrap from "./ConnectionBootstrap.js";
|
|
9
|
-
import {
|
|
9
|
+
import { getConnectOptions } from "../utils/index.js";
|
|
10
10
|
import FontsLoaded from "./FontsLoaded.js";
|
|
11
11
|
/**
|
|
12
12
|
* AppBootstrap component. Handles loading the fonts, client, and authentication.
|
|
@@ -14,12 +14,11 @@ import FontsLoaded from "./FontsLoaded.js";
|
|
|
14
14
|
*/
|
|
15
15
|
export function AppBootstrap(_ref) {
|
|
16
16
|
var {
|
|
17
|
-
apiUrl,
|
|
18
17
|
fontClassNames,
|
|
19
18
|
pluginsUrl,
|
|
19
|
+
serverUrl,
|
|
20
20
|
children
|
|
21
21
|
} = _ref;
|
|
22
|
-
var serverUrl = getBaseUrl(apiUrl).origin;
|
|
23
22
|
var clientOptions = useMemo(() => getConnectOptions(), []);
|
|
24
23
|
|
|
25
24
|
// On logout, we reset the client and have user login again
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","ClientBootstrap","RefreshTokenBootstrap","useBroadcastLoginListener","FontBootstrap","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","
|
|
1
|
+
{"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","ClientBootstrap","RefreshTokenBootstrap","useBroadcastLoginListener","FontBootstrap","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","getConnectOptions","FontsLoaded","AppBootstrap","fontClassNames","pluginsUrl","serverUrl","children","clientOptions","logoutCount","setLogoutCount","onLogin","undefined","onLogout","value"],"sources":["../../src/components/AppBootstrap.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport '@deephaven/components/scss/BaseStyleSheet.scss';\nimport { ClientBootstrap } from '@deephaven/jsapi-bootstrap';\nimport {\n RefreshTokenBootstrap,\n useBroadcastLoginListener,\n} from '@deephaven/jsapi-components';\nimport FontBootstrap from './FontBootstrap';\nimport PluginsBootstrap from './PluginsBootstrap';\nimport AuthBootstrap from './AuthBootstrap';\nimport ConnectionBootstrap from './ConnectionBootstrap';\nimport { getConnectOptions } from '../utils';\nimport FontsLoaded from './FontsLoaded';\n\nexport type AppBootstrapProps = {\n /** URL of the server. */\n serverUrl: string;\n\n /** URL of the plugins to load. */\n pluginsUrl: string;\n\n /** Font class names to load. */\n fontClassNames?: string[];\n\n /**\n * The children to render wrapped when everything is loaded and authenticated.\n */\n children: React.ReactNode;\n};\n\n/**\n * AppBootstrap component. Handles loading the fonts, client, and authentication.\n * Will display the children when everything is loaded and authenticated.\n */\nexport function AppBootstrap({\n fontClassNames,\n pluginsUrl,\n serverUrl,\n children,\n}: AppBootstrapProps) {\n const clientOptions = useMemo(() => getConnectOptions(), []);\n\n // On logout, we reset the client and have user login again\n const [logoutCount, setLogoutCount] = useState(0);\n const onLogin = useCallback(() => undefined, []);\n const onLogout = useCallback(() => {\n setLogoutCount(value => value + 1);\n }, []);\n useBroadcastLoginListener(onLogin, onLogout);\n return (\n <FontBootstrap fontClassNames={fontClassNames}>\n <PluginsBootstrap pluginsUrl={pluginsUrl}>\n <ClientBootstrap\n serverUrl={serverUrl}\n options={clientOptions}\n key={logoutCount}\n >\n <RefreshTokenBootstrap>\n <AuthBootstrap>\n <ConnectionBootstrap>\n <FontsLoaded>{children}</FontsLoaded>\n </ConnectionBootstrap>\n </A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W,QAAEF,QAAQ,CAAe,CACjB,CACR,CACM,CACR,CACD,CACL;AAEpB;AAEA,eAAeJ,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/app-utils",
|
|
3
|
-
"version": "0.37.4-
|
|
3
|
+
"version": "0.37.4-relative-links.2+2189ddfe",
|
|
4
4
|
"description": "Deephaven App Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"redux": "^4.x"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@deephaven/auth-plugins": "^0.37.4-
|
|
32
|
-
"@deephaven/components": "^0.37.4-
|
|
33
|
-
"@deephaven/jsapi-bootstrap": "^0.37.4-
|
|
34
|
-
"@deephaven/jsapi-components": "^0.37.4-
|
|
35
|
-
"@deephaven/jsapi-types": "^0.37.4-
|
|
36
|
-
"@deephaven/jsapi-utils": "^0.37.4-
|
|
37
|
-
"@deephaven/log": "^0.37.4-
|
|
38
|
-
"@deephaven/react-hooks": "^0.37.4-
|
|
31
|
+
"@deephaven/auth-plugins": "^0.37.4-relative-links.2+2189ddfe",
|
|
32
|
+
"@deephaven/components": "^0.37.4-relative-links.2+2189ddfe",
|
|
33
|
+
"@deephaven/jsapi-bootstrap": "^0.37.4-relative-links.2+2189ddfe",
|
|
34
|
+
"@deephaven/jsapi-components": "^0.37.4-relative-links.2+2189ddfe",
|
|
35
|
+
"@deephaven/jsapi-types": "^0.37.4-relative-links.2+2189ddfe",
|
|
36
|
+
"@deephaven/jsapi-utils": "^0.37.4-relative-links.2+2189ddfe",
|
|
37
|
+
"@deephaven/log": "^0.37.4-relative-links.2+2189ddfe",
|
|
38
|
+
"@deephaven/react-hooks": "^0.37.4-relative-links.2+2189ddfe",
|
|
39
39
|
"@paciolan/remote-component": "2.13.0",
|
|
40
40
|
"@paciolan/remote-module-loader": "^3.0.2",
|
|
41
41
|
"fira": "mozilla/fira#4.202"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "2189ddfe7d10310de1be036201d39b0f969338a5"
|
|
59
59
|
}
|