from xterm -> from scoped

This commit is contained in:
Daniel Imms
2023-11-01 06:50:08 -07:00
parent 905285efda
commit bb9728ccd1
81 changed files with 83 additions and 83 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import { TextureAtlas } from 'browser/renderer/shared/TextureAtlas';
import { IRasterizedGlyph, IRenderDimensions, ITextureAtlas } from 'browser/renderer/shared/Types';
import { NULL_CELL_CODE } from 'common/buffer/Constants';
import { Disposable, toDisposable } from 'common/Lifecycle';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { IRenderModel, IWebGL2RenderingContext, IWebGLVertexArrayObject } from './Types';
import { createProgram, GLTexture, PROJECTION_MATRIX } from './WebglUtils';
+1 -1
View File
@@ -10,7 +10,7 @@ import { ReadonlyColorSet } from 'browser/Types';
import { Attributes, FgFlags } from 'common/buffer/Constants';
import { Disposable, toDisposable } from 'common/Lifecycle';
import { IColor } from 'common/Types';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { RENDER_MODEL_BG_OFFSET, RENDER_MODEL_FG_OFFSET, RENDER_MODEL_INDICIES_PER_CELL } from './RenderModel';
import { IRenderModel, IWebGL2RenderingContext, IWebGLVertexArrayObject } from './Types';
import { createProgram, expandFloat32Array, PROJECTION_MATRIX } from './WebglUtils';
+1 -1
View File
@@ -9,7 +9,7 @@ import { EventEmitter, forwardEvent } from 'common/EventEmitter';
import { Disposable, toDisposable } from 'common/Lifecycle';
import { getSafariVersion, isSafari } from 'common/Platform';
import { ICoreService, IDecorationService, ILogService, IOptionsService } from 'common/services/Services';
import { ITerminalAddon, Terminal } from 'xterm';
import { ITerminalAddon, Terminal } from '@xterm/xterm';
import { WebglRenderer } from './WebglRenderer';
import { setTraceLogger } from 'common/services/LogService';
+1 -1
View File
@@ -19,7 +19,7 @@ import { AttributeData } from 'common/buffer/AttributeData';
import { CellData } from 'common/buffer/CellData';
import { Attributes, Content, NULL_CELL_CHAR, NULL_CELL_CODE } from 'common/buffer/Constants';
import { ICoreService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { GlyphRenderer } from './GlyphRenderer';
import { RectangleRenderer } from './RectangleRenderer';
import { COMBINED_CHAR_BIT_MASK, RENDER_MODEL_BG_OFFSET, RENDER_MODEL_EXT_OFFSET, RENDER_MODEL_FG_OFFSET, RENDER_MODEL_INDICIES_PER_CELL, RenderModel } from './RenderModel';
@@ -12,7 +12,7 @@ import { ICoreBrowserService, IThemeService } from 'browser/services/Services';
import { Disposable, toDisposable } from 'common/Lifecycle';
import { CellData } from 'common/buffer/CellData';
import { IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { IRenderLayer } from './Types';
export abstract class BaseRenderLayer extends Disposable implements IRenderLayer {
@@ -9,7 +9,7 @@ import { IRenderDimensions } from 'browser/renderer/shared/Types';
import { ICoreBrowserService, IThemeService } from 'browser/services/Services';
import { ILinkifier2, ILinkifierEvent } from 'browser/Types';
import { IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { BaseRenderLayer } from './BaseRenderLayer';
export class LinkRenderLayer extends BaseRenderLayer {
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IDisposable, Terminal } from 'xterm';
import { IDisposable, Terminal } from '@xterm/xterm';
import { IRenderDimensions } from 'browser/renderer/shared/Types';
export interface IRenderLayer extends IDisposable {
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon, IEvent } from 'xterm';
import { Terminal, ITerminalAddon, IEvent } from '@xterm/xterm';
declare module '@xterm/addon-webgl' {
/**
+1 -1
View File
@@ -11,7 +11,7 @@ npm install --save xterm-addon-attach
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { AttachAddon } from 'xterm-addon-attach';
const terminal = new Terminal();
+1 -1
View File
@@ -5,7 +5,7 @@
* Implements the attach method, that attaches the terminal to a WebSocket stream.
*/
import { Terminal, IDisposable, ITerminalAddon } from 'xterm';
import { Terminal, IDisposable, ITerminalAddon } from '@xterm/xterm';
interface IAttachOptions {
bidirectional?: boolean;
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
declare module 'xterm-addon-attach' {
export interface IAttachOptions {
+1 -1
View File
@@ -13,7 +13,7 @@ npm install --save xterm-addon-canvas
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { CanvasAddon } from 'xterm-addon-canvas';
const terminal = new Terminal();
@@ -19,7 +19,7 @@ import { ICellData } from 'common/Types';
import { CellData } from 'common/buffer/CellData';
import { WHITESPACE_CELL_CODE } from 'common/buffer/Constants';
import { IBufferService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { IRenderLayer } from './Types';
export abstract class BaseRenderLayer extends Disposable implements IRenderLayer {
+1 -1
View File
@@ -9,7 +9,7 @@ import { EventEmitter, forwardEvent } from 'common/EventEmitter';
import { Disposable, toDisposable } from 'common/Lifecycle';
import { setTraceLogger } from 'common/services/LogService';
import { IBufferService, IDecorationService, ILogService } from 'common/services/Services';
import { ITerminalAddon, Terminal } from 'xterm';
import { ITerminalAddon, Terminal } from '@xterm/xterm';
import { CanvasRenderer } from './CanvasRenderer';
export class CanvasAddon extends Disposable implements ITerminalAddon {
@@ -12,7 +12,7 @@ import { ICharSizeService, ICharacterJoinerService, ICoreBrowserService, IThemeS
import { EventEmitter, forwardEvent } from 'common/EventEmitter';
import { Disposable, toDisposable } from 'common/Lifecycle';
import { IBufferService, ICoreService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { CursorRenderLayer } from './CursorRenderLayer';
import { LinkRenderLayer } from './LinkRenderLayer';
import { SelectionRenderLayer } from './SelectionRenderLayer';
@@ -12,7 +12,7 @@ import { isFirefox } from 'common/Platform';
import { ICellData } from 'common/Types';
import { CellData } from 'common/buffer/CellData';
import { IBufferService, ICoreService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { BaseRenderLayer } from './BaseRenderLayer';
interface ICursorState {
@@ -9,7 +9,7 @@ import { INVERTED_DEFAULT_COLOR } from 'browser/renderer/shared/Constants';
import { IRenderDimensions } from 'browser/renderer/shared/Types';
import { ICoreBrowserService, IThemeService } from 'browser/services/Services';
import { IBufferService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { BaseRenderLayer } from './BaseRenderLayer';
export class LinkRenderLayer extends BaseRenderLayer {
@@ -7,7 +7,7 @@ import { IRenderDimensions } from 'browser/renderer/shared/Types';
import { BaseRenderLayer } from './BaseRenderLayer';
import { IBufferService, IDecorationService, IOptionsService } from 'common/services/Services';
import { ICoreBrowserService, IThemeService } from 'browser/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
interface ISelectionState {
start?: [number, number];
@@ -11,7 +11,7 @@ import { AttributeData } from 'common/buffer/AttributeData';
import { CellData } from 'common/buffer/CellData';
import { Content, NULL_CELL_CODE } from 'common/buffer/Constants';
import { IBufferService, IDecorationService, IOptionsService } from 'common/services/Services';
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { BaseRenderLayer } from './BaseRenderLayer';
import { GridCache } from './GridCache';
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon, IEvent } from 'xterm';
import { Terminal, ITerminalAddon, IEvent } from '@xterm/xterm';
declare module 'xterm-addon-canvas' {
/**
+1 -1
View File
@@ -11,7 +11,7 @@ npm install --save xterm-addon-fit
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { FitAddon } from 'xterm-addon-fit';
const terminal = new Terminal();
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
import { IRenderDimensions } from 'browser/renderer/shared/Types';
interface ITerminalDimensions {
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
declare module 'xterm-addon-fit' {
/**
+1 -1
View File
@@ -16,7 +16,7 @@ npm install --save xterm-addon-image
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { ImageAddon, IImageAddonOptions } from 'xterm-addon-image';
// customize as needed (showing addon defaults)
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import { IIPHandler } from './IIPHandler';
import { ITerminalAddon, IDisposable } from 'xterm';
import { ITerminalAddon, IDisposable } from '@xterm/xterm';
import { ImageRenderer } from './ImageRenderer';
import { ImageStorage, CELL_SIZE_DEFAULT } from './ImageStorage';
import { SixelHandler } from './SixelHandler';
@@ -4,7 +4,7 @@
*/
import { toRGBA8888 } from 'sixel/lib/Colors';
import { IDisposable } from 'xterm';
import { IDisposable } from '@xterm/xterm';
import { ICellSize, ITerminalExt, IImageSpec, IRenderDimensions, IRenderService } from './Types';
import { Disposable, MutableDisposable, toDisposable } from 'common/Lifecycle';
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IDisposable } from 'xterm';
import { IDisposable } from '@xterm/xterm';
import { ImageRenderer } from './ImageRenderer';
import { ITerminalExt, IExtendedAttrsImage, IImageAddonOptions, IImageSpec, IBufferLineExt, BgFlags, Cell, Content, ICellSize, ExtFlags, Attributes, UnderlineStyle } from './Types';
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IDisposable, IMarker, Terminal } from 'xterm';
import { IDisposable, IMarker, Terminal } from '@xterm/xterm';
// private imports from base repo we build against
import { Attributes, BgFlags, Content, ExtFlags, UnderlineStyle } from 'common/buffer/Constants';
+2 -2
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
declare module 'xterm-addon-image' {
export interface IImageAddonOptions {
@@ -37,7 +37,7 @@ declare module 'xterm-addon-image' {
*
* Note: `storageLimit` bytes are calculated from images by multiplying the pixels with 4
* (4 channels with one byte, images are stored as RGBA8888).
*
*
* Default is 2^16 (4096 x 4096 pixels).
*/
pixelLimit?: number;
+1 -1
View File
@@ -16,7 +16,7 @@ npm install --save xterm-addon-ligatures
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { LigaturesAddon } from 'xterm-addon-ligatures';
const terminal = new Terminal();
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { enableLigatures } from '.';
import { ILigatureOptions } from './Types';
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import type { Terminal } from 'xterm';
import type { Terminal } from '@xterm/xterm';
import { Font } from 'font-ligatures';
import load from './font';
@@ -8,7 +8,7 @@
* which is intended to be stable and consumed by external programs.
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
declare module 'xterm-addon-ligatures' {
/**
+1 -1
View File
@@ -11,7 +11,7 @@ npm install --save xterm-addon-search
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { SearchAddon } from 'xterm-addon-search';
const terminal = new Terminal();
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, IDisposable, ITerminalAddon, IDecoration } from 'xterm';
import { Terminal, IDisposable, ITerminalAddon, IDecoration } from '@xterm/xterm';
import { EventEmitter } from 'common/EventEmitter';
import { Disposable, toDisposable, disposeArray, MutableDisposable } from 'common/Lifecycle';
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon, IEvent } from 'xterm';
import { Terminal, ITerminalAddon, IEvent } from '@xterm/xterm';
declare module 'xterm-addon-search' {
/**
@@ -7,7 +7,7 @@
import { DEFAULT_ANSI_COLORS } from 'browser/services/ThemeService';
import { IAttributeData, IColor } from 'common/Types';
import { IBuffer, IBufferCell, IBufferRange, ITerminalAddon, Terminal } from 'xterm';
import { IBuffer, IBufferCell, IBufferRange, ITerminalAddon, Terminal } from '@xterm/xterm';
function constrain(value: number, low: number, high: number): number {
return Math.max(low, Math.min(value, high));
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
declare module 'xterm-addon-serialize' {
/**
@@ -13,7 +13,7 @@ This addon is not yet published to npm
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { UnicodeGraphemesAddon } from 'xterm-addon-unicode-graphemes';
const terminal = new Terminal();
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IUnicodeVersionProvider } from 'xterm';
import { IUnicodeVersionProvider } from '@xterm/xterm';
import { UnicodeCharProperties, UnicodeCharWidth } from 'common/services/Services';
import { UnicodeService } from 'common/services/UnicodeService';
import * as UC from './third-party/UnicodeProperties';
@@ -5,7 +5,7 @@
* UnicodeVersionProvider for V15 with grapeme cluster handleing.
*/
import { Terminal, ITerminalAddon, IUnicodeHandling } from 'xterm';
import { Terminal, ITerminalAddon, IUnicodeHandling } from '@xterm/xterm';
import { UnicodeGraphemeProvider } from './UnicodeGraphemeProvider';
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
declare module 'xterm-addon-unicode-graphemes' {
export class UnicodeGraphemesAddon implements ITerminalAddon {
+1 -1
View File
@@ -11,7 +11,7 @@ npm install --save xterm-addon-unicode11
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { Unicode11Addon } from 'xterm-addon-unicode11';
const terminal = new Terminal();
@@ -5,7 +5,7 @@
* UnicodeVersionProvider for V11.
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
import { UnicodeV11 } from './UnicodeV11';
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IUnicodeVersionProvider } from 'xterm';
import { IUnicodeVersionProvider } from '@xterm/xterm';
import { UnicodeCharProperties, UnicodeCharWidth } from 'common/services/Services';
import { UnicodeService } from 'common/services/UnicodeService';
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
import { Terminal, ITerminalAddon } from '@xterm/xterm';
declare module 'xterm-addon-unicode11' {
export class Unicode11Addon implements ITerminalAddon {
+1 -1
View File
@@ -11,7 +11,7 @@ npm install --save xterm-addon-web-links
### Usage
```ts
import { Terminal } from 'xterm';
import { Terminal } from '@xterm/xterm';
import { WebLinksAddon } from 'xterm-addon-web-links';
const terminal = new Terminal();
@@ -3,7 +3,7 @@
* @license MIT
*/
import { ILinkProvider, ILink, Terminal, IViewportRange, IBufferLine } from 'xterm';
import { ILinkProvider, ILink, Terminal, IViewportRange, IBufferLine } from '@xterm/xterm';
export interface ILinkProviderOptions {
hover?(event: MouseEvent, text: string, location: IViewportRange): void;
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Terminal, ITerminalAddon, IDisposable } from 'xterm';
import { Terminal, ITerminalAddon, IDisposable } from '@xterm/xterm';
import { ILinkProviderOptions, WebLinkProvider } from './WebLinkProvider';
// consider everthing starting with http:// or https://
@@ -4,7 +4,7 @@
*/
import { Terminal, ITerminalAddon, IViewportRange } from 'xterm';
import { Terminal, ITerminalAddon, IViewportRange } from '@xterm/xterm';
declare module 'xterm-addon-web-links' {
/**