@deephaven/app-utils 0.55.1-beta.8 → 0.56.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":"ThemeBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/ThemeBootstrap.tsx"],"names":[],"mappings":";AAMA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAiB7E;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ThemeBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/ThemeBootstrap.tsx"],"names":[],"mappings":";AAOA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAqB7E;AAED,eAAe,cAAc,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { useContext, useMemo } from 'react';
2
2
  import { ChartThemeProvider } from '@deephaven/chart';
3
+ import { MonacoThemeProvider } from '@deephaven/console';
3
4
  import { ThemeProvider } from '@deephaven/components';
4
- import { PluginsContext } from '@deephaven/plugin';
5
- import { getThemeDataFromPlugins } from "../plugins/index.js";
5
+ import { IrisGridThemeProvider } from '@deephaven/iris-grid';
6
+ import { getThemeDataFromPlugins, PluginsContext } from '@deephaven/plugin';
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
8
  export function ThemeBootstrap(_ref) {
8
9
  var {
@@ -16,7 +17,11 @@ export function ThemeBootstrap(_ref) {
16
17
  return /*#__PURE__*/_jsx(ThemeProvider, {
17
18
  themes: themes,
18
19
  children: /*#__PURE__*/_jsx(ChartThemeProvider, {
19
- children: children
20
+ children: /*#__PURE__*/_jsx(MonacoThemeProvider, {
21
+ children: /*#__PURE__*/_jsx(IrisGridThemeProvider, {
22
+ children: children
23
+ })
24
+ })
20
25
  })
21
26
  });
22
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeBootstrap.js","names":["useContext","useMemo","ChartThemeProvider","ThemeProvider","PluginsContext","getThemeDataFromPlugins","jsx","_jsx","ThemeBootstrap","_ref","children","pluginModules","themes"],"sources":["../../src/components/ThemeBootstrap.tsx"],"sourcesContent":["import { useContext, useMemo } from 'react';\nimport { ChartThemeProvider } from '@deephaven/chart';\nimport { ThemeProvider } from '@deephaven/components';\nimport { PluginsContext } from '@deephaven/plugin';\nimport { getThemeDataFromPlugins } from '../plugins';\n\nexport interface ThemeBootstrapProps {\n children: React.ReactNode;\n}\n\nexport function ThemeBootstrap({ children }: ThemeBootstrapProps): JSX.Element {\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\n const themes = useMemo(\n () =>\n pluginModules == null ? null : getThemeDataFromPlugins(pluginModules),\n [pluginModules]\n );\n\n return (\n <ThemeProvider themes={themes}>\n <ChartThemeProvider>{children}</ChartThemeProvider>\n </ThemeProvider>\n );\n}\n\nexport default ThemeBootstrap;\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC3C,SAASC,kBAAkB,QAAQ,kBAAkB;AACrD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,cAAc,QAAQ,mBAAmB;AAAC,SAC1CC,uBAAuB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAMhC,OAAO,SAASC,cAAcA,CAAAC,IAAA,EAAiD;EAAA,IAAhD;IAAEC;EAA8B,CAAC,GAAAD,IAAA;EAC9D;EACA;EACA;EACA,IAAME,aAAa,GAAGX,UAAU,CAACI,cAAc,CAAC;EAEhD,IAAMQ,MAAM,GAAGX,OAAO,CACpB,MACEU,aAAa,IAAI,IAAI,GAAG,IAAI,GAAGN,uBAAuB,CAACM,aAAa,CAAC,EACvE,CAACA,aAAa,CAChB,CAAC;EAED,oBACEJ,IAAA,CAACJ,aAAa;IAACS,MAAM,EAAEA,MAAO;IAAAF,QAAA,eAC5BH,IAAA,CAACL,kBAAkB;MAAAQ,QAAA,EAAEA;IAAQ,CAAqB;EAAC,CACtC,CAAC;AAEpB;AAEA,eAAeF,cAAc"}
1
+ {"version":3,"file":"ThemeBootstrap.js","names":["useContext","useMemo","ChartThemeProvider","MonacoThemeProvider","ThemeProvider","IrisGridThemeProvider","getThemeDataFromPlugins","PluginsContext","jsx","_jsx","ThemeBootstrap","_ref","children","pluginModules","themes"],"sources":["../../src/components/ThemeBootstrap.tsx"],"sourcesContent":["import { useContext, useMemo } from 'react';\nimport { ChartThemeProvider } from '@deephaven/chart';\nimport { MonacoThemeProvider } from '@deephaven/console';\nimport { ThemeProvider } from '@deephaven/components';\nimport { IrisGridThemeProvider } from '@deephaven/iris-grid';\nimport { getThemeDataFromPlugins, PluginsContext } from '@deephaven/plugin';\n\nexport interface ThemeBootstrapProps {\n children: React.ReactNode;\n}\n\nexport function ThemeBootstrap({ children }: ThemeBootstrapProps): JSX.Element {\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\n const themes = useMemo(\n () =>\n pluginModules == null ? null : getThemeDataFromPlugins(pluginModules),\n [pluginModules]\n );\n\n return (\n <ThemeProvider themes={themes}>\n <ChartThemeProvider>\n <MonacoThemeProvider>\n <IrisGridThemeProvider>{children}</IrisGridThemeProvider>\n </MonacoThemeProvider>\n </ChartThemeProvider>\n </ThemeProvider>\n );\n}\n\nexport default ThemeBootstrap;\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC3C,SAASC,kBAAkB,QAAQ,kBAAkB;AACrD,SAASC,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,qBAAqB,QAAQ,sBAAsB;AAC5D,SAASC,uBAAuB,EAAEC,cAAc,QAAQ,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAM5E,OAAO,SAASC,cAAcA,CAAAC,IAAA,EAAiD;EAAA,IAAhD;IAAEC;EAA8B,CAAC,GAAAD,IAAA;EAC9D;EACA;EACA;EACA,IAAME,aAAa,GAAGb,UAAU,CAACO,cAAc,CAAC;EAEhD,IAAMO,MAAM,GAAGb,OAAO,CACpB,MACEY,aAAa,IAAI,IAAI,GAAG,IAAI,GAAGP,uBAAuB,CAACO,aAAa,CAAC,EACvE,CAACA,aAAa,CAChB,CAAC;EAED,oBACEJ,IAAA,CAACL,aAAa;IAACU,MAAM,EAAEA,MAAO;IAAAF,QAAA,eAC5BH,IAAA,CAACP,kBAAkB;MAAAU,QAAA,eACjBH,IAAA,CAACN,mBAAmB;QAAAS,QAAA,eAClBH,IAAA,CAACJ,qBAAqB;UAAAO,QAAA,EAAEA;QAAQ,CAAwB;MAAC,CACtC;IAAC,CACJ;EAAC,CACR,CAAC;AAEpB;AAEA,eAAeF,cAAc"}
@@ -1,4 +1,3 @@
1
- import { ThemeData } from '@deephaven/components';
2
1
  import { type PluginModuleMap, type AuthPlugin, type AuthPluginComponent, LegacyAuthPlugin, LegacyPlugin, Plugin } from '@deephaven/plugin';
3
2
  export type PluginManifestPluginInfo = {
4
3
  name: string;
@@ -39,9 +38,4 @@ export declare function getAuthHandlers(authConfigValues: Map<string, string>):
39
38
  * @returns The auth plugin component to render
40
39
  */
41
40
  export declare function getAuthPluginComponent(pluginMap: PluginModuleMap, authConfigValues: Map<string, string>, corePlugins?: Map<string, LegacyAuthPlugin | AuthPlugin>): AuthPluginComponent;
42
- /**
43
- * Extract theme data from theme plugins in the given plugin map.
44
- * @param pluginMap
45
- */
46
- export declare function getThemeDataFromPlugins(pluginMap: PluginModuleMap): ThemeData[];
47
41
  //# sourceMappingURL=PluginUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginUtils.d.ts","sourceRoot":"","sources":["../../src/plugins/PluginUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,mBAAmB,EAExB,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAMP,MAAM,mBAAmB,CAAC;AAK3B,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,OAAO,EAAE,wBAAwB,EAAE,CAAA;CAAE,CAAC;AAErE;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,YAAY,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAG7C;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAUvE;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,eAAe,CAAC,CAgD1B;AAED,wBAAgB,eAAe,CAC7B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,MAAM,EAAE,CAEV;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,eAAe,EAC1B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACrC,WAAW,6CAAmD,GAC7D,mBAAmB,CAwCrB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,eAAe,GACzB,SAAS,EAAE,CA0Bb"}
1
+ {"version":3,"file":"PluginUtils.d.ts","sourceRoot":"","sources":["../../src/plugins/PluginUtils.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,mBAAmB,EAExB,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAIP,MAAM,mBAAmB,CAAC;AAK3B,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,OAAO,EAAE,wBAAwB,EAAE,CAAA;CAAE,CAAC;AAErE;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,YAAY,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAG7C;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAUvE;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,eAAe,CAAC,CAgD1B;AAED,wBAAgB,eAAe,CAC7B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,MAAM,EAAE,CAEV;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,eAAe,EAC1B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACrC,WAAW,6CAAmD,GAC7D,mBAAmB,CAwCrB"}
@@ -1,8 +1,7 @@
1
1
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
2
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
3
- import { getThemeKey } from '@deephaven/components';
4
3
  import Log from '@deephaven/log';
5
- import { isAuthPlugin, PluginType, isLegacyAuthPlugin, isLegacyPlugin, isThemePlugin } from '@deephaven/plugin';
4
+ import { isAuthPlugin, PluginType, isLegacyAuthPlugin, isLegacyPlugin } from '@deephaven/plugin';
6
5
  import loadRemoteModule from "./loadRemoteModule.js";
7
6
  var log = Log.module('@deephaven/app-utils.PluginUtils');
8
7
  /**
@@ -160,32 +159,4 @@ export function getAuthPluginComponent(pluginMap, authConfigValues) {
160
159
  log.info('Using LoginPlugin', name);
161
160
  return component;
162
161
  }
163
-
164
- /**
165
- * Extract theme data from theme plugins in the given plugin map.
166
- * @param pluginMap
167
- */
168
- export function getThemeDataFromPlugins(pluginMap) {
169
- var themePluginEntries = [...pluginMap.entries()].filter(entry => isThemePlugin(entry[1]));
170
- log.debug('Getting theme data from plugins', themePluginEntries);
171
- return themePluginEntries.map(_ref5 => {
172
- var [pluginName, plugin] = _ref5;
173
- // Normalize to an array since config can be an array of configs or a
174
- // single config
175
- var configs = Array.isArray(plugin.themes) ? plugin.themes : [plugin.themes];
176
- return configs.map(_ref6 => {
177
- var {
178
- name,
179
- baseTheme,
180
- styleContent
181
- } = _ref6;
182
- return {
183
- baseThemeKey: "default-".concat(baseTheme !== null && baseTheme !== void 0 ? baseTheme : 'dark'),
184
- themeKey: getThemeKey(pluginName, name),
185
- name,
186
- styleContent
187
- };
188
- });
189
- }).flat();
190
- }
191
162
  //# sourceMappingURL=PluginUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginUtils.js","names":["getThemeKey","Log","isAuthPlugin","PluginType","isLegacyAuthPlugin","isLegacyPlugin","isThemePlugin","loadRemoteModule","log","module","loadModulePlugin","_x","_loadModulePlugin","apply","arguments","_asyncToGenerator","pluginUrl","myModule","loadJson","_x2","_loadJson","jsonUrl","res","fetch","ok","Error","statusText","json","_unused","loadModulePlugins","_x3","_loadModulePlugins","modulePluginsUrl","debug","manifest","concat","Array","isArray","plugins","pluginPromises","i","length","name","main","pluginMainUrl","push","pluginModules","Promise","allSettled","pluginMap","Map","status","_module$value$default","moduleValue","value","default","error","set","reason","info","e","getAuthHandlers","authConfigValues","_authConfigValues$get","_authConfigValues$get2","get","split","getAuthPluginComponent","corePlugins","undefined","authHandlers","authPlugins","entries","filter","_ref","plugin","map","_ref2","type","AUTH_PLUGIN","component","AuthPlugin","Component","isAvailable","availableAuthPlugins","_ref3","warn","_ref4","join","getThemeDataFromPlugins","themePluginEntries","entry","_ref5","pluginName","configs","themes","_ref6","baseTheme","styleContent","baseThemeKey","themeKey","flat"],"sources":["../../src/plugins/PluginUtils.tsx"],"sourcesContent":["import { getThemeKey, ThemeData } from '@deephaven/components';\nimport Log from '@deephaven/log';\nimport {\n type PluginModuleMap,\n type AuthPlugin,\n type AuthPluginComponent,\n isAuthPlugin,\n LegacyAuthPlugin,\n LegacyPlugin,\n Plugin,\n PluginType,\n isLegacyAuthPlugin,\n isLegacyPlugin,\n isThemePlugin,\n ThemePlugin,\n} from '@deephaven/plugin';\nimport loadRemoteModule from './loadRemoteModule';\n\nconst log = Log.module('@deephaven/app-utils.PluginUtils');\n\nexport type PluginManifestPluginInfo = {\n name: string;\n main: string;\n version: string;\n};\n\nexport type PluginManifest = { plugins: PluginManifestPluginInfo[] };\n\n/**\n * Imports a commonjs plugin module from the provided URL\n * @param pluginUrl The URL of the plugin to load\n * @returns The loaded module\n */\nexport async function loadModulePlugin(\n pluginUrl: string\n): Promise<LegacyPlugin | { default: Plugin }> {\n const myModule = await loadRemoteModule(pluginUrl);\n return myModule;\n}\n\n/**\n * Loads a JSON file and returns the JSON object\n * @param jsonUrl The URL of the JSON file to load\n * @returns The JSON object of the manifest file\n */\nexport async function loadJson(jsonUrl: string): Promise<PluginManifest> {\n const res = await fetch(jsonUrl);\n if (!res.ok) {\n throw new Error(res.statusText);\n }\n try {\n return await res.json();\n } catch {\n throw new Error('Could not be parsed as JSON');\n }\n}\n\n/**\n * Load all plugin modules available based on the manifest file at the provided base URL\n * @param modulePluginsUrl The base URL of the module plugins to load\n * @returns A map from the name of the plugin to the plugin module that was loaded\n */\nexport async function loadModulePlugins(\n modulePluginsUrl: string\n): Promise<PluginModuleMap> {\n log.debug('Loading plugins...');\n try {\n const manifest = await loadJson(`${modulePluginsUrl}/manifest.json`);\n\n if (!Array.isArray(manifest.plugins)) {\n throw new Error('Plugin manifest JSON does not contain plugins array');\n }\n\n log.debug('Plugin manifest loaded:', manifest);\n const pluginPromises: Promise<LegacyPlugin | { default: Plugin }>[] = [];\n for (let i = 0; i < manifest.plugins.length; i += 1) {\n const { name, main } = manifest.plugins[i];\n const pluginMainUrl = `${modulePluginsUrl}/${name}/${main}`;\n pluginPromises.push(loadModulePlugin(pluginMainUrl));\n }\n\n const pluginModules = await Promise.allSettled(pluginPromises);\n\n const pluginMap: PluginModuleMap = new Map();\n for (let i = 0; i < pluginModules.length; i += 1) {\n const module = pluginModules[i];\n const { name } = manifest.plugins[i];\n if (module.status === 'fulfilled') {\n const moduleValue = isLegacyPlugin(module.value)\n ? module.value\n : // TypeScript builds CJS default exports differently depending on\n // whether there are also named exports. If the default is the only\n // export, it will be the value. If there are also named exports,\n // it will be assigned to the `default` property on the value.\n module.value.default ?? module.value;\n\n if (moduleValue == null) {\n log.error(`Plugin '${name}' is missing an exported value.`);\n } else {\n pluginMap.set(name, moduleValue);\n }\n } else {\n log.error(`Unable to load plugin '${name}'`, module.reason);\n }\n }\n log.info('Plugins loaded:', pluginMap);\n\n return pluginMap;\n } catch (e) {\n log.error('Unable to load plugins:', e);\n return new Map();\n }\n}\n\nexport function getAuthHandlers(\n authConfigValues: Map<string, string>\n): string[] {\n return authConfigValues.get('AuthHandlers')?.split(',') ?? [];\n}\n\n/**\n * Get the auth plugin component from the plugin map and current configuration\n * Throws if no auth plugin is available\n *\n * @param pluginMap Map of plugins loaded from the server\n * @param authConfigValues Auth config values from the server\n * @param corePlugins Map of core auth plugins to include in the list. They are added after the loaded plugins\n * @returns The auth plugin component to render\n */\nexport function getAuthPluginComponent(\n pluginMap: PluginModuleMap,\n authConfigValues: Map<string, string>,\n corePlugins = new Map<string, AuthPlugin | LegacyAuthPlugin>()\n): AuthPluginComponent {\n const authHandlers = getAuthHandlers(authConfigValues);\n // User plugins take priority over core plugins\n const authPlugins = (\n [...pluginMap.entries(), ...corePlugins.entries()].filter(\n ([, plugin]) => isAuthPlugin(plugin) || isLegacyAuthPlugin(plugin)\n ) as [string, AuthPlugin | LegacyAuthPlugin][]\n ).map(([name, plugin]) => {\n if (isLegacyAuthPlugin(plugin)) {\n return {\n type: PluginType.AUTH_PLUGIN,\n name,\n component: plugin.AuthPlugin.Component,\n isAvailable: plugin.AuthPlugin.isAvailable,\n };\n }\n\n return plugin;\n });\n\n // Filter the available auth plugins\n const availableAuthPlugins = authPlugins.filter(({ isAvailable }) =>\n isAvailable(authHandlers, authConfigValues)\n );\n\n if (availableAuthPlugins.length === 0) {\n throw new Error(\n `No login plugins found, please register a login plugin for auth handlers: ${authHandlers}`\n );\n } else if (availableAuthPlugins.length > 1) {\n log.warn(\n 'More than one login plugin available, will use the first one: ',\n availableAuthPlugins.map(({ name }) => name).join(', ')\n );\n }\n\n const { name, component } = availableAuthPlugins[0];\n log.info('Using LoginPlugin', name);\n\n return component;\n}\n\n/**\n * Extract theme data from theme plugins in the given plugin map.\n * @param pluginMap\n */\nexport function getThemeDataFromPlugins(\n pluginMap: PluginModuleMap\n): ThemeData[] {\n const themePluginEntries = [...pluginMap.entries()].filter(\n (entry): entry is [string, ThemePlugin] => isThemePlugin(entry[1])\n );\n\n log.debug('Getting theme data from plugins', themePluginEntries);\n\n return themePluginEntries\n .map(([pluginName, plugin]) => {\n // Normalize to an array since config can be an array of configs or a\n // single config\n const configs = Array.isArray(plugin.themes)\n ? plugin.themes\n : [plugin.themes];\n\n return configs.map(\n ({ name, baseTheme, styleContent }) =>\n ({\n baseThemeKey: `default-${baseTheme ?? 'dark'}`,\n themeKey: getThemeKey(pluginName, name),\n name,\n styleContent,\n }) as const\n );\n })\n .flat();\n}\n"],"mappings":";;AAAA,SAASA,WAAW,QAAmB,uBAAuB;AAC9D,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAIEC,YAAY,EAIZC,UAAU,EACVC,kBAAkB,EAClBC,cAAc,EACdC,aAAa,QAER,mBAAmB;AAAC,OACpBC,gBAAgB;AAEvB,IAAMC,GAAG,GAAGP,GAAG,CAACQ,MAAM,CAAC,kCAAkC,CAAC;AAU1D;AACA;AACA;AACA;AACA;AACA,gBAAsBC,gBAAgBA,CAAAC,EAAA;EAAA,OAAAC,iBAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA;;AAOtC;AACA;AACA;AACA;AACA;AAJA,SAAAF,kBAAA;EAAAA,iBAAA,GAAAG,iBAAA,CAPO,WACLC,SAAiB,EAC4B;IAC7C,IAAMC,QAAQ,SAASV,gBAAgB,CAACS,SAAS,CAAC;IAClD,OAAOC,QAAQ;EACjB,CAAC;EAAA,OAAAL,iBAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA;AAOD,gBAAsBI,QAAQA,CAAAC,GAAA;EAAA,OAAAC,SAAA,CAAAP,KAAA,OAAAC,SAAA;AAAA;;AAY9B;AACA;AACA;AACA;AACA;AAJA,SAAAM,UAAA;EAAAA,SAAA,GAAAL,iBAAA,CAZO,WAAwBM,OAAe,EAA2B;IACvE,IAAMC,GAAG,SAASC,KAAK,CAACF,OAAO,CAAC;IAChC,IAAI,CAACC,GAAG,CAACE,EAAE,EAAE;MACX,MAAM,IAAIC,KAAK,CAACH,GAAG,CAACI,UAAU,CAAC;IACjC;IACA,IAAI;MACF,aAAaJ,GAAG,CAACK,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,OAAAC,OAAA,EAAM;MACN,MAA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C,GAAAF,KAAA;MAAA,OAC/B;QACCG,YAAY,aAAAhE,MAAA,CAAa8D,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,MAAM,CAAE;QAC9CG,QAAQ,EAAEpG,WAAW,CAAC6F,UAAU,EAAEnD,IAAI,CAAC;QACvCA,IAAI;QACJwD;MACF,CAAC;IAAA,CACL,CAAC;EACH,CAAC,CAAC,CACDG,IAAI,CAAC,CAAC;AACX"}
1
+ {"version":3,"file":"PluginUtils.js","names":["Log","isAuthPlugin","PluginType","isLegacyAuthPlugin","isLegacyPlugin","loadRemoteModule","log","module","loadModulePlugin","_x","_loadModulePlugin","apply","arguments","_asyncToGenerator","pluginUrl","myModule","loadJson","_x2","_loadJson","jsonUrl","res","fetch","ok","Error","statusText","json","_unused","loadModulePlugins","_x3","_loadModulePlugins","modulePluginsUrl","debug","manifest","concat","Array","isArray","plugins","pluginPromises","i","length","name","main","pluginMainUrl","push","pluginModules","Promise","allSettled","pluginMap","Map","status","_module$value$default","moduleValue","value","default","error","set","reason","info","e","getAuthHandlers","authConfigValues","_authConfigValues$get","_authConfigValues$get2","get","split","getAuthPluginComponent","corePlugins","undefined","authHandlers","authPlugins","entries","filter","_ref","plugin","map","_ref2","type","AUTH_PLUGIN","component","AuthPlugin","Component","isAvailable","availableAuthPlugins","_ref3","warn","_ref4","join"],"sources":["../../src/plugins/PluginUtils.tsx"],"sourcesContent":["import Log from '@deephaven/log';\nimport {\n type PluginModuleMap,\n type AuthPlugin,\n type AuthPluginComponent,\n isAuthPlugin,\n LegacyAuthPlugin,\n LegacyPlugin,\n Plugin,\n PluginType,\n isLegacyAuthPlugin,\n isLegacyPlugin,\n} from '@deephaven/plugin';\nimport loadRemoteModule from './loadRemoteModule';\n\nconst log = Log.module('@deephaven/app-utils.PluginUtils');\n\nexport type PluginManifestPluginInfo = {\n name: string;\n main: string;\n version: string;\n};\n\nexport type PluginManifest = { plugins: PluginManifestPluginInfo[] };\n\n/**\n * Imports a commonjs plugin module from the provided URL\n * @param pluginUrl The URL of the plugin to load\n * @returns The loaded module\n */\nexport async function loadModulePlugin(\n pluginUrl: string\n): Promise<LegacyPlugin | { default: Plugin }> {\n const myModule = await loadRemoteModule(pluginUrl);\n return myModule;\n}\n\n/**\n * Loads a JSON file and returns the JSON object\n * @param jsonUrl The URL of the JSON file to load\n * @returns The JSON object of the manifest file\n */\nexport async function loadJson(jsonUrl: string): Promise<PluginManifest> {\n const res = await fetch(jsonUrl);\n if (!res.ok) {\n throw new Error(res.statusText);\n }\n try {\n return await res.json();\n } catch {\n throw new Error('Could not be parsed as JSON');\n }\n}\n\n/**\n * Load all plugin modules available based on the manifest file at the provided base URL\n * @param modulePluginsUrl The base URL of the module plugins to load\n * @returns A map from the name of the plugin to the plugin module that was loaded\n */\nexport async function loadModulePlugins(\n modulePluginsUrl: string\n): Promise<PluginModuleMap> {\n log.debug('Loading plugins...');\n try {\n const manifest = await loadJson(`${modulePluginsUrl}/manifest.json`);\n\n if (!Array.isArray(manifest.plugins)) {\n throw new Error('Plugin manifest JSON does not contain plugins array');\n }\n\n log.debug('Plugin manifest loaded:', manifest);\n const pluginPromises: Promise<LegacyPlugin | { default: Plugin }>[] = [];\n for (let i = 0; i < manifest.plugins.length; i += 1) {\n const { name, main } = manifest.plugins[i];\n const pluginMainUrl = `${modulePluginsUrl}/${name}/${main}`;\n pluginPromises.push(loadModulePlugin(pluginMainUrl));\n }\n\n const pluginModules = await Promise.allSettled(pluginPromises);\n\n const pluginMap: PluginModuleMap = new Map();\n for (let i = 0; i < pluginModules.length; i += 1) {\n const module = pluginModules[i];\n const { name } = manifest.plugins[i];\n if (module.status === 'fulfilled') {\n const moduleValue = isLegacyPlugin(module.value)\n ? module.value\n : // TypeScript builds CJS default exports differently depending on\n // whether there are also named exports. If the default is the only\n // export, it will be the value. If there are also named exports,\n // it will be assigned to the `default` property on the value.\n module.value.default ?? module.value;\n\n if (moduleValue == null) {\n log.error(`Plugin '${name}' is missing an exported value.`);\n } else {\n pluginMap.set(name, moduleValue);\n }\n } else {\n log.error(`Unable to load plugin '${name}'`, module.reason);\n }\n }\n log.info('Plugins loaded:', pluginMap);\n\n return pluginMap;\n } catch (e) {\n log.error('Unable to load plugins:', e);\n return new Map();\n }\n}\n\nexport function getAuthHandlers(\n authConfigValues: Map<string, string>\n): string[] {\n return authConfigValues.get('AuthHandlers')?.split(',') ?? [];\n}\n\n/**\n * Get the auth plugin component from the plugin map and current configuration\n * Throws if no auth plugin is available\n *\n * @param pluginMap Map of plugins loaded from the server\n * @param authConfigValues Auth config values from the server\n * @param corePlugins Map of core auth plugins to include in the list. They are added after the loaded plugins\n * @returns The auth plugin component to render\n */\nexport function getAuthPluginComponent(\n pluginMap: PluginModuleMap,\n authConfigValues: Map<string, string>,\n corePlugins = new Map<string, AuthPlugin | LegacyAuthPlugin>()\n): AuthPluginComponent {\n const authHandlers = getAuthHandlers(authConfigValues);\n // User plugins take priority over core plugins\n const authPlugins = (\n [...pluginMap.entries(), ...corePlugins.entries()].filter(\n ([, plugin]) => isAuthPlugin(plugin) || isLegacyAuthPlugin(plugin)\n ) as [string, AuthPlugin | LegacyAuthPlugin][]\n ).map(([name, plugin]) => {\n if (isLegacyAuthPlugin(plugin)) {\n return {\n type: PluginType.AUTH_PLUGIN,\n name,\n component: plugin.AuthPlugin.Component,\n isAvailable: plugin.AuthPlugin.isAvailable,\n };\n }\n\n return plugin;\n });\n\n // Filter the available auth plugins\n const availableAuthPlugins = authPlugins.filter(({ isAvailable }) =>\n isAvailable(authHandlers, authConfigValues)\n );\n\n if (availableAuthPlugins.length === 0) {\n throw new Error(\n `No login plugins found, please register a login plugin for auth handlers: ${authHandlers}`\n );\n } else if (availableAuthPlugins.length > 1) {\n log.warn(\n 'More than one login plugin available, will use the first one: ',\n availableAuthPlugins.map(({ name }) => name).join(', ')\n );\n }\n\n const { name, component } = availableAuthPlugins[0];\n log.info('Using LoginPlugin', name);\n\n return component;\n}\n"],"mappings":";;AAAA,OAAOA,GAAG,MAAM,gBA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;MAAA,IAAC;QAAE7C;MAAK,CAAC,GAAA6C,KAAA;MAAA,OAAK7C,IAAI;IAAA,EAAC,CAAC8C,IAAI,CAAC,IAAI,CACxD,CAAC;EACH;EAEA,IAAM;IAAE9C,IAAI;IAAEsC;EAAU,CAAC,GAAGI,oBAAoB,CAAC,CAAC,CAAC;EACnD5E,GAAG,CAACmD,IAAI,CAAC,mBAAmB,EAAEjB,IAAI,CAAC;EAEnC,OAAOsC,SAAS;AAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/app-utils",
3
- "version": "0.55.1-beta.8+1e40d3e5",
3
+ "version": "0.56.0",
4
4
  "description": "Deephaven App Utils",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -29,21 +29,22 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@adobe/react-spectrum": "^3.29.0",
32
- "@deephaven/auth-plugins": "^0.55.1-beta.8+1e40d3e5",
33
- "@deephaven/chart": "^0.55.1-beta.8+1e40d3e5",
34
- "@deephaven/components": "^0.55.1-beta.8+1e40d3e5",
35
- "@deephaven/dashboard": "^0.55.1-beta.8+1e40d3e5",
36
- "@deephaven/icons": "^0.55.1-beta.8+1e40d3e5",
37
- "@deephaven/iris-grid": "^0.55.1-beta.8+1e40d3e5",
38
- "@deephaven/jsapi-bootstrap": "^0.55.1-beta.8+1e40d3e5",
39
- "@deephaven/jsapi-components": "^0.55.1-beta.8+1e40d3e5",
40
- "@deephaven/jsapi-types": "^0.55.1-beta.8+1e40d3e5",
41
- "@deephaven/jsapi-utils": "^0.55.1-beta.8+1e40d3e5",
42
- "@deephaven/log": "^0.55.1-beta.8+1e40d3e5",
43
- "@deephaven/plugin": "^0.55.1-beta.8+1e40d3e5",
44
- "@deephaven/react-hooks": "^0.55.1-beta.8+1e40d3e5",
45
- "@deephaven/redux": "^0.55.1-beta.8+1e40d3e5",
46
- "@deephaven/utils": "^0.55.1-beta.8+1e40d3e5",
32
+ "@deephaven/auth-plugins": "^0.56.0",
33
+ "@deephaven/chart": "^0.56.0",
34
+ "@deephaven/components": "^0.56.0",
35
+ "@deephaven/console": "^0.56.0",
36
+ "@deephaven/dashboard": "^0.56.0",
37
+ "@deephaven/icons": "^0.56.0",
38
+ "@deephaven/iris-grid": "^0.56.0",
39
+ "@deephaven/jsapi-bootstrap": "^0.56.0",
40
+ "@deephaven/jsapi-components": "^0.56.0",
41
+ "@deephaven/jsapi-types": "^0.56.0",
42
+ "@deephaven/jsapi-utils": "^0.56.0",
43
+ "@deephaven/log": "^0.56.0",
44
+ "@deephaven/plugin": "^0.56.0",
45
+ "@deephaven/react-hooks": "^0.56.0",
46
+ "@deephaven/redux": "^0.56.0",
47
+ "@deephaven/utils": "^0.56.0",
47
48
  "@paciolan/remote-component": "2.13.0",
48
49
  "@paciolan/remote-module-loader": "^3.0.2",
49
50
  "fira": "mozilla/fira#4.202"
@@ -63,5 +64,5 @@
63
64
  "publishConfig": {
64
65
  "access": "public"
65
66
  },
66
- "gitHead": "1e40d3e5a1078c555d55aa0a00c66a8b95dadfee"
67
+ "gitHead": "ce7c33f8f44023b8fa7c60164c1fd88fe049e2ea"
67
68
  }