@deephaven/app-utils 0.108.1-alpha-parent-theme.39 → 0.108.1-alpha-parent-theme.41

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":"ThemeBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/ThemeBootstrap.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,GACT,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAoB1C;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ThemeBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/ThemeBootstrap.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,GACT,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAoB1C;AAED,eAAe,cAAc,CAAC"}
@@ -4,9 +4,8 @@ import { MonacoThemeProvider } from '@deephaven/console';
4
4
  import { ThemeProvider } from '@deephaven/components';
5
5
  import { useAppSelector } from '@deephaven/dashboard';
6
6
  import { IrisGridThemeProvider } from '@deephaven/iris-grid';
7
- import { PluginsContext } from '@deephaven/plugin';
7
+ import { PluginsContext, useCustomThemes } from '@deephaven/plugin';
8
8
  import { getSettings } from '@deephaven/redux';
9
- import { useCustomThemes } from "./useCustomThemes.js";
10
9
  import { jsx as _jsx } from "react/jsx-runtime";
11
10
  export function ThemeBootstrap(_ref) {
12
11
  var {
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeBootstrap.js","names":["useContext","ChartThemeProvider","MonacoThemeProvider","ThemeProvider","useAppSelector","IrisGridThemeProvider","PluginsContext","getSettings","useCustomThemes","jsx","_jsx","ThemeBootstrap","_ref","children","settings","pluginModules","themes","density","gridDensity"],"sources":["../../src/components/ThemeBootstrap.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { ChartThemeProvider } from '@deephaven/chart';\nimport { MonacoThemeProvider } from '@deephaven/console';\nimport { ThemeProvider } from '@deephaven/components';\nimport { useAppSelector } from '@deephaven/dashboard';\nimport { IrisGridThemeProvider } from '@deephaven/iris-grid';\nimport { PluginsContext } from '@deephaven/plugin';\nimport { getSettings } from '@deephaven/redux';\nimport { useCustomThemes } from './useCustomThemes';\n\nexport interface ThemeBootstrapProps {\n children: React.ReactNode;\n}\n\nexport function ThemeBootstrap({\n children,\n}: ThemeBootstrapProps): JSX.Element | null {\n const settings = useAppSelector(getSettings);\n\n // The `usePlugins` hook throws if the context value is null. Since this is\n // the state while plugins load asynchronously, we are using `useContext`\n // directly to avoid the exception.\n const pluginModules = useContext(PluginsContext);\n const themes = useCustomThemes(pluginModules);\n\n return (\n <ThemeProvider themes={themes}>\n <ChartThemeProvider>\n <MonacoThemeProvider>\n <IrisGridThemeProvider density={settings.gridDensity}>\n {children}\n </IrisGridThemeProvider>\n </MonacoThemeProvider>\n </ChartThemeProvider>\n </ThemeProvider>\n );\n}\n\nexport default ThemeBootstrap;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,kBAAkB,QAAQ,kBAAkB;AACrD,SAASC,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,qBAAqB,QAAQ,sBAAsB;AAC5D,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,WAAW,QAAQ,kBAAkB;AAAC,SACtCC,eAAe;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAMxB,OAAO,SAASC,cAAcA,CAAAC,IAAA,EAEc;EAAA,IAFb;IAC7BC;EACmB,CAAC,GAAAD,IAAA;EACpB,IAAME,QAAQ,GAAGV,cAAc,CAACG,WAAW,CAAC;;EAE5C;EACA;EACA;EACA,IAAMQ,aAAa,GAAGf,UAAU,CAACM,cAAc,CAAC;EAChD,IAAMU,MAAM,GAAGR,eAAe,CAACO,aAAa,CAAC;EAE7C,oBACEL,IAAA,CAACP,aAAa;IAACa,MAAM,EAAEA,MAAO;IAAAH,QAAA,eAC5BH,IAAA,CAACT,kBAAkB;MAAAY,QAAA,eACjBH,IAAA,CAACR,mBAAmB;QAAAW,QAAA,eAClBH,IAAA,CAACL,qBAAqB;UAACY,OAAO,EAAEH,QAAQ,CAACI,WAAY;UAAAL,QAAA,EAClDA;QAAQ,CACY;MAAC,CACL;IAAC,CACJ;EAAC,CACR,CAAC;AAEpB;AAEA,eAAeF,cAAc"}
1
+ {"version":3,"file":"ThemeBootstrap.js","names":["useContext","ChartThemeProvider","MonacoThemeProvider","ThemeProvider","useAppSelector","IrisGridThemeProvider","PluginsContext","useCustomThemes","getSettings","jsx","_jsx","ThemeBootstrap","_ref","children","settings","pluginModules","themes","density","gridDensity"],"sources":["../../src/components/ThemeBootstrap.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { ChartThemeProvider } from '@deephaven/chart';\nimport { MonacoThemeProvider } from '@deephaven/console';\nimport { ThemeProvider } from '@deephaven/components';\nimport { useAppSelector } from '@deephaven/dashboard';\nimport { IrisGridThemeProvider } from '@deephaven/iris-grid';\nimport { PluginsContext, useCustomThemes } from '@deephaven/plugin';\nimport { getSettings } from '@deephaven/redux';\n\nexport interface ThemeBootstrapProps {\n children: React.ReactNode;\n}\n\nexport function ThemeBootstrap({\n children,\n}: ThemeBootstrapProps): JSX.Element | null {\n const settings = useAppSelector(getSettings);\n\n // The `usePlugins` hook throws if the context value is null. Since this is\n // the state while plugins load asynchronously, we are using `useContext`\n // directly to avoid the exception.\n const pluginModules = useContext(PluginsContext);\n const themes = useCustomThemes(pluginModules);\n\n return (\n <ThemeProvider themes={themes}>\n <ChartThemeProvider>\n <MonacoThemeProvider>\n <IrisGridThemeProvider density={settings.gridDensity}>\n {children}\n </IrisGridThemeProvider>\n </MonacoThemeProvider>\n </ChartThemeProvider>\n </ThemeProvider>\n );\n}\n\nexport default ThemeBootstrap;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,kBAAkB,QAAQ,kBAAkB;AACrD,SAASC,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,qBAAqB,QAAQ,sBAAsB;AAC5D,SAASC,cAAc,EAAEC,eAAe,QAAQ,mBAAmB;AACnE,SAASC,WAAW,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM/C,OAAO,SAASC,cAAcA,CAAAC,IAAA,EAEc;EAAA,IAFb;IAC7BC;EACmB,CAAC,GAAAD,IAAA;EACpB,IAAME,QAAQ,GAAGV,cAAc,CAACI,WAAW,CAAC;;EAE5C;EACA;EACA;EACA,IAAMO,aAAa,GAAGf,UAAU,CAACM,cAAc,CAAC;EAChD,IAAMU,MAAM,GAAGT,eAAe,CAACQ,aAAa,CAAC;EAE7C,oBACEL,IAAA,CAACP,aAAa;IAACa,MAAM,EAAEA,MAAO;IAAAH,QAAA,eAC5BH,IAAA,CAACT,kBAAkB;MAAAY,QAAA,eACjBH,IAAA,CAACR,mBAAmB;QAAAW,QAAA,eAClBH,IAAA,CAACL,qBAAqB;UAACY,OAAO,EAAEH,QAAQ,CAACI,WAAY;UAAAL,QAAA,EAClDA;QAAQ,CACY;MAAC,CACL;IAAC,CACJ;EAAC,CACR,CAAC;AAEpB;AAEA,eAAeF,cAAc"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/app-utils",
3
- "version": "0.108.1-alpha-parent-theme.39+0e3a4f85",
3
+ "version": "0.108.1-alpha-parent-theme.41+bc298615",
4
4
  "description": "Deephaven App Utils",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,7 @@
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.108.1-alpha-parent-theme.39+0e3a4f85",
25
+ "@deephaven/test-utils": "^0.108.1-alpha-parent-theme.41+bc298615",
26
26
  "react": "^17.x",
27
27
  "react-dom": "^17.x",
28
28
  "react-redux": "^7.x",
@@ -30,26 +30,26 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@adobe/react-spectrum": "3.38.0",
33
- "@deephaven/auth-plugins": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
34
- "@deephaven/chart": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
35
- "@deephaven/components": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
36
- "@deephaven/console": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
37
- "@deephaven/dashboard": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
38
- "@deephaven/dashboard-core-plugins": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
39
- "@deephaven/file-explorer": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
40
- "@deephaven/golden-layout": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
41
- "@deephaven/icons": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
42
- "@deephaven/iris-grid": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
43
- "@deephaven/jsapi-bootstrap": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
44
- "@deephaven/jsapi-components": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
33
+ "@deephaven/auth-plugins": "^0.108.1-alpha-parent-theme.41+bc298615",
34
+ "@deephaven/chart": "^0.108.1-alpha-parent-theme.41+bc298615",
35
+ "@deephaven/components": "^0.108.1-alpha-parent-theme.41+bc298615",
36
+ "@deephaven/console": "^0.108.1-alpha-parent-theme.41+bc298615",
37
+ "@deephaven/dashboard": "^0.108.1-alpha-parent-theme.41+bc298615",
38
+ "@deephaven/dashboard-core-plugins": "^0.108.1-alpha-parent-theme.41+bc298615",
39
+ "@deephaven/file-explorer": "^0.108.1-alpha-parent-theme.41+bc298615",
40
+ "@deephaven/golden-layout": "^0.108.1-alpha-parent-theme.41+bc298615",
41
+ "@deephaven/icons": "^0.108.1-alpha-parent-theme.41+bc298615",
42
+ "@deephaven/iris-grid": "^0.108.1-alpha-parent-theme.41+bc298615",
43
+ "@deephaven/jsapi-bootstrap": "^0.108.1-alpha-parent-theme.41+bc298615",
44
+ "@deephaven/jsapi-components": "^0.108.1-alpha-parent-theme.41+bc298615",
45
45
  "@deephaven/jsapi-types": "^1.0.0-dev0.37.2",
46
- "@deephaven/jsapi-utils": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
47
- "@deephaven/log": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
48
- "@deephaven/plugin": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
49
- "@deephaven/react-hooks": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
50
- "@deephaven/redux": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
51
- "@deephaven/storage": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
52
- "@deephaven/utils": "^0.108.1-alpha-parent-theme.39+0e3a4f85",
46
+ "@deephaven/jsapi-utils": "^0.108.1-alpha-parent-theme.41+bc298615",
47
+ "@deephaven/log": "^0.108.1-alpha-parent-theme.41+bc298615",
48
+ "@deephaven/plugin": "^0.108.1-alpha-parent-theme.41+bc298615",
49
+ "@deephaven/react-hooks": "^0.108.1-alpha-parent-theme.41+bc298615",
50
+ "@deephaven/redux": "^0.108.1-alpha-parent-theme.41+bc298615",
51
+ "@deephaven/storage": "^0.108.1-alpha-parent-theme.41+bc298615",
52
+ "@deephaven/utils": "^0.108.1-alpha-parent-theme.41+bc298615",
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": "0e3a4f85f19b141b1ac789c07d1508038bd8b87c"
77
+ "gitHead": "bc2986157ba3559311df20fa03ba01960d845da6"
78
78
  }
@@ -1,10 +0,0 @@
1
- import { type ThemeData } from '@deephaven/components';
2
- import { type PluginModuleMap } from '@deephaven/plugin';
3
- /**
4
- * Use custom external or plugin themes.
5
- * @param pluginModules The plugin modules to get themes from when external
6
- * themes are disabled.
7
- */
8
- export declare function useCustomThemes(pluginModules?: PluginModuleMap | null): ThemeData[] | null;
9
- export default useCustomThemes;
10
- //# sourceMappingURL=useCustomThemes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCustomThemes.d.ts","sourceRoot":"","sources":["../../src/components/useCustomThemes.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,mBAAmB,CAAC;AAE3B;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,aAAa,CAAC,EAAE,eAAe,GAAG,IAAI,GACrC,SAAS,EAAE,GAAG,IAAI,CA2BpB;AAED,eAAe,eAAe,CAAC"}
@@ -1,30 +0,0 @@
1
- import { useMemo } from 'react';
2
- import { useExternalTheme } from '@deephaven/components';
3
- import { getThemeDataFromPlugins } from '@deephaven/plugin';
4
-
5
- /**
6
- * Use custom external or plugin themes.
7
- * @param pluginModules The plugin modules to get themes from when external
8
- * themes are disabled.
9
- */
10
- export function useCustomThemes(pluginModules) {
11
- var {
12
- isEnabled: isExternalThemeEnabled,
13
- isPending: isExternalThemePending,
14
- themeData: externalThemeData
15
- } = useExternalTheme();
16
- return useMemo(() => {
17
- // Get theme from parent window via `postMessage` apis
18
- if (isExternalThemeEnabled) {
19
- if (isExternalThemePending) {
20
- return null;
21
- }
22
- return externalThemeData ? [externalThemeData] : [];
23
- }
24
-
25
- // Get themes from plugins
26
- return pluginModules == null ? null : getThemeDataFromPlugins(pluginModules);
27
- }, [isExternalThemeEnabled, isExternalThemePending, externalThemeData, pluginModules]);
28
- }
29
- export default useCustomThemes;
30
- //# sourceMappingURL=useCustomThemes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCustomThemes.js","names":["useMemo","useExternalTheme","getThemeDataFromPlugins","useCustomThemes","pluginModules","isEnabled","isExternalThemeEnabled","isPending","isExternalThemePending","themeData","externalThemeData"],"sources":["../../src/components/useCustomThemes.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { useExternalTheme, type ThemeData } from '@deephaven/components';\nimport {\n getThemeDataFromPlugins,\n type PluginModuleMap,\n} from '@deephaven/plugin';\n\n/**\n * Use custom external or plugin themes.\n * @param pluginModules The plugin modules to get themes from when external\n * themes are disabled.\n */\nexport function useCustomThemes(\n pluginModules?: PluginModuleMap | null\n): ThemeData[] | null {\n const {\n isEnabled: isExternalThemeEnabled,\n isPending: isExternalThemePending,\n themeData: externalThemeData,\n } = useExternalTheme();\n\n return useMemo(() => {\n // Get theme from parent window via `postMessage` apis\n if (isExternalThemeEnabled) {\n if (isExternalThemePending) {\n return null;\n }\n\n return externalThemeData ? [externalThemeData] : [];\n }\n\n // Get themes from plugins\n return pluginModules == null\n ? null\n : getThemeDataFromPlugins(pluginModules);\n }, [\n isExternalThemeEnabled,\n isExternalThemePending,\n externalThemeData,\n pluginModules,\n ]);\n}\n\nexport default useCustomThemes;\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,gBAAgB,QAAwB,uBAAuB;AACxE,SACEC,uBAAuB,QAElB,mBAAmB;;AAE1B;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAC7BC,aAAsC,EAClB;EACpB,IAAM;IACJC,SAAS,EAAEC,sBAAsB;IACjCC,SAAS,EAAEC,sBAAsB;IACjCC,SAAS,EAAEC;EACb,CAAC,GAAGT,gBAAgB,CAAC,CAAC;EAEtB,OAAOD,OAAO,CAAC,MAAM;IACnB;IACA,IAAIM,sBAAsB,EAAE;MAC1B,IAAIE,sBAAsB,EAAE;QAC1B,OAAO,IAAI;MACb;MAEA,OAAOE,iBAAiB,GAAG,CAACA,iBAAiB,CAAC,GAAG,EAAE;IACrD;;IAEA;IACA,OAAON,aAAa,IAAI,IAAI,GACxB,IAAI,GACJF,uBAAuB,CAACE,aAAa,CAAC;EAC5C,CAAC,EAAE,CACDE,sBAAsB,EACtBE,sBAAsB,EACtBE,iBAAiB,EACjBN,aAAa,CACd,CAAC;AACJ;AAEA,eAAeD,eAAe"}