@deephaven/redux 0.15.1 → 0.15.2

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/store.d.ts CHANGED
@@ -48,6 +48,7 @@ export interface WorkspaceData {
48
48
  export interface Workspace {
49
49
  data: WorkspaceData;
50
50
  }
51
+ export declare type DashboardData = Record<string, unknown>;
51
52
  export interface WorkspaceStorage {
52
53
  load(): Promise<Workspace>;
53
54
  save(workspace: Workspace): Promise<Workspace>;
@@ -58,6 +59,7 @@ export declare type RootState = {
58
59
  storage: Storage;
59
60
  user: User;
60
61
  workspace: Workspace;
62
+ dashboardData: Record<string, DashboardData>;
61
63
  };
62
64
  declare const store: import("redux").Store<RootState, PayloadAction<unknown>>;
63
65
  export default store;
@@ -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,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAO/C,MAAM,WAAW,qBAAqB;CAAG;AAEzC,oBAAY,wBAAwB,GAAG,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AAE1E,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,2BAA2B,CAAC,E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AE,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,CAAA;SAAE,CAAC;KACvC,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,UAAU,EAAE,OAAO,EAAE,CAAC;IACtB,YAAY,EAAE,OAAO,EAAE,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,CAAC;CACrB;AACD,oBAAY,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC;IAC3B,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAChD;AAED,oBAAY,SAAS,GAAG;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,wBAAwB,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CAC9C,CAAC;AAUF,QAAA,MAAM,KAAK,0DAGV,CAAC;AAMF,eAAe,KAAK,CAAC;AAErB,oBAAY,YAAY,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC"}
package/dist/store.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/store.ts"],"names":["applyMiddleware","createStore","compose","combineReducers","rootMiddleware","reducers","reducerRegistry","Object","entries","map","name","reducer","register","composeEnhancers","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","store","setListener","newReducers","replaceReducer"],"mappings":"AAAA,SAASA,eAAT,EAA0BC,WAA1B,EAAuCC,OAAvC,EAAgDC,eAAhD,QAAuE,OAAvE;OAKOC,c;OACAC,Q;OACAC,e,8BAEP;AACA;;AA8DAC,MAAM,CAACC,OAAP,CAAeH,QAAf,EAAyBI,GAAzB,CAA6B;AAAA,MAAC,CAACC,IAAD,EAAOC,OAAP,CAAD;AAAA,SAC3BL,eAAe,CAACM,QAAhB,CAAyBF,IAAzB,EAA+BC,OAA/B,CAD2B;AAAA,CAA7B;AAIA,IAAME,gBAAgC,GACpC;AACCC,MAAD,CAAgBC,oCAAhB,IAAwDb,OAF1D;AAIA,IAAMc,KAAK,GAAGf,WAAW,CACvBE,eAAe,CAACG,eAAe,CAACD,QAAjB,CADQ,EAEvBQ,gBAAgB,CAACb,eAAe,CAAC,GAAGI,cAAJ,CAAhB,CAFO,CAAzB;AAKAE,eAAe,CAACW,WAAhB,CAA4BC,WAAW,IAAI;AACzCF,EAAAA,KAAK,CAACG,cAAN,CAAqBhB,eAAe,CAACe,WAAD,CAApC;AACD,CAFD;AAIA,eAAeF,KAAf","sourcesContent":["import { applyMiddleware, createStore, compose, combineReducers } from 'redux';\nimport type { FileStorage } from '@deephaven/file-explorer';\nimport type { ValidKeyState } from '@deephaven/components';\nimport type { FormattingRule } from '@deephaven/jsapi-utils';\nimport type { PayloadAction } from './actions';\nimport rootMiddleware from './middleware';\nimport reducers from './reducers';\nimport reducerRegistry from './reducerRegistry';\n\n// A DeephavenPluginModule. This interface should have new fields added to it from different levels of plugins.\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface DeephavenPluginModule {}\n\nexport type DeephavenPluginModuleMap = Map<string, DeephavenPluginModule>;\n\nexport interface User {\n name: string;\n operateAs: string;\n groups: string[];\n}\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}\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}\n\nexport interface WorkspaceStorage {\n load(): Promise<Workspace>;\n save(workspace: Workspace): Promise<Workspace>;\n}\n\nexport type RootState = {\n activeTool: string;\n plugins: DeephavenPluginModuleMap;\n storage: Storage;\n user: User;\n workspace: Workspace;\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"],"file":"store.js"}
1
+ {"version":3,"sources":["../src/store.ts"],"names":["applyMiddleware","createStore","compose","combineReducers","rootMiddleware","reducers","reducerRegistry","Object","entries","map","name","reducer","register","composeEnhancers","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","store","setListener","newReducers","replaceReducer"],"mappings":"AAAA,SAASA,eAAT,EAA0BC,WAA1B,EAAuCC,OAAvC,EAAgDC,eAAhD,QAAuE,OAAvE;OAKOC,c;OACAC,Q;OACAC,e,8BAEP;AACA;;AAgEAC,MAAM,CAACC,OAAP,CAAeH,QAAf,EAAyBI,GAAzB,CAA6B;AAAA,MAAC,CAACC,IAAD,EAAOC,OAAP,CAAD;AAAA,SAC3BL,eAAe,CAACM,QAAhB,CAAyBF,IAAzB,EAA+BC,OAA/B,CAD2B;AAAA,CAA7B;AAIA,IAAME,gBAAgC,GACpC;AACCC,MAAD,CAAgBC,oCAAhB,IAAwDb,OAF1D;AAIA,IAAMc,KAAK,GAAGf,WAAW,CACvBE,eAAe,CAACG,eAAe,CAACD,QAAjB,CADQ,EAEvBQ,gBAAgB,CAACb,eAAe,CAAC,GAAGI,cAAJ,CAAhB,CAFO,CAAzB;AAKAE,eAAe,CAACW,WAAhB,CAA4BC,WAAW,IAAI;AACzCF,EAAAA,KAAK,CAACG,cAAN,CAAqBhB,eAAe,CAACe,WAAD,CAApC;AACD,CAFD;AAIA,eAAeF,KAAf","sourcesContent":["import { applyMiddleware, createStore, compose, combineReducers } from 'redux';\nimport type { FileStorage } from '@deephaven/file-explorer';\nimport type { ValidKeyState } from '@deephaven/components';\nimport type { FormattingRule } from '@deephaven/jsapi-utils';\nimport type { PayloadAction } from './actions';\nimport rootMiddleware from './middleware';\nimport reducers from './reducers';\nimport reducerRegistry from './reducerRegistry';\n\n// A DeephavenPluginModule. This interface should have new fields added to it from different levels of plugins.\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface DeephavenPluginModule {}\n\nexport type DeephavenPluginModuleMap = Map<string, DeephavenPluginModule>;\n\nexport interface User {\n name: string;\n operateAs: string;\n groups: string[];\n}\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}\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 interface WorkspaceStorage {\n load(): Promise<Workspace>;\n save(workspace: Workspace): Promise<Workspace>;\n}\n\nexport type RootState = {\n activeTool: string;\n plugins: DeephavenPluginModuleMap;\n storage: Storage;\n user: User;\n workspace: Workspace;\n dashboardData: Record<string, DashboardData>;\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"],"file":"store.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/redux",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Deephaven Redux",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -27,13 +27,13 @@
27
27
  "start": "cross-env NODE_ENV=development npm run watch"
28
28
  },
29
29
  "dependencies": {
30
- "@deephaven/jsapi-utils": "^0.15.1",
31
- "@deephaven/log": "^0.15.1",
30
+ "@deephaven/jsapi-utils": "^0.15.2",
31
+ "@deephaven/log": "^0.15.2",
32
32
  "deep-equal": "^2.0.5",
33
33
  "redux-thunk": "^2.3.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@deephaven/tsconfig": "^0.15.0"
36
+ "@deephaven/tsconfig": "^0.15.2"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "redux": "^4.0.5"
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "ebdc3452ada8cca6744aee0feef98313ebaef3ba"
47
+ "gitHead": "e654e3c883bb34646325b822b0710f6e2cb61142"
48
48
  }