@deephaven/redux
Advanced tools
Comparing version 0.9.4-beta.3 to 0.9.4-plugins.9
@@ -5,3 +5,3 @@ import type { Action } from 'redux'; | ||
import type { FileStorage } from '@deephaven/file-explorer'; | ||
import type { RootState, User, Workspace, WorkspaceData, WorkspaceSettings, WorkspaceStorage } from './store'; | ||
import type { DeephavenPluginModuleMap, RootState, User, Workspace, WorkspaceData, WorkspaceSettings, WorkspaceStorage } from './store'; | ||
export interface PayloadAction<P = unknown> extends Action<string> { | ||
@@ -32,2 +32,3 @@ payload: P; | ||
export declare const setActiveTool: PayloadActionCreator<string>; | ||
export declare const setPlugins: PayloadActionCreator<DeephavenPluginModuleMap>; | ||
//# sourceMappingURL=actions.d.ts.map |
@@ -7,3 +7,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
import { SET_USER, SET_WORKSPACE, SET_COMMAND_HISTORY_STORAGE, SET_WORKSPACE_STORAGE, SET_ACTIVE_TOOL, SET_FILE_STORAGE } from "./actionTypes.js"; | ||
import { SET_PLUGINS, SET_USER, SET_WORKSPACE, SET_COMMAND_HISTORY_STORAGE, SET_WORKSPACE_STORAGE, SET_ACTIVE_TOOL, SET_FILE_STORAGE } from "./actionTypes.js"; | ||
export var setUser = user => ({ | ||
@@ -75,2 +75,6 @@ type: SET_USER, | ||
}); | ||
export var setPlugins = plugins => ({ | ||
type: SET_PLUGINS, | ||
payload: plugins | ||
}); | ||
//# sourceMappingURL=actions.js.map |
@@ -6,2 +6,3 @@ export declare const SAVE_WORKSPACE = "SAVE_WORKSPACE"; | ||
export declare const SET_FILE_STORAGE = "SET_FILE_STORAGE"; | ||
export declare const SET_PLUGINS = "SET_PLUGINS"; | ||
export declare const SET_USER = "SET_USER"; | ||
@@ -8,0 +9,0 @@ export declare const SET_WORKSPACE = "SET_WORKSPACE"; |
@@ -6,2 +6,3 @@ export var SAVE_WORKSPACE = 'SAVE_WORKSPACE'; | ||
export var SET_FILE_STORAGE = 'SET_FILE_STORAGE'; | ||
export var SET_PLUGINS = 'SET_PLUGINS'; | ||
export var SET_USER = 'SET_USER'; | ||
@@ -8,0 +9,0 @@ export var SET_WORKSPACE = 'SET_WORKSPACE'; |
declare const reducers: { | ||
activeTool: import("redux").Reducer<null, import("redux").AnyAction>; | ||
plugins: import("redux").Reducer<null, import("redux").AnyAction>; | ||
storage: import("redux").Reducer<import("redux").CombinedState<{ | ||
@@ -4,0 +5,0 @@ commandHistoryStorage: null; |
import activeTool from "./activeTool.js"; | ||
import plugins from "./plugins.js"; | ||
import storage from "./storage/index.js"; | ||
@@ -7,2 +8,3 @@ import user from "./user.js"; | ||
activeTool, | ||
plugins, | ||
storage, | ||
@@ -9,0 +11,0 @@ user, |
@@ -23,3 +23,4 @@ import type { RootState, User, Storage, Workspace, WorkspaceSettings } from './store'; | ||
export declare const getActiveTool: Selector<RootState['activeTool']>; | ||
export declare const getPlugins: Selector<RootState['plugins']>; | ||
export {}; | ||
//# sourceMappingURL=selectors.d.ts.map |
var EMPTY_OBJECT = Object.freeze({}); | ||
var EMPTY_MAP = new Map(); | ||
// User | ||
@@ -34,2 +35,7 @@ export var getUser = store => store.user; | ||
export var getActiveTool = store => store.activeTool; | ||
export var getPlugins = store => { | ||
var _store$plugins; | ||
return (_store$plugins = store.plugins) !== null && _store$plugins !== void 0 ? _store$plugins : EMPTY_MAP; | ||
}; | ||
//# sourceMappingURL=selectors.js.map |
@@ -5,2 +5,5 @@ import type { FileStorage } from '@deephaven/file-explorer'; | ||
import type { PayloadAction } from './actions'; | ||
export interface DeephavenPluginModule { | ||
} | ||
export declare type DeephavenPluginModuleMap = Map<string, DeephavenPluginModule>; | ||
export interface User { | ||
@@ -53,6 +56,7 @@ name: string; | ||
export declare type RootState = { | ||
activeTool: string; | ||
plugins: DeephavenPluginModuleMap; | ||
storage: Storage; | ||
user: User; | ||
storage: Storage; | ||
workspace: Workspace; | ||
activeTool: string; | ||
}; | ||
@@ -59,0 +63,0 @@ declare const store: import("redux").Store<RootState, PayloadAction<unknown>>; |
import { applyMiddleware, createStore, compose, combineReducers } from 'redux'; | ||
import rootMiddleware from "./middleware/index.js"; | ||
import reducers from "./reducers/index.js"; | ||
import reducerRegistry from "./reducerRegistry.js"; | ||
import reducerRegistry from "./reducerRegistry.js"; // A DeephavenPluginModule. This interface should have new fields added to it from different levels of plugins. | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
Object.entries(reducers).map(_ref => { | ||
@@ -6,0 +8,0 @@ var [name, reducer] = _ref; |
{ | ||
"name": "@deephaven/redux", | ||
"version": "0.9.4-beta.3+8995da6", | ||
"version": "0.9.4-plugins.9+b9ea40a", | ||
"description": "Deephaven Redux", | ||
@@ -34,8 +34,8 @@ "author": "Deephaven Data Labs LLC", | ||
"@babel/cli": "^7.16.0", | ||
"@deephaven/components": "^0.9.4-beta.3+8995da6", | ||
"@deephaven/console": "^0.9.4-beta.3+8995da6", | ||
"@deephaven/file-explorer": "^0.9.4-beta.3+8995da6", | ||
"@deephaven/iris-grid": "^0.9.4-beta.3+8995da6", | ||
"@deephaven/log": "^0.9.4-beta.3+8995da6", | ||
"@deephaven/tsconfig": "^0.9.4-beta.3+8995da6", | ||
"@deephaven/components": "^0.9.4-plugins.9+b9ea40a", | ||
"@deephaven/console": "^0.9.4-plugins.9+b9ea40a", | ||
"@deephaven/file-explorer": "^0.9.4-plugins.9+b9ea40a", | ||
"@deephaven/iris-grid": "^0.9.4-plugins.9+b9ea40a", | ||
"@deephaven/log": "^0.9.4-plugins.9+b9ea40a", | ||
"@deephaven/tsconfig": "^0.9.4-plugins.9+b9ea40a", | ||
"@types/deep-equal": "^1.0.1", | ||
@@ -57,3 +57,3 @@ "cross-env": "^7.0.2", | ||
}, | ||
"gitHead": "8995da6b8da198c7df1b6c11d3e920fdeeaaa07e" | ||
"gitHead": "b9ea40ab24f060dc1a201caec2082d76a92752d6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
82187
99
600