andoncloud-sdk 1.4.55 → 1.4.57

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,7 +1,8 @@
1
1
  export default Container;
2
- declare function Container({ children, headerProps, styles, "data-testid": dataTestID }: {
2
+ declare function Container({ children, headerProps, sidebarMenuProps, styles, "data-testid": dataTestID }: {
3
3
  children: any;
4
4
  headerProps: any;
5
+ sidebarMenuProps: any;
5
6
  styles: any;
6
7
  "data-testid": any;
7
8
  }): React.JSX.Element;
@@ -9,11 +10,14 @@ declare namespace Container {
9
10
  namespace propTypes {
10
11
  const children: any;
11
12
  const headerProps: any;
13
+ const sidebarMenuProps: any;
12
14
  const styles: any;
13
15
  }
14
16
  namespace defaultProps {
15
17
  const headerProps_1: {};
16
18
  export { headerProps_1 as headerProps };
19
+ const sidebarMenuProps_1: {};
20
+ export { sidebarMenuProps_1 as sidebarMenuProps };
17
21
  }
18
22
  }
19
23
  import React from "react";
@@ -0,0 +1,5 @@
1
+ export default ExternalContent;
2
+ declare function ExternalContent({ src }: {
3
+ src: any;
4
+ }): React.JSX.Element;
5
+ import React from "react";
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- ({ position, scrolled, showAcLogo, leadingText, title, titleStyles, navProps, userProps, menuProps, styles, "data-testid": dataTestID, }: {
2
+ ({ position, scrolled, showAcLogo, leadingText, title, titleStyles, navProps, userProps, menuProps, sidebarEnabled, sidebarOpen, onSidebarToggle, styles, "data-testid": dataTestID, }: {
3
3
  position: any;
4
4
  scrolled: any;
5
5
  showAcLogo: any;
@@ -9,6 +9,9 @@ declare const _default: {
9
9
  navProps: any;
10
10
  userProps: any;
11
11
  menuProps: any;
12
+ sidebarEnabled: any;
13
+ sidebarOpen: any;
14
+ onSidebarToggle: any;
12
15
  styles: any;
13
16
  "data-testid": any;
14
17
  }): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ export default SidebarMenu;
2
+ declare function SidebarMenu({ open, items, width }: {
3
+ open: any;
4
+ items: any;
5
+ width: any;
6
+ }): React.JSX.Element;
7
+ import React from "react";
@@ -0,0 +1,5 @@
1
+ export default ExternalPage;
2
+ declare function ExternalPage({ url }: {
3
+ url: any;
4
+ }): React.JSX.Element;
5
+ import React from "react";
@@ -26,7 +26,7 @@ export const StoreContext: React.Context<{
26
26
  email: any;
27
27
  name: any;
28
28
  } | null>;
29
- signOut(): Promise<void>;
29
+ signOut(token: any): Promise<void>;
30
30
  };
31
31
  networkError: any;
32
32
  setLoading(value: any): void;
@@ -79,7 +79,7 @@ export function useStore(): {
79
79
  email: any;
80
80
  name: any;
81
81
  } | null>;
82
- signOut(): Promise<void>;
82
+ signOut(token: any): Promise<void>;
83
83
  };
84
84
  networkError: any;
85
85
  setLoading(value: any): void;
@@ -49,5 +49,5 @@ declare class SessionAPI {
49
49
  email: any;
50
50
  name: any;
51
51
  } | null>;
52
- signOut(): Promise<void>;
52
+ signOut(token: any): Promise<void>;
53
53
  }
package/dist/index.d.ts CHANGED
@@ -68,9 +68,21 @@ declare module 'andoncloud-sdk' {
68
68
  styles?: React.CSSProperties;
69
69
  }
70
70
 
71
+ interface SidebarMenuItem extends NavItem {
72
+ items?: NavItem[];
73
+ }
74
+
75
+ interface SidebarMenuProps {
76
+ enabled: boolean;
77
+ items: SidebarMenuItem[];
78
+ open?: boolean;
79
+ width?: number;
80
+ }
81
+
71
82
  interface ContainerProps {
72
83
  children: React.ReactNode;
73
84
  headerProps: HeaderProps;
85
+ sidebarMenuProps?: SidebarMenuProps;
74
86
  styles?: React.CSSProperties;
75
87
  }
76
88
  export const Container: React.FC<ContainerProps>;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const LIBRARY_VERSION = "1.4.55";
1
+ export declare const LIBRARY_VERSION = "1.4.57";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "andoncloud-sdk",
3
- "version": "1.4.55",
3
+ "version": "1.4.57",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "source": "src/index.js",
@@ -8,14 +8,16 @@
8
8
  "main": "dist/andoncloud-sdk.js",
9
9
  "module": "dist/andoncloud-sdk.js",
10
10
  "dependencies": {
11
- "@sentry/react": "^7.54.0",
12
- "@sentry/tracing": "^7.54.0",
11
+ "@sentry/react": "^7.57.0",
12
+ "@sentry/tracing": "^7.57.0",
13
13
  "classnames": "^2.3.2",
14
14
  "history": "^5.3.0",
15
+ "i18next-browser-languagedetector": "^7.1.0",
15
16
  "inter-ui": "^3.19.3",
16
17
  "js-cookie": "^3.0.5",
17
18
  "onscan.js": "^1.5.2",
18
- "react-hot-toast": "^2.4.1"
19
+ "react-hot-toast": "^2.4.1",
20
+ "react-iframe": "^1.8.5"
19
21
  },
20
22
  "scripts": {
21
23
  "build": "library-scripts build && copyfiles -f src/index.d.ts dist/",
@@ -43,33 +45,33 @@
43
45
  ]
44
46
  },
45
47
  "devDependencies": {
46
- "@babel/cli": "^7.22.5",
47
- "@babel/eslint-parser": "^7.22.5",
48
+ "@babel/cli": "^7.22.6",
49
+ "@babel/eslint-parser": "^7.22.7",
48
50
  "@emotion/react": "^11.11.1",
49
51
  "@emotion/styled": "^11.11.0",
50
- "@mui/icons-material": "^5.11.16",
51
- "@mui/lab": "^5.0.0-alpha.133",
52
- "@mui/material": "^5.13.4",
53
- "@testing-library/dom": "^9.3.0",
52
+ "@mui/icons-material": "^5.13.7",
53
+ "@mui/lab": "^5.0.0-alpha.135",
54
+ "@mui/material": "^5.13.7",
55
+ "@testing-library/dom": "^9.3.1",
54
56
  "@testing-library/jest-dom": "^5.16.5",
55
57
  "@testing-library/react": "^14.0.0",
56
- "@types/react": "^18.2.9",
57
- "@types/react-dom": "^18.2.4",
58
+ "@types/react": "^18.2.14",
59
+ "@types/react-dom": "^18.2.6",
58
60
  "andoncloud-library-scripts": "^1.0.9",
59
61
  "babel-preset-react-app": "^10.0.1",
60
62
  "copyfiles": "^2.4.1",
61
63
  "cross-env": "^7.0.3",
62
- "eslint": "^8.42.0",
64
+ "eslint": "^8.44.0",
63
65
  "eslint-config-andoncloud": "^1.0.0",
64
- "i18next": "^22.5.1",
66
+ "i18next": "^23.2.7",
65
67
  "mobx": "^6.9.0",
66
68
  "mobx-react-lite": "^3.4.3",
67
- "npm-check-updates": "^16.10.12",
69
+ "npm-check-updates": "^16.10.13",
68
70
  "npm-run-all": "^4.1.5",
69
71
  "react": "^18.2.0",
70
72
  "react-dom": "^18.2.0",
71
- "react-i18next": "^12.3.1",
72
- "react-router-dom": "^6.12.1",
73
+ "react-i18next": "^13.0.1",
74
+ "react-router-dom": "^6.14.1",
73
75
  "react-scripts": "^5.0.1"
74
76
  },
75
77
  "peerDependencies": {