@entur-partner/micro-frontend 2.4.8 → 2.4.10-alpha.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.
@@ -0,0 +1,11 @@
1
+ export interface Consents {
2
+ Usercentrics: {
3
+ consentGiven: boolean;
4
+ };
5
+ PostHog: {
6
+ consentGiven: boolean;
7
+ };
8
+ Sentry: {
9
+ consentGiven: boolean;
10
+ };
11
+ }
package/dist/Payload.d.ts CHANGED
@@ -26,7 +26,7 @@ export interface MicroFrontendPayload {
26
26
  user: User;
27
27
  /** Function for getting an accessToken */
28
28
  getToken(options?: GetTokenSilentlyOptions): Promise<string>;
29
- /** User selected language. Either 'nb' or 'en' */
29
+ /** User selected language. Either 'nb', 'en', 'en-GB' or 'no-NB' */
30
30
  language: string;
31
31
  /** Active organisation identifier*/
32
32
  organisationId: string;
package/dist/User.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Permission } from '@entur-partner/permission-client-node';
2
+ import { Consents } from './Consents';
2
3
  export interface User {
3
4
  sub: string;
4
5
  name: string;
@@ -8,6 +9,16 @@ export interface User {
8
9
  family_name: string;
9
10
  given_name: string;
10
11
  'https://entur.io/organisationID': number;
12
+ /**
13
+ * Permissions granted to the user. Comes from Permission-Store.
14
+ */
11
15
  permissions: Permission[];
16
+ /**
17
+ * Legacy permissions for Entur Partner.
18
+ */
12
19
  enturPartnerPermissions: string[];
20
+ /**
21
+ * Consents given by the user for various services like PostHog and Sentry.
22
+ */
23
+ consents: Consents;
13
24
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { User } from './User';
2
+ export { Consents } from './Consents';
2
3
  export { MicroFrontendPayload, MenuItem, NavigationFunction } from './Payload';
3
4
  export { MountEvent, UnmountEvent, createMountEvent, createUnmountEvent, MOUNT_EVENT_TYPE, UNMOUNT_EVENT_TYPE, RouteChangeEvent, ROUTE_CHANGE_EVENT_TYPE, RouteAction, } from './events';
4
5
  export { registerMicroFrontend } from './registerMicroFrontend';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur-partner/micro-frontend",
3
- "version": "2.4.8",
3
+ "version": "2.4.10-alpha.1",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/micro-frontend.esm.js",
@@ -43,5 +43,5 @@
43
43
  "reportFile": "jest-sonar-report.xml",
44
44
  "indent": 4
45
45
  },
46
- "gitHead": "31b0c0119884fb0424d24ea2714609a6245e213f"
46
+ "gitHead": "67ba46d287c09f1b4203431ba3f296ca2e4c8a8f"
47
47
  }