Skip to content

Commit

Permalink
Update xterm (#44594)
Browse files Browse the repository at this point in the history
(cherry picked from commit e6ff706)
  • Loading branch information
gzdunek committed Jul 29, 2024
1 parent 3e1fc1c commit b6203b4
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 86 deletions.
129 changes: 62 additions & 67 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions web/packages/teleport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"@opentelemetry/sdk-trace-base": "1.25.1",
"@opentelemetry/sdk-trace-web": "1.25.1",
"@opentelemetry/semantic-conventions": "1.25.1",
"@xterm/xterm": "^5.5.0",
"@xterm/addon-canvas": "^0.7.0",
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/addon-webgl": "^0.18.0",
"create-react-class": "^15.6.3",
"events": "3.3.0",
"xterm": "^5.3.0",
"xterm-addon-canvas": "^0.5.0",
"xterm-addon-fit": "^0.8.0",
"xterm-addon-web-links": "^0.9.0",
"xterm-addon-webgl": "^0.16.0"
"events": "3.3.0"
},
"devDependencies": {
"@gravitational/build": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import React, {
useRef,
} from 'react';
import { Flex } from 'design';
import { ITheme } from 'xterm';
import { ITheme } from '@xterm/xterm';

import { getPlatformType } from 'design/platform';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import styled from 'styled-components';
import { Box } from 'design';

import 'xterm/css/xterm.css';
import '@xterm/xterm/css/xterm.css';

const StyledXterm = styled(Box)(
() => `
Expand Down
12 changes: 6 additions & 6 deletions web/packages/teleport/src/lib/term/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import 'xterm/css/xterm.css';
import { ITheme, Terminal } from 'xterm';
import { FitAddon } from 'xterm-addon-fit';
import { WebglAddon } from 'xterm-addon-webgl';
import '@xterm/xterm/css/xterm.css';
import { ITheme, Terminal } from '@xterm/xterm';
import { FitAddon } from '@xterm/addon-fit';
import { WebglAddon } from '@xterm/addon-webgl';
import { WebLinksAddon } from '@xterm/addon-web-links';
import { CanvasAddon } from '@xterm/addon-canvas';
import { debounce, isInteger } from 'shared/utils/highbar';
import { WebLinksAddon } from 'xterm-addon-web-links';
import { CanvasAddon } from 'xterm-addon-canvas';
import Logger from 'shared/libs/logger';

import cfg from 'teleport/config';
Expand Down
4 changes: 2 additions & 2 deletions web/packages/teleterm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
"@types/node-forge": "^1.3.11",
"@types/tar-fs": "^2.0.4",
"@types/whatwg-url": "^11.0.5",
"@xterm/xterm": "^5.5.0",
"@xterm/addon-fit": "^0.10.0",
"electron": "31.1.0",
"electron-builder": "^25.0.1",
"electron-notarize": "^1.2.2",
Expand All @@ -52,8 +54,6 @@
"react-dnd": "^14.0.4",
"react-dnd-html5-backend": "^14.0.2",
"whatwg-url": "^13.0.0",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.23.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import 'xterm/css/xterm.css';
import { IDisposable, ITheme, Terminal } from 'xterm';
import { FitAddon } from 'xterm-addon-fit';
import '@xterm/xterm/css/xterm.css';
import { IDisposable, ITheme, Terminal } from '@xterm/xterm';
import { FitAddon } from '@xterm/addon-fit';
import { debounce } from 'shared/utils/highbar';

import { IPtyProcess } from 'teleterm/sharedProcess/ptyHost';
Expand Down

0 comments on commit b6203b4

Please sign in to comment.