@deephaven/app-utils 0.99.1-beta.0 → 0.99.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/AppBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,gDAAgD,CAAC;AAGxD,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,
|
|
1
|
+
{"version":3,"file":"AppBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/AppBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,gDAAgD,CAAC;AAGxD,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,CAwCjC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -32,7 +32,9 @@ export function AppBootstrap(_ref) {
|
|
|
32
32
|
var [logoutCount, setLogoutCount] = useState(0);
|
|
33
33
|
var onLogin = useCallback(() => undefined, []);
|
|
34
34
|
var onLogout = useCallback(() => {
|
|
35
|
-
|
|
35
|
+
requestAnimationFrame(() => {
|
|
36
|
+
setLogoutCount(value => value + 1);
|
|
37
|
+
});
|
|
36
38
|
}, []);
|
|
37
39
|
useBroadcastLoginListener(onLogin, onLogout);
|
|
38
40
|
return /*#__PURE__*/_jsx(Provider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","Provider","store","ClientBootstrap","useBroadcastLoginListener","FontBootstrap","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","getConnectOptions","FontsLoaded","UserBootstrap","ServerConfigBootstrap","ThemeBootstrap","jsx","_jsx","AppBootstrap","_ref","fontClassNames","pluginsUrl","getCorePlugins","serverUrl","children","clientOptions","logoutCount","setLogoutCount","onLogin","undefined","onLogout","value","options"],"sources":["../../src/components/AppBootstrap.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport { Provider } from 'react-redux';\nimport { store } from '@deephaven/redux';\nimport '@deephaven/components/scss/BaseStyleSheet.scss';\nimport { ClientBootstrap } from '@deephaven/jsapi-bootstrap';\nimport { useBroadcastLoginListener } 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 <Provider store={store}>\n <FontBootstrap fontClassNames={fontClassNames}>\n <PluginsBootstrap\n getCorePlugins={getCorePlugins}\n pluginsUrl={pluginsUrl}\n >\n <ThemeBootstrap>\n <ClientBootstrap\n serverUrl={serverUrl}\n options={clientOptions}\n key={logoutCount}\n >\n <AuthBootstrap>\n <ServerConfigBootstrap>\n <UserBootstrap>\n <ConnectionBootstrap>\n <FontsLoaded>{children}</FontsLoaded>\n </ConnectionBootstrap>\n </UserBootstrap>\n </ServerConfigBootstrap>\n </AuthBootstrap>\n </ClientBootstrap>\n </ThemeBootstrap>\n </PluginsBootstrap>\n </FontBootstrap>\n </Provider>\n );\n}\n\nexport default AppBootstrap;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,KAAK,QAAQ,kBAAkB;AACxC,OAAO,gDAAgD;AACvD,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,yBAAyB,QAAQ,6BAA6B;AAAC,OAEjEC,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,SAAAC,GAAA,IAAAC,IAAA;AAqBrB;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAMO;EAAA,IANN;IAC3BC,cAAc;IACdC,UAAU;IACVC,cAAc;IACdC,SAAS;IACTC;EACiB,CAAC,GAAAL,IAAA;EAClB,IAAMM,aAAa,GAAGxB,OAAO,CAAC,MAAMU,iBAAiB,CAAC,CAAC,EAAE,EAAE,CAAC;;EAE5D;EACA,IAAM,CAACe,WAAW,EAAEC,cAAc,CAAC,GAAGzB,QAAQ,CAAC,CAAC,CAAC;EACjD,IAAM0B,OAAO,GAAG5B,WAAW,CAAC,MAAM6B,SAAS,EAAE,EAAE,CAAC;EAChD,IAAMC,QAAQ,GAAG9B,WAAW,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","Provider","store","ClientBootstrap","useBroadcastLoginListener","FontBootstrap","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","getConnectOptions","FontsLoaded","UserBootstrap","ServerConfigBootstrap","ThemeBootstrap","jsx","_jsx","AppBootstrap","_ref","fontClassNames","pluginsUrl","getCorePlugins","serverUrl","children","clientOptions","logoutCount","setLogoutCount","onLogin","undefined","onLogout","requestAnimationFrame","value","options"],"sources":["../../src/components/AppBootstrap.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport { Provider } from 'react-redux';\nimport { store } from '@deephaven/redux';\nimport '@deephaven/components/scss/BaseStyleSheet.scss';\nimport { ClientBootstrap } from '@deephaven/jsapi-bootstrap';\nimport { useBroadcastLoginListener } 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 requestAnimationFrame(() => {\n setLogoutCount(value => value + 1);\n });\n }, []);\n useBroadcastLoginListener(onLogin, onLogout);\n return (\n <Provider store={store}>\n <FontBootstrap fontClassNames={fontClassNames}>\n <PluginsBootstrap\n getCorePlugins={getCorePlugins}\n pluginsUrl={pluginsUrl}\n >\n <ThemeBootstrap>\n <ClientBootstrap\n serverUrl={serverUrl}\n options={clientOptions}\n key={logoutCount}\n >\n <AuthBootstrap>\n <ServerConfigBootstrap>\n <UserBootstrap>\n <ConnectionBootstrap>\n <FontsLoaded>{children}</FontsLoaded>\n </ConnectionBootstrap>\n </UserBootstrap>\n </ServerConfigBootstrap>\n </AuthBootstrap>\n </ClientBootstrap>\n </ThemeBootstrap>\n </PluginsBootstrap>\n </FontBootstrap>\n </Provider>\n );\n}\n\nexport default AppBootstrap;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,KAAK,QAAQ,kBAAkB;AACxC,OAAO,gDAAgD;AACvD,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,yBAAyB,QAAQ,6BAA6B;AAAC,OAEjEC,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,SAAAC,GAAA,IAAAC,IAAA;AAqBrB;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAMO;EAAA,IANN;IAC3BC,cAAc;IACdC,UAAU;IACVC,cAAc;IACdC,SAAS;IACTC;EACiB,CAAC,GAAAL,IAAA;EAClB,IAAMM,aAAa,GAAGxB,OAAO,CAAC,MAAMU,iBAAiB,CAAC,CAAC,EAAE,EAAE,CAAC;;EAE5D;EACA,IAAM,CAACe,WAAW,EAAEC,cAAc,CAAC,GAAGzB,QAAQ,CAAC,CAAC,CAAC;EACjD,IAAM0B,OAAO,GAAG5B,WAAW,CAAC,MAAM6B,SAAS,EAAE,EAAE,CAAC;EAChD,IAAMC,QAAQ,GAAG9B,WAAW,CAAC,MAAM;IACjC+B,qBAAqB,CAAC,MAAM;MAC1BJ,cAAc,CAACK,KAAK,IAAIA,KAAK,GAAG,CAAC,CAAC;IACpC,CAAC,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;EACN1B,yBAAyB,CAACsB,OAAO,EAAEE,QAAQ,CAAC;EAC5C,oBACEb,IAAA,CAACd,QAAQ;IAACC,KAAK,EAAEA,KAAM;IAAAoB,QAAA,eACrBP,IAAA,CAACV,aAAa;MAACa,cAAc,EAAEA,cAAe;MAAAI,QAAA,eAC5CP,IAAA,CAACT,gBAAgB;QACfc,cAAc,EAAEA,cAAe;QAC/BD,UAAU,EAAEA,UAAW;QAAAG,QAAA,eAEvBP,IAAA,CAACF,cAAc;UAAAS,QAAA,eACbP,IAAA,CAACZ,eAAe;YACdkB,SAAS,EAAEA,SAAU;YACrBU,OAAO,EAAER,aAAc;YAAAD,QAAA,eAGvBP,IAAA,CAACR,aAAa;cAAAe,QAAA,eACZP,IAAA,CAACH,qBAAqB;gBAAAU,QAAA,eACpBP,IAAA,CAACJ,aAAa;kBAAAW,QAAA,eACZP,IAAA,CAACP,mBAAmB;oBAAAc,QAAA,eAClBP,IAAA,CAACL,WAAW;sBAAAY,QAAA,EAAEA;oBAAQ,CAAc;kBAAC,CAClB;gBAAC,CACT;cAAC,CACK;YAAC,CACX;UAAC,GAVXE,WAWU;QAAC,CACJ;MAAC,CACD;IAAC,CACN;EAAC,CACR,CAAC;AAEf;AAEA,eAAeR,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/app-utils",
|
|
3
|
-
"version": "0.99.1-beta.
|
|
3
|
+
"version": "0.99.1-beta.3+7ff0e53a",
|
|
4
4
|
"description": "Deephaven App Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,34 +22,34 @@
|
|
|
22
22
|
"build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@deephaven/test-utils": "^0.99.1-beta.
|
|
25
|
+
"@deephaven/test-utils": "^0.99.1-beta.3+7ff0e53a",
|
|
26
26
|
"react": "^17.x",
|
|
27
27
|
"react-dom": "^17.x",
|
|
28
28
|
"react-redux": "^7.x",
|
|
29
29
|
"redux": "^4.x"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@adobe/react-spectrum": "3.
|
|
33
|
-
"@deephaven/auth-plugins": "^0.99.1-beta.
|
|
34
|
-
"@deephaven/chart": "^0.99.1-beta.
|
|
35
|
-
"@deephaven/components": "^0.99.1-beta.
|
|
36
|
-
"@deephaven/console": "^0.99.1-beta.
|
|
37
|
-
"@deephaven/dashboard": "^0.99.1-beta.
|
|
38
|
-
"@deephaven/dashboard-core-plugins": "^0.99.1-beta.
|
|
39
|
-
"@deephaven/file-explorer": "^0.99.1-beta.
|
|
40
|
-
"@deephaven/golden-layout": "^0.99.1-beta.
|
|
41
|
-
"@deephaven/icons": "^0.99.1-beta.
|
|
42
|
-
"@deephaven/iris-grid": "^0.99.1-beta.
|
|
43
|
-
"@deephaven/jsapi-bootstrap": "^0.99.1-beta.
|
|
44
|
-
"@deephaven/jsapi-components": "^0.99.1-beta.
|
|
32
|
+
"@adobe/react-spectrum": "3.38.0",
|
|
33
|
+
"@deephaven/auth-plugins": "^0.99.1-beta.3+7ff0e53a",
|
|
34
|
+
"@deephaven/chart": "^0.99.1-beta.3+7ff0e53a",
|
|
35
|
+
"@deephaven/components": "^0.99.1-beta.3+7ff0e53a",
|
|
36
|
+
"@deephaven/console": "^0.99.1-beta.3+7ff0e53a",
|
|
37
|
+
"@deephaven/dashboard": "^0.99.1-beta.3+7ff0e53a",
|
|
38
|
+
"@deephaven/dashboard-core-plugins": "^0.99.1-beta.3+7ff0e53a",
|
|
39
|
+
"@deephaven/file-explorer": "^0.99.1-beta.3+7ff0e53a",
|
|
40
|
+
"@deephaven/golden-layout": "^0.99.1-beta.3+7ff0e53a",
|
|
41
|
+
"@deephaven/icons": "^0.99.1-beta.3+7ff0e53a",
|
|
42
|
+
"@deephaven/iris-grid": "^0.99.1-beta.3+7ff0e53a",
|
|
43
|
+
"@deephaven/jsapi-bootstrap": "^0.99.1-beta.3+7ff0e53a",
|
|
44
|
+
"@deephaven/jsapi-components": "^0.99.1-beta.3+7ff0e53a",
|
|
45
45
|
"@deephaven/jsapi-types": "^1.0.0-dev0.34.0",
|
|
46
|
-
"@deephaven/jsapi-utils": "^0.99.1-beta.
|
|
47
|
-
"@deephaven/log": "^0.99.1-beta.
|
|
48
|
-
"@deephaven/plugin": "^0.99.1-beta.
|
|
49
|
-
"@deephaven/react-hooks": "^0.99.1-beta.
|
|
50
|
-
"@deephaven/redux": "^0.99.1-beta.
|
|
51
|
-
"@deephaven/storage": "^0.99.1-beta.
|
|
52
|
-
"@deephaven/utils": "^0.99.1-beta.
|
|
46
|
+
"@deephaven/jsapi-utils": "^0.99.1-beta.3+7ff0e53a",
|
|
47
|
+
"@deephaven/log": "^0.99.1-beta.3+7ff0e53a",
|
|
48
|
+
"@deephaven/plugin": "^0.99.1-beta.3+7ff0e53a",
|
|
49
|
+
"@deephaven/react-hooks": "^0.99.1-beta.3+7ff0e53a",
|
|
50
|
+
"@deephaven/redux": "^0.99.1-beta.3+7ff0e53a",
|
|
51
|
+
"@deephaven/storage": "^0.99.1-beta.3+7ff0e53a",
|
|
52
|
+
"@deephaven/utils": "^0.99.1-beta.3+7ff0e53a",
|
|
53
53
|
"@fontsource/fira-mono": "5.0.13",
|
|
54
54
|
"@fontsource/fira-sans": "5.0.20",
|
|
55
55
|
"@paciolan/remote-component": "2.13.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "7ff0e53ac41887fa22f2591b5df2439ac9984397"
|
|
78
78
|
}
|