andoncloud-sdk 1.6.21 → 1.6.23

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,4 +1,2 @@
1
1
  export default IframeNavigation;
2
- declare function IframeNavigation({ items }: {
3
- items?: any[] | undefined;
4
- }): null;
2
+ declare function IframeNavigation(): null;
@@ -1,6 +1,5 @@
1
1
  export default Router;
2
- declare function Router({ children, iframeNavigationItems }: {
2
+ declare function Router({ children }: {
3
3
  children: any;
4
- iframeNavigationItems: any;
5
4
  }): React.JSX.Element;
6
5
  import React from "react";
@@ -1,6 +1,8 @@
1
1
  export default ErrorPage;
2
- declare function ErrorPage({ error }: {
2
+ declare function ErrorPage({ error, appVersion, apiVersion }: {
3
3
  error: any;
4
+ appVersion: any;
5
+ apiVersion: any;
4
6
  }): React.JSX.Element;
5
7
  declare namespace ErrorPage {
6
8
  namespace propTypes {
@@ -0,0 +1,7 @@
1
+ export default LoaderPage;
2
+ declare function LoaderPage(): React.JSX.Element;
3
+ declare namespace LoaderPage {
4
+ const propTypes: {};
5
+ const defaultProps: {};
6
+ }
7
+ import React from "react";
@@ -0,0 +1,5 @@
1
+ export function DisplayProvider({ children }: {
2
+ children: any;
3
+ }): React.JSX.Element;
4
+ export function useDisplay(): any;
5
+ import React from "react";
package/dist/index.d.ts CHANGED
@@ -38,10 +38,6 @@ declare module 'andoncloud-sdk' {
38
38
  locales: InitOptions['resources'];
39
39
  }
40
40
 
41
- interface RouterProps {
42
- iframeNavigationItems?: SidebarMenuItem[];
43
- }
44
-
45
41
  interface MetaProps {
46
42
  appVersion?: string;
47
43
  apiVersion?: string;
@@ -49,12 +45,15 @@ declare module 'andoncloud-sdk' {
49
45
  releasePageLink?: string;
50
46
  }
51
47
 
52
- interface DisplayMode {
48
+ interface Display {
53
49
  mode: 'standalone' | 'iframe';
54
50
  isEmbeddedMode: boolean;
51
+ iframeNavigationItems: SidebarMenuItem[];
52
+ setIframeNavigationItems: (items: SidebarMenuItem[]) => void;
55
53
  }
56
- export const getDisplayMode: () => DisplayMode['mode'];
57
- export const useDisplayMode: () => DisplayMode;
54
+ export const useDisplay: () => Display;
55
+
56
+ export const getDisplayMode: () => Display['mode'];
58
57
 
59
58
  interface AppProps {
60
59
  children: React.ReactNode;
@@ -63,7 +62,6 @@ declare module 'andoncloud-sdk' {
63
62
  gtmProps?: TagManagerArgs;
64
63
  i18nProps?: I18nProps;
65
64
  sentryProps?: Sentry.BrowserOptions;
66
- routerProps?: RouterProps;
67
65
  metaProps?: MetaProps;
68
66
  muiTheme?: Record<string, unknown>;
69
67
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const LIBRARY_VERSION = "1.6.21";
1
+ export declare const LIBRARY_VERSION = "1.6.23";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "andoncloud-sdk",
3
- "version": "1.6.21",
3
+ "version": "1.6.23",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "source": "src/index.js",