@deephaven/app-utils 0.50.1-beta.2 → 0.50.1-beta.3
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/AppBootstrap.d.ts +2 -2
- package/dist/components/AppBootstrap.d.ts.map +1 -1
- package/dist/components/AppBootstrap.js.map +1 -1
- package/dist/components/PluginsBootstrap.d.ts +2 -2
- package/dist/components/PluginsBootstrap.d.ts.map +1 -1
- package/dist/components/PluginsBootstrap.js.map +1 -1
- package/package.json +16 -16
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@deephaven/components/scss/BaseStyleSheet.scss';
|
|
3
|
-
import { type
|
|
3
|
+
import { type Plugin } from '@deephaven/plugin';
|
|
4
4
|
export type AppBootstrapProps = {
|
|
5
5
|
/** URL of the server. */
|
|
6
6
|
serverUrl: string;
|
|
7
7
|
/** URL of the plugins to load. */
|
|
8
8
|
pluginsUrl: string;
|
|
9
9
|
/** The core plugins to load. */
|
|
10
|
-
getCorePlugins?: () => Promise<
|
|
10
|
+
getCorePlugins?: () => Promise<Plugin[]>;
|
|
11
11
|
/** Font class names to load. */
|
|
12
12
|
fontClassNames?: string[];
|
|
13
13
|
/**
|
|
@@ -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;AAMxD,OAAO,EAAE,KAAK,
|
|
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;AAMxD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAWhD,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,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEzC,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,cAAc,EACd,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAmCjC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","ClientBootstrap","RefreshTokenBootstrap","useBroadcastLoginListener","FontBootstrap","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","getConnectOptions","FontsLoaded","UserBootstrap","ServerConfigBootstrap","ThemeBootstrap","AppBootstrap","fontClassNames","pluginsUrl","getCorePlugins","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 { type
|
|
1
|
+
{"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","ClientBootstrap","RefreshTokenBootstrap","useBroadcastLoginListener","FontBootstrap","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","getConnectOptions","FontsLoaded","UserBootstrap","ServerConfigBootstrap","ThemeBootstrap","AppBootstrap","fontClassNames","pluginsUrl","getCorePlugins","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 { type Plugin } from '@deephaven/plugin';\nimport FontBootstrap from './FontBootstrap';\nimport PluginsBootstrap from './PluginsBootstrap';\nimport AuthBootstrap from './AuthBootstrap';\nimport ConnectionBootstrap from './ConnectionBootstrap';\nimport { getConnectOptions } from '../utils';\nimport FontsLoaded from './FontsLoaded';\nimport UserBootstrap from './UserBootstrap';\nimport ServerConfigBootstrap from './ServerConfigBootstrap';\nimport ThemeBootstrap from './ThemeBootstrap';\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 /** The core plugins to load. */\n getCorePlugins?: () => Promise<Plugin[]>;\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 getCorePlugins,\n serverUrl,\n children,\n}: AppBootstrapProps): JSX.Element {\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 getCorePlugins={getCorePlugins} pluginsUrl={pluginsUrl}>\n <ThemeBootstrap>\n <ClientBootstrap\n serverUrl={serverUrl}\n options={clientOptions}\n key={logoutCount}\n >\n <RefreshTokenBootstrap>\n <AuthBootstrap>\n <ServerConfigBootstrap>\n <UserBootstrap>\n <ConnectionBootstrap>\n <FontsLoaded>{children}</FontsLoaded>\n </ConnectionBootstrap>\n </UserBootstrap>\n </ServerConfigBootstrap>\n </AuthBootstrap>\n </RefreshTokenBootstrap>\n </ClientBootstrap>\n </ThemeBootstrap>\n </PluginsBootstrap>\n </FontBootstrap>\n );\n}\n\nexport default AppBootstrap;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,OAAO,gDAAgD;AACvD,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SACEC,qBAAqB,EACrBC,yBAAyB,QACpB,6BAA6B;AAAC,OAE9BC,aAAa;AAAA,OACbC,gBAAgB;AAAA,OAChBC,aAAa;AAAA,OACbC,mBAAmB;AAAA,SACjBC,iBAAiB;AAAA,OACnBC,WAAW;AAAA,OACXC,aAAa;AAAA,OACbC,qBAAqB;AAAA,OACrBC,cAAc;AAAA;AAqBrB;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAY,OAMO;EAAA,IANN;IAC3BC,cAAc;IACdC,UAAU;IACVC,cAAc;IACdC,SAAS;IACTC;EACiB,CAAC;EAClB,IAAMC,aAAa,GAAGpB,OAAO,CAAC,MAAMS,iBAAiB,EAAE,EAAE,EAAE,CAAC;;EAE5D;EACA,IAAM,CAACY,WAAW,EAAEC,cAAc,CAAC,GAAGrB,QAAQ,CAAC,CAAC,CAAC;EACjD,IAAMsB,OAAO,GAAGxB,WAAW,CAAC,MAAMyB,SAAS,EAAE,EAAE,CAAC;EAChD,IAAMC,QAAQ,GAAG1B,WAAW,CAAC,MAAM;IACjCuB,cAAc,CAACI,KAAK,IAAIA,KAAK,GAAG,CAAC,CAAC;EACpC,CAAC,EAAE,EAAE,CAAC;EACNtB,yBAAyB,CAACmB,OAAO,EAAEE,QAAQ,CAAC;EAC5C,oBACE,KAAC,aAAa;IAAC,cAAc,EAAEV,cAAe;IAAA,uBAC5C,KAAC,gBAAgB;MAAC,cAAc,EAAEE,cAAe;MAAC,UAAU,EAAED,UAAW;MAAA,uBACvE,KAAC,cAAc;QAAA,uBACb,KAAC,eAAe;UACd,SAAS,EAAEE,SAAU;UACrB,OAAO,EAAEE,aAAc;UAAA,uBAGvB,KAAC,qBAAqB;YAAA,uBACpB,KAAC,aAAa;cAAA,uBACZ,KAAC,qBAAqB;gBAAA,uBACpB,KAAC,aAAa;kBAAA,uBACZ,KAAC,mBAAmB;oBAAA,uBAClB,KAAC,WAAW;sBAAA,UAAED;oBAAQ;kBAAe;gBACjB;cACR;YACM;UACV;QACM,GAZnBE,WAAW;MAaA;IACH;EACA,EACL;AAEpB;AAEA,eAAeP,YAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Plugin } from '@deephaven/plugin';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PluginModuleMap } from '../plugins';
|
|
4
4
|
export declare const PluginsContext: React.Context<PluginModuleMap | null>;
|
|
@@ -8,7 +8,7 @@ export type PluginsBootstrapProps = {
|
|
|
8
8
|
*/
|
|
9
9
|
pluginsUrl: string;
|
|
10
10
|
/** The core plugins to load. */
|
|
11
|
-
getCorePlugins?: () => Promise<
|
|
11
|
+
getCorePlugins?: () => Promise<Plugin[]>;
|
|
12
12
|
/**
|
|
13
13
|
* The children to render wrapped with the PluginsContext.
|
|
14
14
|
* Note that it renders the children even if the plugins aren't loaded yet.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginsBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/PluginsBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"PluginsBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/PluginsBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,eAAe,EAAqB,MAAM,YAAY,CAAC;AAEhE,eAAO,MAAM,cAAc,uCAA8C,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEzC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,cAAc,EACd,QAAQ,GACT,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CA4BrC;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginsBootstrap.js","names":["React","createContext","useEffect","useState","loadModulePlugins","PluginsContext","PluginsBootstrap","pluginsUrl","getCorePlugins","children","plugins","setPlugins","initPlugins","isCanceled","loadPlugins","corePlugins","pluginModules","corePluginPairs","map","plugin","name","Map"],"sources":["../../src/components/PluginsBootstrap.tsx"],"sourcesContent":["import { type
|
|
1
|
+
{"version":3,"file":"PluginsBootstrap.js","names":["React","createContext","useEffect","useState","loadModulePlugins","PluginsContext","PluginsBootstrap","pluginsUrl","getCorePlugins","children","plugins","setPlugins","initPlugins","isCanceled","loadPlugins","corePlugins","pluginModules","corePluginPairs","map","plugin","name","Map"],"sources":["../../src/components/PluginsBootstrap.tsx"],"sourcesContent":["import { type Plugin } from '@deephaven/plugin';\nimport React, { createContext, useEffect, useState } from 'react';\nimport { PluginModuleMap, loadModulePlugins } from '../plugins';\n\nexport const PluginsContext = createContext<PluginModuleMap | null>(null);\n\nexport type PluginsBootstrapProps = {\n /**\n * Base URL of the plugins to load.\n */\n pluginsUrl: string;\n\n /** The core plugins to load. */\n getCorePlugins?: () => Promise<Plugin[]>;\n\n /**\n * The children to render wrapped with the PluginsContext.\n * Note that it renders the children even if the plugins aren't loaded yet.\n */\n children: React.ReactNode;\n};\n\n/**\n * PluginsBootstrap component. Handles loading the plugins.\n */\nexport function PluginsBootstrap({\n pluginsUrl,\n getCorePlugins,\n children,\n}: PluginsBootstrapProps): JSX.Element {\n const [plugins, setPlugins] = useState<PluginModuleMap | null>(null);\n useEffect(\n function initPlugins() {\n let isCanceled = false;\n async function loadPlugins(): Promise<void> {\n const corePlugins = (await getCorePlugins?.()) ?? [];\n const pluginModules = await loadModulePlugins(pluginsUrl);\n if (!isCanceled) {\n const corePluginPairs = corePlugins.map(\n plugin => [plugin.name, plugin] as const\n );\n setPlugins(new Map([...corePluginPairs, ...pluginModules]));\n }\n }\n loadPlugins();\n return () => {\n isCanceled = true;\n };\n },\n [pluginsUrl, getCorePlugins]\n );\n\n return (\n <PluginsContext.Provider value={plugins}>\n {children}\n </PluginsContext.Provider>\n );\n}\n\nexport default PluginsBootstrap;\n"],"mappings":";;AACA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAAC,SACxCC,iBAAiB;AAAA;AAE3C,OAAO,IAAMC,cAAc,gBAAGJ,aAAa,CAAyB,IAAI,CAAC;AAkBzE;AACA;AACA;AACA,OAAO,SAASK,gBAAgB,OAIO;EAAA,IAJN;IAC/BC,UAAU;IACVC,cAAc;IACdC;EACqB,CAAC;EACtB,IAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGR,QAAQ,CAAyB,IAAI,CAAC;EACpED,SAAS,CACP,SAASU,WAAW,GAAG;IACrB,IAAIC,UAAU,GAAG,KAAK;IAAC,SACRC,WAAW;MAAA;IAAA;IAAA;MAAA,iCAA1B,aAA4C;QAAA;QAC1C,IAAMC,WAAW,kCAAUP,cAAc,aAAdA,cAAc,uBAAdA,cAAc,EAAI,yEAAK,EAAE;QACpD,IAAMQ,aAAa,SAASZ,iBAAiB,CAACG,UAAU,CAAC;QACzD,IAAI,CAACM,UAAU,EAAE;UACf,IAAMI,eAAe,GAAGF,WAAW,CAACG,GAAG,CACrCC,MAAM,IAAI,CAACA,MAAM,CAACC,IAAI,EAAED,MAAM,CAAU,CACzC;UACDR,UAAU,CAAC,IAAIU,GAAG,CAAC,CAAC,GAAGJ,eAAe,EAAE,GAAGD,aAAa,CAAC,CAAC,CAAC;QAC7D;MACF,CAAC;MAAA;IAAA;IACDF,WAAW,EAAE;IACb,OAAO,MAAM;MACXD,UAAU,GAAG,IAAI;IACnB,CAAC;EACH,CAAC,EACD,CAACN,UAAU,EAAEC,cAAc,CAAC,CAC7B;EAED,oBACE,KAAC,cAAc,CAAC,QAAQ;IAAC,KAAK,EAAEE,OAAQ;IAAA,UACrCD;EAAQ,EACe;AAE9B;AAEA,eAAeH,gBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/app-utils",
|
|
3
|
-
"version": "0.50.1-beta.
|
|
3
|
+
"version": "0.50.1-beta.3+94cc82c3",
|
|
4
4
|
"description": "Deephaven App Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@adobe/react-spectrum": "^3.29.0",
|
|
32
|
-
"@deephaven/auth-plugins": "^0.50.1-beta.
|
|
33
|
-
"@deephaven/chart": "^0.50.1-beta.
|
|
34
|
-
"@deephaven/components": "^0.50.1-beta.
|
|
35
|
-
"@deephaven/icons": "^0.50.1-beta.
|
|
36
|
-
"@deephaven/iris-grid": "^0.50.1-beta.
|
|
37
|
-
"@deephaven/jsapi-bootstrap": "^0.50.1-beta.
|
|
38
|
-
"@deephaven/jsapi-components": "^0.50.1-beta.
|
|
39
|
-
"@deephaven/jsapi-types": "^0.50.1-beta.
|
|
40
|
-
"@deephaven/jsapi-utils": "^0.50.1-beta.
|
|
41
|
-
"@deephaven/log": "^0.50.1-beta.
|
|
42
|
-
"@deephaven/plugin": "^0.50.1-beta.
|
|
43
|
-
"@deephaven/react-hooks": "^0.50.1-beta.
|
|
44
|
-
"@deephaven/redux": "^0.50.1-beta.
|
|
45
|
-
"@deephaven/utils": "^0.50.1-beta.
|
|
32
|
+
"@deephaven/auth-plugins": "^0.50.1-beta.3+94cc82c3",
|
|
33
|
+
"@deephaven/chart": "^0.50.1-beta.3+94cc82c3",
|
|
34
|
+
"@deephaven/components": "^0.50.1-beta.3+94cc82c3",
|
|
35
|
+
"@deephaven/icons": "^0.50.1-beta.3+94cc82c3",
|
|
36
|
+
"@deephaven/iris-grid": "^0.50.1-beta.3+94cc82c3",
|
|
37
|
+
"@deephaven/jsapi-bootstrap": "^0.50.1-beta.3+94cc82c3",
|
|
38
|
+
"@deephaven/jsapi-components": "^0.50.1-beta.3+94cc82c3",
|
|
39
|
+
"@deephaven/jsapi-types": "^0.50.1-beta.3+94cc82c3",
|
|
40
|
+
"@deephaven/jsapi-utils": "^0.50.1-beta.3+94cc82c3",
|
|
41
|
+
"@deephaven/log": "^0.50.1-beta.3+94cc82c3",
|
|
42
|
+
"@deephaven/plugin": "^0.50.1-beta.3+94cc82c3",
|
|
43
|
+
"@deephaven/react-hooks": "^0.50.1-beta.3+94cc82c3",
|
|
44
|
+
"@deephaven/redux": "^0.50.1-beta.3+94cc82c3",
|
|
45
|
+
"@deephaven/utils": "^0.50.1-beta.3+94cc82c3",
|
|
46
46
|
"@paciolan/remote-component": "2.13.0",
|
|
47
47
|
"@paciolan/remote-module-loader": "^3.0.2",
|
|
48
48
|
"fira": "mozilla/fira#4.202"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "94cc82c379103326669d477ae96ec253041f2967"
|
|
66
66
|
}
|