@deephaven/app-utils 0.85.0 → 0.85.2-alpha-gl-types.13

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,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import LayoutManager, { ItemConfigType, Settings as LayoutSettings } from '@deephaven/golden-layout';
2
+ import LayoutManager, { ItemConfig, Settings as LayoutSettings } from '@deephaven/golden-layout';
3
3
  interface AppDashboardsProps {
4
4
  dashboards: {
5
5
  id: string;
6
- layoutConfig: ItemConfigType[];
6
+ layoutConfig: ItemConfig[];
7
7
  layoutSettings?: Partial<LayoutSettings>;
8
8
  key?: string;
9
9
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"AppDashboards.d.ts","sourceRoot":"","sources":["../../src/components/AppDashboards.tsx"],"names":[],"mappings":";AAWA,OAAO,aAAa,EAAE,EACpB,cAAc,EACd,QAAQ,IAAI,cAAc,EAC3B,MAAM,0BAA0B,CAAC;AAGlC,UAAU,kBAAkB;IAC1B,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,YAAY,EAAE,cAAc,EAAE,CAAC;QAC/B,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;QACzC,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5D,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,EACP,cAAmC,GACpC,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAgDlC;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AppDashboards.d.ts","sourceRoot":"","sources":["../../src/components/AppDashboards.tsx"],"names":[],"mappings":";AAWA,OAAO,aAAa,EAAE,EACpB,UAAU,EACV,QAAQ,IAAI,cAAc,EAC3B,MAAM,0BAA0B,CAAC;AAGlC,UAAU,kBAAkB;IAC1B,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,YAAY,EAAE,UAAU,EAAE,CAAC;QAC3B,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;QACzC,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5D,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,EACP,cAAmC,GACpC,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAgDlC;AAED,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AppDashboards.js","names":["React","useCallback","classNames","DashboardUtils","LazyDashboard","sanitizeVariableDescriptor","useObjectFetcher","LoadingOverlay","jsx","_jsx","AppDashboards","_ref","dashboards","activeDashboard","onLayoutInitialized","onGoldenLayoutChange","plugins","emptyDashboard","fetchObject","hydratePanel","hydrateProps","id","metadata","widget","_objectSpread","fetch","_fetch","_asyncToGenerator","apply","arguments","localDashboardId","e","hydrate","className","children","map","d","active","isActive","layoutConfig","layoutSettings","key"],"sources":["../../src/components/AppDashboards.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport classNames from 'classnames';\nimport {\n DashboardUtils,\n DehydratedDashboardPanelProps,\n LazyDashboard,\n} from '@deephaven/dashboard';\nimport {\n sanitizeVariableDescriptor,\n useObjectFetcher,\n} from '@deephaven/jsapi-bootstrap';\nimport LayoutManager, {\n ItemConfigType,\n Settings as LayoutSettings,\n} from '@deephaven/golden-layout';\nimport { LoadingOverlay } from '@deephaven/components';\n\ninterface AppDashboardsProps {\n dashboards: {\n id: string;\n layoutConfig: ItemConfigType[];\n layoutSettings?: Partial<LayoutSettings>;\n key?: string;\n }[];\n activeDashboard: string;\n onLayoutInitialized?: () => void;\n onGoldenLayoutChange: (goldenLayout: LayoutManager) => void;\n plugins: JSX.Element[];\n emptyDashboard?: JSX.Element;\n}\n\nexport function AppDashboards({\n dashboards,\n activeDashboard,\n onLayoutInitialized,\n onGoldenLayoutChange,\n plugins,\n emptyDashboard = <LoadingOverlay />,\n}: AppDashboardsProps): JSX.Element {\n const fetchObject = useObjectFetcher();\n\n const hydratePanel = useCallback(\n (hydrateProps: DehydratedDashboardPanelProps, id: string) => {\n const { metadata } = hydrateProps;\n try {\n if (metadata != null) {\n const widget = sanitizeVariableDescriptor(metadata);\n return {\n fetch: async () => fetchObject(widget),\n ...hydrateProps,\n localDashboardId: id,\n };\n }\n } catch (e: unknown) {\n // Ignore being unable to get the variable descriptor, do the default dashboard hydration\n }\n return DashboardUtils.hydrate(hydrateProps, id);\n },\n [fetchObject]\n );\n\n return (\n <div className=\"tab-content\">\n {dashboards.map(d => (\n <div\n key={d.id}\n className={classNames('tab-pane', {\n active: d.id === activeDashboard,\n })}\n >\n <LazyDashboard\n id={d.id}\n key={d.key}\n isActive={d.id === activeDashboard}\n emptyDashboard={emptyDashboard}\n layoutConfig={d.layoutConfig}\n layoutSettings={d.layoutSettings}\n onLayoutInitialized={onLayoutInitialized}\n onGoldenLayoutChange={onGoldenLayoutChange}\n hydrate={hydratePanel}\n plugins={plugins}\n />\n </div>\n ))}\n </div>\n );\n}\n\nexport default AppDashboards;\n"],"mappings":";;;;;;;AAAA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,CAAC,iBACf3B,IAAA;MAEEwB,SAAS,EAAE/B,UAAU,CAAC,UAAU,EAAE;QAChCmC,MAAM,EAAED,CAAC,CAACf,EAAE,KAAKR;MACnB,CAAC,CAAE;MAAAqB,QAAA,eAEHzB,IAAA,CAACL,aAAa;QACZiB,EAAE,EAAEe,CAAC,CAACf,EAAG;QAETiB,QAAQ,EAAEF,CAAC,CAACf,EAAE,KAAKR,eAAgB;QACnCI,cAAc,EAAEA,cAAe;QAC/BsB,YAAY,EAAEH,CAAC,CAACG,YAAa;QAC7BC,cAAc,EAAEJ,CAAC,CAACI,cAAe;QACjC1B,mBAAmB,EAAEA,mBAAoB;QACzCC,oBAAoB,EAAEA,oBAAqB;QAC3CiB,OAAO,EAAEb,YAAa;QACtBH,OAAO,EAAEA;MAAQ,GARZoB,CAAC,CAACK,GASR;IAAC,GAhBGL,CAAC,CAACf,EAiBJ,CACN;EAAC,CACC,CAAC;AAEV;AAEA,eAAeX,aAAa"}
1
+ {"version":3,"file":"AppDashboards.js","names":["React","useCallback","classNames","DashboardUtils","LazyDashboard","sanitizeVariableDescriptor","useObjectFetcher","LoadingOverlay","jsx","_jsx","AppDashboards","_ref","dashboards","activeDashboard","onLayoutInitialized","onGoldenLayoutChange","plugins","emptyDashboard","fetchObject","hydratePanel","hydrateProps","id","metadata","widget","_objectSpread","fetch","_fetch","_asyncToGenerator","apply","arguments","localDashboardId","e","hydrate","className","children","map","d","active","isActive","layoutConfig","layoutSettings","key"],"sources":["../../src/components/AppDashboards.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport classNames from 'classnames';\nimport {\n DashboardUtils,\n DehydratedDashboardPanelProps,\n LazyDashboard,\n} from '@deephaven/dashboard';\nimport {\n sanitizeVariableDescriptor,\n useObjectFetcher,\n} from '@deephaven/jsapi-bootstrap';\nimport LayoutManager, {\n ItemConfig,\n Settings as LayoutSettings,\n} from '@deephaven/golden-layout';\nimport { LoadingOverlay } from '@deephaven/components';\n\ninterface AppDashboardsProps {\n dashboards: {\n id: string;\n layoutConfig: ItemConfig[];\n layoutSettings?: Partial<LayoutSettings>;\n key?: string;\n }[];\n activeDashboard: string;\n onLayoutInitialized?: () => void;\n onGoldenLayoutChange: (goldenLayout: LayoutManager) => void;\n plugins: JSX.Element[];\n emptyDashboard?: JSX.Element;\n}\n\nexport function AppDashboards({\n dashboards,\n activeDashboard,\n onLayoutInitialized,\n onGoldenLayoutChange,\n plugins,\n emptyDashboard = <LoadingOverlay />,\n}: AppDashboardsProps): JSX.Element {\n const fetchObject = useObjectFetcher();\n\n const hydratePanel = useCallback(\n (hydrateProps: DehydratedDashboardPanelProps, id: string) => {\n const { metadata } = hydrateProps;\n try {\n if (metadata != null) {\n const widget = sanitizeVariableDescriptor(metadata);\n return {\n fetch: async () => fetchObject(widget),\n ...hydrateProps,\n localDashboardId: id,\n };\n }\n } catch (e: unknown) {\n // Ignore being unable to get the variable descriptor, do the default dashboard hydration\n }\n return DashboardUtils.hydrate(hydrateProps, id);\n },\n [fetchObject]\n );\n\n return (\n <div className=\"tab-content\">\n {dashboards.map(d => (\n <div\n key={d.id}\n className={classNames('tab-pane', {\n active: d.id === activeDashboard,\n })}\n >\n <LazyDashboard\n id={d.id}\n key={d.key}\n isActive={d.id === activeDashboard}\n emptyDashboard={emptyDashboard}\n layoutConfig={d.layoutConfig}\n layoutSettings={d.layoutSettings}\n onLayoutInitialized={onLayoutInitialized}\n onGoldenLayoutChange={onGoldenLayoutChange}\n hydrate={hydratePanel}\n plugins={plugins}\n />\n </div>\n ))}\n </div>\n );\n}\n\nexport default AppDashboards;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,OAAOC,UAAU,MAAM,YAAY;AACnC,SACEC,cAAc,EAEdC,aAAa,QACR,sBAAsB;AAC7B,SACEC,0BAA0B,EAC1BC,gBAAgB,QACX,4BAA4B;AAKnC,SAASC,cAAc,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,I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,CAAC,CAACf,EAAE,KAAKR,eAAgB;QACnCI,cAAc,EAAEA,cAAe;QAC/BsB,YAAY,EAAEH,CAAC,CAACG,YAAa;QAC7BC,cAAc,EAAEJ,CAAC,CAACI,cAAe;QACjC1B,mBAAmB,EAAEA,mBAAoB;QACzCC,oBAAoB,EAAEA,oBAAqB;QAC3CiB,OAAO,EAAEb,YAAa;QACtBH,OAAO,EAAEA;MAAQ,GARZoB,CAAC,CAACK,GASR;IAAC,GAhBGL,CAAC,CAACf,EAiBJ,CACN;EAAC,CACC,CAAC;AAEV;AAEA,eAAeX,aAAa"}
@@ -1,14 +1,14 @@
1
- import type { ItemConfigType } from '@deephaven/golden-layout';
1
+ import type { ItemConfig } from '@deephaven/golden-layout';
2
2
  import { FilterSet, Link } from '@deephaven/dashboard-core-plugins';
3
3
  import { PluginDataMap } from '@deephaven/redux';
4
4
  /**
5
5
  * Have a different version to support legacy layout exports
6
6
  */
7
- export type ExportedLayoutV1 = ItemConfigType[];
7
+ export type ExportedLayoutV1 = ItemConfig[];
8
8
  export type ExportedLayoutV2 = {
9
9
  filterSets: FilterSet[];
10
10
  links: Link[];
11
- layoutConfig: ItemConfigType[];
11
+ layoutConfig: ItemConfig[];
12
12
  pluginDataMap?: PluginDataMap;
13
13
  version: 2;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutStorage.d.ts","sourceRoot":"","sources":["../../src/storage/LayoutStorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,EAAE,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,KAAK,EAAE,IAAI,EA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,IAAI,gBAAgB,CAE7E;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEpC;;;;OAIG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACtD;AAED,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutStorage.js","names":["isLayoutV2","layout","version","isLayoutV1","Array","isArray"],"sources":["../../src/storage/LayoutStorage.ts"],"sourcesContent":["import type { ItemConfigType } from '@deephaven/golden-layout';\nimport { FilterSet, Link } from '@deephaven/dashboard-core-plugins';\nimport { PluginDataMap } from '@deephaven/redux';\n\n/**\n * Have a different version to support legacy layout exports\n */\nexport type ExportedLayoutV1 = ItemConfigType[];\n\nexport type ExportedLayoutV2 = {\n filterSets: FilterSet[];\n links: Link[];\n layoutConfig: ItemConfigType[];\n pluginDataMap?: PluginDataMap;\n version: 2;\n};\n\nexport type ExportedLayout = ExportedLayoutV1 | ExportedLayoutV2;\n\nexport function isLayoutV2(layout: ExportedLayout): layout is ExportedLayoutV2 {\n return (layout as ExportedLayoutV2).version === 2;\n}\n\nexport function isLayoutV1(layout: ExportedLayout): layout is ExportedLayoutV1 {\n return Array.isArray(layout);\n}\n\n/**\n * Interface for accessing layouts from wherever they are stored.\n */\nexport interface LayoutStorage {\n /**\n * Get the name of the layouts available\n * @returns The string array of layout names\n */\n getLayouts: () => Promise<string[]>;\n\n /**\n * Get the layout with the specified name\n * @param name The name of the layout to fetch\n * @returns GoldenLayout layout config\n */\n getLayout: (name: string) => Promise<ExportedLayout>;\n}\n\nexport default LayoutStorage;\n"],"mappings":"AAIA;AACA;AACA;;AAaA,OAAO,SAASA,UAAUA,CAACC,MAAsB,EAA8B;EAC7E,OAAQA,MAAM,CAAsBC,OAAO,KAAK,CAAC;AACnD;AAEA,OAAO,SAASC,UAAUA,CAACF,MAAsB,EAA8B;EAC7E,OAAOG,KAAK,CAACC,OAAO,CAACJ,MAAM,CAAC;AAC9B;;AAEA;AACA;AACA"}
1
+ {"version":3,"file":"LayoutStorage.js","names":["isLayoutV2","layout","version","isLayoutV1","Array","isArray"],"sources":["../../src/storage/LayoutStorage.ts"],"sourcesContent":["import type { ItemConfig } from '@deephaven/golden-layout';\nimport { FilterSet, Link } from '@deephaven/dashboard-core-plugins';\nimport { PluginDataMap } from '@deephaven/redux';\n\n/**\n * Have a different version to support legacy layout exports\n */\nexport type ExportedLayoutV1 = ItemConfig[];\n\nexport type ExportedLayoutV2 = {\n filterSets: FilterSet[];\n links: Link[];\n layoutConfig: ItemConfig[];\n pluginDataMap?: PluginDataMap;\n version: 2;\n};\n\nexport type ExportedLayout = ExportedLayoutV1 | ExportedLayoutV2;\n\nexport function isLayoutV2(layout: ExportedLayout): layout is ExportedLayoutV2 {\n return (layout as ExportedLayoutV2).version === 2;\n}\n\nexport function isLayoutV1(layout: ExportedLayout): layout is ExportedLayoutV1 {\n return Array.isArray(layout);\n}\n\n/**\n * Interface for accessing layouts from wherever they are stored.\n */\nexport interface LayoutStorage {\n /**\n * Get the name of the layouts available\n * @returns The string array of layout names\n */\n getLayouts: () => Promise<string[]>;\n\n /**\n * Get the layout with the specified name\n * @param name The name of the layout to fetch\n * @returns GoldenLayout layout config\n */\n getLayout: (name: string) => Promise<ExportedLayout>;\n}\n\nexport default LayoutStorage;\n"],"mappings":"AAIA;AACA;AACA;;AAaA,OAAO,SAASA,UAAUA,CAACC,MAAsB,EAA8B;EAC7E,OAAQA,MAAM,CAAsBC,OAAO,KAAK,CAAC;AACnD;AAEA,OAAO,SAASC,UAAUA,CAACF,MAAsB,EAA8B;EAC7E,OAAOG,KAAK,CAACC,OAAO,CAACJ,MAAM,CAAC;AAC9B;;AAEA;AACA;AACA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/app-utils",
3
- "version": "0.85.0",
3
+ "version": "0.85.2-alpha-gl-types.13+58c71865",
4
4
  "description": "Deephaven App Utils",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -29,26 +29,26 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@adobe/react-spectrum": "3.35.1",
32
- "@deephaven/auth-plugins": "^0.85.0",
33
- "@deephaven/chart": "^0.85.0",
34
- "@deephaven/components": "^0.85.0",
35
- "@deephaven/console": "^0.85.0",
36
- "@deephaven/dashboard": "^0.85.0",
37
- "@deephaven/dashboard-core-plugins": "^0.85.0",
38
- "@deephaven/file-explorer": "^0.85.0",
39
- "@deephaven/golden-layout": "^0.85.0",
40
- "@deephaven/icons": "^0.85.0",
41
- "@deephaven/iris-grid": "^0.85.0",
42
- "@deephaven/jsapi-bootstrap": "^0.85.0",
43
- "@deephaven/jsapi-components": "^0.85.0",
44
- "@deephaven/jsapi-types": "1.0.0-dev0.34.0",
45
- "@deephaven/jsapi-utils": "^0.85.0",
46
- "@deephaven/log": "^0.85.0",
47
- "@deephaven/plugin": "^0.85.0",
48
- "@deephaven/react-hooks": "^0.85.0",
49
- "@deephaven/redux": "^0.85.0",
50
- "@deephaven/storage": "^0.85.0",
51
- "@deephaven/utils": "^0.85.0",
32
+ "@deephaven/auth-plugins": "^0.85.2-alpha-gl-types.13+58c71865",
33
+ "@deephaven/chart": "^0.85.2-alpha-gl-types.13+58c71865",
34
+ "@deephaven/components": "^0.85.2-alpha-gl-types.13+58c71865",
35
+ "@deephaven/console": "^0.85.2-alpha-gl-types.13+58c71865",
36
+ "@deephaven/dashboard": "^0.85.2-alpha-gl-types.13+58c71865",
37
+ "@deephaven/dashboard-core-plugins": "^0.85.2-alpha-gl-types.13+58c71865",
38
+ "@deephaven/file-explorer": "^0.85.2-alpha-gl-types.13+58c71865",
39
+ "@deephaven/golden-layout": "^0.85.2-alpha-gl-types.13+58c71865",
40
+ "@deephaven/icons": "^0.85.2-alpha-gl-types.13+58c71865",
41
+ "@deephaven/iris-grid": "^0.85.2-alpha-gl-types.13+58c71865",
42
+ "@deephaven/jsapi-bootstrap": "^0.85.2-alpha-gl-types.13+58c71865",
43
+ "@deephaven/jsapi-components": "^0.85.2-alpha-gl-types.13+58c71865",
44
+ "@deephaven/jsapi-types": "^1.0.0-dev0.34.0",
45
+ "@deephaven/jsapi-utils": "^0.85.2-alpha-gl-types.13+58c71865",
46
+ "@deephaven/log": "^0.85.2-alpha-gl-types.13+58c71865",
47
+ "@deephaven/plugin": "^0.85.2-alpha-gl-types.13+58c71865",
48
+ "@deephaven/react-hooks": "^0.85.2-alpha-gl-types.13+58c71865",
49
+ "@deephaven/redux": "^0.85.2-alpha-gl-types.13+58c71865",
50
+ "@deephaven/storage": "^0.85.2-alpha-gl-types.13+58c71865",
51
+ "@deephaven/utils": "^0.85.2-alpha-gl-types.13+58c71865",
52
52
  "@fontsource/fira-mono": "5.0.13",
53
53
  "@fontsource/fira-sans": "5.0.20",
54
54
  "@paciolan/remote-component": "2.13.0",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "989b8ec8484902aeeb70743944d7c577e8f78b53"
75
+ "gitHead": "58c71865943f3aa2e56bb89aedb2a48c8c20aaca"
76
76
  }