@deephaven/app-utils 1.7.2-react-18-alpha.3 → 1.8.0

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;AAYhD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAElB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,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,WAAW,EACX,QAAQ,GACT,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAgDjC;AAED,eAAe,YAAY,CAAC"}
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;AAehD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAElB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,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,WAAW,EACX,QAAQ,GACT,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAgDjC;AAED,eAAe,YAAY,CAAC"}
@@ -4,13 +4,11 @@ import { store } from '@deephaven/redux';
4
4
  import '@deephaven/components/scss/BaseStyleSheet.scss';
5
5
  import { ClientBootstrap } from '@deephaven/jsapi-bootstrap';
6
6
  import { useBroadcastLoginListener } from '@deephaven/jsapi-components';
7
- import { ContextActions, ContextMenuRoot } from '@deephaven/components';
8
- import FontBootstrap from "./FontBootstrap.js";
7
+ import { ContextActions, ContextMenuRoot, FontBootstrap, FontsLoaded } from '@deephaven/components';
9
8
  import PluginsBootstrap from "./PluginsBootstrap.js";
10
9
  import AuthBootstrap from "./AuthBootstrap.js";
11
10
  import ConnectionBootstrap from "./ConnectionBootstrap.js";
12
11
  import { getConnectOptions, createExportLogsContextAction } from "../utils/index.js";
13
- import FontsLoaded from "./FontsLoaded.js";
14
12
  import UserBootstrap from "./UserBootstrap.js";
15
13
  import ServerConfigBootstrap from "./ServerConfigBootstrap.js";
16
14
  import ThemeBootstrap from "./ThemeBootstrap.js";
@@ -1 +1 @@
1
- {"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","Provider","store","ClientBootstrap","useBroadcastLoginListener","ContextActions","ContextMenuRoot","FontBootstrap","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","getConnectOptions","createExportLogsContextAction","FontsLoaded","UserBootstrap","ServerConfigBootstrap","ThemeBootstrap","jsx","_jsx","jsxs","_jsxs","AppBootstrap","_ref","fontClassNames","pluginsUrl","getCorePlugins","serverUrl","logMetadata","children","clientOptions","logoutCount","setLogoutCount","onLogin","undefined","onLogout","requestAnimationFrame","value","contextActions","options","actions"],"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 { ContextActions, ContextMenuRoot } from '@deephaven/components';\nimport FontBootstrap from './FontBootstrap';\nimport PluginsBootstrap from './PluginsBootstrap';\nimport AuthBootstrap from './AuthBootstrap';\nimport ConnectionBootstrap from './ConnectionBootstrap';\nimport { getConnectOptions, createExportLogsContextAction } 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 /** Properties included in support logs. */\n logMetadata?: Record<string, unknown>;\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 logMetadata,\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\n const contextActions = useMemo(\n () => [createExportLogsContextAction(logMetadata, true)],\n [logMetadata]\n );\n\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 <ContextActions actions={contextActions} />\n </ClientBootstrap>\n </ThemeBootstrap>\n </PluginsBootstrap>\n </FontBootstrap>\n <ContextMenuRoot />\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;AAEvE,SAASC,cAAc,EAAEC,eAAe,QAAQ,uBAAuB;AAAC,OACjEC,aAAa;AAAA,OACbC,gBAAgB;AAAA,OAChBC,aAAa;AAAA,OACbC,mBAAmB;AAAA,SACjBC,iBAAiB,EAAEC,6BAA6B;AAAA,OAClDC,WAAW;AAAA,OACXC,aAAa;AAAA,OACbC,qBAAqB;AAAA,OACrBC,c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cAAAmB,QAAA,eACZV,IAAA,CAACH,qBAAqB;gBAAAa,QAAA,eACpBV,IAAA,CAACJ,aAAa;kBAAAc,QAAA,eACZV,IAAA,CAACR,mBAAmB;oBAAAkB,QAAA,eAClBV,IAAA,CAACL,WAAW;sBAAAe,QAAA,EAAEA;oBAAQ,CAAc;kBAAC,CAClB;gBAAC,CACT;cAAC,CACK;YAAC,CACX,CAAC,eAChBV,IAAA,CAACb,cAAc;cAACkC,OAAO,EAAEF;YAAe,CAAE,CAAC;UAAA,GAXtCP,WAYU;QAAC,CACJ;MAAC,CACD;IAAC,CACN,CAAC,eAChBZ,IAAA,CAACZ,eAAe,IAAE,CAAC;EAAA,CACX,CAAC;AAEf;AAEA,eAAee,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"AppBootstrap.js","names":["React","useCallback","useMemo","useState","Provider","store","ClientBootstrap","useBroadcastLoginListener","ContextActions","ContextMenuRoot","FontBootstrap","FontsLoaded","PluginsBootstrap","AuthBootstrap","ConnectionBootstrap","getConnectOptions","createExportLogsContextAction","UserBootstrap","ServerConfigBootstrap","ThemeBootstrap","jsx","_jsx","jsxs","_jsxs","AppBootstrap","_ref","fontClassNames","pluginsUrl","getCorePlugins","serverUrl","logMetadata","children","clientOptions","logoutCount","setLogoutCount","onLogin","undefined","onLogout","requestAnimationFrame","value","contextActions","options","actions"],"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 {\n ContextActions,\n ContextMenuRoot,\n FontBootstrap,\n FontsLoaded,\n} from '@deephaven/components';\nimport PluginsBootstrap from './PluginsBootstrap';\nimport AuthBootstrap from './AuthBootstrap';\nimport ConnectionBootstrap from './ConnectionBootstrap';\nimport { getConnectOptions, createExportLogsContextAction } from '../utils';\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 /** Properties included in support logs. */\n logMetadata?: Record<string, unknown>;\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 logMetadata,\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\n const contextActions = useMemo(\n () => [createExportLogsContextAction(logMetadata, true)],\n [logMetadata]\n );\n\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 <ContextActions actions={contextActions} />\n </ClientBootstrap>\n </ThemeBootstrap>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AAO,EAAEE,QAAQ,CAAC;EAE5C,IAAMG,cAAc,GAAGtC,OAAO,CAC5B,MAAM,CAACc,6BAA6B,CAACc,WAAW,EAAE,IAAI,CAAC,CAAC,EACxD,CAACA,WAAW,CACd,CAAC;EAED,oBACEP,KAAA,CAACnB,QAAQ;IAACC,KAAK,EAAEA,KAAM;IAAA0B,QAAA,gBACrBV,IAAA,CAACX,aAAa;MAACgB,cAAc,EAAEA,cAAe;MAAAK,QAAA,eAC5CV,IAAA,CAACT,gBAAgB;QACfgB,cAAc,EAAEA,cAAe;QAC/BD,UAAU,EAAEA,UAAW;QAAAI,QAAA,eAEvBV,IAAA,CAACF,cAAc;UAAAY,QAAA,eACbR,KAAA,CAACjB,eAAe;YACduB,SAAS,EAAEA,SAAU;YACrBY,OAAO,EAAET,aAAc;YAAAD,QAAA,gBAGvBV,IAAA,CAACR,aAAa;cAAAkB,QAAA,eACZV,IAAA,CAACH,qBAAqB;gBAAAa,QAAA,eACpBV,IAAA,CAACJ,aAAa;kBAAAc,QAAA,eACZV,IAAA,CAACP,mBAAmB;oBAAAiB,QAAA,eAClBV,IAAA,CAACV,WAAW;sBAAAoB,QAAA,EAAEA;oBAAQ,CAAc;kBAAC,CAClB;gBAAC,CACT;cAAC,CACK;YAAC,CACX,CAAC,eAChBV,IAAA,CAACb,cAAc;cAACkC,OAAO,EAAEF;YAAe,CAAE,CAAC;UAAA,GAXtCP,WAYU;QAAC,CACJ;MAAC,CACD;IAAC,CACN,CAAC,eAChBZ,IAAA,CAACZ,eAAe,IAAE,CAAC;EAAA,CACX,CAAC;AAEf;AAEA,eAAee,YAAY","ignoreList":[]}
@@ -3,8 +3,6 @@ export * from './AppDashboards';
3
3
  export * from './AuthBootstrap';
4
4
  export * from './ConnectionBootstrap';
5
5
  export * from './ConnectionContext';
6
- export * from './FontBootstrap';
7
- export * from './FontsLoaded';
8
6
  export * from './PluginsBootstrap';
9
7
  export * from './ThemeBootstrap';
10
8
  export * from './useConnection';
@@ -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,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,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,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
@@ -3,8 +3,6 @@ export * from "./AppDashboards.js";
3
3
  export * from "./AuthBootstrap.js";
4
4
  export * from "./ConnectionBootstrap.js";
5
5
  export * from "./ConnectionContext.js";
6
- export * from "./FontBootstrap.js";
7
- export * from "./FontsLoaded.js";
8
6
  export * from "./PluginsBootstrap.js";
9
7
  export * from "./ThemeBootstrap.js";
10
8
  export * from "./useConnection.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["export * from './AppBootstrap';\nexport * from './AppDashboards';\nexport * from './AuthBootstrap';\nexport * from './ConnectionBootstrap';\nexport * from './ConnectionContext';\nexport * from './FontBootstrap';\nexport * from './FontsLoaded';\nexport * from './PluginsBootstrap';\nexport * from './ThemeBootstrap';\nexport * from './useConnection';\nexport * from './useServerConfig';\nexport * from './useUser';\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["export * from './AppBootstrap';\nexport * from './AppDashboards';\nexport * from './AuthBootstrap';\nexport * from './ConnectionBootstrap';\nexport * from './ConnectionContext';\nexport * from './PluginsBootstrap';\nexport * from './ThemeBootstrap';\nexport * from './useConnection';\nexport * from './useServerConfig';\nexport * from './useUser';\n"],"mappings":"","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/app-utils",
3
- "version": "1.7.2-react-18-alpha.3+b369a51e",
3
+ "version": "1.8.0",
4
4
  "description": "Deephaven App Utils",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -22,32 +22,30 @@
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": "^1.7.2-react-18-alpha.3+b369a51e"
25
+ "@deephaven/test-utils": "^1.8.0"
26
26
  },
27
27
  "dependencies": {
28
28
  "@adobe/react-spectrum": "3.38.0",
29
- "@deephaven/auth-plugins": "^1.7.2-react-18-alpha.3+b369a51e",
30
- "@deephaven/chart": "^1.7.2-react-18-alpha.3+b369a51e",
31
- "@deephaven/components": "^1.7.2-react-18-alpha.3+b369a51e",
32
- "@deephaven/console": "^1.7.2-react-18-alpha.3+b369a51e",
33
- "@deephaven/dashboard": "^1.7.2-react-18-alpha.3+b369a51e",
34
- "@deephaven/dashboard-core-plugins": "^1.7.2-react-18-alpha.3+b369a51e",
35
- "@deephaven/file-explorer": "^1.7.2-react-18-alpha.3+b369a51e",
36
- "@deephaven/golden-layout": "^1.7.2-react-18-alpha.3+b369a51e",
37
- "@deephaven/icons": "^1.7.2-react-18-alpha.3+b369a51e",
38
- "@deephaven/iris-grid": "^1.7.2-react-18-alpha.3+b369a51e",
39
- "@deephaven/jsapi-bootstrap": "^1.7.2-react-18-alpha.3+b369a51e",
40
- "@deephaven/jsapi-components": "^1.7.2-react-18-alpha.3+b369a51e",
29
+ "@deephaven/auth-plugins": "^1.8.0",
30
+ "@deephaven/chart": "^1.8.0",
31
+ "@deephaven/components": "^1.8.0",
32
+ "@deephaven/console": "^1.8.0",
33
+ "@deephaven/dashboard": "^1.8.0",
34
+ "@deephaven/dashboard-core-plugins": "^1.8.0",
35
+ "@deephaven/file-explorer": "^1.8.0",
36
+ "@deephaven/golden-layout": "^1.8.0",
37
+ "@deephaven/icons": "^1.2.0",
38
+ "@deephaven/iris-grid": "^1.8.0",
39
+ "@deephaven/jsapi-bootstrap": "^1.8.0",
40
+ "@deephaven/jsapi-components": "^1.8.0",
41
41
  "@deephaven/jsapi-types": "^1.0.0-dev0.39.4",
42
- "@deephaven/jsapi-utils": "^1.7.2-react-18-alpha.3+b369a51e",
43
- "@deephaven/log": "^1.7.2-react-18-alpha.3+b369a51e",
44
- "@deephaven/plugin": "^1.7.2-react-18-alpha.3+b369a51e",
45
- "@deephaven/react-hooks": "^1.7.2-react-18-alpha.3+b369a51e",
46
- "@deephaven/redux": "^1.7.2-react-18-alpha.3+b369a51e",
47
- "@deephaven/storage": "^1.7.2-react-18-alpha.3+b369a51e",
48
- "@deephaven/utils": "^1.7.2-react-18-alpha.3+b369a51e",
49
- "@fontsource/fira-mono": "5.0.13",
50
- "@fontsource/fira-sans": "5.0.20",
42
+ "@deephaven/jsapi-utils": "^1.8.0",
43
+ "@deephaven/log": "^1.8.0",
44
+ "@deephaven/plugin": "^1.8.0",
45
+ "@deephaven/react-hooks": "^1.8.0",
46
+ "@deephaven/redux": "^1.8.0",
47
+ "@deephaven/storage": "^1.8.0",
48
+ "@deephaven/utils": "^1.8.0",
51
49
  "@paciolan/remote-component": "2.13.0",
52
50
  "@paciolan/remote-module-loader": "^3.0.2",
53
51
  "classnames": "^2.5.1",
@@ -70,5 +68,5 @@
70
68
  "publishConfig": {
71
69
  "access": "public"
72
70
  },
73
- "gitHead": "b369a51ee94d212641a14c6ce1f19fcc85168339"
71
+ "gitHead": "84c5dcaed2803b85b80eb763b550f432eabe0d53"
74
72
  }
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import '@fontsource/fira-mono/400.css';
3
- import '@fontsource/fira-mono/500.css';
4
- import '@fontsource/fira-mono/700.css';
5
- import '@fontsource/fira-sans/300.css';
6
- import '@fontsource/fira-sans/300-italic.css';
7
- import '@fontsource/fira-sans/400.css';
8
- import '@fontsource/fira-sans/400-italic.css';
9
- import '@fontsource/fira-sans/500.css';
10
- import '@fontsource/fira-sans/600.css';
11
- import '@fontsource/fira-sans/700.css';
12
- import '@fontsource/fira-sans/700-italic.css';
13
- export declare const FontsLoadedContext: React.Context<boolean>;
14
- export type FontBootstrapProps = {
15
- /**
16
- * Class names of the font elements to pre load
17
- */
18
- fontClassNames?: string[];
19
- /**
20
- * The children to render wrapped with the FontsLoadedContext.
21
- * Note that it renders the children even if the fonts aren't loaded yet.
22
- */
23
- children: React.ReactNode;
24
- };
25
- /**
26
- * FontBootstrap component. Handles preloading fonts.
27
- */
28
- export declare function FontBootstrap({ fontClassNames, children, }: FontBootstrapProps): JSX.Element;
29
- export default FontBootstrap;
30
- //# sourceMappingURL=FontBootstrap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FontBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/FontBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,+BAA+B,CAAC;AACvC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,sCAAsC,CAAC;AAE9C,eAAO,MAAM,kBAAkB,wBAAgC,CAAC;AAGhE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,cAAyE,EACzE,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAmClC;AAED,eAAe,aAAa,CAAC"}
@@ -1,49 +0,0 @@
1
- import React, { createContext, useEffect, useState } from 'react';
2
- import '@fontsource/fira-mono/400.css';
3
- import '@fontsource/fira-mono/500.css';
4
- import '@fontsource/fira-mono/700.css';
5
- import '@fontsource/fira-sans/300.css';
6
- import '@fontsource/fira-sans/300-italic.css';
7
- import '@fontsource/fira-sans/400.css';
8
- import '@fontsource/fira-sans/400-italic.css';
9
- import '@fontsource/fira-sans/500.css';
10
- import '@fontsource/fira-sans/600.css';
11
- import '@fontsource/fira-sans/700.css';
12
- import '@fontsource/fira-sans/700-italic.css';
13
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
14
- export var FontsLoadedContext = /*#__PURE__*/createContext(false);
15
- FontsLoadedContext.displayName = 'FontsLoadedContext';
16
- /**
17
- * FontBootstrap component. Handles preloading fonts.
18
- */
19
- export function FontBootstrap(_ref) {
20
- var {
21
- fontClassNames = ['fira-sans-regular', 'fira-sans-semibold', 'fira-mono'],
22
- children
23
- } = _ref;
24
- var [isLoaded, setIsLoaded] = useState(false);
25
- useEffect(function initFonts() {
26
- document.fonts.ready.then(() => {
27
- setIsLoaded(true);
28
- });
29
- }, []);
30
- return /*#__PURE__*/_jsxs(_Fragment, {
31
- children: [/*#__PURE__*/_jsx(FontsLoadedContext.Provider, {
32
- value: isLoaded,
33
- children: children
34
- }), /*#__PURE__*/_jsx("div", {
35
- id: "preload-fonts",
36
- style: {
37
- visibility: 'hidden',
38
- position: 'absolute',
39
- top: -10000
40
- },
41
- children: fontClassNames.map(className => /*#__PURE__*/_jsx("p", {
42
- className: className,
43
- children: "preload"
44
- }, className))
45
- })]
46
- });
47
- }
48
- export default FontBootstrap;
49
- //# sourceMappingURL=FontBootstrap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FontBootstrap.js","names":["React","createContext","useEffect","useState","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","FontsLoadedContext","displayName","FontBootstrap","_ref","fontClassNames","children","isLoaded","setIsLoaded","initFonts","document","fonts","ready","then","Provider","value","id","style","visibility","position","top","map","className"],"sources":["../../src/components/FontBootstrap.tsx"],"sourcesContent":["import React, { createContext, useEffect, useState } from 'react';\nimport '@fontsource/fira-mono/400.css';\nimport '@fontsource/fira-mono/500.css';\nimport '@fontsource/fira-mono/700.css';\nimport '@fontsource/fira-sans/300.css';\nimport '@fontsource/fira-sans/300-italic.css';\nimport '@fontsource/fira-sans/400.css';\nimport '@fontsource/fira-sans/400-italic.css';\nimport '@fontsource/fira-sans/500.css';\nimport '@fontsource/fira-sans/600.css';\nimport '@fontsource/fira-sans/700.css';\nimport '@fontsource/fira-sans/700-italic.css';\n\nexport const FontsLoadedContext = createContext<boolean>(false);\nFontsLoadedContext.displayName = 'FontsLoadedContext';\n\nexport type FontBootstrapProps = {\n /**\n * Class names of the font elements to pre load\n */\n fontClassNames?: string[];\n\n /**\n * The children to render wrapped with the FontsLoadedContext.\n * Note that it renders the children even if the fonts aren't loaded yet.\n */\n children: React.ReactNode;\n};\n\n/**\n * FontBootstrap component. Handles preloading fonts.\n */\nexport function FontBootstrap({\n fontClassNames = ['fira-sans-regular', 'fira-sans-semibold', 'fira-mono'],\n children,\n}: FontBootstrapProps): JSX.Element {\n const [isLoaded, setIsLoaded] = useState(false);\n useEffect(function initFonts() {\n document.fonts.ready.then(() => {\n setIsLoaded(true);\n });\n }, []);\n\n return (\n <>\n <FontsLoadedContext.Provider value={isLoaded}>\n {children}\n </FontsLoadedContext.Provider>\n {/*\n Need to preload any monaco and Deephaven grid fonts.\n We hide text with all the fonts we need on the root app.jsx page\n Load the Fira Mono font so that Monaco calculates word wrapping properly.\n This element doesn't need to be visible, just load the font and stay hidden.\n https://github.com/microsoft/vscode/issues/88689\n Can be replaced with a rel=\"preload\" when firefox adds support\n https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content\n */}\n <div\n id=\"preload-fonts\"\n style={{ visibility: 'hidden', position: 'absolute', top: -10000 }}\n >\n {/* trigger loading of fonts needed by monaco and iris grid */}\n {fontClassNames.map(className => (\n <p key={className} className={className}>\n preload\n </p>\n ))}\n </div>\n </>\n );\n}\n\nexport default FontBootstrap;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACjE,OAAO,+BAA+B;AACtC,OAAO,+BAA+B;AACtC,OAAO,+BAA+B;AACtC,OAAO,+BAA+B;AACtC,OAAO,sCAAsC;AAC7C,OAAO,+BAA+B;AACtC,OAAO,sCAAsC;AAC7C,OAAO,+BAA+B;AACtC,OAAO,+BAA+B;AACtC,OAAO,+BAA+B;AACtC,OAAO,sCAAsC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAE9C,OAAO,IAAMC,kBAAkB,gBAAGT,aAAa,CAAU,KAAK,CAAC;AAC/DS,kBAAkB,CAACC,WAAW,GAAG,oBAAoB;AAerD;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAGO;EAAA,IAHN;IAC5BC,cAAc,GAAG,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,WAAW,CAAC;IACzEC;EACkB,CAAC,GAAAF,IAAA;EACnB,IAAM,CAACG,QAAQ,EAAEC,WAAW,CAAC,GAAGd,QAAQ,CAAC,KAAK,CAAC;EAC/CD,SAAS,CAAC,SAASgB,SAASA,CAAA,EAAG;IAC7BC,QAAQ,CAACC,KAAK,CAACC,KAAK,CAACC,IAAI,CAAC,MAAM;MAC9BL,WAAW,CAAC,IAAI,CAAC;IACnB,CAAC,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;EAEN,oBACER,KAAA,CAAAF,SAAA;IAAAQ,QAAA,gBACEV,IAAA,CAACK,kBAAkB,CAACa,QAAQ;MAACC,KAAK,EAAER,QAAS;MAAAD,QAAA,EAC1CA;IAAQ,CACkB,CAAC,eAU9BV,IAAA;MACEoB,EAAE,EAAC,eAAe;MAClBC,KAAK,EAAE;QAAEC,UAAU,EAAE,QAAQ;QAAEC,QAAQ,EAAE,UAAU;QAAEC,GAAG,EAAE,CAAC;MAAM,CAAE;MAAAd,QAAA,EAGlED,cAAc,CAACgB,GAAG,CAACC,SAAS,iBAC3B1B,IAAA;QAAmB0B,SAAS,EAAEA,SAAU;QAAAhB,QAAA,EAAC;MAEzC,GAFQgB,SAEL,CACJ;IAAC,CACC,CAAC;EAAA,CACN,CAAC;AAEP;AAEA,eAAenB,aAAa","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export type FontsLoadedProps = {
3
- /** Children to show when the fonts have completed loading */
4
- children: React.ReactNode;
5
- };
6
- export declare function FontsLoaded({ children }: FontsLoadedProps): JSX.Element;
7
- export default FontsLoaded;
8
- //# sourceMappingURL=FontsLoaded.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FontsLoaded.d.ts","sourceRoot":"","sources":["../../src/components/FontsLoaded.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,6DAA6D;IAC7D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CASvE;AAED,eAAe,WAAW,CAAC"}
@@ -1,22 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { LoadingOverlay } from '@deephaven/components';
3
- import { FontsLoadedContext } from "./FontBootstrap.js";
4
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
5
- export function FontsLoaded(_ref) {
6
- var {
7
- children
8
- } = _ref;
9
- var isFontsLoaded = useContext(FontsLoadedContext);
10
- if (!isFontsLoaded) {
11
- return /*#__PURE__*/_jsx(LoadingOverlay, {
12
- "data-testid": "fonts-loaded-loading"
13
- });
14
- }
15
-
16
- // eslint-disable-next-line react/jsx-no-useless-fragment
17
- return /*#__PURE__*/_jsx(_Fragment, {
18
- children: children
19
- });
20
- }
21
- export default FontsLoaded;
22
- //# sourceMappingURL=FontsLoaded.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FontsLoaded.js","names":["React","useContext","LoadingOverlay","FontsLoadedContext","jsx","_jsx","Fragment","_Fragment","FontsLoaded","_ref","children","isFontsLoaded"],"sources":["../../src/components/FontsLoaded.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { LoadingOverlay } from '@deephaven/components';\nimport { FontsLoadedContext } from './FontBootstrap';\n\nexport type FontsLoadedProps = {\n /** Children to show when the fonts have completed loading */\n children: React.ReactNode;\n};\n\nexport function FontsLoaded({ children }: FontsLoadedProps): JSX.Element {\n const isFontsLoaded = useContext(FontsLoadedContext);\n\n if (!isFontsLoaded) {\n return <LoadingOverlay data-testid=\"fonts-loaded-loading\" />;\n }\n\n // eslint-disable-next-line react/jsx-no-useless-fragment\n return <>{children}</>;\n}\n\nexport default FontsLoaded;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,uBAAuB;AAAC,SAC9CC,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAO3B,OAAO,SAASC,WAAWA,CAAAC,IAAA,EAA8C;EAAA,IAA7C;IAAEC;EAA2B,CAAC,GAAAD,IAAA;EACxD,IAAME,aAAa,GAAGV,UAAU,CAACE,kBAAkB,CAAC;EAEpD,IAAI,CAACQ,aAAa,EAAE;IAClB,oBAAON,IAAA,CAACH,cAAc;MAAC,eAAY;IAAsB,CAAE,CAAC;EAC9D;;EAEA;EACA,oBAAOG,IAAA,CAAAE,SAAA;IAAAG,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB;AAEA,eAAeF,WAAW","ignoreList":[]}