Merge pull request #29623 from GabDug/xterm-deprecation

chore(deps): Update deprecated xterm to new package under @xterm
This commit is contained in:
Patrik Oldsberg
2025-06-14 11:39:40 +02:00
committed by GitHub
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();