@equinor/roma-framework 1.1.0 → 2.0.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.
@@ -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 { Environment, Service } from '@equinor/fusion-framework-module-service-discovery';
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<Environment>;
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$: Observable<ServerSentEvent[]>;
101
+ messageList$: any;
102
102
  setAllRead(): Promise<void>;
103
- setReadState(eventId: string, read: boolean): Promise<void>;
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
- export declare const mount: (component: ReactNode, options?: MountOptions) => Cypress.Chainable<import('cypress/react18').MountReturn>;
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 {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
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/roma-framework.mjs",
17
- "require": "./cypress/roma-framework.js"
16
+ "import": "./cypress.mjs",
17
+ "require": "./cypress.js",
18
+ "types": "./lib/test-utils/roma-cypress-wrapper.d.ts"
18
19
  }
19
20
  }
20
21
  }