@entur-partner/app-shell-standalone 6.1.5 → 6.1.6-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.
@@ -1,15 +1,15 @@
1
- import React, { ReactNode } from 'react';
2
- import { Environment } from '@entur-partner/common';
3
- import { MicroFrontendPayload } from '@entur-partner/micro-frontend';
4
- import { AppShellProps, GetOrganisationsFn } from '@entur-partner/app-shell';
5
- export interface AppShellStandaloneProps extends Omit<AppShellProps, 'children'> {
6
- children: (options: MicroFrontendPayload) => ReactNode;
7
- /**
8
- * Either a function for fetching organisations or an url where organisations
9
- * can be fetched. Url will be called with access token in header.
10
- */
11
- getOrganisations: GetOrganisationsFn | string;
12
- environment?: Environment;
13
- postHogApiKey?: string;
14
- }
15
- export declare const AppShellStandalone: ({ children, audience, domain, clientId, decorateUser, getOrganisations, redirectUri, environment, }: AppShellStandaloneProps) => React.JSX.Element;
1
+ import { type AppShellProps, type GetOrganisationsFn } from "@entur-partner/app-shell";
2
+ import { type Environment } from "@entur-partner/common";
3
+ import type { MicroFrontendPayload } from "@entur-partner/micro-frontend";
4
+ import React, { type ReactNode } from "react";
5
+ export interface AppShellStandaloneProps extends Omit<AppShellProps, "children"> {
6
+ children: (options: MicroFrontendPayload) => ReactNode;
7
+ /**
8
+ * Either a function for fetching organisations or an url where organisations
9
+ * can be fetched. Url will be called with access token in header.
10
+ */
11
+ getOrganisations: GetOrganisationsFn | string;
12
+ environment?: Environment;
13
+ postHogApiKey?: string;
14
+ }
15
+ export declare const AppShellStandalone: ({ children, audience, domain, clientId, decorateUser, getOrganisations, redirectUri, environment, }: AppShellStandaloneProps) => React.JSX.Element;
package/dist/Menu.d.ts CHANGED
@@ -1,47 +1,47 @@
1
- import React from 'react';
2
- import { Environment } from '@entur-partner/common';
3
- import { AppShellValues, GetOrganisationsFn } from '@entur-partner/app-shell';
4
- declare global {
5
- interface Window {
6
- UC_UI: {
7
- showFirstLayer: () => void;
8
- showSecondLayer: () => void;
9
- };
10
- }
11
- }
12
- export declare const messages: {
13
- readonly nb: {
14
- switchLanguage: string;
15
- logout: string;
16
- appVersion: string;
17
- myProfile: string;
18
- cookieSettings: string;
19
- };
20
- readonly en: {
21
- switchLanguage: string;
22
- logout: string;
23
- appVersion: string;
24
- myProfile: string;
25
- cookieSettings: string;
26
- };
27
- readonly 'nb-NO': {
28
- switchLanguage: string;
29
- logout: string;
30
- appVersion: string;
31
- myProfile: string;
32
- cookieSettings: string;
33
- };
34
- readonly 'en-GB': {
35
- switchLanguage: string;
36
- logout: string;
37
- appVersion: string;
38
- myProfile: string;
39
- cookieSettings: string;
40
- };
41
- };
42
- interface MenuProps extends AppShellValues {
43
- getOrganisations: GetOrganisationsFn | string;
44
- environment?: Environment;
45
- }
46
- export declare const Menu: ({ getOrganisations, user, getToken, logout, environment, }: MenuProps) => React.JSX.Element;
47
- export {};
1
+ import { type AppShellValues, type GetOrganisationsFn } from "@entur-partner/app-shell";
2
+ import { type Environment } from "@entur-partner/common";
3
+ import React from "react";
4
+ declare global {
5
+ interface Window {
6
+ UC_UI: {
7
+ showFirstLayer: () => void;
8
+ showSecondLayer: () => void;
9
+ };
10
+ }
11
+ }
12
+ export declare const messages: {
13
+ readonly nb: {
14
+ switchLanguage: string;
15
+ logout: string;
16
+ appVersion: string;
17
+ myProfile: string;
18
+ cookieSettings: string;
19
+ };
20
+ readonly en: {
21
+ switchLanguage: string;
22
+ logout: string;
23
+ appVersion: string;
24
+ myProfile: string;
25
+ cookieSettings: string;
26
+ };
27
+ readonly "nb-NO": {
28
+ switchLanguage: string;
29
+ logout: string;
30
+ appVersion: string;
31
+ myProfile: string;
32
+ cookieSettings: string;
33
+ };
34
+ readonly "en-GB": {
35
+ switchLanguage: string;
36
+ logout: string;
37
+ appVersion: string;
38
+ myProfile: string;
39
+ cookieSettings: string;
40
+ };
41
+ };
42
+ interface MenuProps extends AppShellValues {
43
+ getOrganisations: GetOrganisationsFn | string;
44
+ environment?: Environment;
45
+ }
46
+ export declare const Menu: ({ getOrganisations, user, getToken, logout, environment, }: MenuProps) => React.JSX.Element;
47
+ export {};