@equinor/roma-framework 3.0.0 → 4.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.
Files changed (46) hide show
  1. package/cypress.mjs +3 -112
  2. package/dev-portal/lib/api/ms-graph/api/group/find-group.d.ts +2 -0
  3. package/dev-portal/lib/api/ms-graph/api/group/get-groups-by-ids.d.ts +2 -0
  4. package/dev-portal/lib/api/ms-graph/api/user/get-user-by-id.d.ts +9 -0
  5. package/dev-portal/lib/api/ms-graph/api/user/search.d.ts +4 -0
  6. package/dev-portal/lib/api/ms-graph/index.d.ts +4 -0
  7. package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +10 -10
  8. package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +8 -8
  9. package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +2 -2
  10. package/dev-portal/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +4 -4
  11. package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +14 -14
  12. package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +2 -2
  13. package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +8 -8
  14. package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +20 -20
  15. package/dev-portal/lib/app-provider.d.ts +7 -1
  16. package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +2 -2
  17. package/dev-portal/lib/dev-portal/PortalStyles.d.ts +291 -15
  18. package/dev-portal/lib/dev-portal/config/AppClient.d.ts +62 -2
  19. package/dev-portal/lib/eds-event-provider.d.ts +2 -1
  20. package/dev-portal/lib/make-component.d.ts +1 -1
  21. package/dev-portal/lib/test-utils/roma-cypress-wrapper.d.ts +2 -2
  22. package/dev-portal/package.json +1 -1
  23. package/dev-portal/roma-framework.umd.js +4066 -3749
  24. package/lib/api/ms-graph/api/group/find-group.d.ts +2 -0
  25. package/lib/api/ms-graph/api/group/get-groups-by-ids.d.ts +2 -0
  26. package/lib/api/ms-graph/api/user/get-user-by-id.d.ts +9 -0
  27. package/lib/api/ms-graph/api/user/search.d.ts +4 -0
  28. package/lib/api/ms-graph/index.d.ts +4 -0
  29. package/lib/api/roma/api/app-controller/app-controller.d.ts +10 -10
  30. package/lib/api/roma/api/category-controller/category-controller.d.ts +8 -8
  31. package/lib/api/roma/api/environment-controller/environment-controller.d.ts +2 -2
  32. package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +4 -4
  33. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +14 -14
  34. package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +2 -2
  35. package/lib/api/roma/api/service-controller/service-controller.d.ts +8 -8
  36. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +20 -20
  37. package/lib/app-provider.d.ts +7 -1
  38. package/lib/dev-portal/ErrorViewer.d.ts +2 -2
  39. package/lib/dev-portal/PortalStyles.d.ts +291 -15
  40. package/lib/dev-portal/config/AppClient.d.ts +62 -2
  41. package/lib/eds-event-provider.d.ts +2 -1
  42. package/lib/make-component.d.ts +1 -1
  43. package/lib/test-utils/roma-cypress-wrapper.d.ts +2 -2
  44. package/package.json +1 -1
  45. package/roma-framework.mjs +338 -20
  46. package/{router-DDzmmkip.mjs → router-JkkLp8wN.mjs} +3 -3
@@ -5,6 +5,7 @@ import { FetchRequest } from '@equinor/fusion-framework-module-http/client';
5
5
  export declare class CustomAppClient implements IAppClient {
6
6
  #private;
7
7
  private client;
8
+ private graphClient;
8
9
  getAppConfig({}: {
9
10
  appKey: string;
10
11
  tag?: string;
@@ -12,8 +13,67 @@ export declare class CustomAppClient implements IAppClient {
12
13
  getAppManifest({ appKey }: {
13
14
  appKey: string;
14
15
  }): Observable<AppManifest>;
15
- getAppManifests(): Observable<never[] | AppManifest[]>;
16
+ getAppManifests(): Observable<never[] | {
17
+ hasAccess: boolean | undefined;
18
+ key: string;
19
+ appKey: string;
20
+ name: string;
21
+ displayName: string;
22
+ description: string;
23
+ type: "template" | "standalone" | "report" | "launcher";
24
+ isPinned?: boolean | null | undefined;
25
+ templateSource?: string | null | undefined;
26
+ category?: ({
27
+ id: string;
28
+ name: string;
29
+ displayName: string;
30
+ color: string;
31
+ defaultIcon: string;
32
+ sortOrder: number;
33
+ } & import('../../api/roma').CategoryDto) | undefined;
34
+ visualization?: {
35
+ color?: string | null | undefined;
36
+ icon?: string | null | undefined;
37
+ sortOrder: number;
38
+ } | null | undefined;
39
+ keywords?: string[] | null | undefined;
40
+ admins?: {
41
+ id: string;
42
+ azureUniqueId: string;
43
+ displayName: string;
44
+ mail?: string | null | undefined;
45
+ upn?: string | null | undefined;
46
+ accountType: string;
47
+ accountClassification?: string | null | undefined;
48
+ isExpired?: boolean | null | undefined;
49
+ }[] | null | undefined;
50
+ owners?: {
51
+ id: string;
52
+ azureUniqueId: string;
53
+ displayName: string;
54
+ mail?: string | null | undefined;
55
+ upn?: string | null | undefined;
56
+ accountType: string;
57
+ accountClassification?: string | null | undefined;
58
+ isExpired?: boolean | null | undefined;
59
+ }[] | null | undefined;
60
+ build?: import('@equinor/fusion-framework-module-app').AppBuildManifest | null | undefined;
61
+ accentColor?: string;
62
+ categoryId: string;
63
+ entry: string;
64
+ hide?: boolean;
65
+ icon?: string;
66
+ order?: number;
67
+ publishedDate?: string;
68
+ shortName: string;
69
+ tags?: string[];
70
+ version: import('../../api/roma').VersionDto;
71
+ config?: {
72
+ groups: Array<string>;
73
+ };
74
+ }[]>;
16
75
  getAppSettings(): Observable<{}>;
17
76
  updateAppSettings(): Observable<{}>;
18
- constructor(client: IHttpClient<FetchRequest, Response>);
77
+ constructor(client: IHttpClient<FetchRequest, Response>, graphClient: IHttpClient<FetchRequest, Response>);
78
+ [Symbol.dispose](): void;
19
79
  }
@@ -1,6 +1,7 @@
1
1
  import { IEventModuleProvider } from '@equinor/fusion-framework-module-event';
2
2
  import { ReactNode } from 'react';
3
- export declare const EdsEventProvider: ({ event, children }: {
3
+ export declare const EdsEventProvider: ({ event, children, portalContainer, }: {
4
4
  event: IEventModuleProvider;
5
5
  children: ReactNode;
6
+ portalContainer: string;
6
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -8,5 +8,5 @@ export type RomaComponentRenderArgs = FusionComponentRenderArgs & {
8
8
  query?: QueryClient;
9
9
  };
10
10
  export type RomaAppModuleInitiator<TModules extends Array<AnyModule> | unknown = unknown, TRef extends Fusion = Fusion, TEnv = AppEnv> = AppModuleInitiator<TModules, TRef, TEnv>;
11
- export declare const makeComponent: <TModules extends Array<AnyModule>, TRef extends Fusion = Fusion<unknown>, TEnv extends AppEnv = AppEnv>(Component: React.ReactNode, args: RomaComponentRenderArgs, configure?: RomaAppModuleInitiator<TModules, TRef, TEnv>) => React.LazyExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const makeComponent: <TModules extends Array<AnyModule>, TRef extends Fusion = Fusion, TEnv extends AppEnv = AppEnv>(Component: React.ReactNode, args: RomaComponentRenderArgs, configure?: RomaAppModuleInitiator<TModules, TRef, TEnv>) => React.LazyExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
12
12
  export declare const withStyleIsolation: (children: ReactNode, args: RomaComponentRenderArgs) => React.LazyExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -1,10 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
- import { MountOptions } from 'cypress/react18';
2
+ import { MountOptions } from 'cypress/react';
3
3
  import { ServerSentEvent } from '../../../../modules/sse/src/index.ts';
4
4
  type RomaMountOptions = MountOptions & {
5
5
  moduleConfig?: {
6
6
  events?: Array<ServerSentEvent>;
7
7
  };
8
8
  };
9
- export declare const mount: (component: ReactNode, options?: RomaMountOptions) => Cypress.Chainable<import('cypress/react18').MountReturn>;
9
+ export declare const mount: (component: ReactNode, options?: RomaMountOptions) => Cypress.Chainable<import('cypress/react').MountReturn>;
10
10
  export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,