add public api

This commit is contained in:
tisilent
2023-10-18 00:29:56 +08:00
parent 4245283e05
commit 7dab4601d2
19 changed files with 56 additions and 17 deletions
@@ -4,6 +4,7 @@
*/
import { Terminal, ITerminalAddon, IDisposable } from 'xterm';
import { WebLinksAddon as IWebLinksApi } from 'xterm-addon-web-links';
import { ILinkProviderOptions, WebLinkProvider } from './WebLinkProvider';
// consider everthing starting with http:// or https://
@@ -34,7 +35,7 @@ function handleLink(event: MouseEvent, uri: string): void {
}
}
export class WebLinksAddon implements ITerminalAddon {
export class WebLinksAddon implements ITerminalAddon , IWebLinksApi {
private _terminal: Terminal | undefined;
private _linkProvider: IDisposable | undefined;
@@ -13,7 +13,12 @@
"strict": true,
"types": [
"../../../node_modules/@types/mocha"
]
],
"paths": {
"xterm-addon-web-links": [
"../typings/xterm-addon-web-links.d.ts"
]
}
},
"include": [
"./**/*",