@device-management-toolkit/ui-toolkit-react 4.0.2

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.
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # UI Toolkit React
2
+
3
+ ![CodeQL](https://img.shields.io/github/actions/workflow/status/device-management-toolkit/ui-toolkit-react/codeql-analysis.yml?style=for-the-badge&label=CodeQL&logo=github)
4
+ ![Build](https://img.shields.io/github/actions/workflow/status/device-management-toolkit/ui-toolkit-react/ci.yml?style=for-the-badge&logo=github)
5
+ ![Codecov](https://img.shields.io/codecov/c/github/device-management-toolkit/ui-toolkit-react?style=for-the-badge&logo=codecov)
6
+ [![OSSF-Scorecard Score](https://img.shields.io/ossf-scorecard/github.com/device-management-toolkit/ui-toolkit-react?style=for-the-badge&label=OSSF%20Score)](https://api.securityscorecards.dev/projects/github.com/open-amt-cloud-toolkit/ui-toolkir-react)
7
+ [![Discord](https://img.shields.io/discord/1063200098680582154?style=for-the-badge&label=Discord&logo=discord&logoColor=white&labelColor=%235865F2&link=https%3A%2F%2Fdiscord.gg%2FDKHeUNEWVH)](https://discord.gg/DKHeUNEWVH)
8
+
9
+
10
+ > Disclaimer: Production viable releases are tagged and listed under 'Releases'. All other check-ins should be considered 'in-development' and should not be used in production
11
+
12
+ > IMPORTANT: For now, we are continuing to publish both @device-management-toolkit/ui-toolkit-react and @open-amt-cloud-toolkit/ui-toolkit-react npm packages to avoid a breaking change. Please update your package.json at your earliest convenience for when we cease to publish @open-amt-cloud-toolkit/ui-toolkit-react. This is in effort to support the renaming of the toolkit.
13
+
14
+
15
+ The UI Toolkit provides prebuilt, React-based components for integrating remote management features such as a keyboard, video, mouse (KVM) control into a web-based management console UI. The controls have a reference UI and layout that can be customized further to seamlessly integrate with existing management console solutions.
16
+
17
+ **For detailed documentation** about [Getting Started with the UI Toolkit](https://device-management-toolkit.github.io/docs/2.0/Tutorials/uitoolkit) or other features of the Device Management Toolkit, see the [docs](https://device-management-toolkit.github.io/docs/).
18
+
19
+
20
+ ## Prerequisites
21
+
22
+ To succesfully deploy the UI Toolkit using React, the following software must be installed on your development system:
23
+
24
+ - [Node.js* LTS 18.x.x or newer](https://nodejs.org/en/)
25
+ - [git](https://git-scm.com/downloads)
26
+ - [Visual Studio Code](https://code.visualstudio.com/) or any other IDE of choice
27
+
28
+
29
+ ## Create a New React App
30
+
31
+ The React app can be created in any preferred development directory. The MPS can continue to run while creating and running the app.
32
+
33
+ 1. In a Command Prompt or Terminal, go to your preferred development directory.
34
+
35
+ 2. Run the following commands to create sample React app named `my-app`.
36
+
37
+ ``` bash
38
+ npx create-react-app my-app && cd my-app
39
+ ```
40
+
41
+ ## Add UI Toolkit
42
+
43
+ 1. Run the following command to add the UI Toolkit and install the required dependencies:
44
+
45
+ ``` bash
46
+ npm install @device-management-toolkit/ui-toolkit-react
47
+ ```
48
+
49
+ 2. Run the following commands to start the web UI locally:
50
+
51
+ ``` bash
52
+ npm start
53
+ ```
54
+
55
+ 3. By default, React apps run on port `3000`. If port `3000` is already used by the MPS server or any other application, you'll be prompted to use another port. If this happens, enter 'Y'.
56
+
57
+ Sample Output:
58
+
59
+ ```
60
+ You can now view my-app in the browser.
61
+ Local: http://localhost:3000
62
+ On Your Network: http://172.16.17.4:3000
63
+ ```
64
+
65
+
66
+ ## Additional Resources
67
+
68
+ - For detailed documentation and Getting Started, [visit the docs site](https://device-management-toolkit.github.io/docs).
69
+
70
+ - Looking to contribute? [Find more information here about contribution guidelines and practices](.\CONTRIBUTING.md).
71
+
72
+ - Find a bug? Or have ideas for new features? [Open a new Issue](https://github.com/device-management-toolkit/ui-toolkit-react/issues).
73
+
74
+ - Need additional support or want to get the latest news and events about Open AMT? Connect with the team directly through Discord.
75
+
76
+ [![Discord Banner 1](https://discordapp.com/api/guilds/1063200098680582154/widget.png?style=banner2)](https://discord.gg/DKHeUNEWVH)
77
+
78
+ ## License Note
79
+
80
+ If you are distributing the FortAwesome Icons, please provide attribution to the source per the [CC-by 4.0](https://creativecommons.org/licenses/by/4.0/deed.ast) license obligations.
81
+
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@device-management-toolkit/ui-toolkit-react",
3
+ "version": "4.0.2",
4
+ "description": "React UI controls for Intel AMT features",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "prepublishOnly": "npx mkdirp dist && cp package.json dist",
8
+ "start": "webpack serve --config webpack.config.dev.js",
9
+ "build": "webpack --config webpack.config.prod.js",
10
+ "build-ext": "npm run build-types && webpack --config webpack.config.externals.js",
11
+ "lint": "eslint . --ext .ts",
12
+ "test": "jest --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand --updateSnapshot",
13
+ "coverage": "jest --coverage --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand ",
14
+ "test-kvm": "tsc && node ./dist/test/kvmui.test.ws.js",
15
+ "build-types": "tsc --emitDeclarationOnly -p tsconfig.build.json"
16
+ },
17
+ "author": "",
18
+ "license": "Apache-2.0",
19
+ "bugs": {
20
+ "url": "https://github.com/device-management-toolkit/ui-toolkit-react/issues"
21
+ },
22
+ "homepage": "https://github.com/device-management-toolkit/ui-toolkit-react#readme",
23
+ "types": "index.d.ts",
24
+ "peerDependencies": {
25
+ "react": "^18.2.0",
26
+ "react-dom": "^18.2.0"
27
+ },
28
+ "private": false,
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "dependencies": {
33
+ "@fortawesome/fontawesome-svg-core": "^6.2.1",
34
+ "@fortawesome/free-solid-svg-icons": "^6.2.1",
35
+ "@fortawesome/react-fontawesome": "^0.2.0",
36
+ "@device-management-toolkit/ui-toolkit": "^3.3.3",
37
+ "@xterm/xterm": "^5.5.0",
38
+ "i18next": "^25.2.1",
39
+ "i18next-browser-languagedetector": "^8.0.0",
40
+ "md5": "^2.2.1",
41
+ "moment": "^2.29.4",
42
+ "react-i18next": "^15.5.2",
43
+ "sass": "^1.56.1",
44
+ "styled-components": "^6.1.18",
45
+ "winston": "^3.0.0",
46
+ "ws": "^8.18.2"
47
+ },
48
+ "devDependencies": {
49
+ "@testing-library/jest-dom": "^6.0.0",
50
+ "@testing-library/react": "^16.0.0",
51
+ "@testing-library/user-event": "^14.4.3",
52
+ "@types/jest": "^29.2.3",
53
+ "@types/md5": "^2.3.2",
54
+ "@types/node": "^22.15.23",
55
+ "@types/react": "^18.0.25",
56
+ "@types/react-dom": "^18.0.9",
57
+ "@types/ws": "^8.2.0",
58
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
59
+ "@typescript-eslint/parser": "^6.11.0",
60
+ "css-loader": "^7.1.1",
61
+ "eslint": "^8.27.0",
62
+ "eslint-config-standard": "^17.0.0",
63
+ "eslint-config-standard-with-typescript": "^43.0.1",
64
+ "eslint-plugin-import": "^2.26.0",
65
+ "eslint-plugin-node": "^11.1.0",
66
+ "eslint-plugin-promise": "^6.1.1",
67
+ "filereader": "^0.10.3",
68
+ "html-webpack-plugin": "^5.5.0",
69
+ "identity-obj-proxy": "^3.0.0",
70
+ "jest": "^29.3.1 ",
71
+ "jest-environment-jsdom": "^29.3.1",
72
+ "jest-junit": "^16.0.0",
73
+ "jest-transform-stub": "^2.0.0",
74
+ "react": "^19.0.0",
75
+ "react-dom": "^19.0.0",
76
+ "sass-loader": "^16.0.0",
77
+ "source-map-loader": "^5.0.0",
78
+ "style-loader": "^4.0.0",
79
+ "ts-jest": "^29.0.3",
80
+ "ts-loader": "^9.4.1",
81
+ "typescript": "^5.0.4",
82
+ "webpack": "^5.75.0",
83
+ "webpack-cli": "^6.0.1",
84
+ "webpack-dev-server": "^5.0.1",
85
+ "webpack-node-externals": "^3.0.0"
86
+ }
87
+ }
package/i18n.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import i18n from 'i18next';
6
+ export default i18n;
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@device-management-toolkit/ui-toolkit-react",
3
+ "version": "4.0.2",
4
+ "description": "React UI controls for Intel AMT features",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "prepublishOnly": "npx mkdirp dist && cp package.json dist",
8
+ "start": "webpack serve --config webpack.config.dev.js",
9
+ "build": "webpack --config webpack.config.prod.js",
10
+ "build-ext": "npm run build-types && webpack --config webpack.config.externals.js",
11
+ "lint": "eslint . --ext .ts",
12
+ "test": "jest --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand --updateSnapshot",
13
+ "coverage": "jest --coverage --detectOpenHandles --logHeapUsage --ci --no-cache --runInBand ",
14
+ "test-kvm": "tsc && node ./dist/test/kvmui.test.ws.js",
15
+ "build-types": "tsc --emitDeclarationOnly -p tsconfig.build.json"
16
+ },
17
+ "author": "",
18
+ "license": "Apache-2.0",
19
+ "bugs": {
20
+ "url": "https://github.com/device-management-toolkit/ui-toolkit-react/issues"
21
+ },
22
+ "homepage": "https://github.com/device-management-toolkit/ui-toolkit-react#readme",
23
+ "types": "index.d.ts",
24
+ "peerDependencies": {
25
+ "react": "^18.2.0",
26
+ "react-dom": "^18.2.0"
27
+ },
28
+ "private": false,
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "dependencies": {
33
+ "@fortawesome/fontawesome-svg-core": "^6.2.1",
34
+ "@fortawesome/free-solid-svg-icons": "^6.2.1",
35
+ "@fortawesome/react-fontawesome": "^0.2.0",
36
+ "@device-management-toolkit/ui-toolkit": "^3.3.3",
37
+ "@xterm/xterm": "^5.5.0",
38
+ "i18next": "^25.2.1",
39
+ "i18next-browser-languagedetector": "^8.0.0",
40
+ "md5": "^2.2.1",
41
+ "moment": "^2.29.4",
42
+ "react-i18next": "^15.5.2",
43
+ "sass": "^1.56.1",
44
+ "styled-components": "^6.1.18",
45
+ "winston": "^3.0.0",
46
+ "ws": "^8.18.2"
47
+ },
48
+ "devDependencies": {
49
+ "@testing-library/jest-dom": "^6.0.0",
50
+ "@testing-library/react": "^16.0.0",
51
+ "@testing-library/user-event": "^14.4.3",
52
+ "@types/jest": "^29.2.3",
53
+ "@types/md5": "^2.3.2",
54
+ "@types/node": "^22.15.23",
55
+ "@types/react": "^18.0.25",
56
+ "@types/react-dom": "^18.0.9",
57
+ "@types/ws": "^8.2.0",
58
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
59
+ "@typescript-eslint/parser": "^6.11.0",
60
+ "css-loader": "^7.1.1",
61
+ "eslint": "^8.27.0",
62
+ "eslint-config-standard": "^17.0.0",
63
+ "eslint-config-standard-with-typescript": "^43.0.1",
64
+ "eslint-plugin-import": "^2.26.0",
65
+ "eslint-plugin-node": "^11.1.0",
66
+ "eslint-plugin-promise": "^6.1.1",
67
+ "filereader": "^0.10.3",
68
+ "html-webpack-plugin": "^5.5.0",
69
+ "identity-obj-proxy": "^3.0.0",
70
+ "jest": "^29.3.1 ",
71
+ "jest-environment-jsdom": "^29.3.1",
72
+ "jest-junit": "^16.0.0",
73
+ "jest-transform-stub": "^2.0.0",
74
+ "react": "^19.0.0",
75
+ "react-dom": "^19.0.0",
76
+ "sass-loader": "^16.0.0",
77
+ "source-map-loader": "^5.0.0",
78
+ "style-loader": "^4.0.0",
79
+ "ts-jest": "^29.0.3",
80
+ "ts-loader": "^9.4.1",
81
+ "typescript": "^5.0.4",
82
+ "webpack": "^5.75.0",
83
+ "webpack-cli": "^6.0.1",
84
+ "webpack-dev-server": "^5.0.1",
85
+ "webpack-node-externals": "^3.0.0"
86
+ }
87
+ }
@@ -0,0 +1,18 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2023
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import React from 'react';
6
+ export declare class AttachDiskImage extends React.Component<{
7
+ deviceId: string | null;
8
+ mpsServer: string | null;
9
+ authToken?: string;
10
+ }, {
11
+ selectedFile: File | null;
12
+ iderState: number;
13
+ }> {
14
+ constructor(props: any);
15
+ handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
16
+ updateIderState: (newState: any) => void;
17
+ render(): React.JSX.Element;
18
+ }
@@ -0,0 +1,40 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2023
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import { AMTRedirector, AMTIDER } from '@device-management-toolkit/ui-toolkit/core';
6
+ import React from 'react';
7
+ export interface IDERProps {
8
+ iderState: number;
9
+ updateIderState: (newState: number) => void;
10
+ iderData: IDERData | null;
11
+ cdrom: File | null;
12
+ floppy: File | null;
13
+ mpsServer: string | null;
14
+ authToken?: string;
15
+ deviceId: string | null;
16
+ }
17
+ export interface IDERState {
18
+ iderState: number;
19
+ iderData: IDERData | null;
20
+ }
21
+ export interface IDERData {
22
+ floppyRead: number;
23
+ floppyWrite: number;
24
+ cdromRead: number;
25
+ cdromWrite: number;
26
+ }
27
+ export declare class IDER extends React.Component<IDERProps, IDERState> {
28
+ redirector: AMTRedirector | null;
29
+ ider: AMTIDER | null;
30
+ constructor(props: IDERProps);
31
+ componentDidMount(): void;
32
+ componentWillUnmount(): void;
33
+ onConnectionStateChange: (redirector: any, state: number) => void;
34
+ componentDidUpdate(prevProps: any): void;
35
+ startIder: () => void;
36
+ stopIder(): void;
37
+ cleanup(): void;
38
+ iderSectorStats(mode: any, dev: any, total: any, start: any, len: any): void;
39
+ render(): null;
40
+ }
@@ -0,0 +1,5 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2023
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ export {};
@@ -0,0 +1,13 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import React from 'react';
6
+ import './ConnectButton.scss';
7
+ export interface ConnectProps {
8
+ kvmstate: number;
9
+ handleConnectClick: (e: any) => void;
10
+ }
11
+ export declare class ConnectButton extends React.Component<ConnectProps, {}> {
12
+ render(): React.ReactNode;
13
+ }
@@ -0,0 +1,17 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import React from 'react';
6
+ export interface IDesktopSettings {
7
+ changeDesktopSettings: (settings: any) => void;
8
+ getConnectState: () => number;
9
+ }
10
+ export declare class DesktopSettings extends React.Component<IDesktopSettings> {
11
+ desktopsettings: {
12
+ encoding: number;
13
+ };
14
+ constructor(props: IDesktopSettings);
15
+ changeEncoding(encoding: number): void;
16
+ render(): React.ReactNode;
17
+ }
@@ -0,0 +1,17 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import React from 'react';
6
+ import './EncodingOptions.scss';
7
+ export interface IEncodingOptions {
8
+ changeEncoding: (encoding: number) => void;
9
+ getConnectState: () => number;
10
+ }
11
+ export declare class EncodingOptions extends React.Component<IEncodingOptions, {
12
+ value: number;
13
+ }> {
14
+ constructor(props: IEncodingOptions);
15
+ onEncodingChange(e: any): void;
16
+ render(): React.ReactNode;
17
+ }
@@ -0,0 +1,17 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import React from 'react';
6
+ import './Header.scss';
7
+ export interface IHeaderProps {
8
+ kvmstate: number;
9
+ deviceId: string | null;
10
+ server: string | null;
11
+ handleConnectClick: (e: any) => void;
12
+ changeDesktopSettings: (settings: any) => void;
13
+ getConnectState: () => number;
14
+ }
15
+ export declare class Header extends React.Component<IHeaderProps> {
16
+ render(): JSX.Element;
17
+ }
@@ -0,0 +1,19 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ * Author : Ramu Bachala
5
+ **********************************************************************/
6
+ import React from 'react';
7
+ import './PureCanvas.scss';
8
+ export interface PureCanvasProps {
9
+ contextRef: (ctx: CanvasRenderingContext2D) => void;
10
+ mouseDown: (event: React.MouseEvent) => void;
11
+ mouseUp: (event: React.MouseEvent) => void;
12
+ mouseMove: (event: React.MouseEvent) => void;
13
+ canvasHeight: string;
14
+ canvasWidth: string;
15
+ }
16
+ export declare class PureCanvas extends React.Component<PureCanvasProps, {}> {
17
+ shouldComponentUpdate(): boolean;
18
+ render(): React.ReactNode;
19
+ }
@@ -0,0 +1,45 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ * Author : Ramu Bachala
5
+ **********************************************************************/
6
+ import { IDataProcessor, IKvmDataCommunicator, Desktop, MouseHelper, KeyBoardHelper } from '@device-management-toolkit/ui-toolkit/core';
7
+ import React from 'react';
8
+ import './UI.scss';
9
+ export interface KVMProps {
10
+ deviceId: string | null;
11
+ mpsServer: string | null;
12
+ mouseDebounceTime: number;
13
+ canvasHeight: string;
14
+ canvasWidth: string;
15
+ autoConnect?: boolean;
16
+ authToken: string;
17
+ }
18
+ export declare class KVM extends React.Component<KVMProps, {
19
+ kvmstate: number;
20
+ encodingOption: number;
21
+ }> {
22
+ module: Desktop | any;
23
+ dataProcessor: IDataProcessor | any;
24
+ redirector: IKvmDataCommunicator | any;
25
+ mouseHelper: MouseHelper | any;
26
+ keyboard: KeyBoardHelper | any;
27
+ desktopSettingsChange: boolean;
28
+ ctx: CanvasRenderingContext2D;
29
+ fr: FileReader;
30
+ constructor(props: KVMProps);
31
+ saveContext(ctx: CanvasRenderingContext2D): void;
32
+ init(): void;
33
+ cleanUp(): void;
34
+ componentWillUnmount(): void;
35
+ onRedirectorError(): void;
36
+ reset(): void;
37
+ OnConnectionStateChange(redirector: any, state: number): any;
38
+ changeDesktopSettings(settings: any): void;
39
+ startKVM(): void;
40
+ stopKVM(): void;
41
+ getRenderStatus(): any;
42
+ handleConnectClick(e: any): void;
43
+ componentDidUpdate(prevProps: any): void;
44
+ render(): React.ReactNode;
45
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,53 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import React from 'react';
6
+ import '@xterm/xterm/css/xterm.css';
7
+ import './sol.scss';
8
+ export interface SOLProps {
9
+ deviceId: string | null;
10
+ mpsServer: string | null;
11
+ autoConnect?: boolean;
12
+ authToken: string;
13
+ }
14
+ export interface SOLStates {
15
+ isConnected: boolean;
16
+ SOLstate: number;
17
+ powerState: number;
18
+ showSuccess: boolean;
19
+ message: string;
20
+ isSelected: boolean;
21
+ type: string;
22
+ solNotEnabled: string;
23
+ deviceOnSleep: string;
24
+ isPowerStateLoaded: boolean;
25
+ }
26
+ /** container class for SOL */
27
+ export declare class Sol extends React.Component<SOLProps, SOLStates> {
28
+ redirector: any;
29
+ terminal: any;
30
+ logger: any;
31
+ dataProcessor: any;
32
+ callback: any;
33
+ term: any;
34
+ fr: FileReader;
35
+ constructor(props: SOLProps);
36
+ init: () => void;
37
+ cleanUp: () => void;
38
+ componentDidMount(): void;
39
+ /** write the processed data from webscoket in to xterm */
40
+ handleWriteToXterm: (str: any) => any;
41
+ handleClearTerminal: () => any;
42
+ /** capture the data on xterm key press */
43
+ handleKeyPress: (domEvent: any) => any;
44
+ handleKeyDownPress: (domEvent: any) => any;
45
+ startSOL: () => void;
46
+ stopSOL: () => void;
47
+ handleSOLConnect: (e: any) => void;
48
+ onTerminalStateChange: (redirector: any, state: number) => void;
49
+ /** callback functions from child components to update the state values */
50
+ handleFeatureStatus: (value: any) => void;
51
+ getSOLState: () => any;
52
+ render(): React.ReactNode;
53
+ }
@@ -0,0 +1,16 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ import React from 'react';
6
+ export interface IPropTerminal {
7
+ handleKeyPress: any;
8
+ xterm: any;
9
+ handleKeyDownPress: any;
10
+ }
11
+ declare class Term extends React.Component<IPropTerminal> {
12
+ mountedWorkaround: boolean;
13
+ componentDidMount(): void;
14
+ render(): React.ReactNode;
15
+ }
16
+ export default Term;
@@ -0,0 +1,5 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ export {};
@@ -0,0 +1,10 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ export declare const HttpClient: {
6
+ get(url: string, options?: {}): Promise<any>;
7
+ post(url: string, body?: {}, options?: {}): Promise<any>;
8
+ delete(url: string, options?: {}): Promise<any>;
9
+ fetch(url: string, options?: {}): Promise<any>;
10
+ };
@@ -0,0 +1,13 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ /** function to get the static tranlation texts from translation.json
6
+ * @param: text - contains the path to the text in translation.json
7
+ */
8
+ export declare const translateText: (text: string) => string;
9
+ /** function to get the translation text when there are dynamic values to be rendered in translation
10
+ * @param: text - contains the path to the text in translation.json
11
+ * @param: translate - object containing dynamic values. The keys to be used inside translation.json
12
+ */
13
+ export declare const translateDynamicText: (text: string, translate: any) => string;
@@ -0,0 +1,8 @@
1
+ /*********************************************************************
2
+ * Copyright (c) Intel Corporation 2019
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ **********************************************************************/
5
+ /** utility function to join the css class names */
6
+ export declare const joinClasses: (...classNames: any[]) => any;
7
+ export declare const prepareHeaders: () => any;
8
+ export declare const isFalsy: (value: any) => boolean;