Skip to content

Commit

Permalink
prepare npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed May 3, 2022
1 parent 673f9e5 commit 826f9d8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 28 deletions.
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
fixture
overwrite
bootstrap.sh
tsconfig.json
webpack.config.js
test
out-test
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019, 2020, 2021 Joerg Breitbart.
Copyright (c) 2019, 2020, 2021, 2022 Joerg Breitbart.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xterm-addon-image",
"version": "0.0.1",
"version": "0.1.0",
"author": "Joerg Breitbart <[email protected]>",
"main": "lib/xterm-addon-image.js",
"types": "typings/xterm-addon-image.d.ts",
Expand All @@ -13,12 +13,10 @@
"prepublishOnly": "npm run package"
},
"peerDependencies": {
"xterm": "~4.16.0"
},
"dependencies": {
"sixel": "^0.16.0"
"xterm": "~4.18.0"
},
"devDependencies": {
"png-ts": "^0.0.3"
"png-ts": "^0.0.3",
"sixel": "^0.16.0"
}
}
22 changes: 1 addition & 21 deletions typings/xterm-addon-image.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2012 Joerg Breitbart.
* Copyright (c) 2022 Joerg Breitbart.
* @license MIT
*/

Expand Down Expand Up @@ -55,22 +55,6 @@ declare module 'xterm-addon-image' {
*/
showPlaceholder?: boolean;

/**
* Leave cursor to right of image.
* This has no effect, if an image covers all cells to the right.
* Same as DECSET 8452, default is false.
*/
cursorRight?: boolean;

/**
* Leave cursor below the first row of an image, scrolling if needed.
* If disabled, the cursor is left at the beginning of the next line.
* This settings is partially overwritten by `cursorRight`, if an image
* does not cover all cells to the right.
* Same as DECSET 7730, default is false.
*/
cursorBelow?: boolean;

/**
* SIXEL settings
*/
Expand All @@ -83,10 +67,6 @@ declare module 'xterm-addon-image' {
sixelPaletteLimit?: number;
/** SIXEL image size limit in bytes (default 25000000 bytes). */
sixelSizeLimit?: number;
/** Whether to use private palettes for SIXEL sequences (default is true). Same as DECSET 1070. */
sixelPrivatePalette?: boolean;
/** Default start palette (default is 'VT340-COLOR'). */
sixelDefaultPalette?: 'VT340-COLOR' | 'VT340-GREY' | 'ANSI256';
}

export class ImageAddon implements ITerminalAddon {
Expand Down

0 comments on commit 826f9d8

Please sign in to comment.