@redhat-cloud-services/frontend-components-utilities 3.2.18 → 3.2.21
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.
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Dispatch, AnyAction } from 'redux';
|
|
2
|
-
export declare type Listener = {
|
|
3
|
-
callback: (
|
|
2
|
+
export declare type Listener<T = any> = {
|
|
3
|
+
callback: (data: {
|
|
4
|
+
data: T;
|
|
5
|
+
preventBubble: () => boolean;
|
|
6
|
+
}) => void;
|
|
4
7
|
on: string;
|
|
5
8
|
};
|
|
6
9
|
export declare class MiddlewareListener {
|
|
7
10
|
listeners: Set<Listener>;
|
|
8
11
|
constructor();
|
|
9
|
-
getListeners(): Set<Listener
|
|
12
|
+
getListeners(): Set<Listener<any>>;
|
|
10
13
|
getMiddleware(): () => (next: Dispatch<AnyAction>) => (action: AnyAction) => void;
|
|
11
14
|
addNew(listener: Listener): () => boolean;
|
|
12
15
|
callOnAction(action: string, data: unknown): boolean;
|
package/RBAC/RBAC.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { Access } from '@redhat-cloud-services/rbac-client';
|
|
2
|
-
import { ChromeAPI } from '@redhat-cloud-services/types';
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
insights: {
|
|
6
|
-
chrome: ChromeAPI;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
2
|
export interface RBAC {
|
|
11
3
|
isOrgAdmin: boolean;
|
|
12
4
|
permissions: Access[];
|
package/Registry/Registry.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export let registry: any
|
|
1
|
+
import { Middleware, compose } from 'redux';
|
|
2
|
+
import ReducerRegistry from '../ReducerRegistry';
|
|
3
|
+
export declare let registry: ReducerRegistry<any>;
|
|
4
|
+
export declare function registryDecorator(): (target: React.ComponentClass) => void;
|
|
5
|
+
export declare function getRegistry<T extends Record<string, unknown>>(initialState?: T, middleware?: Middleware[], composeEnhancersDefault?: typeof compose): ReducerRegistry<any>;
|
|
4
6
|
export default registryDecorator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-cloud-services/frontend-components-utilities",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.21",
|
|
4
4
|
"description": "Util functions for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@sentry/browser": "^5.4.0",
|
|
40
|
-
"@redhat-cloud-services/types": "0.0.
|
|
40
|
+
"@redhat-cloud-services/types": "^0.0.5",
|
|
41
41
|
"awesome-debounce-promise": "^2.1.0",
|
|
42
42
|
"axios": "^0.25.0",
|
|
43
43
|
"commander": ">=2.20.0",
|