andoncloud-sdk 1.6.10 → 1.6.12

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,10 +1,10 @@
1
1
  export default makeStyles;
2
- declare function makeStyles({ iframeMode }: {
3
- iframeMode: any;
2
+ declare function makeStyles({ isEmbeddedMode }: {
3
+ isEmbeddedMode: any;
4
4
  }): {
5
5
  root: {
6
6
  height: string;
7
- paddingTop: string;
7
+ paddingTop: string | number;
8
8
  mixBlendMode: string;
9
9
  background: string;
10
10
  };
@@ -2,5 +2,5 @@ export default Footer;
2
2
  declare function Footer({ appVersion, apiVersion }: {
3
3
  appVersion: any;
4
4
  apiVersion: any;
5
- }): React.JSX.Element;
5
+ }): React.JSX.Element | null;
6
6
  import React from "react";
@@ -0,0 +1,2 @@
1
+ export default MessageNavigator;
2
+ declare function MessageNavigator(): null;
@@ -0,0 +1,5 @@
1
+ export function DisplayModeProvider({ children }: {
2
+ children: any;
3
+ }): React.JSX.Element;
4
+ export function useDisplayMode(): any;
5
+ import React from "react";
@@ -0,0 +1 @@
1
+ export function getDisplayMode(): "standalone" | "iframe";
package/dist/index.d.ts CHANGED
@@ -45,6 +45,12 @@ declare module 'andoncloud-sdk' {
45
45
  releasePageLink?: string;
46
46
  }
47
47
 
48
+ interface DisplayMode {
49
+ mode: 'standalone' | 'iframe';
50
+ isEmbeddedMode: boolean;
51
+ }
52
+ export const useDisplayMode: () => DisplayMode;
53
+
48
54
  interface AppProps {
49
55
  children: React.ReactNode;
50
56
  baseUrl: string;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const LIBRARY_VERSION = "1.6.10";
1
+ export declare const LIBRARY_VERSION = "1.6.12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "andoncloud-sdk",
3
- "version": "1.6.10",
3
+ "version": "1.6.12",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "source": "src/index.js",