@redhat-cloud-services/frontend-components-utilities 3.2.14 → 3.2.15
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/ReducerRegistry/ReducerRegistry.d.ts +15 -8
- package/ReducerRegistry/ReducerRegistry.js +1 -1
- package/ReducerRegistry/ReducerRegistry.js.map +1 -1
- package/ReducerRegistry/index.d.ts +2 -2
- package/ReducerRegistry/index.js.map +1 -1
- package/esm/ReducerRegistry/ReducerRegistry.js +1 -1
- package/esm/ReducerRegistry/ReducerRegistry.js.map +1 -1
- package/esm/ReducerRegistry/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export function
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { compose, ActionCreator } from 'redux';
|
|
2
|
+
export declare function applyReducerHash(reducerHash: any, initialState?: Record<string, unknown>): (state: Record<string, unknown> | undefined, action: {
|
|
3
|
+
type: PropertyKey;
|
|
4
|
+
}) => any;
|
|
5
|
+
export declare function dispatchActionsToStore(actions: Record<string, ActionCreator<any>>, store: any): Record<string, ActionCreator<any>>;
|
|
6
|
+
declare global {
|
|
7
|
+
interface Window {
|
|
8
|
+
REDUX_DEVTOOLS_EXTENSION_COMPOSE?: typeof compose;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class ReducerRegistry {
|
|
5
12
|
store: any;
|
|
6
|
-
reducers:
|
|
13
|
+
reducers: Record<string, any>;
|
|
14
|
+
constructor(initState?: any, middlewares?: never[], composeEnhancersDefault?: typeof compose);
|
|
7
15
|
getStore(): any;
|
|
8
|
-
register(newReducers: any): () => void;
|
|
16
|
+
register(newReducers: Record<string, any>): () => void;
|
|
9
17
|
}
|
|
10
|
-
export const reduxRegistry: ReducerRegistry;
|
|
18
|
+
export declare const reduxRegistry: ReducerRegistry;
|
|
11
19
|
export default ReducerRegistry;
|
|
12
|
-
import { compose } from "redux";
|
|
@@ -42,7 +42,7 @@ var ReducerRegistry = (function () {
|
|
|
42
42
|
if (initState === void 0) { initState = {}; }
|
|
43
43
|
if (middlewares === void 0) { middlewares = []; }
|
|
44
44
|
if (composeEnhancersDefault === void 0) { composeEnhancersDefault = redux_1.compose; }
|
|
45
|
-
var composeEnhancers = (typeof window !== 'undefined' && window.
|
|
45
|
+
var composeEnhancers = (typeof window !== 'undefined' && window.REDUX_DEVTOOLS_EXTENSION_COMPOSE) || composeEnhancersDefault;
|
|
46
46
|
this.store = (0, redux_1.createStore)(function (state) {
|
|
47
47
|
if (state === void 0) { state = initState; }
|
|
48
48
|
return state;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../src/ReducerRegistry/ReducerRegistry.
|
|
1
|
+
{"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../src/ReducerRegistry/ReducerRegistry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,+BAA8F;AAE9F,SAAgB,gBAAgB,CAAC,WAAgB,EAAE,YAA0C;IAA1C,6BAAA,EAAA,iBAA0C;IAC3F,OAAO,UAAU,KAAoB,EAAE,MAA6B;QAAnD,sBAAA,EAAA,oBAAoB;QACnC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE;YAClE,OAAO,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAChD;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AARD,4CAQC;AAED,SAAgB,sBAAsB,CAAC,OAA2C,EAAE,KAAU;IAC5F,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAChC,UAAC,GAAG,EAAE,IAAI;;QAAK,OAAA,uBACV,GAAG,gBACL,IAAI,IAAG;YAAC,oBAAkB;iBAAlB,UAAkB,EAAl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7D,CAA6D,CAAC;iBAClF,MAAM,CAAC,UAAC,GAAG,EAAE,EAAU;;oBAAT,GAAG,QAAA,EAAE,GAAG,QAAA;gBAAM,OAAA,uBAAM,GAAG,gBAAG,GAAG,IAAG,GAAG,OAAG;YAAxB,CAAwB,EAAE,EAAE,CAAC,CAAC;YAC7D,KAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAA,uBAAe,eAAM,KAAI,CAAC,QAAQ,EAAG,CAAC,CAAC;QACnE,CAAC,CAAC;IACJ,CAAC;IACH,sBAAC;AAAD,CAAC,AA7BD,IA6BC;AA7BY,0CAAe;AA+Bf,QAAA,aAAa,GAAG,IAAI,eAAe,EAAE,CAAC;AAEnD,kBAAe,eAAe,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from './ReducerRegistry';
|
|
2
|
+
export * from './ReducerRegistry';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/ReducerRegistry/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/ReducerRegistry/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAA4C;AAAnC,2HAAA,OAAO,OAAA;AAChB,oDAAkC"}
|
|
@@ -37,7 +37,7 @@ var ReducerRegistry = (function () {
|
|
|
37
37
|
if (initState === void 0) { initState = {}; }
|
|
38
38
|
if (middlewares === void 0) { middlewares = []; }
|
|
39
39
|
if (composeEnhancersDefault === void 0) { composeEnhancersDefault = compose; }
|
|
40
|
-
var composeEnhancers = (typeof window !== 'undefined' && window.
|
|
40
|
+
var composeEnhancers = (typeof window !== 'undefined' && window.REDUX_DEVTOOLS_EXTENSION_COMPOSE) || composeEnhancersDefault;
|
|
41
41
|
this.store = createStore(function (state) {
|
|
42
42
|
if (state === void 0) { state = initState; }
|
|
43
43
|
return state;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../../src/ReducerRegistry/ReducerRegistry.
|
|
1
|
+
{"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../../src/ReducerRegistry/ReducerRegistry.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAiB,MAAM,OAAO,CAAC;AAE9F,MAAM,UAAU,gBAAgB,CAAC,WAAgB,EAAE,YAA0C;IAA1C,6BAAA,EAAA,iBAA0C;IAC3F,OAAO,UAAU,KAAoB,EAAE,MAA6B;QAAnD,sBAAA,EAAA,oBAAoB;QACnC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE;YAClE,OAAO,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAChD;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAA2C,EAAE,KAAU;IAC5F,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAChC,UAAC,GAAG,EAAE,IAAI;;QAAK,OAAA,uBACV,GAAG,gBACL,IAAI,IAAG;YAAC,oBAAkB;iBAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;gBAAlB,+BAAkB;;YAAK,OAAA,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,OAAb,OAAO,EAAU,UAAU,EAAE;QAArD,CAAqD,OACrF;IAHa,CAGb,EACF,EAAE,CACH,CAAC;AACJ,CAAC;AAcD;IAGE,yBAAY,SAAgC,EAAE,WAAgB,EAAE,uBAAiC;QAArF,0BAAA,EAAA,YAAY,EAAoB;QAAE,4BAAA,EAAA,gBAAgB;QAAE,wCAAA,EAAA,iCAAiC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GAAG,IAAI,eAAe,EAAE,CAAC;AAEnD,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ReducerRegistry/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ReducerRegistry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
|