@deephaven/redux 0.9.0 → 0.9.1-beta.10
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 -2
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js.map +1 -1
- package/package.json +11 -17
package/dist/store.d.ts
CHANGED
|
@@ -48,12 +48,12 @@ export interface WorkspaceStorage {
|
|
|
48
48
|
load(): Promise<Workspace>;
|
|
49
49
|
save(workspace: Workspace): Promise<Workspace>;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export declare type RootState = {
|
|
52
52
|
user: User;
|
|
53
53
|
storage: Storage;
|
|
54
54
|
workspace: Workspace;
|
|
55
55
|
activeTool: string;
|
|
56
|
-
}
|
|
56
|
+
};
|
|
57
57
|
declare const store: import("redux").Store<RootState, PayloadAction<unknown>>;
|
|
58
58
|
export default store;
|
|
59
59
|
export declare type RootDispatch = typeof store.dispatch;
|
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,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK/C,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,qB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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,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,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;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
|
|
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 type 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.9.
|
|
3
|
+
"version": "0.9.1-beta.10+8a6f7d2",
|
|
4
4
|
"description": "Deephaven Redux",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,17 +16,12 @@
|
|
|
16
16
|
"node": ">=10"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "cross-env NODE_ENV=production run-
|
|
20
|
-
"build-dev": "cross-env NODE_ENV=development run-
|
|
21
|
-
"build-steps": "run-p build:*",
|
|
19
|
+
"build": "cross-env NODE_ENV=production run-p build:*",
|
|
20
|
+
"build-dev": "cross-env NODE_ENV=development run-p build:*",
|
|
22
21
|
"babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward",
|
|
23
|
-
"types": "tsc",
|
|
24
22
|
"build:babel": "npm run babel",
|
|
25
|
-
"build:types": "npm run types -- --incremental",
|
|
26
23
|
"watch": "run-p watch:*",
|
|
27
24
|
"watch:babel": "npm run babel -- -w --skip-initial-build",
|
|
28
|
-
"watch:types": "npm run types -- -w --incremental --preserveWatchOutput",
|
|
29
|
-
"clean": "rimraf ./dist tsconfig.tsbuildinfo",
|
|
30
25
|
"prestart": "npm run build-dev",
|
|
31
26
|
"start": "cross-env NODE_ENV=development npm run watch"
|
|
32
27
|
},
|
|
@@ -36,18 +31,17 @@
|
|
|
36
31
|
},
|
|
37
32
|
"devDependencies": {
|
|
38
33
|
"@babel/cli": "^7.16.0",
|
|
39
|
-
"@deephaven/components": "^0.9.
|
|
40
|
-
"@deephaven/console": "^0.9.
|
|
41
|
-
"@deephaven/file-explorer": "^0.9.
|
|
42
|
-
"@deephaven/iris-grid": "^0.9.
|
|
43
|
-
"@deephaven/log": "^0.9.
|
|
44
|
-
"@deephaven/tsconfig": "^0.9.
|
|
34
|
+
"@deephaven/components": "^0.9.1-beta.10+8a6f7d2",
|
|
35
|
+
"@deephaven/console": "^0.9.1-beta.10+8a6f7d2",
|
|
36
|
+
"@deephaven/file-explorer": "^0.9.1-beta.10+8a6f7d2",
|
|
37
|
+
"@deephaven/iris-grid": "^0.9.1-beta.10+8a6f7d2",
|
|
38
|
+
"@deephaven/log": "^0.9.1-beta.10+8a6f7d2",
|
|
39
|
+
"@deephaven/tsconfig": "^0.9.1-beta.10+8a6f7d2",
|
|
45
40
|
"@types/deep-equal": "^1.0.1",
|
|
46
41
|
"cross-env": "^7.0.2",
|
|
47
42
|
"npm-run-all": "^4.1.5",
|
|
48
43
|
"redux": "^4.0.5",
|
|
49
|
-
"rimraf": "^3.0.2"
|
|
50
|
-
"typescript": "~4.3.2"
|
|
44
|
+
"rimraf": "^3.0.2"
|
|
51
45
|
},
|
|
52
46
|
"peerDependencies": {
|
|
53
47
|
"@deephaven/log": "^0.3.1",
|
|
@@ -59,5 +53,5 @@
|
|
|
59
53
|
"publishConfig": {
|
|
60
54
|
"access": "public"
|
|
61
55
|
},
|
|
62
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8a6f7d21a06c9b590682684844fb169153ee8340"
|
|
63
57
|
}
|