@deephaven/redux 0.8.2-beta.6 → 0.9.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/store.d.ts +2 -10
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js.map +1 -1
- package/package.json +8 -7
package/dist/store.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FileStorage } from '@deephaven/file-explorer';
|
|
2
2
|
import type { ValidKeyState } from '@deephaven/components';
|
|
3
|
+
import type { FormattingRule } from '@deephaven/iris-grid';
|
|
3
4
|
import type { PayloadAction } from './actions';
|
|
4
5
|
export interface User {
|
|
5
6
|
name: string;
|
|
@@ -11,15 +12,6 @@ export interface Storage {
|
|
|
11
12
|
fileStorage: FileStorage;
|
|
12
13
|
workspaceStorage: WorkspaceStorage;
|
|
13
14
|
}
|
|
14
|
-
interface WorkspaceFormattingRule {
|
|
15
|
-
columnType: string;
|
|
16
|
-
columnName: string;
|
|
17
|
-
format: {
|
|
18
|
-
label: string;
|
|
19
|
-
formatString: string;
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
15
|
export interface WorkspaceSettings {
|
|
24
16
|
defaultDateTimeFormat: string;
|
|
25
17
|
defaultDecimalFormatOptions?: {
|
|
@@ -28,7 +20,7 @@ export interface WorkspaceSettings {
|
|
|
28
20
|
defaultIntegerFormatOptions?: {
|
|
29
21
|
defaultFormatString?: string;
|
|
30
22
|
};
|
|
31
|
-
formatter:
|
|
23
|
+
formatter: FormattingRule[];
|
|
32
24
|
timeZone: string;
|
|
33
25
|
showTimeZone: boolean;
|
|
34
26
|
showTSeparator: boolean;
|
package/dist/store.d.ts.map
CHANGED
|
@@ -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,OA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tB,cAAc,EAAE,OAAO,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE;QAClB,OAAO,CAAC,EAAE;YAAE,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,CAAA;SAAE,CAAC;QAC1C,GAAG,CAAC,EAAE;YAAE,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,CAAA;SAAE,CAAC;KACvC,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,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,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAUD,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;
|
|
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;AAyDPC,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/iris-grid';\nimport type { PayloadAction } from './actions';\nimport rootMiddleware from './middleware';\nimport reducers from './reducers';\nimport reducerRegistry from './reducerRegistry';\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 disableMoveConfirmation: boolean;\n showSystemBadge: boolean;\n shortcutOverrides?: {\n windows?: { [id: string]: ValidKeyState };\n mac?: { [id: string]: ValidKeyState };\n };\n}\n\nexport interface WorkspaceData {\n settings: WorkspaceSettings;\n data: Record<string, unknown>;\n layoutConfig: Record<string, unknown>[];\n closed: Record<string, unknown>[];\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 interface RootState {\n user: User;\n storage: Storage;\n workspace: Workspace;\n activeTool: string;\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.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Deephaven Redux",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/cli": "^7.16.0",
|
|
39
|
-
"@deephaven/components": "^0.
|
|
40
|
-
"@deephaven/console": "^0.
|
|
41
|
-
"@deephaven/file-explorer": "^0.
|
|
42
|
-
"@deephaven/
|
|
43
|
-
"@deephaven/
|
|
39
|
+
"@deephaven/components": "^0.9.0",
|
|
40
|
+
"@deephaven/console": "^0.9.0",
|
|
41
|
+
"@deephaven/file-explorer": "^0.9.0",
|
|
42
|
+
"@deephaven/iris-grid": "^0.9.0",
|
|
43
|
+
"@deephaven/log": "^0.9.0",
|
|
44
|
+
"@deephaven/tsconfig": "^0.9.0",
|
|
44
45
|
"@types/deep-equal": "^1.0.1",
|
|
45
46
|
"cross-env": "^7.0.2",
|
|
46
47
|
"npm-run-all": "^4.1.5",
|
|
@@ -58,5 +59,5 @@
|
|
|
58
59
|
"publishConfig": {
|
|
59
60
|
"access": "public"
|
|
60
61
|
},
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "559f166018ce6e882a57351526fba18153912503"
|
|
62
63
|
}
|