@equinor/roma-framework 4.0.0 → 5.0.0-beta.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.
package/cypress.mjs CHANGED
@@ -2,15 +2,15 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { FrameworkProvider } from "@equinor/fusion-framework-react";
3
3
  import { ModuleProvider } from "@equinor/fusion-framework-react-module";
4
4
  import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
5
- import { _ as __extends, S as Subscription, m as __spreadArray, n as __read, p as arrRemove, q as isScheduler, O as Observable, h as getDefaultExportFromCjs, k as of, l as from, A as Action$2, B as BehaviorSubject, f as firstValueFrom, I as IntlProvider } from "./router-JkkLp8wN.mjs";
5
+ import { _ as __extends, S as Subscription, n as __spreadArray, p as __read, q as arrRemove, t as isScheduler, O as Observable, h as getDefaultExportFromCjs, k as of, l as from, A as Action$2, B as BehaviorSubject, f as firstValueFrom, I as IntlProvider } from "./router-lZjM0_Ti.mjs";
6
6
  import * as React from "react";
7
- import require$$0 from "react-dom";
7
+ import ReactDOM$1 from "react-dom";
8
8
  var dateTimestampProvider = {
9
9
  now: function() {
10
10
  return Date.now();
11
11
  }
12
12
  };
13
- var Action$1 = function(_super) {
13
+ var Action$1 = (function(_super) {
14
14
  __extends(Action2, _super);
15
15
  function Action2(scheduler, work) {
16
16
  return _super.call(this) || this;
@@ -19,7 +19,7 @@ var Action$1 = function(_super) {
19
19
  return this;
20
20
  };
21
21
  return Action2;
22
- }(Subscription);
22
+ })(Subscription);
23
23
  var intervalProvider = {
24
24
  setInterval: function(handler, timeout) {
25
25
  var args = [];
@@ -33,7 +33,7 @@ var intervalProvider = {
33
33
  },
34
34
  delegate: void 0
35
35
  };
36
- var AsyncAction = function(_super) {
36
+ var AsyncAction = (function(_super) {
37
37
  __extends(AsyncAction2, _super);
38
38
  function AsyncAction2(scheduler, work) {
39
39
  var _this = _super.call(this, scheduler, work) || this;
@@ -120,8 +120,8 @@ var AsyncAction = function(_super) {
120
120
  }
121
121
  };
122
122
  return AsyncAction2;
123
- }(Action$1);
124
- var Scheduler = function() {
123
+ })(Action$1);
124
+ var Scheduler = (function() {
125
125
  function Scheduler2(schedulerActionCtor, now) {
126
126
  if (now === void 0) {
127
127
  now = Scheduler2.now;
@@ -137,8 +137,8 @@ var Scheduler = function() {
137
137
  };
138
138
  Scheduler2.now = dateTimestampProvider.now;
139
139
  return Scheduler2;
140
- }();
141
- var AsyncScheduler = function(_super) {
140
+ })();
141
+ var AsyncScheduler = (function(_super) {
142
142
  __extends(AsyncScheduler2, _super);
143
143
  function AsyncScheduler2(SchedulerAction, now) {
144
144
  if (now === void 0) {
@@ -171,7 +171,7 @@ var AsyncScheduler = function(_super) {
171
171
  }
172
172
  };
173
173
  return AsyncScheduler2;
174
- }(Scheduler);
174
+ })(Scheduler);
175
175
  var asyncScheduler = new AsyncScheduler(AsyncAction);
176
176
  var async = asyncScheduler;
177
177
  function isValidDate(value) {
@@ -190,7 +190,7 @@ function timer(dueTime, intervalOrScheduler, scheduler) {
190
190
  }
191
191
  }
192
192
  return new Observable(function(subscriber) {
193
- var due = isValidDate(dueTime) ? 50 - scheduler.now() : dueTime;
193
+ var due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
194
194
  if (due < 0) {
195
195
  due = 0;
196
196
  }
@@ -218,7 +218,7 @@ var hasRequiredClient;
218
218
  function requireClient() {
219
219
  if (hasRequiredClient) return client;
220
220
  hasRequiredClient = 1;
221
- var m = require$$0;
221
+ var m = ReactDOM$1;
222
222
  if (process.env.NODE_ENV === "production") {
223
223
  client.createRoot = m.createRoot;
224
224
  client.hydrateRoot = m.hydrateRoot;
@@ -676,9 +676,8 @@ const RomaCypressWrapper = ({
676
676
  );
677
677
  };
678
678
  const mount = (component, options = {}) => {
679
- var _a;
680
679
  return mount$1(
681
- /* @__PURE__ */ jsx(RomaCypressWrapper, { events: (_a = options.moduleConfig) == null ? void 0 : _a.events, children: component }),
680
+ /* @__PURE__ */ jsx(RomaCypressWrapper, { events: options.moduleConfig?.events, children: component }),
682
681
  options
683
682
  );
684
683
  };
@@ -1,4 +1,4 @@
1
- import { AppConfig, AppManifest, IAppClient } from '@equinor/fusion-framework-module-app';
1
+ import { AppBuildManifest, AppConfig, AppManifest, IAppClient } from '@equinor/fusion-framework-module-app';
2
2
  import { Observable } from 'rxjs';
3
3
  import { IHttpClient } from '@equinor/fusion-framework-module-http';
4
4
  import { FetchRequest } from '@equinor/fusion-framework-module-http/client';
@@ -20,7 +20,7 @@ export declare class CustomAppClient implements IAppClient {
20
20
  name: string;
21
21
  displayName: string;
22
22
  description: string;
23
- type: "template" | "standalone" | "report" | "launcher";
23
+ type: "template" | "standalone" | "report" | "launcher" | "template-app" | "landing-page";
24
24
  isPinned?: boolean | null | undefined;
25
25
  templateSource?: string | null | undefined;
26
26
  category?: ({
@@ -57,7 +57,7 @@ export declare class CustomAppClient implements IAppClient {
57
57
  accountClassification?: string | null | undefined;
58
58
  isExpired?: boolean | null | undefined;
59
59
  }[] | null | undefined;
60
- build?: import('@equinor/fusion-framework-module-app').AppBuildManifest | null | undefined;
60
+ build?: AppBuildManifest | null | undefined;
61
61
  accentColor?: string;
62
62
  categoryId: string;
63
63
  entry: string;
@@ -76,4 +76,8 @@ export declare class CustomAppClient implements IAppClient {
76
76
  updateAppSettings(): Observable<{}>;
77
77
  constructor(client: IHttpClient<FetchRequest, Response>, graphClient: IHttpClient<FetchRequest, Response>);
78
78
  [Symbol.dispose](): void;
79
+ getAppBuild(args: {
80
+ appKey: string;
81
+ tag?: string;
82
+ }): Observable<AppBuildManifest>;
79
83
  }
@@ -5,7 +5,6 @@ import { Action } from '@remix-run/router/history';
5
5
  import { AccountInfo } from '@equinor/fusion-framework-module-msal';
6
6
  import { Service } from '@equinor/fusion-framework-module-service-discovery';
7
7
  import { ServerSentEvent, SseConnection } from '../../../../modules/sse/src/index.ts';
8
- import { AuthClient, AuthRequest } from '@equinor/fusion-framework-module-msal/dist/types/v2/client';
9
8
  export declare class RomaMockedServiceDiscovery {
10
9
  readonly environment: {
11
10
  type: string;
@@ -19,18 +18,18 @@ export declare class RomaMockedServiceDiscovery {
19
18
  }
20
19
  export declare class RomaMockedAuthModule {
21
20
  readonly defaultAccount: AccountInfo;
22
- readonly defaultClient: AuthClient;
21
+ readonly defaultClient: any;
23
22
  readonly defaultConfig: {
24
23
  tenantId: string;
25
24
  clientId: string;
26
25
  redirectUri: string;
27
26
  config: {};
28
27
  };
29
- acquireAccessToken(req: AuthRequest): Promise<string | undefined>;
30
- acquireToken(req: AuthRequest): ReturnType<AuthClient['acquireToken']>;
31
- createClient(name?: string): AuthClient;
32
- getClient(name: string): AuthClient;
33
- handleRedirect(): ReturnType<AuthClient['handleRedirectPromise']>;
28
+ acquireAccessToken(req: any): Promise<string | undefined>;
29
+ acquireToken(req: any): ReturnType<any>;
30
+ createClient(name?: string): any;
31
+ getClient(name: string): any;
32
+ handleRedirect(): ReturnType<any['handleRedirectPromise']>;
34
33
  login(): Promise<void>;
35
34
  }
36
35
  declare class Navigator {
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "4.0.0",
3
+ "version": "5.0.0-beta.0",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
7
7
  "dependencies": {
8
- "@tanstack/react-query": "^5.0.0"
8
+ "@tanstack/react-query": "^5.0.0",
9
+ "immer": "^10.2.0",
10
+ "is-mergeable-object": "^1.1.1"
9
11
  },
10
12
  "exports": {
11
13
  ".": {