@deephaven/redux 0.50.1-beta.5 → 0.51.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.
package/dist/actions.d.ts CHANGED
@@ -3,7 +3,8 @@ import type { ThunkAction } from 'redux-thunk';
3
3
  import type { CommandHistoryStorage } from '@deephaven/console';
4
4
  import type { FileStorage } from '@deephaven/file-explorer';
5
5
  import type { dh as DhType } from '@deephaven/jsapi-types';
6
- import type { DeephavenPluginModuleMap, RootState, ServerConfigValues, User, Workspace, WorkspaceData, WorkspaceSettings, WorkspaceStorage } from './store';
6
+ import type { PluginModuleMap } from '@deephaven/plugin';
7
+ import type { RootState, ServerConfigValues, User, Workspace, WorkspaceData, WorkspaceSettings, WorkspaceStorage } from './store';
7
8
  export interface PayloadAction<P = unknown> extends Action<string> {
8
9
  payload: P;
9
10
  }
@@ -30,6 +31,6 @@ export declare const updateWorkspaceData: (workspaceData: Partial<WorkspaceData>
30
31
  */
31
32
  export declare const saveSettings: (settings: WorkspaceSettings) => ThunkAction<Promise<Workspace>, RootState, never, PayloadAction<unknown>>;
32
33
  export declare const setActiveTool: PayloadActionCreator<string>;
33
- export declare const setPlugins: PayloadActionCreator<DeephavenPluginModuleMap>;
34
+ export declare const setPlugins: PayloadActionCreator<PluginModuleMap>;
34
35
  export declare const setServerConfigValues: PayloadActionCreator<ServerConfigValues>;
35
36
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE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gB,CAIhB,CAAC;AAEH,eAAO,MAAM,wBAAwB,EAAE,oBAAoB,CACzD,qBAAqB,CAIrB,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,oBAAoB,CAC/C,WAAW,CAIX,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa,cAEX,SAAS,KACnB,YACD,QAAQ,SAAS,CAAC,EAClB,SAAS,EACT,KAAK,EACL,cAAc,OAAO,CAAC,CAQvB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,mBAAmB,kBAEb,QAAQ,aAAa,CAAC,KACpC,YACD,QAAQ,SAAS,CAAC,EAClB,SAAS,EACT,KAAK,EACL,cAAc,OAAO,CAAC,CAavB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,YAAY,aAEX,iBAAiB,KAC1B,YACD,QAAQ,SAAS,CAAC,EAClB,SAAS,EACT,KAAK,EACL,cAAc,OAAO,CAAC,CAGqB,CAAC;AAEhD,eAAO,MAAM,aAAa,EAAE,oBAAoB,CAAC,MAAM,CAGrD,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,oBAAoB,CAAC,eAAe,CAG3D,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,oBAAoB,CACtD,kBAAkB,CAIlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","names":["SET_PLUGINS","SET_USER","SET_WORKSPACE","SET_COMMAND_HISTORY_STORAGE","SET_WORKSPACE_STORAGE","SET_ACTIVE_TOOL","SET_FILE_STORAGE","SET_SERVER_CONFIG_VALUES","SET_API","setUser","user","type","payload","setApi","api","setWorkspace","workspace","setWorkspaceStorage","workspaceStorage","setCommandHistoryStorage","commandHistoryStorage","setFileStorage","fileStorage","saveWorkspace","dispatch","getState","storage","save","updateWorkspaceData","workspaceData","data","newWorkspace","saveSettings","settings","setActiveTool","setPlugins","plugins","setServerConfigValues","config"],"sources":["../src/actions.ts"],"sourcesContent":["import type { Action } from 'redux';\nimport type { ThunkAction } from 'redux-thunk';\nimport type { CommandHistoryStorage } from '@deephaven/console';\nimport type { FileStorage } from '@deephaven/file-explorer';\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport {\n SET_PLUGINS,\n SET_USER,\n SET_WORKSPACE,\n SET_COMMAND_HISTORY_STORAGE,\n SET_WORKSPACE_STORAGE,\n SET_ACTIVE_TOOL,\n SET_FILE_STORAGE,\n SET_SERVER_CONFIG_VALUES,\n SET_API,\n} from './actionTypes';\nimport type {\n DeephavenPluginModuleMap,\n RootState,\n ServerConfigValues,\n User,\n Workspace,\n WorkspaceData,\n WorkspaceSettings,\n WorkspaceStorage,\n} from './store';\n\nexport interface PayloadAction<P = unknown> extends Action<string> {\n payload: P;\n}\n\nexport type PayloadActionCreator<P> = (payload: P) => PayloadAction<P>;\n\nexport const setUser: PayloadActionCreator<User> = user => ({\n type: SET_USER,\n payload: user,\n});\n\nexport const setApi: PayloadActionCreator<DhType> = api => ({\n type: SET_API,\n payload: api,\n});\n\nexport const setWorkspace: PayloadActionCreator<Workspace> = workspace => ({\n type: SET_WORKSPACE,\n payload: workspace,\n});\n\nexport const setWorkspaceStorage: PayloadActionCreator<\n WorkspaceStorage\n> = workspaceStorage => ({\n type: SET_WORKSPACE_STORAGE,\n payload: workspaceStorage,\n});\n\nexport const setCommandHistoryStorage: PayloadActionCreator<\n CommandHistoryStorage\n> = commandHistoryStorage => ({\n type: SET_COMMAND_HISTORY_STORAGE,\n payload: commandHistoryStorage,\n});\n\nexport const setFileStorage: PayloadActionCreator<\n FileStorage\n> = fileStorage => ({\n type: SET_FILE_STORAGE,\n payload: fileStorage,\n});\n\n/**\n * Sets the specified workspace locally and saves it remotely\n * @param workspace The workspace to save\n */\nexport const saveWorkspace =\n (\n workspace: Workspace\n ): ThunkAction<\n Promise<Workspace>,\n RootState,\n never,\n PayloadAction<unknown>\n > =>\n (dispatch, getState) => {\n dispatch(setWorkspace(workspace));\n\n const { storage } = getState();\n const { workspaceStorage } = storage;\n return workspaceStorage.save(workspace);\n };\n\n/**\n * Update part of the workspace data and save it\n * @param workspaceData The properties to update in workspace data\n */\nexport const updateWorkspaceData =\n (\n workspaceData: Partial<WorkspaceData>\n ): ThunkAction<\n Promise<Workspace>,\n RootState,\n never,\n PayloadAction<unknown>\n > =>\n (dispatch, getState) => {\n const { workspace } = getState();\n const { data } = workspace;\n const newWorkspace = {\n ...workspace,\n data: {\n ...data,\n ...workspaceData,\n },\n };\n return dispatch(saveWorkspace(newWorkspace));\n };\n\n/**\n * Sets the specified settings locally and saves them remotely\n * @param settings The settings to save\n */\nexport const saveSettings =\n (\n settings: WorkspaceSettings\n ): ThunkAction<\n Promise<Workspace>,\n RootState,\n never,\n PayloadAction<unknown>\n > =>\n dispatch =>\n dispatch(updateWorkspaceData({ settings }));\n\nexport const setActiveTool: PayloadActionCreator<string> = payload => ({\n type: SET_ACTIVE_TOOL,\n payload,\n});\n\nexport const setPlugins: PayloadActionCreator<\n DeephavenPluginModuleMap\n> = plugins => ({\n type: SET_PLUGINS,\n payload: plugins,\n});\n\nexport const setServerConfigValues: PayloadActionCreator<\n ServerConfigValues\n> = config => ({\n type: SET_SERVER_CONFIG_VALUES,\n payload: config,\n});\n"],"mappings":";;;;;SAMEA,WAAW,EACXC,QAAQ,EACRC,aAAa,EACbC,2BAA2B,EAC3BC,qBAAqB,EACrBC,eAAe,EACfC,gBAAgB,EAChBC,wBAAwB,EACxBC,OAAO;AAmBT,OAAO,IAAMC,OAAmC,GAAGC,IAAI,KAAK;EAC1DC,IAAI,EAAEV,QAAQ;EACdW,OAAO,EAAEF;AACX,CAAC,CAAC;AAEF,OAAO,IAAMG,MAAoC,GAAGC,GAAG,KAAK;EAC1DH,IAAI,EAAEH,OAAO;EACbI,OAAO,EAAEE;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,YAA6C,GAAGC,SAAS,KAAK;EACzEL,IAAI,EAAET,aAAa;EACnBU,OAAO,EAAEI;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,mBAEZ,GAA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AAO,IAAMuB,UAEZ,GAAGC,OAAO,KAAK;EACdzB,IAAI,EAAEX,WAAW;EACjBY,OAAO,EAAEwB;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,qBAEZ,GAAGC,MAAM,KAAK;EACb3B,IAAI,EAAEJ,wBAAwB;EAC9BK,OAAO,EAAE0B;AACX,CAAC,CAAC"}
1
+ {"version":3,"file":"actions.js","names":["SET_PLUGINS","SET_USER","SET_WORKSPACE","SET_COMMAND_HISTORY_STORAGE","SET_WORKSPACE_STORAGE","SET_ACTIVE_TOOL","SET_FILE_STORAGE","SET_SERVER_CONFIG_VALUES","SET_API","setUser","user","type","payload","setApi","api","setWorkspace","workspace","setWorkspaceStorage","workspaceStorage","setCommandHistoryStorage","commandHistoryStorage","setFileStorage","fileStorage","saveWorkspace","dispatch","getState","storage","save","updateWorkspaceData","workspaceData","data","newWorkspace","_objectSpread","saveSettings","settings","setActiveTool","setPlugins","plugins","setServerConfigValues","config"],"sources":["../src/actions.ts"],"sourcesContent":["import type { Action } from 'redux';\nimport type { ThunkAction } from 'redux-thunk';\nimport type { CommandHistoryStorage } from '@deephaven/console';\nimport type { FileStorage } from '@deephaven/file-explorer';\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport type { PluginModuleMap } from '@deephaven/plugin';\nimport {\n SET_PLUGINS,\n SET_USER,\n SET_WORKSPACE,\n SET_COMMAND_HISTORY_STORAGE,\n SET_WORKSPACE_STORAGE,\n SET_ACTIVE_TOOL,\n SET_FILE_STORAGE,\n SET_SERVER_CONFIG_VALUES,\n SET_API,\n} from './actionTypes';\nimport type {\n RootState,\n ServerConfigValues,\n User,\n Workspace,\n WorkspaceData,\n WorkspaceSettings,\n WorkspaceStorage,\n} from './store';\n\nexport interface PayloadAction<P = unknown> extends Action<string> {\n payload: P;\n}\n\nexport type PayloadActionCreator<P> = (payload: P) => PayloadAction<P>;\n\nexport const setUser: PayloadActionCreator<User> = user => ({\n type: SET_USER,\n payload: user,\n});\n\nexport const setApi: PayloadActionCreator<DhType> = api => ({\n type: SET_API,\n payload: api,\n});\n\nexport const setWorkspace: PayloadActionCreator<Workspace> = workspace => ({\n type: SET_WORKSPACE,\n payload: workspace,\n});\n\nexport const setWorkspaceStorage: PayloadActionCreator<\n WorkspaceStorage\n> = workspaceStorage => ({\n type: SET_WORKSPACE_STORAGE,\n payload: workspaceStorage,\n});\n\nexport const setCommandHistoryStorage: PayloadActionCreator<\n CommandHistoryStorage\n> = commandHistoryStorage => ({\n type: SET_COMMAND_HISTORY_STORAGE,\n payload: commandHistoryStorage,\n});\n\nexport const setFileStorage: PayloadActionCreator<\n FileStorage\n> = fileStorage => ({\n type: SET_FILE_STORAGE,\n payload: fileStorage,\n});\n\n/**\n * Sets the specified workspace locally and saves it remotely\n * @param workspace The workspace to save\n */\nexport const saveWorkspace =\n (\n workspace: Workspace\n ): ThunkAction<\n Promise<Workspace>,\n RootState,\n never,\n PayloadAction<unknown>\n > =>\n (dispatch, getState) => {\n dispatch(setWorkspace(workspace));\n\n const { storage } = getState();\n const { workspaceStorage } = storage;\n return workspaceStorage.save(workspace);\n };\n\n/**\n * Update part of the workspace data and save it\n * @param workspaceData The properties to update in workspace data\n */\nexport const updateWorkspaceData =\n (\n workspaceData: Partial<WorkspaceData>\n ): ThunkAction<\n Promise<Workspace>,\n RootState,\n never,\n PayloadAction<unknown>\n > =>\n (dispatch, getState) => {\n const { workspace } = getState();\n const { data } = workspace;\n const newWorkspace = {\n ...workspace,\n data: {\n ...data,\n ...workspaceData,\n },\n };\n return dispatch(saveWorkspace(newWorkspace));\n };\n\n/**\n * Sets the specified settings locally and saves them remotely\n * @param settings The settings to save\n */\nexport const saveSettings =\n (\n settings: WorkspaceSettings\n ): ThunkAction<\n Promise<Workspace>,\n RootState,\n never,\n PayloadAction<unknown>\n > =>\n dispatch =>\n dispatch(updateWorkspaceData({ settings }));\n\nexport const setActiveTool: PayloadActionCreator<string> = payload => ({\n type: SET_ACTIVE_TOOL,\n payload,\n});\n\nexport const setPlugins: PayloadActionCreator<PluginModuleMap> = plugins => ({\n type: SET_PLUGINS,\n payload: plugins,\n});\n\nexport const setServerConfigValues: PayloadActionCreator<\n ServerConfigValues\n> = config => ({\n type: SET_SERVER_CONFIG_VALUES,\n payload: config,\n});\n"],"mappings":";;;;;SAOEA,WAAW,EACXC,QAAQ,EACRC,aAAa,EACbC,2BAA2B,EAC3BC,qBAAqB,EACrBC,eAAe,EACfC,gBAAgB,EAChBC,wBAAwB,EACxBC,OAAO;AAkBT,OAAO,IAAMC,OAAmC,GAAGC,IAAI,KAAK;EAC1DC,IAAI,EAAEV,QAAQ;EACdW,OAAO,EAAEF;AACX,CAAC,CAAC;AAEF,OAAO,IAAMG,MAAoC,GAAGC,GAAG,KAAK;EAC1DH,IAAI,EAAEH,OAAO;EACbI,OAAO,EAAEE;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,YAA6C,GAAGC,SAAS,KAAK;EACzEL,IAAI,EAAET,aAAa;EACnBU,OAAO,EAAEI;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,mBAEZ,GAAGC,gBAAgB,KAAK;EACvBP,IAAI,EAAEP,qBAAqB;EAC3BQ,OAAO,EAAEM;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,wBAEZ,GAAGC,qBAAqB,KAAK;EAC5BT,IAAI,EAAER,2BAA2B;EACjCS,OAAO,EAAEQ;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,cAEZ,GAAGC,WAAW,KAAK;EAClBX,IAAI,EAAEL,gBAAgB;EACtBM,OAAO,EAAEU;AACX,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,OAAO,IAAMC,aAAa,GAEtBP,SAAoB,IAOtB,CAACQ,QAAQ,EAAEC,QAAQ,KAAK;EACtBD,QAAQ,CAACT,YAAY,CAACC,SAAS,CAAC,CAAC;EAEjC,IAAM;IAAEU;EAAQ,CAAC,GAAGD,QAAQ,CAAC,CAAC;EAC9B,IAAM;IAAEP;EAAiB,CAAC,GAAGQ,OAAO;EACpC,OAAOR,gBAAgB,CAACS,IAAI,CAACX,SAAS,CAAC;AACzC,CAAC;;AAEH;AACA;AACA;AACA;AACA,OAAO,IAAMY,mBAAmB,GAE5BC,aAAqC,IAOvC,CAACL,QAAQ,EAAEC,QAAQ,KAAK;EACtB,IAAM;IAAET;EAAU,CAAC,GAAGS,QAAQ,CAAC,CAAC;EAChC,IAAM;IAAEK;EAAK,CAAC,GAAGd,SAAS;EAC1B,IAAMe,YAAY,GAAAC,aAAA,CAAAA,aAAA,KACbhB,SAAS;IACZc,IAAI,EAAAE,aAAA,CAAAA,aAAA,KACCF,IAAI,GACJD,aAAa;EACjB,EACF;EACD,OAAOL,QAAQ,CAACD,aAAa,CAACQ,YAAY,CAAC,CAAC;AAC9C,CAAC;;AAEH;AACA;AACA;AACA;AACA,OAAO,IAAME,YAAY,GAErBC,QAA2B,IAO7BV,QAAQ,IACNA,QAAQ,CAACI,mBAAmB,CAAC;EAAEM;AAAS,CAAC,CAAC,CAAC;AAE/C,OAAO,IAAMC,aAA2C,GAAGvB,OAAO,KAAK;EACrED,IAAI,EAAEN,eAAe;EACrBO;AACF,CAAC,CAAC;AAEF,OAAO,IAAMwB,UAAiD,GAAGC,OAAO,KAAK;EAC3E1B,IAAI,EAAEX,WAAW;EACjBY,OAAO,EAAEyB;AACX,CAAC,CAAC;AAEF,OAAO,IAAMC,qBAEZ,GAAGC,MAAM,KAAK;EACb5B,IAAI,EAAEJ,wBAAwB;EAC9BK,OAAO,EAAE2B;AACX,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createMockStore.js","names":["createMockStore","dispatch","jest","fn","undefined","getState","dashboardData","workspace","data","settings","subscribe"],"sources":["../src/createMockStore.ts"],"sourcesContent":["import store from './store';\n\nexport function createMockStore(): typeof store {\n return {\n dispatch: jest.fn(() => undefined),\n getState: jest.fn(() => ({\n dashboardData: {},\n workspace: {\n data: {\n settings: {},\n },\n },\n })),\n subscribe: jest.fn(() => undefined),\n } as unknown as typeof store;\n}\n\nexport default createMockStore;\n"],"mappings":"AAEA,OAAO,SAASA,eAAe,GAAiB;EAC9C,OAAO;IACLC,QAAQ,EAAEC,IAAI,CAACC,EAAE,CAAC,MAAMC,SAAS,CAAC;IAClCC,QAAQ,EAAEH,IAAI,CAACC,EAAE,CAAC,OAAO;MACvBG,aAAa,EAAE,CAAC,CAAC;MACjBC,SAAS,EAAE;QACTC,IAAI,EAAE;UACJC,QAAQ,EAAE,CAAC;QACb;MACF;IACF,CAAC,CAAC,CAAC;IACHC,SAAS,EAAER,IAAI,CAACC,EAAE,CAAC,MAAMC,SAAS;EACpC,CAAC;AACH;AAEA,eAAeJ,eAAe"}
1
+ {"version":3,"file":"createMockStore.js","names":["createMockStore","dispatch","jest","fn","undefined","getState","dashboardData","workspace","data","settings","subscribe"],"sources":["../src/createMockStore.ts"],"sourcesContent":["import store from './store';\n\nexport function createMockStore(): typeof store {\n return {\n dispatch: jest.fn(() => undefined),\n getState: jest.fn(() => ({\n dashboardData: {},\n workspace: {\n data: {\n settings: {},\n },\n },\n })),\n subscribe: jest.fn(() => undefined),\n } as unknown as typeof store;\n}\n\nexport default createMockStore;\n"],"mappings":"AAEA,OAAO,SAASA,eAAeA,CAAA,EAAiB;EAC9C,OAAO;IACLC,QAAQ,EAAEC,IAAI,CAACC,EAAE,CAAC,MAAMC,SAAS,CAAC;IAClCC,QAAQ,EAAEH,IAAI,CAACC,EAAE,CAAC,OAAO;MACvBG,aAAa,EAAE,CAAC,CAAC;MACjBC,SAAS,EAAE;QACTC,IAAI,EAAE;UACJC,QAAQ,EAAE,CAAC;QACb;MACF;IACF,CAAC,CAAC,CAAC;IACHC,SAAS,EAAER,IAAI,CAACC,EAAE,CAAC,MAAMC,SAAS;EACpC,CAAC;AACH;AAEA,eAAeJ,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"crashReporter.js","names":["Log","log","module","crashReporter","store","next","action","err","error","getState"],"sources":["../../src/middleware/crashReporter.ts"],"sourcesContent":["import type { Middleware } from 'redux';\nimport Log from '@deephaven/log';\n\nconst log = Log.module('redux-crashReporter');\n\nconst crashReporter: Middleware = store => next => action => {\n try {\n return next(action);\n } catch (err) {\n log.error(\n 'Error executing',\n action,\n ' with state ',\n store.getState(),\n ':',\n err\n );\n throw err;\n }\n};\n\nexport default crashReporter;\n"],"mappings":"AACA,OAAOA,GAAG,MAAM,gBAAgB;AAEhC,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAM,CAAC,qBAAqB,CAAC;AAE7C,IAAMC,aAAyB,GAAGC,KAAK,IAAIC,IAAI,IAAIC,MAAM,IAAI;EAC3D,IAAI;IACF,OAAOD,IAAI,CAACC,MAAM,CAAC;EACrB,CAAC,CAAC,OAAOC,GAAG,EAAE;IACZN,GAAG,CAACO,KAAK,CACP,iBAAiB,EACjBF,MAAM,EACN,cAAc,EACdF,KAAK,CAACK,QAAQ,EAAE,EAChB,GAAG,EACHF,GAAG,CACJ;IACD,MAAMA,GAAG;EACX;AACF,CAAC;AAED,eAAeJ,aAAa"}
1
+ {"version":3,"file":"crashReporter.js","names":["Log","log","module","crashReporter","store","next","action","err","error","getState"],"sources":["../../src/middleware/crashReporter.ts"],"sourcesContent":["import type { Middleware } from 'redux';\nimport Log from '@deephaven/log';\n\nconst log = Log.module('redux-crashReporter');\n\nconst crashReporter: Middleware = store => next => action => {\n try {\n return next(action);\n } catch (err) {\n log.error(\n 'Error executing',\n action,\n ' with state ',\n store.getState(),\n ':',\n err\n );\n throw err;\n }\n};\n\nexport default crashReporter;\n"],"mappings":"AACA,OAAOA,GAAG,MAAM,gBAAgB;AAEhC,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAM,CAAC,qBAAqB,CAAC;AAE7C,IAAMC,aAAyB,GAAGC,KAAK,IAAIC,IAAI,IAAIC,MAAM,IAAI;EAC3D,IAAI;IACF,OAAOD,IAAI,CAACC,MAAM,CAAC;EACrB,CAAC,CAAC,OAAOC,GAAG,EAAE;IACZN,GAAG,CAACO,KAAK,CACP,iBAAiB,EACjBF,MAAM,EACN,cAAc,EACdF,KAAK,CAACK,QAAQ,CAAC,CAAC,EAChB,GAAG,EACHF,GACF,CAAC;IACD,MAAMA,GAAG;EACX;AACF,CAAC;AAED,eAAeJ,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","names":["Log","log","module","logger","store","next","action","debug","result","getState"],"sources":["../../src/middleware/logger.ts"],"sourcesContent":["import type { Middleware } from 'redux';\nimport Log from '@deephaven/log';\n\nconst log = Log.module('redux-logger');\n\nconst logger: Middleware = store => next => action => {\n log.debug('dispatching', action);\n const result = next(action);\n log.debug('next state', store.getState());\n return result;\n};\n\nexport default logger;\n"],"mappings":"AACA,OAAOA,GAAG,MAAM,gBAAgB;AAEhC,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAM,CAAC,cAAc,CAAC;AAEtC,IAAMC,MAAkB,GAAGC,KAAK,IAAIC,IAAI,IAAIC,MAAM,IAAI;EACpDL,GAAG,CAACM,KAAK,CAAC,aAAa,EAAED,MAAM,CAAC;EAChC,IAAME,MAAM,GAAGH,IAAI,CAACC,MAAM,CAAC;EAC3BL,GAAG,CAACM,KAAK,CAAC,YAAY,EAAEH,KAAK,CAACK,QAAQ,EAAE,CAAC;EACzC,OAAOD,MAAM;AACf,CAAC;AAED,eAAeL,MAAM"}
1
+ {"version":3,"file":"logger.js","names":["Log","log","module","logger","store","next","action","debug","result","getState"],"sources":["../../src/middleware/logger.ts"],"sourcesContent":["import type { Middleware } from 'redux';\nimport Log from '@deephaven/log';\n\nconst log = Log.module('redux-logger');\n\nconst logger: Middleware = store => next => action => {\n log.debug('dispatching', action);\n const result = next(action);\n log.debug('next state', store.getState());\n return result;\n};\n\nexport default logger;\n"],"mappings":"AACA,OAAOA,GAAG,MAAM,gBAAgB;AAEhC,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAM,CAAC,cAAc,CAAC;AAEtC,IAAMC,MAAkB,GAAGC,KAAK,IAAIC,IAAI,IAAIC,MAAM,IAAI;EACpDL,GAAG,CAACM,KAAK,CAAC,aAAa,EAAED,MAAM,CAAC;EAChC,IAAME,MAAM,GAAGH,IAAI,CAACC,MAAM,CAAC;EAC3BL,GAAG,CAACM,KAAK,CAAC,YAAY,EAAEH,KAAK,CAACK,QAAQ,CAAC,CAAC,CAAC;EACzC,OAAOD,MAAM;AACf,CAAC;AAED,eAAeL,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"reducerRegistry.js","names":["ReducerRegistry","register","name","reducer","reducers","listener","setListener","reducerRegistry"],"sources":["../src/reducerRegistry.ts"],"sourcesContent":["import { Reducer, ReducersMapObject } from 'redux';\n\nexport type ReducerRegistryListener = (reducers: ReducersMapObject) => void;\n\n/**\n * A registry for registering reducers. Whenever a new reducer is added,\n * the reducers should be replaced in the store.\n *\n * See this blog post for some notes on redux modules/code splitting\n * http://nicolasgallagher.com/redux-modules-and-code-splitting/\n */\nexport class ReducerRegistry {\n reducers = {} as ReducersMapObject;\n\n listener: ReducerRegistryListener | null = null;\n\n register(name: string, reducer: Reducer): void {\n this.reducers = { ...this.reducers, [name]: reducer };\n this.listener?.(this.reducers);\n }\n\n setListener(listener: ReducerRegistryListener): void {\n this.listener = listener;\n }\n}\n\nconst reducerRegistry = new ReducerRegistry();\nexport default reducerRegistry;\n"],"mappings":";;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,eAAe,CAAC;EAAA;IAAA,kCAChB,CAAC,CAAC;IAAA,kCAE8B,IAAI;EAAA;EAE/CC,QAAQ,CAACC,IAAY,EAAEC,OAAgB,EAAQ;IAAA;IAC7C,IAAI,CAACC,QAAQ,mCAAQ,IAAI,CAACA,QAAQ;MAAE,CAACF,IAAI,GAAGC;IAAO,EAAE;IACrD,sBAAI,CAACE,QAAQ,mDAAb,wBAAI,EAAY,IAAI,CAACD,QAAQ,CAAC;EAChC;EAEAE,WAAW,CAACD,QAAiC,EAAQ;IACnD,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;AACF;AAEA,IAAME,eAAe,GAAG,IAAIP,eAAe,EAAE;AAC7C,eAAeO,eAAe"}
1
+ {"version":3,"file":"reducerRegistry.js","names":["ReducerRegistry","constructor","_defineProperty","register","name","reducer","_this$listener","reducers","_objectSpread","listener","call","setListener","reducerRegistry"],"sources":["../src/reducerRegistry.ts"],"sourcesContent":["import { Reducer, ReducersMapObject } from 'redux';\n\nexport type ReducerRegistryListener = (reducers: ReducersMapObject) => void;\n\n/**\n * A registry for registering reducers. Whenever a new reducer is added,\n * the reducers should be replaced in the store.\n *\n * See this blog post for some notes on redux modules/code splitting\n * http://nicolasgallagher.com/redux-modules-and-code-splitting/\n */\nexport class ReducerRegistry {\n reducers = {} as ReducersMapObject;\n\n listener: ReducerRegistryListener | null = null;\n\n register(name: string, reducer: Reducer): void {\n this.reducers = { ...this.reducers, [name]: reducer };\n this.listener?.(this.reducers);\n }\n\n setListener(listener: ReducerRegistryListener): void {\n this.listener = listener;\n }\n}\n\nconst reducerRegistry = new ReducerRegistry();\nexport default reducerRegistry;\n"],"mappings":";;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,eAAe,CAAC;EAAAC,YAAA;IAAAC,eAAA,mBAChB,CAAC,CAAC;IAAAA,eAAA,mBAE8B,IAAI;EAAA;EAE/CC,QAAQA,CAACC,IAAY,EAAEC,OAAgB,EAAQ;IAAA,IAAAC,cAAA;IAC7C,IAAI,CAACC,QAAQ,GAAAC,aAAA,CAAAA,aAAA,KAAQ,IAAI,CAACD,QAAQ;MAAE,CAACH,IAAI,GAAGC;IAAO,EAAE;IACrD,CAAAC,cAAA,OAAI,CAACG,QAAQ,cAAAH,cAAA,uBAAbA,cAAA,CAAAI,IAAA,KAAI,EAAY,IAAI,CAACH,QAAQ,CAAC;EAChC;EAEAI,WAAWA,CAACF,QAAiC,EAAQ;IACnD,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;AACF;AAEA,IAAMG,eAAe,GAAG,IAAIZ,eAAe,CAAC,CAAC;AAC7C,eAAeY,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"mergeReducer.js","names":["mergeReducer","type","initialState","state","action","newState","payload"],"sources":["../../../src/reducers/common/mergeReducer.ts"],"sourcesContent":["import type { Reducer } from 'redux';\n\n/**\n * Setup a merge reducer for a specific action type.\n * Will take the payload passed in and merge it with the previous state to update.\n * @param type The action type\n * @param initialState The initial state\n */\nexport default function mergeReducer<S>(\n type: string,\n initialState: S\n): Reducer<S> {\n return (state = initialState, action?) => {\n switch (action.type) {\n case type: {\n const newState = action.payload;\n if (newState == null) {\n return null;\n }\n\n if (state != null) {\n return {\n ...state,\n ...newState,\n };\n }\n\n return { ...newState };\n }\n default:\n return state;\n }\n };\n}\n"],"mappings":";;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,YAAY,CAClCC,IAAY,EACZC,YAAe,EACH;EACZ,OAAO,YAAmC;IAAA,IAAlCC,KAAK,uEAAGD,YAAY;IAAA,IAAEE,MAAO;IACnC,QAAQA,MAAM,CAACH,IAAI;MACjB,KAAKA,IAAI;QAAE;UACT,IAAMI,QAAQ,GAAGD,MAAM,CAACE,OAAO;UAC/B,IAAID,QAAQ,IAAI,IAAI,EAAE;YACpB,OAAO,IAAI;UACb;UAEA,IAAIF,KAAK,IAAI,IAAI,EAAE;YACjB,uCACKA,KAAK,GACLE,QAAQ;UAEf;UAEA,yBAAYA,QAAQ;QACtB;MACA;QACE,OAAOF,KAAK;IAAC;EAEnB,CAAC;AACH"}
1
+ {"version":3,"file":"mergeReducer.js","names":["mergeReducer","type","initialState","state","arguments","length","undefined","action","newState","payload","_objectSpread"],"sources":["../../../src/reducers/common/mergeReducer.ts"],"sourcesContent":["import type { Reducer } from 'redux';\n\n/**\n * Setup a merge reducer for a specific action type.\n * Will take the payload passed in and merge it with the previous state to update.\n * @param type The action type\n * @param initialState The initial state\n */\nexport default function mergeReducer<S>(\n type: string,\n initialState: S\n): Reducer<S> {\n return (state = initialState, action?) => {\n switch (action.type) {\n case type: {\n const newState = action.payload;\n if (newState == null) {\n return null;\n }\n\n if (state != null) {\n return {\n ...state,\n ...newState,\n };\n }\n\n return { ...newState };\n }\n default:\n return state;\n }\n };\n}\n"],"mappings":";;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,YAAYA,CAClCC,IAAY,EACZC,YAAe,EACH;EACZ,OAAO,YAAmC;IAAA,IAAlCC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGF,YAAY;IAAA,IAAEK,MAAO,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;IACnC,QAAQC,MAAM,CAACN,IAAI;MACjB,KAAKA,IAAI;QAAE;UACT,IAAMO,QAAQ,GAAGD,MAAM,CAACE,OAAO;UAC/B,IAAID,QAAQ,IAAI,IAAI,EAAE;YACpB,OAAO,IAAI;UACb;UAEA,IAAIL,KAAK,IAAI,IAAI,EAAE;YACjB,OAAAO,aAAA,CAAAA,aAAA,KACKP,KAAK,GACLK,QAAQ;UAEf;UAEA,OAAAE,aAAA,KAAYF,QAAQ;QACtB;MACA;QACE,OAAOL,KAAK;IAChB;EACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"replaceByIdReducer.js","names":["deepEqual","replaceByIdReducer","type","initialState","checkIfChanged","state","action","id","payload"],"sources":["../../../src/reducers/common/replaceByIdReducer.ts"],"sourcesContent":["import deepEqual from 'deep-equal';\nimport type { Reducer } from 'redux';\n\n/**\n * Setup a replace reducer for a specific action type.\n * Will take the payload passed in and replace the entity at the id with the payload\n * @param type The action type\n */\nexport default function replaceByIdReducer<S extends Record<string, unknown>>(\n type: string,\n initialState: S = {} as never,\n checkIfChanged = true\n): Reducer<S> {\n return (state = initialState, action?) => {\n switch (action.type) {\n case type: {\n const { id, payload } = action;\n if (checkIfChanged && deepEqual({ payload }, { payload: state[id] })) {\n return state;\n }\n return {\n ...state,\n [id]: payload,\n };\n }\n default:\n return state;\n }\n };\n}\n"],"mappings":";;;;;AAAA,OAAOA,SAAS,MAAM,YAAY;AAGlC;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,kBAAkB,CACxCC,IAAY,EAGA;EAAA,IAFZC,YAAe,uEAAG,CAAC,CAAC;EAAA,IACpBC,cAAc,uEAAG,IAAI;EAErB,OAAO,YAAmC;IAAA,IAAlCC,KAAK,uEAAGF,YAAY;IAAA,IAAEG,MAAO;IACnC,QAAQA,MAAM,CAACJ,IAAI;MACjB,KAAKA,IAAI;QAAE;UACT,IAAM;YAAEK,EAAE;YAAEC;UAAQ,CAAC,GAAGF,MAAM;UAC9B,IAAIF,cAAc,IAAIJ,SAAS,CAAC;YAAEQ;UAAQ,CAAC,EAAE;YAAEA,OAAO,EAAEH,KAAK,CAACE,EAAE;UAAE,CAAC,CAAC,EAAE;YACpE,OAAOF,KAAK;UACd;UACA,uCACKA,KAAK;YACR,CAACE,EAAE,GAAGC;UAAO;QAEjB;MACA;QACE,OAAOH,KAAK;IAAC;EAEnB,CAAC;AACH"}
1
+ {"version":3,"file":"replaceByIdReducer.js","names":["deepEqual","replaceByIdReducer","type","initialState","arguments","length","undefined","checkIfChanged","state","action","id","payload","_objectSpread"],"sources":["../../../src/reducers/common/replaceByIdReducer.ts"],"sourcesContent":["import deepEqual from 'deep-equal';\nimport type { Reducer } from 'redux';\n\n/**\n * Setup a replace reducer for a specific action type.\n * Will take the payload passed in and replace the entity at the id with the payload\n * @param type The action type\n */\nexport default function replaceByIdReducer<S extends Record<string, unknown>>(\n type: string,\n initialState: S = {} as never,\n checkIfChanged = true\n): Reducer<S> {\n return (state = initialState, action?) => {\n switch (action.type) {\n case type: {\n const { id, payload } = action;\n if (checkIfChanged && deepEqual({ payload }, { payload: state[id] })) {\n return state;\n }\n return {\n ...state,\n [id]: payload,\n };\n }\n default:\n return state;\n }\n };\n}\n"],"mappings":";;;;;AAAA,OAAOA,SAAS,MAAM,YAAY;AAGlC;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,kBAAkBA,CACxCC,IAAY,EAGA;EAAA,IAFZC,YAAe,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAAA,IACpBG,cAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAErB,OAAO,YAAmC;IAAA,IAAlCI,KAAK,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGD,YAAY;IAAA,IAAEM,MAAO,GAAAL,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;IACnC,QAAQG,MAAM,CAACP,IAAI;MACjB,KAAKA,IAAI;QAAE;UACT,IAAM;YAAEQ,EAAE;YAAEC;UAAQ,CAAC,GAAGF,MAAM;UAC9B,IAAIF,cAAc,IAAIP,SAAS,CAAC;YAAEW;UAAQ,CAAC,EAAE;YAAEA,OAAO,EAAEH,KAAK,CAACE,EAAE;UAAE,CAAC,CAAC,EAAE;YACpE,OAAOF,KAAK;UACd;UACA,OAAAI,aAAA,CAAAA,aAAA,KACKJ,KAAK;YACR,CAACE,EAAE,GAAGC;UAAO;QAEjB;MACA;QACE,OAAOH,KAAK;IAChB;EACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"replaceReducer.js","names":["replaceReducer","type","initialState","state","action","payload"],"sources":["../../../src/reducers/common/replaceReducer.ts"],"sourcesContent":["import type { Reducer } from 'redux';\n\n/**\n * Setup a replace reducer for a specific action type.\n * Will take the payload passed in and replace the previous state\n * @param type The action type\n * @param initialState The initial state\n */\nexport default function replaceReducer<S>(\n type: string,\n initialState: S\n): Reducer<S> {\n return (state = initialState, action?) => {\n switch (action.type) {\n case type: {\n return action.payload;\n }\n default:\n return state;\n }\n };\n}\n"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,cAAc,CACpCC,IAAY,EACZC,YAAe,EACH;EACZ,OAAO,YAAmC;IAAA,IAAlCC,KAAK,uEAAGD,YAAY;IAAA,IAAEE,MAAO;IACnC,QAAQA,MAAM,CAACH,IAAI;MACjB,KAAKA,IAAI;QAAE;UACT,OAAOG,MAAM,CAACC,OAAO;QACvB;MACA;QACE,OAAOF,KAAK;IAAC;EAEnB,CAAC;AACH"}
1
+ {"version":3,"file":"replaceReducer.js","names":["replaceReducer","type","initialState","state","arguments","length","undefined","action","payload"],"sources":["../../../src/reducers/common/replaceReducer.ts"],"sourcesContent":["import type { Reducer } from 'redux';\n\n/**\n * Setup a replace reducer for a specific action type.\n * Will take the payload passed in and replace the previous state\n * @param type The action type\n * @param initialState The initial state\n */\nexport default function replaceReducer<S>(\n type: string,\n initialState: S\n): Reducer<S> {\n return (state = initialState, action?) => {\n switch (action.type) {\n case type: {\n return action.payload;\n }\n default:\n return state;\n }\n };\n}\n"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,cAAcA,CACpCC,IAAY,EACZC,YAAe,EACH;EACZ,OAAO,YAAmC;IAAA,IAAlCC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGF,YAAY;IAAA,IAAEK,MAAO,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;IACnC,QAAQC,MAAM,CAACN,IAAI;MACjB,KAAKA,IAAI;QAAE;UACT,OAAOM,MAAM,CAACC,OAAO;QACvB;MACA;QACE,OAAOL,KAAK;IAChB;EACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.js","names":["EMPTY_OBJECT","Object","freeze","EMPTY_MAP","Map","getApi","store","api","getUser","user","getUserName","name","getUserGroups","groups","getStorage","storage","getCommandHistoryStorage","commandHistoryStorage","getFileStorage","fileStorage","getWorkspaceStorage","workspaceStorage","getWorkspace","workspace","getSettings","data","settings","getDefaultDateTimeFormat","defaultDateTimeFormat","getDefaultDecimalFormatOptions","defaultDecimalFormatOptions","getDefaultIntegerFormatOptions","defaultIntegerFormatOptions","getFormatter","formatter","getTimeZone","timeZone","getShowTimeZone","showTimeZone","getShowTSeparator","showTSeparator","getTruncateNumbersWithPound","truncateNumbersWithPound","getDisableMoveConfirmation","disableMoveConfirmation","getShortcutOverrides","shortcutOverrides","getDefaultNotebookSettings","defaultNotebookSettings","getActiveTool","activeTool","getPlugins","plugins"],"sources":["../src/selectors.ts"],"sourcesContent":["import type { RootState } from './store';\n\nconst EMPTY_OBJECT = Object.freeze({});\n\nconst EMPTY_MAP: ReadonlyMap<unknown, unknown> = new Map();\n\nexport type Selector<State extends RootState, R> = (store: State) => R;\n\ntype Settings<State extends RootState> = State['workspace']['data']['settings'];\n\nexport const getApi = <State extends RootState>(store: State): State['api'] =>\n store.api;\n\n// User\nexport const getUser = <State extends RootState>(store: State): State['user'] =>\n store.user;\n\nexport const getUserName = <State extends RootState>(\n store: State\n): State['user']['name'] => getUser(store).name;\n\nexport const getUserGroups = <State extends RootState>(\n store: State\n): State['user']['groups'] => getUser(store).groups;\n\n// Storage\nexport const getStorage = <State extends RootState>(\n store: State\n): State['storage'] => store.storage;\n\nexport const getCommandHistoryStorage = <State extends RootState>(\n store: State\n): State['storage']['commandHistoryStorage'] =>\n getStorage(store).commandHistoryStorage;\n\nexport const getFileStorage = <State extends RootState>(\n store: State\n): State['storage']['fileStorage'] => getStorage(store).fileStorage;\n\nexport const getWorkspaceStorage = <State extends RootState>(\n store: State\n): State['storage']['workspaceStorage'] => getStorage(store).workspaceStorage;\n\n// Workspace\nexport const getWorkspace = <State extends RootState>(\n store: State\n): State['workspace'] => store.workspace;\n\n// Settings\nexport const getSettings = <State extends RootState>(\n store: State\n): Settings<State> => getWorkspace(store).data.settings;\n\nexport const getDefaultDateTimeFormat = <State extends RootState>(\n store: State\n): Settings<State>['defaultDateTimeFormat'] =>\n getSettings(store).defaultDateTimeFormat;\n\nexport const getDefaultDecimalFormatOptions = <\n State extends RootState = RootState,\n>(\n store: State\n): Settings<State>['defaultDecimalFormatOptions'] =>\n getSettings(store).defaultDecimalFormatOptions ?? EMPTY_OBJECT;\n\nexport const getDefaultIntegerFormatOptions = <\n State extends RootState = RootState,\n>(\n store: State\n): Settings<State>['defaultIntegerFormatOptions'] =>\n getSettings(store).defaultIntegerFormatOptions ?? EMPTY_OBJECT;\n\nexport const getFormatter = <State extends RootState>(\n store: State\n): Settings<State>['formatter'] => getSettings(store).formatter;\n\nexport const getTimeZone = <State extends RootState>(\n store: State\n): Settings<State>['timeZone'] => getSettings(store).timeZone;\n\nexport const getShowTimeZone = <State extends RootState>(\n store: State\n): Settings<State>['showTimeZone'] => getSettings(store).showTimeZone;\n\nexport const getShowTSeparator = <State extends RootState>(\n store: State\n): Settings<State>['showTSeparator'] => getSettings(store).showTSeparator;\n\nexport const getTruncateNumbersWithPound = <\n State extends RootState = RootState,\n>(\n store: State\n): Settings<State>['truncateNumbersWithPound'] =>\n getSettings(store).truncateNumbersWithPound;\n\nexport const getDisableMoveConfirmation = <State extends RootState>(\n store: State\n): Settings<State>['disableMoveConfirmation'] =>\n getSettings(store).disableMoveConfirmation || false;\n\nexport const getShortcutOverrides = <State extends RootState>(\n store: State\n): Settings<State>['shortcutOverrides'] => getSettings(store).shortcutOverrides;\n\nexport const getDefaultNotebookSettings = <State extends RootState>(\n store: State\n): Settings<State>['defaultNotebookSettings'] =>\n getSettings(store).defaultNotebookSettings ?? EMPTY_OBJECT;\n\nexport const getActiveTool = <State extends RootState>(\n store: State\n): State['activeTool'] => store.activeTool;\n\n/**\n * @deprecated Use `usePlugins` hook instead or `PluginsContext` directly\n * @param store Redux store\n * @returns Plugins map\n */\nexport const getPlugins = <State extends RootState>(\n store: State\n): State['plugins'] => store.plugins ?? EMPTY_MAP;\n"],"mappings":"AAEA,IAAMA,YAAY,GA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0B,2BAA2B,yEAAIhC,YAAY;AAAA;AAEhE,OAAO,IAAMiC,YAAY,GACvB3B,KAAY,IACqBkB,WAAW,CAAClB,KAAK,CAAC,CAAC4B,SAAS;AAE/D,OAAO,IAAMC,WAAW,GACtB7B,KAAY,IACoBkB,WAAW,CAAClB,KAAK,CAAC,CAAC8B,QAAQ;AAE7D,OAAO,IAAMC,eAAe,GAC1B/B,KAAY,IACwBkB,WAAW,CAAClB,KAAK,CAAC,CAACgC,YAAY;AAErE,OAAO,IAAMC,iBAAiB,GAC5BjC,KAAY,IAC0BkB,WAAW,CAAClB,KAAK,CAAC,CAACkC,cAAc;AAEzE,OAAO,IAAMC,2BAA2B,GAGtCnC,KAAY,IAEZkB,WAAW,CAAClB,KAAK,CAAC,CAACoC,wBAAwB;AAE7C,OAAO,IAAMC,0BAA0B,GACrCrC,KAAY,IAEZkB,WAAW,CAAClB,KAAK,CAAC,CAACsC,uBAAuB,IAAI,KAAK;AAErD,OAAO,IAAMC,oBAAoB,GAC/BvC,KAAY,IAC6BkB,WAAW,CAAClB,KAAK,CAAC,CAACwC,iBAAiB;AAE/E,OAAO,IAAMC,0BAA0B,GACrCzC,KAAY;EAAA;EAAA,gCAEZkB,WAAW,CAAClB,KAAK,CAAC,CAAC0C,uBAAuB,yEAAIhD,YAAY;AAAA;AAE5D,OAAO,IAAMiD,aAAa,GACxB3C,KAAY,IACYA,KAAK,CAAC4C,UAAU;;AAE1C;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,GACrB7C,KAAY;EAAA;EAAA,yBACSA,KAAK,CAAC8C,OAAO,2DAAIjD,SAAS;AAAA"}
1
+ {"version":3,"file":"selectors.js","names":["EMPTY_OBJECT","Object","freeze","EMPTY_MAP","Map","getApi","store","api","getUser","user","getUserName","name","getUserGroups","groups","getStorage","storage","getCommandHistoryStorage","commandHistoryStorage","getFileStorage","fileStorage","getWorkspaceStorage","workspaceStorage","getWorkspace","workspace","getSettings","data","settings","getDefaultDateTimeFormat","defaultDateTimeFormat","getDefaultDecimalFormatOptions","_getSettings$defaultD","defaultDecimalFormatOptions","getDefaultIntegerFormatOptions","_getSettings$defaultI","defaultIntegerFormatOptions","getFormatter","formatter","getTimeZone","timeZone","getShowTimeZone","showTimeZone","getShowTSeparator","showTSeparator","getTruncateNumbersWithPound","truncateNumbersWithPound","getDisableMoveConfirmation","disableMoveConfirmation","getShortcutOverrides","shortcutOverrides","getDefaultNotebookSettings","_getSettings$defaultN","defaultNotebookSettings","getActiveTool","activeTool","getPlugins","_store$plugins","plugins"],"sources":["../src/selectors.ts"],"sourcesContent":["import type { RootState } from './store';\n\nconst EMPTY_OBJECT = Object.freeze({});\n\nconst EMPTY_MAP: ReadonlyMap<unknown, unknown> = new Map();\n\nexport type Selector<State extends RootState, R> = (store: State) => R;\n\ntype Settings<State extends RootState> = State['workspace']['data']['settings'];\n\nexport const getApi = <State extends RootState>(store: State): State['api'] =>\n store.api;\n\n// User\nexport const getUser = <State extends RootState>(store: State): State['user'] =>\n store.user;\n\nexport const getUserName = <State extends RootState>(\n store: State\n): State['user']['name'] => getUser(store).name;\n\nexport const getUserGroups = <State extends RootState>(\n store: State\n): State['user']['groups'] => getUser(store).groups;\n\n// Storage\nexport const getStorage = <State extends RootState>(\n store: State\n): State['storage'] => store.storage;\n\nexport const getCommandHistoryStorage = <State extends RootState>(\n store: State\n): State['storage']['commandHistoryStorage'] =>\n getStorage(store).commandHistoryStorage;\n\nexport const getFileStorage = <State extends RootState>(\n store: State\n): State['storage']['fileStorage'] => getStorage(store).fileStorage;\n\nexport const getWorkspaceStorage = <State extends RootState>(\n store: State\n): State['storage']['workspaceStorage'] => getStorage(store).workspaceStorage;\n\n// Workspace\nexport const getWorkspace = <State extends RootState>(\n store: State\n): State['workspace'] => store.workspace;\n\n// Settings\nexport const getSettings = <State extends RootState>(\n store: State\n): Settings<State> => getWorkspace(store).data.settings;\n\nexport const getDefaultDateTimeFormat = <State extends RootState>(\n store: State\n): Settings<State>['defaultDateTimeFormat'] =>\n getSettings(store).defaultDateTimeFormat;\n\nexport const getDefaultDecimalFormatOptions = <\n State extends RootState = RootState,\n>(\n store: State\n): Settings<State>['defaultDecimalFormatOptions'] =>\n getSettings(store).defaultDecimalFormatOptions ?? EMPTY_OBJECT;\n\nexport const getDefaultIntegerFormatOptions = <\n State extends RootState = RootState,\n>(\n store: State\n): Settings<State>['defaultIntegerFormatOptions'] =>\n getSettings(store).defaultIntegerFormatOptions ?? EMPTY_OBJECT;\n\nexport const getFormatter = <State extends RootState>(\n store: State\n): Settings<State>['formatter'] => getSettings(store).formatter;\n\nexport const getTimeZone = <State extends RootState>(\n store: State\n): Settings<State>['timeZone'] => getSettings(store).timeZone;\n\nexport const getShowTimeZone = <State extends RootState>(\n store: State\n): Settings<State>['showTimeZone'] => getSettings(store).showTimeZone;\n\nexport const getShowTSeparator = <State extends RootState>(\n store: State\n): Settings<State>['showTSeparator'] => getSettings(store).showTSeparator;\n\nexport const getTruncateNumbersWithPound = <\n State extends RootState = RootState,\n>(\n store: State\n): Settings<State>['truncateNumbersWithPound'] =>\n getSettings(store).truncateNumbersWithPound;\n\nexport const getDisableMoveConfirmation = <State extends RootState>(\n store: State\n): Settings<State>['disableMoveConfirmation'] =>\n getSettings(store).disableMoveConfirmation || false;\n\nexport const getShortcutOverrides = <State extends RootState>(\n store: State\n): Settings<State>['shortcutOverrides'] => getSettings(store).shortcutOverrides;\n\nexport const getDefaultNotebookSettings = <State extends RootState>(\n store: State\n): Settings<State>['defaultNotebookSettings'] =>\n getSettings(store).defaultNotebookSettings ?? EMPTY_OBJECT;\n\nexport const getActiveTool = <State extends RootState>(\n store: State\n): State['activeTool'] => store.activeTool;\n\n/**\n * @deprecated Use `usePlugins` hook instead or `PluginsContext` directly\n * @param store Redux store\n * @returns Plugins map\n */\nexport const getPlugins = <State extends RootState>(\n store: State\n): State['plugins'] => store.plugins ?? EMPTY_MAP;\n"],"mappings":"AAEA,IAAMA,YAAY,GAAGC,MAAM,CAACC,MAA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ts CHANGED
@@ -2,9 +2,8 @@ import type { FileStorage } from '@deephaven/file-explorer';
2
2
  import type { ValidKeyState } from '@deephaven/components';
3
3
  import type { dh as DhType } from '@deephaven/jsapi-types';
4
4
  import type { FormattingRule } from '@deephaven/jsapi-utils';
5
- import type { PluginModule } from '@deephaven/plugin';
5
+ import type { PluginModuleMap } from '@deephaven/plugin';
6
6
  import type { PayloadAction } from './actions';
7
- export type DeephavenPluginModuleMap = Map<string, PluginModule>;
8
7
  export interface UserPermissions {
9
8
  canUsePanels: boolean;
10
9
  canCopy: boolean;
@@ -73,7 +72,7 @@ export interface WorkspaceStorage {
73
72
  export type RootState = {
74
73
  api: DhType;
75
74
  activeTool: string;
76
- plugins: DeephavenPluginModuleMap;
75
+ plugins: PluginModuleMap;
77
76
  storage: Storage;
78
77
  user: User;
79
78
  workspace: Workspace;
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK/C,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,IAAI;IACnB,WAAW,EAAE,eAAe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OAAO,KAAK,CAAC,QAAQ,CAAC"}
package/dist/store.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","names":["applyMiddleware","createStore","compose","combineReducers","rootMiddleware","reducers","reducerRegistry","Object","entries","map","name","reducer","register","composeEnhancers","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","store","setListener","newReducers","replaceReducer"],"sources":["../src/store.ts"],"sourcesContent":["import { applyMiddleware, createStore, compose, combineReducers } from 'redux';\nimport type { FileStorage } from '@deephaven/file-explorer';\nimport type { ValidKeyState } from '@deephaven/components';\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport type { FormattingRule } from '@deephaven/jsapi-utils';\nimport type { PluginModule } from '@deephaven/plugin';\nimport type { PayloadAction } from './actions';\nimport rootMiddleware from './middleware';\nimport reducers from './reducers';\nimport reducerRegistry from './reducerRegistry';\n\nexport type DeephavenPluginModuleMap = Map<string, PluginModule>;\n\nexport interface UserPermissions {\n canUsePanels: boolean;\n canCopy: boolean;\n canDownloadCsv: boolean;\n canLogout: boolean;\n}\n\nexport interface User {\n permissions: UserPermissions;\n name: string;\n operateAs?: string;\n groups: string[];\n displayName?: string;\n fullName?: string;\n image?: string;\n}\n\nexport type ServerConfigValues = Map<string, string>;\n\nexport interface Storage {\n commandHistoryStorage: unknown;\n fileStorage: FileStorage;\n workspaceStorage: WorkspaceStorage;\n}\n\nexport interface WorkspaceSettings {\n defaultDateTimeFormat: string;\n defaultDecimalFormatOptions: {\n defaultFormatString?: string;\n };\n defaultIntegerFormatOptions: {\n defaultFormatString?: string;\n };\n formatter: FormattingRule[];\n timeZone: string;\n showTimeZone: boolean;\n showTSeparator: boolean;\n truncateNumbersWithPound: boolean;\n disableMoveConfirmation: boolean;\n shortcutOverrides?: {\n windows?: { [id: string]: ValidKeyState };\n mac?: { [id: string]: ValidKeyState };\n };\n defaultNotebookSettings: {\n isMinimapEnabled: boolean;\n };\n}\n\nexport interface WorkspaceData {\n closed: unknown[];\n filterSets: unknown[];\n layoutConfig: unknown[];\n links: unknown;\n settings: WorkspaceSettings;\n}\n\nexport interface Workspace {\n data: WorkspaceData;\n}\nexport type DashboardData = Record<string, unknown>;\n\nexport type WorkspaceStorageLoadOptions = {\n isConsoleAvailable: boolean;\n};\n\nexport interface WorkspaceStorage {\n load(options?: WorkspaceStorageLoadOptions): Promise<Workspace>;\n save(workspace: Workspace): Promise<Workspace>;\n}\n\nexport type RootState = {\n api: DhType;\n activeTool: string;\n plugins: DeephavenPluginModuleMap;\n storage: Storage;\n user: User;\n workspace: Workspace;\n dashboardData: Record<string, DashboardData>;\n layoutStorage: unknown;\n serverConfigValues: ServerConfigValues;\n};\n\nObject.entries(reducers).map(([name, reducer]) =>\n reducerRegistry.register(name, reducer)\n);\n\nconst composeEnhancers: typeof compose =\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?? compose;\n\nconst store = createStore<RootState, PayloadAction, unknown, unknown>(\n combineReducers(reducerRegistry.reducers),\n composeEnhancers(applyMiddleware(...rootMiddleware))\n);\n\nreducerRegistry.setListener(newReducers => {\n store.replaceReducer(combineReducers(newReducers));\n});\n\nexport default store;\n\nexport type RootDispatch = typeof store.dispatch;\n"],"mappings":";AAAA,SAASA,eAAe,EAAEC,WAAW,EAAEC,OAAO,EAAEC,eAAe,QAAQ,OAAO;AAAC,OAOxEC,cAAc;AAAA,OACdC,QAAQ;AAAA,OACRC,eAAe;AAsFtBC,MAAM,CAACC,OAAO,CAACH,QAAQ,CAAC,CAACI,GAAG,CAAC;EAAA,IAAC,CAACC,IAAI,EAAEC,OAAO,CAAC;EAAA,OAC3CL,eAAe,CAACM,QAAQ,CAACF,IAAI,EAAEC,OAAO,CAAC;AAAA,EACxC;AAED,IAAME,gBAAgC,GACpC;AAAA,wBACCC,MAAM,CAASC,oCAAoC,uEAAIb,OAAO;AAEjE,IAAMc,KAAK,GAAGf,WAAW,CACvBE,eAAe,CAACG,eAAe,CAACD,QAAQ,CAAC,EACzCQ,gBAAgB,CAACb,eAAe,CAAC,GAAGI,cAAc,CAAC,CAAC,CACrD;AAEDE,eAAe,CAACW,WAAW,CAACC,WAAW,IAAI;EACzCF,KAAK,CAACG,cAAc,CAAChB,eAAe,CAACe,WAAW,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAeF,KAAK"}
1
+ {"version":3,"file":"store.js","names":["applyMiddleware","createStore","compose","combineReducers","rootMiddleware","reducers","reducerRegistry","Object","entries","map","_ref","name","reducer","register","composeEnhancers","_REDUX_DEVTOOLS_EXTE","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","store","setListener","newReducers","replaceReducer"],"sources":["../src/store.ts"],"sourcesContent":["import { applyMiddleware, createStore, compose, combineReducers } from 'redux';\nimport type { FileStorage } from '@deephaven/file-explorer';\nimport type { ValidKeyState } from '@deephaven/components';\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport type { FormattingRule } from '@deephaven/jsapi-utils';\nimport type { PluginModuleMap } from '@deephaven/plugin';\nimport type { PayloadAction } from './actions';\nimport rootMiddleware from './middleware';\nimport reducers from './reducers';\nimport reducerRegistry from './reducerRegistry';\n\nexport interface UserPermissions {\n canUsePanels: boolean;\n canCopy: boolean;\n canDownloadCsv: boolean;\n canLogout: boolean;\n}\n\nexport interface User {\n permissions: UserPermissions;\n name: string;\n operateAs?: string;\n groups: string[];\n displayName?: string;\n fullName?: string;\n image?: string;\n}\n\nexport type ServerConfigValues = Map<string, string>;\n\nexport interface Storage {\n commandHistoryStorage: unknown;\n fileStorage: FileStorage;\n workspaceStorage: WorkspaceStorage;\n}\n\nexport interface WorkspaceSettings {\n defaultDateTimeFormat: string;\n defaultDecimalFormatOptions: {\n defaultFormatString?: string;\n };\n defaultIntegerFormatOptions: {\n defaultFormatString?: string;\n };\n formatter: FormattingRule[];\n timeZone: string;\n showTimeZone: boolean;\n showTSeparator: boolean;\n truncateNumbersWithPound: boolean;\n disableMoveConfirmation: boolean;\n shortcutOverrides?: {\n windows?: { [id: string]: ValidKeyState };\n mac?: { [id: string]: ValidKeyState };\n };\n defaultNotebookSettings: {\n isMinimapEnabled: boolean;\n };\n}\n\nexport interface WorkspaceData {\n closed: unknown[];\n filterSets: unknown[];\n layoutConfig: unknown[];\n links: unknown;\n settings: WorkspaceSettings;\n}\n\nexport interface Workspace {\n data: WorkspaceData;\n}\nexport type DashboardData = Record<string, unknown>;\n\nexport type WorkspaceStorageLoadOptions = {\n isConsoleAvailable: boolean;\n};\n\nexport interface WorkspaceStorage {\n load(options?: WorkspaceStorageLoadOptions): Promise<Workspace>;\n save(workspace: Workspace): Promise<Workspace>;\n}\n\nexport type RootState = {\n api: DhType;\n activeTool: string;\n plugins: PluginModuleMap;\n storage: Storage;\n user: User;\n workspace: Workspace;\n dashboardData: Record<string, DashboardData>;\n layoutStorage: unknown;\n serverConfigValues: ServerConfigValues;\n};\n\nObject.entries(reducers).map(([name, reducer]) =>\n reducerRegistry.register(name, reducer)\n);\n\nconst composeEnhancers: typeof compose =\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?? compose;\n\nconst store = createStore<RootState, PayloadAction, unknown, unknown>(\n combineReducers(reducerRegistry.reducers),\n composeEnhancers(applyMiddleware(...rootMiddleware))\n);\n\nreducerRegistry.setListener(newReducers => {\n store.replaceReducer(combineReducers(newReducers));\n});\n\nexport default store;\n\nexport type RootDispatch = typeof store.dispatch;\n"],"mappings":";AAAA,SAASA,eAAe,EAAEC,WAAW,EAAEC,OAAO,EAAEC,eAAe,QAAQ,OAAO;AAAC,OAOxEC,cAAc;AAAA,OACdC,QAAQ;AAAA,OACRC,eAAe;AAoFtBC,MAAM,CAACC,OAAO,CAACH,QAAQ,CAAC,CAACI,GAAG,CAACC,IAAA;EAAA,IAAC,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAAF,IAAA;EAAA,OAC3CJ,eAAe,CAACO,QAAQ,CAACF,IAAI,EAAEC,OAAO,CAAC;AAAA,CACzC,CAAC;AAED,IAAME,gBAAgC,GACpC;AAAA,CAAAC,oBAAA,GACCC,MAAM,CAASC,oCAAoC,cAAAF,oBAAA,cAAAA,oBAAA,GAAIb,OAAO;AAEjE,IAAMgB,KAAK,GAAGjB,WAAW,CACvBE,eAAe,CAACG,eAAe,CAACD,QAAQ,CAAC,EACzCS,gBAAgB,CAACd,eAAe,CAAC,GAAGI,cAAc,CAAC,CACrD,CAAC;AAEDE,eAAe,CAACa,WAAW,CAACC,WAAW,IAAI;EACzCF,KAAK,CAACG,cAAc,CAAClB,eAAe,CAACiB,WAAW,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAeF,KAAK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/redux",
3
- "version": "0.50.1-beta.5+c736708e",
3
+ "version": "0.51.0",
4
4
  "description": "Deephaven Redux",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -22,9 +22,10 @@
22
22
  "build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
23
23
  },
24
24
  "dependencies": {
25
- "@deephaven/jsapi-types": "^0.50.1-beta.5+c736708e",
26
- "@deephaven/jsapi-utils": "^0.50.1-beta.5+c736708e",
27
- "@deephaven/log": "^0.50.1-beta.5+c736708e",
25
+ "@deephaven/jsapi-types": "^0.51.0",
26
+ "@deephaven/jsapi-utils": "^0.51.0",
27
+ "@deephaven/log": "^0.51.0",
28
+ "@deephaven/plugin": "^0.51.0",
28
29
  "deep-equal": "^2.0.5",
29
30
  "redux-thunk": "2.4.1"
30
31
  },
@@ -38,5 +39,5 @@
38
39
  "publishConfig": {
39
40
  "access": "public"
40
41
  },
41
- "gitHead": "c736708e0dd39aa1d0f171f1e9ecf69023647021"
42
+ "gitHead": "54f7cc5d08a9c1a390b2e89a9fb84fe1018008eb"
42
43
  }