chore(deps): Update deprecated xterm to new package under @xterm

Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
Gabriel Dugny
2025-04-16 00:01:23 +02:00
parent 1a85f9d7b8
commit 3ea5d1b6ff
6 changed files with 49 additions and 43 deletions
@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import 'xterm/css/xterm.css';
import '@xterm/xterm/css/xterm.css';
import { discoveryApiRef, useApi } from '@backstage/core-plugin-api';
import { ClusterAttributes } from '@backstage/plugin-kubernetes-common';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import { useRef, useEffect, useMemo, useState } from 'react';
import { Terminal } from 'xterm';
import { FitAddon } from 'xterm-addon-fit';
import { Terminal } from '@xterm/xterm';
import { FitAddon } from '@xterm/addon-fit';
import { PodExecTerminalAttachAddon } from './PodExecTerminalAttachAddon';
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { AttachAddon, IAttachOptions } from 'xterm-addon-attach';
import { AttachAddon, IAttachOptions } from '@xterm/addon-attach';
export class PodExecTerminalAttachAddon extends AttachAddon {
#textEncoder = new TextEncoder();