@equinor/roma-framework 1.1.0 → 2.0.1
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/cypress.mjs +29 -355
- package/dev-portal/index.d.ts +2 -0
- package/dev-portal/lib/api/ms-graph/api/user/find-users-by-mail.d.ts +2 -0
- package/dev-portal/lib/app-provider.d.ts +7 -11
- package/dev-portal/lib/dev-portal/config/AppClient.d.ts +19 -0
- package/dev-portal/lib/dev-portal/config/ServiceDiscoveryClient.d.ts +7 -0
- package/dev-portal/lib/dev-portal/config/config.d.ts +3 -0
- package/dev-portal/lib/hooks/use-manage-watch-list.d.ts +7 -0
- package/dev-portal/lib/hooks/use-watch-defaults.d.ts +100 -0
- package/dev-portal/lib/test-utils/modules.d.ts +9 -5
- package/dev-portal/lib/test-utils/roma-cypress-wrapper.d.ts +8 -1
- package/dev-portal/package.json +4 -3
- package/dev-portal/roma-framework.umd.js +28334 -21103
- package/index.d.ts +2 -0
- package/lib/api/ms-graph/api/user/find-users-by-mail.d.ts +2 -0
- package/lib/app-provider.d.ts +7 -11
- package/lib/dev-portal/config/AppClient.d.ts +19 -0
- package/lib/dev-portal/config/ServiceDiscoveryClient.d.ts +7 -0
- package/lib/dev-portal/config/config.d.ts +3 -0
- package/lib/hooks/use-manage-watch-list.d.ts +7 -0
- package/lib/hooks/use-watch-defaults.d.ts +100 -0
- package/lib/test-utils/modules.d.ts +9 -5
- package/lib/test-utils/roma-cypress-wrapper.d.ts +8 -1
- package/package.json +5 -4
- package/roma-framework.mjs +3068 -348
- package/{router-CrMzSazo.mjs → router-CD1QGwNJ.mjs} +210 -44
|
@@ -4,18 +4,18 @@ import { NavigationType } from 'react-router-dom';
|
|
|
4
4
|
import { Action } from '@remix-run/router/history';
|
|
5
5
|
import { AccountInfo } from '@equinor/fusion-framework-module-msal';
|
|
6
6
|
import { AuthClient, AuthRequest } from '@equinor/fusion-framework-module-msal/client';
|
|
7
|
-
import {
|
|
7
|
+
import { Service } from '@equinor/fusion-framework-module-service-discovery';
|
|
8
8
|
import { ServerSentEvent, SseConnection } from '../../../../modules/sse/src/index.ts';
|
|
9
9
|
export declare class RomaMockedServiceDiscovery {
|
|
10
10
|
readonly environment: {
|
|
11
11
|
type: string;
|
|
12
12
|
clientId: string;
|
|
13
|
-
services:
|
|
13
|
+
services: never[];
|
|
14
14
|
};
|
|
15
15
|
configureClient: Cypress.Omit<import('cypress/types/sinon').SinonStub<any[], any>, "withArgs"> & Cypress.SinonSpyAgent<import('cypress/types/sinon').SinonStub<any[], any>> & import('cypress/types/sinon').SinonStub<any[], any>;
|
|
16
16
|
createClient: Cypress.Omit<import('cypress/types/sinon').SinonStub<any[], any>, "withArgs"> & Cypress.SinonSpyAgent<import('cypress/types/sinon').SinonStub<any[], any>> & import('cypress/types/sinon').SinonStub<any[], any>;
|
|
17
17
|
resolveService(key: string): Promise<Service>;
|
|
18
|
-
resolveServices(): Promise<
|
|
18
|
+
resolveServices(): Promise<Array<Service>>;
|
|
19
19
|
}
|
|
20
20
|
export declare class RomaMockedAuthModule {
|
|
21
21
|
readonly defaultAccount: AccountInfo;
|
|
@@ -98,12 +98,16 @@ declare class Connection implements SseConnection {
|
|
|
98
98
|
abort: AbortController;
|
|
99
99
|
messageList: BehaviorSubject<Array<ServerSentEvent>>;
|
|
100
100
|
private interval$;
|
|
101
|
-
messageList$:
|
|
101
|
+
messageList$: any;
|
|
102
102
|
setAllRead(): Promise<void>;
|
|
103
|
-
setReadState
|
|
103
|
+
setReadState: Cypress.Omit<import('cypress/types/sinon').SinonStub<any[], any>, "withArgs"> & Cypress.SinonSpyAgent<import('cypress/types/sinon').SinonStub<any[], any>> & import('cypress/types/sinon').SinonStub<any[], any>;
|
|
104
|
+
constructor(messages?: Array<ServerSentEvent>);
|
|
104
105
|
}
|
|
105
106
|
export declare class RomaMockedSseModule {
|
|
107
|
+
messageList: Array<ServerSentEvent>;
|
|
108
|
+
connections: Record<string, any>;
|
|
106
109
|
connect(name: string): Connection;
|
|
107
110
|
private createConnection;
|
|
111
|
+
constructor(messageList?: Array<ServerSentEvent>);
|
|
108
112
|
}
|
|
109
113
|
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { MountOptions } from 'cypress/react18';
|
|
3
|
-
|
|
3
|
+
import { ServerSentEvent } from '../../../../modules/sse/src/index.ts';
|
|
4
|
+
type RomaMountOptions = MountOptions & {
|
|
5
|
+
moduleConfig?: {
|
|
6
|
+
events?: Array<ServerSentEvent>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const mount: (component: ReactNode, options?: RomaMountOptions) => Cypress.Chainable<import('cypress/react18').MountReturn>;
|
|
10
|
+
export {};
|
package/dev-portal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/roma-framework",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"repository": "https://github.com/equinor/tops-roma",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"private": false,
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
"require": "./roma-framework.js"
|
|
14
14
|
},
|
|
15
15
|
"./cypress": {
|
|
16
|
-
"import": "./cypress
|
|
17
|
-
"require": "./cypress
|
|
16
|
+
"import": "./cypress.mjs",
|
|
17
|
+
"require": "./cypress.js",
|
|
18
|
+
"types": "./lib/test-utils/roma-cypress-wrapper.d.ts"
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
}
|