File tree 7 files changed +43
-129
lines changed
7 files changed +43
-129
lines changed Original file line number Diff line number Diff line change 53
53
"@sveltejs/package" : " ^2.0.0" ,
54
54
"@sveltejs/vite-plugin-svelte" : " ^4.0.0" ,
55
55
"@types/eslint" : " ^8.56.0" ,
56
- "@types/node" : " ^22.8.7" ,
57
56
"@typescript-eslint/eslint-plugin" : " ^7.7.1" ,
58
57
"@typescript-eslint/parser" : " ^7.7.1" ,
59
58
"eslint" : " ^8.56.0" ,
78
77
"@xterm/addon-clipboard" : " ^0.1.0" ,
79
78
"@xterm/addon-fit" : " ^0.10.0" ,
80
79
"@xterm/addon-image" : " ^0.8.0" ,
81
- "@xterm/addon-ligatures" : " ^0.9.0" ,
82
80
"@xterm/addon-search" : " ^0.15.0" ,
83
81
"@xterm/addon-serialize" : " ^0.13.0" ,
84
82
"@xterm/addon-unicode11" : " ^0.8.0" ,
Original file line number Diff line number Diff line change 19
19
onScroll,
20
20
onSelectionChange,
21
21
onTitleChange,
22
- onLoad
22
+ onLoad,
23
+ ... rest
23
24
}: XtermProps = $props ();
24
25
25
26
onMount (async () => {
48
49
});
49
50
</script >
50
51
51
- <div bind:this ={parent }></div >
52
+ <div bind:this ={parent } {... rest } ></div >
Original file line number Diff line number Diff line change @@ -40,14 +40,15 @@ export class XtermAddon {
40
40
*
41
41
* @returns A promise that resolves to the 'ligatures' addon module.
42
42
*/
43
- static LigaturesAddon = async ( ) => {
44
- if ( typeof process === 'undefined' || process . versions == null || process . versions . node == null ) {
45
- // This is not a Node.js environment
46
- throw new Error ( 'This module can only be imported in a Node.js environment' ) ;
47
- }
43
+ // static LigaturesAddon = async () => {
44
+ // // @ts -ignore
45
+ // if (typeof process === 'undefined' || process.versions == null || process.versions.node == null) {
46
+ // // This is not a Node.js environment
47
+ // throw new Error('This module can only be imported in a Node.js environment');
48
+ // }
48
49
49
- return await import ( '@xterm/addon-ligatures' ) ;
50
- }
50
+ // return await import('@xterm/addon-ligatures');
51
+ // }
51
52
52
53
/**
53
54
* Dynamically imports the 'search' addon from `@xterm/addon-search`.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export type * from '@xterm/addon-canvas';
3
3
export type * from '@xterm/addon-clipboard' ;
4
4
export type * from '@xterm/addon-fit' ;
5
5
export type * from '@xterm/addon-image' ;
6
- export type * from '@xterm/addon-ligatures' ;
6
+ // export type * from '@xterm/addon-ligatures';
7
7
export type * from '@xterm/addon-search' ;
8
8
export type * from '@xterm/addon-serialize' ;
9
9
// export type * from '@xterm/addon-unicode-graphemes';
Original file line number Diff line number Diff line change 1
1
import type { Terminal } from "@xterm/xterm" ;
2
2
import type { ITerminalOptions , ITerminalInitOnlyOptions } from './index.js' ;
3
+ import type { HTMLAttributes } from "svelte/elements" ;
3
4
4
5
export type XtermProps = {
5
6
options ?: ITerminalOptions & ITerminalInitOnlyOptions ;
@@ -100,4 +101,4 @@ export type XtermProps = {
100
101
* @returns an `IDisposable` to stop listening.
101
102
*/
102
103
onLoad ?: ( terminal : Terminal ) => void ;
103
- } ;
104
+ } & HTMLAttributes < HTMLDivElement > ;
Original file line number Diff line number Diff line change 23
23
xterm-svelte
24
24
</span >
25
25
</h1 >
26
+
27
+ <div class =" mb-6 flex items-center justify-center gap-2 flex-wrap" >
28
+ <a href =" https://github.com/BattlefieldDuck/xterm-svelte/actions/workflows/node-build.yml" >
29
+ <img
30
+ src =" https://github.com/BattlefieldDuck/xterm-svelte/actions/workflows/node-build.yml/badge.svg"
31
+ alt =" Node.js Build"
32
+ />
33
+ </a >
34
+ <img
35
+ src =" https://img.shields.io/npm/types/%40battlefieldduck%2Fxterm-svelte"
36
+ alt =" NPM Type Definitions"
37
+ />
38
+ <a href =" https://www.npmjs.com/package/@battlefieldduck/xterm-svelte" >
39
+ <img
40
+ src =" https://img.shields.io/npm/v/%40battlefieldduck%2Fxterm-svelte"
41
+ alt =" NPM Version"
42
+ />
43
+ </a >
44
+ <img
45
+ src =" https://img.shields.io/npm/dw/%40battlefieldduck%2Fxterm-svelte"
46
+ alt =" NPM Downloads"
47
+ />
48
+ <img
49
+ src =" https://img.shields.io/npm/d18m/%40battlefieldduck%2Fxterm-svelte"
50
+ alt =" NPM Downloads"
51
+ />
52
+ <img src =" https://img.shields.io/npm/l/%40battlefieldduck%2Fxterm-svelte" alt =" NPM License" />
53
+ </div >
54
+
26
55
<p class =" mb-6 text-lg font-normal text-gray-500 lg:text-xl dark:text-gray-400" >
27
56
A SvelteKit wrapper for
28
57
<a
You can’t perform that action at this time.
0 commit comments