@deephaven/dashboard-core-plugins 0.16.1-vite.27 → 0.17.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,2 +1,3 @@
1
1
  export declare const SET_SESSION_WRAPPER = "SET_SESSION_WRAPPER";
2
+ export declare const SET_CONNECTION = "SET_CONNECTION";
2
3
  //# sourceMappingURL=actionTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actionTypes.d.ts","sourceRoot":"","sources":["../../src/redux/actionTypes.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,wBAAwB,CAAC"}
1
+ {"version":3,"file":"actionTypes.d.ts","sourceRoot":"","sources":["../../src/redux/actionTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,cAAc,mBAAmB,CAAC"}
@@ -1,3 +1,3 @@
1
- // eslint-disable-next-line import/prefer-default-export
2
1
  export var SET_SESSION_WRAPPER = 'SET_SESSION_WRAPPER';
2
+ export var SET_CONNECTION = 'SET_CONNECTION';
3
3
  //# sourceMappingURL=actionTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"actionTypes.js","names":["SET_SESSION_WRAPPER"],"sources":["../../src/redux/actionTypes.ts"],"sourcesContent":["// eslint-disable-next-line import/prefer-default-export\nexport const SET_SESSION_WRAPPER = 'SET_SESSION_WRAPPER';\n"],"mappings":"AAAA;AACA,OAAO,IAAMA,mBAAmB,GAAG,qBAA5B"}
1
+ {"version":3,"file":"actionTypes.js","names":["SET_SESSION_WRAPPER","SET_CONNECTION"],"sources":["../../src/redux/actionTypes.ts"],"sourcesContent":["export const SET_SESSION_WRAPPER = 'SET_SESSION_WRAPPER';\n\nexport const SET_CONNECTION = 'SET_CONNECTION';\n"],"mappings":"AAAA,OAAO,IAAMA,mBAAmB,GAAG,qBAA5B;AAEP,OAAO,IAAMC,cAAc,GAAG,gBAAvB"}
@@ -5,14 +5,21 @@ import { IdeConnection, IdeSession } from '@deephaven/jsapi-shim';
5
5
  import { FilterSet } from '../panels';
6
6
  import { Link } from '../linker/LinkerUtils';
7
7
  import { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';
8
+ export interface SessionConfig {
9
+ type: string;
10
+ id: string;
11
+ }
8
12
  export interface SessionWrapper {
9
13
  session: IdeSession;
10
14
  connection: IdeConnection;
11
- config: {
12
- type: string;
13
- id: string;
14
- };
15
+ config: SessionConfig;
15
16
  }
17
+ /**
18
+ * Set the connection for the dashboard specified
19
+ * @param id The ID of the dashboard to set the connection for
20
+ * @param connection The connection object to set for the dashboard
21
+ */
22
+ export declare const setDashboardConnection: (id: string, connection: IdeConnection) => ThunkAction<unknown, RootState, undefined, Action<unknown>>;
16
23
  /**
17
24
  * Set the session wrapper for the dashboard specified
18
25
  * @param id The ID of the dashboard to set the session for
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/redux/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAC;IACpB,UAAU,EAAE,aAAa,CAAC;IAC1B,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH;AACD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,OACjC,MAAM,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3B,MAAM,WACD,MAAM,EAAE,KAChB,YAAY,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,OAAO,CAAC,CAO5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,OACxC,MAAM,yBACa,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,KACnD,YAAY,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,OAAO,CAAC,CACC,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,OAC3C,MAAM,4BACgB,wBAAwB,GAAG,SAAS,KAC7D,YAAY,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,OAAO,CAAC,CACI,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAClC,MAAM,mBACO,OAAO,MAAM,EAAE,OAAO,CAAC,KACvC,YAAY,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,OAAO,CAAC,CACL,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,OAC7B,MAAM,cACE,SAAS,EAAE,KACtB,YAAY,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,OAAO,CAAC,CACV,CAAC"}
@@ -2,11 +2,20 @@ import deepEqual from 'deep-equal';
2
2
  import { updateDashboardData } from '@deephaven/dashboard';
3
3
  import { getLinksForDashboard } from "./selectors.js";
4
4
 
5
+ /**
6
+ * Set the connection for the dashboard specified
7
+ * @param id The ID of the dashboard to set the connection for
8
+ * @param connection The connection object to set for the dashboard
9
+ */
10
+ export var setDashboardConnection = (id, connection) => dispatch => dispatch(updateDashboardData(id, {
11
+ connection
12
+ }));
5
13
  /**
6
14
  * Set the session wrapper for the dashboard specified
7
15
  * @param id The ID of the dashboard to set the session for
8
16
  * @param sessionWrapper The session wrapper object to set for the dashboard
9
17
  */
18
+
10
19
  export var setDashboardSessionWrapper = (id, sessionWrapper) => dispatch => dispatch(updateDashboardData(id, {
11
20
  sessionWrapper
12
21
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","names":["deepEqual","updateDashboardData","getLinksForDashboard","setDashboardSessionWrapper","id","sessionWrapper","dispatch","setDashboardLinks","links","addDashboardLinks","newLinks","getState","filtered","filter","newLink","findIndex","link","start","end","concat","deleteDashboardLinks","linkIds","includes","setDashboardIsolatedLinkerPanelId","isolatedLinkerPanelId","setDashboardColumnSelectionValidator","columnSelectionValidator","setDashboardConsoleSettings","consoleSettings","setDashboardFilterSets","filterSets"],"sources":["../../src/redux/actions.ts"],"sourcesContent":["import deepEqual from 'deep-equal';\nimport { updateDashboardData } from '@deephaven/dashboard';\nimport { ThunkAction } from 'redux-thunk';\nimport { RootState } from '@deephaven/redux';\nimport { Action } from 'redux';\nimport { IdeConnection, IdeSession } from '@deephaven/jsapi-shim';\nimport { getLinksForDashboard } from './selectors';\nimport { FilterSet } from '../panels';\nimport { Link } from '../linker/LinkerUtils';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\n\nexport interface SessionWrapper {\n session: IdeSession;\n connection: IdeConnection;\n config: {\n type: string;\n id: string;\n };\n}\n/**\n * Set the session wrapper for the dashboard specified\n * @param id The ID of the dashboard to set the session for\n * @param sessionWrapper The session wrapper object to set for the dashboard\n */\nexport const setDashboardSessionWrapper = (\n id: string,\n sessionWrapper: SessionWrapper\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { sessionWrapper }));\n\n/**\n * Set the links for a given dashboard\n * @param id The ID of the dashboard to set the links for\n * @param links The links to set\n */\nexport const setDashboardLinks = (\n id: string,\n links: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { links }));\n\n/**\n * Add links to the existing links in a dashboard. Filters out any duplicate links.\n * @param id The ID of the dashboard to add links to\n * @param newLinks The new links to add\n */\nexport const addDashboardLinks = (\n id: string,\n newLinks: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const filtered = newLinks.filter(\n newLink =>\n links.findIndex(\n link =>\n deepEqual(link.start, newLink.start) &&\n deepEqual(link.end, newLink.end)\n ) < 0\n );\n return dispatch(setDashboardLinks(id, links.concat(filtered)));\n};\n\n/**\n * Delete links from a dashboard\n * @param id The ID of the dashboard to delete links from\n * @param linkIds The link IDs to delete\n */\nexport const deleteDashboardLinks = (\n id: string,\n linkIds: string[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const newLinks = links.filter(link => !linkIds.includes(link.id));\n return dispatch(setDashboardLinks(id, newLinks));\n};\n\n/**\n * Set the isolated linker panel ID for a dashboard\n * @param id The ID of the dashboard to set the isolated linker panel ID in\n * @param isolatedLinkerPanelId The isolated panel ID, or undefined to unset\n */\nexport const setDashboardIsolatedLinkerPanelId = (\n id: string,\n isolatedLinkerPanelId: string | string[] | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { isolatedLinkerPanelId }));\n\n/**\n * Set the column selection validator for a dashboard\n * @param id The ID of the dashboard to set the column selection validator on\n * @param columnSelectionValidator The column selection validator to set\n */\nexport const setDashboardColumnSelectionValidator = (\n id: string,\n columnSelectionValidator: ColumnSelectionValidator | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { columnSelectionValidator }));\n\n/**\n * Set the console settings for a dashboard\n * @param id The ID of the dashboard to set the console settings on\n * @param consoleSettings The console settings to set for the dashboard\n */\nexport const setDashboardConsoleSettings = (\n id: string,\n consoleSettings: Record<string, unknown>\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { consoleSettings }));\n\n/**\n * Set the filter sets for a specific dashboard\n * @param id The ID of the dashboard to set the filter sets for\n * @param filterSets The filter sets to set\n */\nexport const setDashboardFilterSets = (\n id: string,\n filterSets: FilterSet[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { filterSets }));\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAASC,mBAAT,QAAoC,sBAApC;SAKSC,oB;;AAaT;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,0BAA0B,GAAG,CACxCC,EADwC,EAExCC,cAFwC,KAGwBC,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEC;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAME,iBAAiB,GAAG,CAC/BH,EAD+B,EAE/BI,KAF+B,KAGiCF,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEI;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,iBAAiB,GAAG,CAC/BL,EAD+B,EAE/BM,QAF+B,KAGiC,CAChEJ,QADgE,EAEhEK,QAFgE,KAG7D;EACH,IAAMH,KAAK,GAAGN,oBAAoB,CAACS,QAAQ,EAAT,EAAaP,EAAb,CAAlC;EACA,IAAMQ,QAAQ,GAAGF,QAAQ,CAACG,MAAT,CACfC,OAAO,IACLN,KAAK,CAACO,SAAN,CACEC,IAAI,IACFhB,SAAS,CAACgB,IAAI,CAACC,KAAN,EAAaH,OAAO,CAACG,KAArB,CAAT,IACAjB,SAAS,CAACgB,IAAI,CAACE,GAAN,EAAWJ,OAAO,CAACI,GAAnB,CAHb,IAII,CANS,CAAjB;EAQA,OAAOZ,QAAQ,CAACC,iBAAiB,CAACH,EAAD,EAAKI,KAAK,CAACW,MAAN,CAAaP,QAAb,CAAL,CAAlB,CAAf;AACD,CAjBM;AAmBP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMQ,oBAAoB,GAAG,CAClChB,EADkC,EAElCiB,OAFkC,KAG8B,CAChEf,QADgE,EAEhEK,QAFgE,KAG7D;EACH,IAAMH,KAAK,GAAGN,oBAAoB,CAACS,QAAQ,EAAT,EAAaP,EAAb,CAAlC;EACA,IAAMM,QAAQ,GAAGF,KAAK,CAACK,MAAN,CAAaG,IAAI,IAAI,CAACK,OAAO,CAACC,QAAR,CAAiBN,IAAI,CAACZ,EAAtB,CAAtB,CAAjB;EACA,OAAOE,QAAQ,CAACC,iBAAiB,CAACH,EAAD,EAAKM,QAAL,CAAlB,CAAf;AACD,CAVM;AAYP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMa,iCAAiC,GAAG,CAC/CnB,EAD+C,EAE/CoB,qBAF+C,KAGiBlB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEoB;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,oCAAoC,GAAG,CAClDrB,EADkD,EAElDsB,wBAFkD,KAGcpB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEsB;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,CACzCvB,EADyC,EAEzCwB,eAFyC,KAGuBtB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEwB;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCzB,EADoC,EAEpC0B,UAFoC,KAG4BxB,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAE0B;AAAF,CAAL,CAApB,CAJH"}
1
+ {"version":3,"file":"actions.js","names":["deepEqual","updateDashboardData","getLinksForDashboard","setDashboardConnection","id","connection","dispatch","setDashboardSessionWrapper","sessionWrapper","setDashboardLinks","links","addDashboardLinks","newLinks","getState","filtered","filter","newLink","findIndex","link","start","end","concat","deleteDashboardLinks","linkIds","includes","setDashboardIsolatedLinkerPanelId","isolatedLinkerPanelId","setDashboardColumnSelectionValidator","columnSelectionValidator","setDashboardConsoleSettings","consoleSettings","setDashboardFilterSets","filterSets"],"sources":["../../src/redux/actions.ts"],"sourcesContent":["import deepEqual from 'deep-equal';\nimport { updateDashboardData } from '@deephaven/dashboard';\nimport { ThunkAction } from 'redux-thunk';\nimport { RootState } from '@deephaven/redux';\nimport { Action } from 'redux';\nimport { IdeConnection, IdeSession } from '@deephaven/jsapi-shim';\nimport { getLinksForDashboard } from './selectors';\nimport { FilterSet } from '../panels';\nimport { Link } from '../linker/LinkerUtils';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\n\nexport interface SessionConfig {\n type: string;\n id: string;\n}\n\nexport interface SessionWrapper {\n session: IdeSession;\n connection: IdeConnection;\n config: SessionConfig;\n}\n\n/**\n * Set the connection for the dashboard specified\n * @param id The ID of the dashboard to set the connection for\n * @param connection The connection object to set for the dashboard\n */\nexport const setDashboardConnection = (\n id: string,\n connection: IdeConnection\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { connection }));\n\n/**\n * Set the session wrapper for the dashboard specified\n * @param id The ID of the dashboard to set the session for\n * @param sessionWrapper The session wrapper object to set for the dashboard\n */\nexport const setDashboardSessionWrapper = (\n id: string,\n sessionWrapper: SessionWrapper\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { sessionWrapper }));\n\n/**\n * Set the links for a given dashboard\n * @param id The ID of the dashboard to set the links for\n * @param links The links to set\n */\nexport const setDashboardLinks = (\n id: string,\n links: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { links }));\n\n/**\n * Add links to the existing links in a dashboard. Filters out any duplicate links.\n * @param id The ID of the dashboard to add links to\n * @param newLinks The new links to add\n */\nexport const addDashboardLinks = (\n id: string,\n newLinks: Link[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const filtered = newLinks.filter(\n newLink =>\n links.findIndex(\n link =>\n deepEqual(link.start, newLink.start) &&\n deepEqual(link.end, newLink.end)\n ) < 0\n );\n return dispatch(setDashboardLinks(id, links.concat(filtered)));\n};\n\n/**\n * Delete links from a dashboard\n * @param id The ID of the dashboard to delete links from\n * @param linkIds The link IDs to delete\n */\nexport const deleteDashboardLinks = (\n id: string,\n linkIds: string[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => (\n dispatch,\n getState\n) => {\n const links = getLinksForDashboard(getState(), id);\n const newLinks = links.filter(link => !linkIds.includes(link.id));\n return dispatch(setDashboardLinks(id, newLinks));\n};\n\n/**\n * Set the isolated linker panel ID for a dashboard\n * @param id The ID of the dashboard to set the isolated linker panel ID in\n * @param isolatedLinkerPanelId The isolated panel ID, or undefined to unset\n */\nexport const setDashboardIsolatedLinkerPanelId = (\n id: string,\n isolatedLinkerPanelId: string | string[] | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { isolatedLinkerPanelId }));\n\n/**\n * Set the column selection validator for a dashboard\n * @param id The ID of the dashboard to set the column selection validator on\n * @param columnSelectionValidator The column selection validator to set\n */\nexport const setDashboardColumnSelectionValidator = (\n id: string,\n columnSelectionValidator: ColumnSelectionValidator | undefined\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { columnSelectionValidator }));\n\n/**\n * Set the console settings for a dashboard\n * @param id The ID of the dashboard to set the console settings on\n * @param consoleSettings The console settings to set for the dashboard\n */\nexport const setDashboardConsoleSettings = (\n id: string,\n consoleSettings: Record<string, unknown>\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { consoleSettings }));\n\n/**\n * Set the filter sets for a specific dashboard\n * @param id The ID of the dashboard to set the filter sets for\n * @param filterSets The filter sets to set\n */\nexport const setDashboardFilterSets = (\n id: string,\n filterSets: FilterSet[]\n): ThunkAction<unknown, RootState, undefined, Action<unknown>> => dispatch =>\n dispatch(updateDashboardData(id, { filterSets }));\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,SAASC,mBAAT,QAAoC,sBAApC;SAKSC,oB;;AAgBT;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCC,EADoC,EAEpCC,UAFoC,KAG4BC,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEC;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAME,0BAA0B,GAAG,CACxCH,EADwC,EAExCI,cAFwC,KAGwBF,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEI;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,iBAAiB,GAAG,CAC/BL,EAD+B,EAE/BM,KAF+B,KAGiCJ,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAEM;AAAF,CAAL,CAApB,CAJH;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,iBAAiB,GAAG,CAC/BP,EAD+B,EAE/BQ,QAF+B,KAGiC,CAChEN,QADgE,EAEhEO,QAFgE,KAG7D;EACH,IAAMH,KAAK,GAAGR,oBAAoB,CAACW,QAAQ,EAAT,EAAaT,EAAb,CAAlC;EACA,IAAMU,QAAQ,GAAGF,QAAQ,CAACG,MAAT,CACfC,OAAO,IACLN,KAAK,CAACO,SAAN,CACEC,IAAI,IACFlB,SAAS,CAACkB,IAAI,CAACC,KAAN,EAAaH,OAAO,CAACG,KAArB,CAAT,IACAnB,SAAS,CAACkB,IAAI,CAACE,GAAN,EAAWJ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oC,KAG4B1B,QAAQ,IACxEA,QAAQ,CAACL,mBAAmB,CAACG,EAAD,EAAK;EAAE4B;AAAF,CAAL,CAApB,CAJH"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("redux").Reducer<null, import("redux").AnyAction>;
2
+ export default _default;
3
+ //# sourceMappingURL=connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../src/redux/reducers/connection.ts"],"names":[],"mappings":";AAMA,wBAAoD"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Set the active session being used to communicate with the server.
3
+ */
4
+ import { replaceReducer } from '@deephaven/redux';
5
+ import { SET_CONNECTION } from "../actionTypes.js";
6
+ export default replaceReducer(SET_CONNECTION, null);
7
+ //# sourceMappingURL=connection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.js","names":["replaceReducer","SET_CONNECTION"],"sources":["../../../src/redux/reducers/connection.ts"],"sourcesContent":["/**\n * Set the active session being used to communicate with the server.\n */\nimport { replaceReducer } from '@deephaven/redux';\nimport { SET_CONNECTION } from '../actionTypes';\n\nexport default replaceReducer(SET_CONNECTION, null);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,kBAA/B;SACSC,c;AAET,eAAeD,cAAc,CAACC,cAAD,EAAiB,IAAjB,CAA7B"}
@@ -1,4 +1,4 @@
1
- import { Column, Table } from '@deephaven/jsapi-shim';
1
+ import { Column, IdeConnection, Table } from '@deephaven/jsapi-shim';
2
2
  import { RootState } from '@deephaven/redux';
3
3
  import { FilterChangeEvent } from '../FilterPlugin';
4
4
  import { Link } from '../linker/LinkerUtils';
@@ -54,6 +54,13 @@ export declare const getColumnSelectionValidatorForDashboard: (store: RootState,
54
54
  * @returns Console settings for this dashboard
55
55
  */
56
56
  export declare const getDashboardConsoleSettings: (store: RootState, dashboardId: string) => Record<string, unknown>;
57
+ /**
58
+ *
59
+ * @param store The redux store
60
+ * @param dashboardId The dashboard ID to get the IdeConnection for
61
+ * @returns The connection for the dashboard
62
+ */
63
+ export declare const getDashboardConnection: (store: RootState, dashboardId: string) => IdeConnection;
57
64
  /**
58
65
  *
59
66
  * @param store The redux store
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/redux/selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM3C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,UAC1B,SAAS,eACH,MAAM,KAClB,MAAM,EACkE,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,UAC7B,SAAS,eACH,MAAM,KAClB,SAAS,EAEmB,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,UAC/B,SAAS,eACH,MAAM,KAClB,iBAAiB,EAEmB,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,UAC3B,SAAS,eACH,MAAM,KAClB,IAAI,MAAM,EAAE,KAAK,CAIjB,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,UACxC,SAAS,eACH,MAAM,KAClB,MAAM,GAAG,SAGG,CAAC;AAEhB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UACxB,SAAS,eACH,MAAM,KAClB,IAAI,EACgE,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,uCAAuC,UAC3C,SAAS,eACH,MAAM,KAClB,wBAAwB,G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AAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,uCAAuC,UAC3C,SAAS,eACH,MAAM,KAClB,wBAAwB,GAAG,SAGf,CAAC;AAEhB;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,UAC/B,SAAS,eACH,MAAM,KAClB,OAAO,MAAM,EAAE,OAAO,CAItB,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,UAC1B,SAAS,eACH,MAAM,KAClB,aAC+D,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,UAC9B,SAAS,eACH,MAAM,KAClB,cACoE,CAAC"}
@@ -78,6 +78,14 @@ export var getColumnSelectionValidatorForDashboard = (store, dashboardId) => get
78
78
  */
79
79
 
80
80
  export var getDashboardConsoleSettings = (store, dashboardId) => getDashboardData(store, dashboardId).consoleSettings;
81
+ /**
82
+ *
83
+ * @param store The redux store
84
+ * @param dashboardId The dashboard ID to get the IdeConnection for
85
+ * @returns The connection for the dashboard
86
+ */
87
+
88
+ export var getDashboardConnection = (store, dashboardId) => getDashboardData(store, dashboardId).connection;
81
89
  /**
82
90
  *
83
91
  * @param store The redux store
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.js","names":["getDashboardData","EMPTY_MAP","Map","EMPTY_ARRAY","Object","freeze","getColumnsForDashboard","store","dashboardId","columns","getFilterSetsForDashboard","filterSets","getInputFiltersForDashboard","filters","getTableMapForDashboard","tableMap","getIsolatedLinkerPanelIdForDashboard","isolatedLinkerPanelId","getLinksForDashboard","links","getColumnSelectionValidatorForDashboard","columnSelectionValidator","getDashboardConsoleSettings","consoleSettings","getDashboardSessionWrapper","sessionWrapper"],"sources":["../../src/redux/selectors.ts"],"sourcesContent":["import { getDashboardData } from '@deephaven/dashboard';\nimport { Column, Table } from '@deephaven/jsapi-shim';\nimport { RootState } from '@deephaven/redux';\nimport { FilterChangeEvent } from '../FilterPlugin';\nimport { Link } from '../linker/LinkerUtils';\nimport { FilterSet } from '../panels';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\nimport { SessionWrapper } from './actions';\n\nconst EMPTY_MAP = new Map();\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns All column objects found in all panels in this dashboard\n */\nexport const getColumnsForDashboard = (\n store: RootState,\n dashboardId: string\n): Column[] =>\n (getDashboardData(store, dashboardId).columns ?? EMPTY_ARRAY) as Column[];\n\n/**\n * Get the known filter sets for the dashboard.\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filter sets set on this dashboard\n */\nexport const getFilterSetsForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterSet[] =>\n (getDashboardData(store, dashboardId).filterSets ??\n EMPTY_ARRAY) as FilterSet[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filters set on this dashboard\n */\nexport const getInputFiltersForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterChangeEvent[] =>\n (getDashboardData(store, dashboardId).filters ??\n EMPTY_ARRAY) as FilterChangeEvent[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns Map from panel ID to the table used in that panel\n */\nexport const getTableMapForDashboard = (\n store: RootState,\n dashboardId: string\n): Map<string, Table> =>\n (getDashboardData(store, dashboardId).tableMap ?? EMPTY_MAP) as Map<\n string,\n Table\n >;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data for\n * @returns The panel ID that is isolated, undefined if none is isolated\n */\nexport const getIsolatedLinkerPanelIdForDashboard = (\n store: RootState,\n dashboardId: string\n): string | undefined =>\n getDashboardData(store, dashboardId).isolatedLinkerPanelId as\n | string\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data from\n * @returns The links for the dashboard\n */\nexport const getLinksForDashboard = (\n store: RootState,\n dashboardId: string\n): Link[] =>\n (getDashboardData(store, dashboardId).links ?? EMPTY_ARRAY) as Link[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the column selection validators for\n * @returns Column selection validator active on a dashboard\n */\nexport const getColumnSelectionValidatorForDashboard = (\n store: RootState,\n dashboardId: string\n): ColumnSelectionValidator | undefined =>\n getDashboardData(store, dashboardId).columnSelectionValidator as\n | ColumnSelectionValidator\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the console settings for\n * @returns Console settings for this dashboard\n */\nexport const getDashboardConsoleSettings = (\n store: RootState,\n dashboardId: string\n): Record<string, unknown> =>\n getDashboardData(store, dashboardId).consoleSettings as Record<\n string,\n unknown\n >;\n\n/**\n *\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the SessionWrapper for\n * @returns The session wrapper for the dashboard\n */\nexport const getDashboardSessionWrapper = (\n store: RootState,\n dashboardId: string\n): SessionWrapper =>\n getDashboardData(store, dashboardId).sessionWrapper as SessionWrapper;\n"],"mappings":"AAAA,SAASA,gBAAT,QAAiC,sBAAjC;AASA,IAAMC,SAAS,GAAG,IAAIC,GAAJ,EAAlB;AAEA,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAP,CAAc,EAAd,CAApB;AAEA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCC,KADoC,EAEpCC,WAFoC;EAAA;;EAAA,gCAInCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCC,OAJF,yEAIaN,WAJb;AAAA,CAA/B;AAMP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMO,yBAAyB,GAAG,CACvCH,KADuC,EAEvCC,WAFuC;EAAA;;EAAA,gCAItCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCG,UAJC,yEAKrCR,WALqC;AAAA,CAAlC;AAOP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMS,2BAA2B,GAAG,CACzCL,KADyC,EAEzCC,WAFyC;EAAA;;EAAA,iCAIxCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCK,OAJG,2EAKvCV,WALuC;AAAA,CAApC;AAOP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMW,uBAAuB,GAAG,CACrCP,KADqC,EAErCC,WAFqC;EAAA;;EAAA,gCAIpCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCO,QAJD,yEAIad,SAJb;AAAA,CAAhC;AASP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMe,oCAAoC,GAAG,CAClDT,KADkD,EAElDC,WAFkD,KAIlDR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCS,qBAJhC;AAQP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,oBAAoB,GAAG,CAClCX,KADkC,EAElCC,WAFkC;EAAA;;EAAA,gCAIjCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCW,KAJJ,yEAIahB,WAJb;AAAA,CAA7B;AAMP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMiB,uCAAuC,GAAG,CACrDb,KADqD,EAErDC,WAFqD,KAIrDR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCa,wBAJhC;AAQP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,CACzCf,KADyC,EAEzCC,WAFyC,KAIzCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCe,eAJhC;AASP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,0BAA0B,GAAG,CACxCjB,KADwC,EAExCC,WAFwC,KAIxCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCiB,cAJhC"}
1
+ {"version":3,"file":"selectors.js","names":["getDashboardData","EMPTY_MAP","Map","EMPTY_ARRAY","Object","freeze","getColumnsForDashboard","store","dashboardId","columns","getFilterSetsForDashboard","filterSets","getInputFiltersForDashboard","filters","getTableMapForDashboard","tableMap","getIsolatedLinkerPanelIdForDashboard","isolatedLinkerPanelId","getLinksForDashboard","links","getColumnSelectionValidatorForDashboard","columnSelectionValidator","getDashboardConsoleSettings","consoleSettings","getDashboardConnection","connection","getDashboardSessionWrapper","sessionWrapper"],"sources":["../../src/redux/selectors.ts"],"sourcesContent":["import { getDashboardData } from '@deephaven/dashboard';\nimport { Column, IdeConnection, Table } from '@deephaven/jsapi-shim';\nimport { RootState } from '@deephaven/redux';\nimport { FilterChangeEvent } from '../FilterPlugin';\nimport { Link } from '../linker/LinkerUtils';\nimport { FilterSet } from '../panels';\nimport { ColumnSelectionValidator } from '../linker/ColumnSelectionValidator';\nimport { SessionWrapper } from './actions';\n\nconst EMPTY_MAP = new Map();\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns All column objects found in all panels in this dashboard\n */\nexport const getColumnsForDashboard = (\n store: RootState,\n dashboardId: string\n): Column[] =>\n (getDashboardData(store, dashboardId).columns ?? EMPTY_ARRAY) as Column[];\n\n/**\n * Get the known filter sets for the dashboard.\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filter sets set on this dashboard\n */\nexport const getFilterSetsForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterSet[] =>\n (getDashboardData(store, dashboardId).filterSets ??\n EMPTY_ARRAY) as FilterSet[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns The filters set on this dashboard\n */\nexport const getInputFiltersForDashboard = (\n store: RootState,\n dashboardId: string\n): FilterChangeEvent[] =>\n (getDashboardData(store, dashboardId).filters ??\n EMPTY_ARRAY) as FilterChangeEvent[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get data for\n * @returns Map from panel ID to the table used in that panel\n */\nexport const getTableMapForDashboard = (\n store: RootState,\n dashboardId: string\n): Map<string, Table> =>\n (getDashboardData(store, dashboardId).tableMap ?? EMPTY_MAP) as Map<\n string,\n Table\n >;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data for\n * @returns The panel ID that is isolated, undefined if none is isolated\n */\nexport const getIsolatedLinkerPanelIdForDashboard = (\n store: RootState,\n dashboardId: string\n): string | undefined =>\n getDashboardData(store, dashboardId).isolatedLinkerPanelId as\n | string\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the data from\n * @returns The links for the dashboard\n */\nexport const getLinksForDashboard = (\n store: RootState,\n dashboardId: string\n): Link[] =>\n (getDashboardData(store, dashboardId).links ?? EMPTY_ARRAY) as Link[];\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the column selection validators for\n * @returns Column selection validator active on a dashboard\n */\nexport const getColumnSelectionValidatorForDashboard = (\n store: RootState,\n dashboardId: string\n): ColumnSelectionValidator | undefined =>\n getDashboardData(store, dashboardId).columnSelectionValidator as\n | ColumnSelectionValidator\n | undefined;\n\n/**\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the console settings for\n * @returns Console settings for this dashboard\n */\nexport const getDashboardConsoleSettings = (\n store: RootState,\n dashboardId: string\n): Record<string, unknown> =>\n getDashboardData(store, dashboardId).consoleSettings as Record<\n string,\n unknown\n >;\n\n/**\n *\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the IdeConnection for\n * @returns The connection for the dashboard\n */\nexport const getDashboardConnection = (\n store: RootState,\n dashboardId: string\n): IdeConnection =>\n getDashboardData(store, dashboardId).connection as IdeConnection;\n\n/**\n *\n * @param store The redux store\n * @param dashboardId The dashboard ID to get the SessionWrapper for\n * @returns The session wrapper for the dashboard\n */\nexport const getDashboardSessionWrapper = (\n store: RootState,\n dashboardId: string\n): SessionWrapper =>\n getDashboardData(store, dashboardId).sessionWrapper as SessionWrapper;\n"],"mappings":"AAAA,SAASA,gBAAT,QAAiC,sBAAjC;AASA,IAAMC,SAAS,GAAG,IAAIC,GAAJ,EAAlB;AAEA,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAP,CAAc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BAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCa,wBAJhC;AAQP;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,2BAA2B,GAAG,CACzCf,KADyC,EAEzCC,WAFyC,KAIzCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCe,eAJhC;AASP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,sBAAsB,GAAG,CACpCjB,KADoC,EAEpCC,WAFoC,KAIpCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCiB,UAJhC;AAMP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,IAAMC,0BAA0B,GAAG,CACxCnB,KADwC,EAExCC,WAFwC,KAIxCR,gBAAgB,CAACO,KAAD,EAAQC,WAAR,CAAhB,CAAqCmB,cAJhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/dashboard-core-plugins",
3
- "version": "0.16.1-vite.27+9f60b58",
3
+ "version": "0.17.0",
4
4
  "description": "Deephaven Dashboard Core Plugins",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -30,20 +30,20 @@
30
30
  "start": "cross-env NODE_ENV=development npm run watch"
31
31
  },
32
32
  "dependencies": {
33
- "@deephaven/chart": "^0.16.1-vite.27+9f60b58",
34
- "@deephaven/components": "^0.16.1-vite.27+9f60b58",
35
- "@deephaven/console": "^0.16.1-vite.27+9f60b58",
36
- "@deephaven/dashboard": "^0.16.1-vite.27+9f60b58",
37
- "@deephaven/file-explorer": "^0.16.1-vite.27+9f60b58",
38
- "@deephaven/golden-layout": "^0.16.1-vite.27+9f60b58",
39
- "@deephaven/grid": "^0.16.1-vite.27+9f60b58",
40
- "@deephaven/icons": "^0.16.1-vite.27+9f60b58",
41
- "@deephaven/iris-grid": "^0.16.1-vite.27+9f60b58",
42
- "@deephaven/jsapi-shim": "^0.16.1-vite.27+9f60b58",
43
- "@deephaven/jsapi-utils": "^0.16.1-vite.27+9f60b58",
44
- "@deephaven/log": "^0.16.1-vite.27+9f60b58",
45
- "@deephaven/redux": "^0.16.1-vite.27+9f60b58",
46
- "@deephaven/utils": "^0.16.1-vite.27+9f60b58",
33
+ "@deephaven/chart": "^0.17.0",
34
+ "@deephaven/components": "^0.17.0",
35
+ "@deephaven/console": "^0.17.0",
36
+ "@deephaven/dashboard": "^0.17.0",
37
+ "@deephaven/file-explorer": "^0.17.0",
38
+ "@deephaven/golden-layout": "^0.17.0",
39
+ "@deephaven/grid": "^0.17.0",
40
+ "@deephaven/icons": "^0.17.0",
41
+ "@deephaven/iris-grid": "^0.17.0",
42
+ "@deephaven/jsapi-shim": "^0.17.0",
43
+ "@deephaven/jsapi-utils": "^0.17.0",
44
+ "@deephaven/log": "^0.17.0",
45
+ "@deephaven/redux": "^0.17.0",
46
+ "@deephaven/utils": "^0.17.0",
47
47
  "@fortawesome/react-fontawesome": "^0.1.18",
48
48
  "classnames": "^2.3.1",
49
49
  "deep-equal": "^2.0.5",
@@ -65,8 +65,8 @@
65
65
  "react-redux": "^7.2.4"
66
66
  },
67
67
  "devDependencies": {
68
- "@deephaven/mocks": "^0.16.1-vite.27+9f60b58",
69
- "@deephaven/tsconfig": "^0.16.1-vite.27+9f60b58"
68
+ "@deephaven/mocks": "^0.17.0",
69
+ "@deephaven/tsconfig": "^0.17.0"
70
70
  },
71
71
  "files": [
72
72
  "dist"
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "9f60b5810cf7a77f8bc04de9a459e5728444ad45"
77
+ "gitHead": "53437684d53c6664a7c127d2f1ff1a1ef22a4bdb"
78
78
  }