Skip to content

Commit

Permalink
Make addon api imports consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Nov 2, 2023
1 parent 4c275a2 commit 4beb7d0
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions addons/addon-attach/src/AttachAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Implements the attach method, that attaches the terminal to a WebSocket stream.
*/

import { Terminal, IDisposable, ITerminalAddon } from '@xterm/xterm';
import { AttachAddon as IAttachApi } from '@xterm/addon-attach';
import type { Terminal, IDisposable, ITerminalAddon } from '@xterm/xterm';
import type { AttachAddon as IAttachApi } from '@xterm/addon-attach';

interface IAttachOptions {
bidirectional?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions addons/addon-canvas/src/CanvasAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* @license MIT
*/

import type { ITerminalAddon, Terminal } from '@xterm/xterm';
import type { CanvasAddon as ICanvasApi } from '@xterm/addon-canvas';
import { ICharacterJoinerService, ICharSizeService, ICoreBrowserService, IRenderService, IThemeService } from 'browser/services/Services';
import { ITerminal } from 'browser/Types';
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/xterm';
import { CanvasRenderer } from './CanvasRenderer';
import { CanvasAddon as ICanvasApi } from '@xterm/addon-canvas';

export class CanvasAddon extends Disposable implements ITerminalAddon , ICanvasApi {
private _terminal?: Terminal;
Expand Down
4 changes: 2 additions & 2 deletions addons/addon-fit/src/FitAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* @license MIT
*/

import { Terminal, ITerminalAddon } from '@xterm/xterm';
import type { Terminal, ITerminalAddon } from '@xterm/xterm';
import type { FitAddon as IFitApi } from '@xterm/addon-fit';
import { IRenderDimensions } from 'browser/renderer/shared/Types';
import { FitAddon as IFitApi } from '@xterm/addon-fit';

interface ITerminalDimensions {
/**
Expand Down
4 changes: 2 additions & 2 deletions addons/addon-image/src/ImageAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* @license MIT
*/

import type { ITerminalAddon, IDisposable } from '@xterm/xterm';
import type { ImageAddon as IImageApi } from '@xterm/addon-image';
import { IIPHandler } from './IIPHandler';
import { ITerminalAddon, IDisposable } from '@xterm/xterm';
import { ImageRenderer } from './ImageRenderer';
import { ImageStorage, CELL_SIZE_DEFAULT } from './ImageStorage';
import { SixelHandler } from './SixelHandler';
import { ITerminalExt, IImageAddonOptions, IResetHandler } from './Types';
import { ImageAddon as IImageApi } from '@xterm/addon-image';

// default values of addon ctor options
const DEFAULT_OPTIONS: IImageAddonOptions = {
Expand Down
4 changes: 2 additions & 2 deletions addons/addon-ligatures/src/LigaturesAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @license MIT
*/

import { Terminal } from '@xterm/xterm';
import { LigaturesAddon as ILigaturesApi } from '@xterm/addon-ligatures';
import type { Terminal } from '@xterm/xterm';
import type { LigaturesAddon as ILigaturesApi } from '@xterm/addon-ligatures';
import { enableLigatures } from '.';
import { ILigatureOptions } from './Types';

Expand Down
4 changes: 2 additions & 2 deletions addons/addon-search/src/SearchAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @license MIT
*/

import { Terminal, IDisposable, ITerminalAddon, IDecoration } from '@xterm/xterm';
import { SearchAddon as ISearchApi } from '@xterm/addon-search';
import type { Terminal, IDisposable, ITerminalAddon, IDecoration } from '@xterm/xterm';
import type { SearchAddon as ISearchApi } from '@xterm/addon-search';
import { EventEmitter } from 'common/EventEmitter';
import { Disposable, toDisposable, disposeArray, MutableDisposable } from 'common/Lifecycle';

Expand Down
4 changes: 2 additions & 2 deletions addons/addon-serialize/src/SerializeAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* (EXPERIMENTAL) This Addon is still under development
*/

import { IBuffer, IBufferCell, IBufferRange, ITerminalAddon, Terminal } from '@xterm/xterm';
import { SerializeAddon as ISerializeApi } from '@xterm/addon-serialize';
import type { IBuffer, IBufferCell, IBufferRange, ITerminalAddon, Terminal } from '@xterm/xterm';
import type { SerializeAddon as ISerializeApi } from '@xterm/addon-serialize';
import { DEFAULT_ANSI_COLORS } from 'browser/services/ThemeService';
import { IAttributeData, IColor } from 'common/Types';

Expand Down
6 changes: 3 additions & 3 deletions addons/addon-unicode-graphemes/src/UnicodeGraphemesAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* UnicodeVersionProvider for V15 with grapeme cluster handleing.
*/

import { Terminal, ITerminalAddon, IUnicodeHandling } from '@xterm/xterm';
import { UnicodeGraphemesAddon as PublicApi } from '@xterm/addon-unicode-graphemes';
import type { Terminal, ITerminalAddon, IUnicodeHandling } from '@xterm/xterm';
import type { UnicodeGraphemesAddon as IUnicodeGraphemesApi } from '@xterm/addon-unicode-graphemes';
import { UnicodeGraphemeProvider } from './UnicodeGraphemeProvider';

export class UnicodeGraphemesAddon implements ITerminalAddon , PublicApi {
export class UnicodeGraphemesAddon implements ITerminalAddon , IUnicodeGraphemesApi {
private _provider15Graphemes?: UnicodeGraphemeProvider;
private _provider15?: UnicodeGraphemeProvider;
private _unicode?: IUnicodeHandling;
Expand Down
4 changes: 2 additions & 2 deletions addons/addon-unicode11/src/Unicode11Addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* UnicodeVersionProvider for V11.
*/

import { Terminal, ITerminalAddon } from '@xterm/xterm';
import { Unicode11Addon as IUnicode11Api } from '@xterm/addon-unicode11';
import type { Terminal, ITerminalAddon } from '@xterm/xterm';
import type { Unicode11Addon as IUnicode11Api } from '@xterm/addon-unicode11';
import { UnicodeV11 } from './UnicodeV11';

export class Unicode11Addon implements ITerminalAddon , IUnicode11Api {
Expand Down
4 changes: 2 additions & 2 deletions addons/addon-web-links/src/WebLinksAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @license MIT
*/

import { Terminal, ITerminalAddon, IDisposable } from '@xterm/xterm';
import { WebLinksAddon as IWebLinksApi } from '@xterm/addon-web-links';
import type { Terminal, ITerminalAddon, IDisposable } from '@xterm/xterm';
import type { WebLinksAddon as IWebLinksApi } from '@xterm/addon-web-links';
import { ILinkProviderOptions, WebLinkProvider } from './WebLinkProvider';

// consider everthing starting with http:// or https://
Expand Down
4 changes: 2 additions & 2 deletions addons/addon-webgl/src/WebglAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* @license MIT
*/

import type { ITerminalAddon, Terminal } from '@xterm/xterm';
import type { WebglAddon as IWebglApi } from '@xterm/addon-webgl';
import { ICharacterJoinerService, ICharSizeService, ICoreBrowserService, IRenderService, IThemeService } from 'browser/services/Services';
import { ITerminal } from 'browser/Types';
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/xterm';
import { WebglAddon as IWebglApi } from '@xterm/addon-webgl';
import { WebglRenderer } from './WebglRenderer';
import { setTraceLogger } from 'common/services/LogService';

Expand Down

0 comments on commit 4beb7d0

Please sign in to comment.