@trismegisto/terminal 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,56 +1,56 @@
1
- Hermes License 1.0
2
-
3
- Copyright (c) 2026 Lucas Ribeiro. All rights reserved except as granted below.
4
-
5
- 1. Use. You may, free of charge, install and use this software (the "Library"),
6
- unmodified, for any purpose, including commercial purposes.
7
-
8
- 2. Applications. You may include the unmodified Library in an application or
9
- service you build and distribute or make that application available to others
10
- (for example, a compiled web application bundle, a container image or an
11
- installed program), provided the Library is not offered as a separate,
12
- standalone component and this license notice is kept with it.
13
-
14
- 3. No modification. You may not modify, adapt, translate or create derivative
15
- works of the Library.
16
-
17
- 4. No redistribution. Except as allowed in section 2, you may not publish,
18
- redistribute, sublicense, sell or otherwise make available the Library —
19
- including as a package in a public or private registry, a fork or a copy of
20
- its source code.
21
-
22
- 5. Notice. You must keep this license and the copyright notice with every copy
23
- of the Library.
24
-
25
- 6. No warranty. The Library is provided "as is", without warranty of any kind,
26
- express or implied. In no event shall the author be liable for any claim,
27
- damages or other liability arising from the use of the Library.
28
-
29
- 7. Third-party components. Some files in the Library are, or are derived from,
30
- third-party software and fonts. They are identified in the NOTICE files, in
31
- the LICENSES folders and in the font license files shipped with the package,
32
- and remain under their own licenses. Nothing in this license limits the
33
- rights those licenses grant for those parts.
34
-
35
- ---
36
-
37
- Licença Hermes 1.0 (tradução de referência; em caso de divergência vale o texto em inglês)
38
-
39
- 1. Uso. Você pode, gratuitamente, instalar e usar esta biblioteca, sem modificações,
40
- para qualquer finalidade, inclusive comercial.
41
- 2. Aplicações. Você pode incluir a biblioteca, sem modificações, numa aplicação ou
42
- serviço seu e distribuir ou disponibilizar essa aplicação (por exemplo, o bundle de
43
- um app web, uma imagem de container ou um programa instalado), desde que a biblioteca
44
- não seja oferecida como componente avulso e este aviso de licença a acompanhe.
45
- 3. Sem modificação. Você não pode modificar, adaptar, traduzir nem criar obras
46
- derivadas da biblioteca.
47
- 4. Sem redistribuição. Fora o permitido no item 2, você não pode publicar, redistribuir,
48
- sublicenciar, vender ou disponibilizar a biblioteca — inclusive como pacote num
49
- registry público ou privado, fork ou cópia do código-fonte.
50
- 5. Aviso. Mantenha esta licença e o aviso de copyright em todas as cópias.
51
- 6. Sem garantia. A biblioteca é fornecida "como está", sem garantia de qualquer tipo.
52
- 7. Componentes de terceiros. Alguns arquivos da biblioteca são, ou derivam de, software
53
- e fontes de terceiros. Eles estão identificados nos arquivos NOTICE, nas pastas
54
- LICENSES e nos arquivos de licença das fontes que acompanham o pacote, e continuam
55
- sob as licenças originais. Nada nesta licença limita os direitos que elas concedem
56
- sobre essas partes.
1
+ Hermes License 1.0
2
+
3
+ Copyright (c) 2026 Lucas Ribeiro. All rights reserved except as granted below.
4
+
5
+ 1. Use. You may, free of charge, install and use this software (the "Library"),
6
+ unmodified, for any purpose, including commercial purposes.
7
+
8
+ 2. Applications. You may include the unmodified Library in an application or
9
+ service you build and distribute or make that application available to others
10
+ (for example, a compiled web application bundle, a container image or an
11
+ installed program), provided the Library is not offered as a separate,
12
+ standalone component and this license notice is kept with it.
13
+
14
+ 3. No modification. You may not modify, adapt, translate or create derivative
15
+ works of the Library.
16
+
17
+ 4. No redistribution. Except as allowed in section 2, you may not publish,
18
+ redistribute, sublicense, sell or otherwise make available the Library —
19
+ including as a package in a public or private registry, a fork or a copy of
20
+ its source code.
21
+
22
+ 5. Notice. You must keep this license and the copyright notice with every copy
23
+ of the Library.
24
+
25
+ 6. No warranty. The Library is provided "as is", without warranty of any kind,
26
+ express or implied. In no event shall the author be liable for any claim,
27
+ damages or other liability arising from the use of the Library.
28
+
29
+ 7. Third-party components. Some files in the Library are, or are derived from,
30
+ third-party software and fonts. They are identified in the NOTICE files, in
31
+ the LICENSES folders and in the font license files shipped with the package,
32
+ and remain under their own licenses. Nothing in this license limits the
33
+ rights those licenses grant for those parts.
34
+
35
+ ---
36
+
37
+ Licença Hermes 1.0 (tradução de referência; em caso de divergência vale o texto em inglês)
38
+
39
+ 1. Uso. Você pode, gratuitamente, instalar e usar esta biblioteca, sem modificações,
40
+ para qualquer finalidade, inclusive comercial.
41
+ 2. Aplicações. Você pode incluir a biblioteca, sem modificações, numa aplicação ou
42
+ serviço seu e distribuir ou disponibilizar essa aplicação (por exemplo, o bundle de
43
+ um app web, uma imagem de container ou um programa instalado), desde que a biblioteca
44
+ não seja oferecida como componente avulso e este aviso de licença a acompanhe.
45
+ 3. Sem modificação. Você não pode modificar, adaptar, traduzir nem criar obras
46
+ derivadas da biblioteca.
47
+ 4. Sem redistribuição. Fora o permitido no item 2, você não pode publicar, redistribuir,
48
+ sublicenciar, vender ou disponibilizar a biblioteca — inclusive como pacote num
49
+ registry público ou privado, fork ou cópia do código-fonte.
50
+ 5. Aviso. Mantenha esta licença e o aviso de copyright em todas as cópias.
51
+ 6. Sem garantia. A biblioteca é fornecida "como está", sem garantia de qualquer tipo.
52
+ 7. Componentes de terceiros. Alguns arquivos da biblioteca são, ou derivam de, software
53
+ e fontes de terceiros. Eles estão identificados nos arquivos NOTICE, nas pastas
54
+ LICENSES e nos arquivos de licença das fontes que acompanham o pacote, e continuam
55
+ sob as licenças originais. Nada nesta licença limita os direitos que elas concedem
56
+ sobre essas partes.
package/NOTICE CHANGED
@@ -1,7 +1,7 @@
1
- @trismegisto/terminal
2
- =====================
3
-
4
- Este pacote foi escrito do zero ("clean room"), com comportamento, forma de API e paleta de cores próprios. As
5
- referências de comportamento são normas públicas: ECMA-48 / ISO 6429, os nomes das funções e modos privados DEC, os
6
- anexos do Unicode UAX #11 e UAX #29, a RFC 4648 e as normas da web (W3C/WHATWG). Nenhum código de implementação de
7
- terceiros foi lido, copiado ou redistribuído, e o pacote não tem dependências de terceiros em tempo de execução.
1
+ @trismegisto/terminal
2
+ =====================
3
+
4
+ Este pacote foi escrito do zero ("clean room"), com comportamento, forma de API e paleta de cores próprios. As
5
+ referências de comportamento são normas públicas: ECMA-48 / ISO 6429, os nomes das funções e modos privados DEC, os
6
+ anexos do Unicode UAX #11 e UAX #29, a RFC 4648 e as normas da web (W3C/WHATWG). Nenhum código de implementação de
7
+ terceiros foi lido, copiado ou redistribuído, e o pacote não tem dependências de terceiros em tempo de execução.
@@ -1,55 +1,55 @@
1
1
  // Desenho na GPU: dois programas instanciados (retângulos de cor e glifos do atlas) sobre um quadrado unitário.
2
2
  // Funciona em WebGL2 e em WebGL1 com ANGLE_instanced_arrays (os shaders são GLSL ES 1.00, aceitos pelos dois).
3
3
  import { GLYPH_STRIDE, RECT_STRIDE } from './frame-model';
4
- const RECT_VS = `
5
- attribute vec2 a_unit;
6
- attribute vec4 a_rect;
7
- attribute vec4 a_color;
8
- uniform vec2 u_resolution;
9
- varying vec4 v_color;
10
- void main() {
11
- vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
12
- gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
13
- v_color = a_color;
4
+ const RECT_VS = `
5
+ attribute vec2 a_unit;
6
+ attribute vec4 a_rect;
7
+ attribute vec4 a_color;
8
+ uniform vec2 u_resolution;
9
+ varying vec4 v_color;
10
+ void main() {
11
+ vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
12
+ gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
13
+ v_color = a_color;
14
14
  }`;
15
- const RECT_FS = `
16
- precision mediump float;
17
- varying vec4 v_color;
18
- void main() {
19
- gl_FragColor = vec4(v_color.rgb * v_color.a, v_color.a);
15
+ const RECT_FS = `
16
+ precision mediump float;
17
+ varying vec4 v_color;
18
+ void main() {
19
+ gl_FragColor = vec4(v_color.rgb * v_color.a, v_color.a);
20
20
  }`;
21
- const GLYPH_VS = `
22
- attribute vec2 a_unit;
23
- attribute vec4 a_rect;
24
- attribute vec4 a_uv;
25
- attribute vec4 a_color;
26
- attribute float a_tint;
27
- uniform vec2 u_resolution;
28
- varying vec2 v_uv;
29
- varying vec4 v_color;
30
- varying float v_tint;
31
- void main() {
32
- vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
33
- gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
34
- v_uv = mix(a_uv.xy, a_uv.zw, a_unit);
35
- v_color = a_color;
36
- v_tint = a_tint;
21
+ const GLYPH_VS = `
22
+ attribute vec2 a_unit;
23
+ attribute vec4 a_rect;
24
+ attribute vec4 a_uv;
25
+ attribute vec4 a_color;
26
+ attribute float a_tint;
27
+ uniform vec2 u_resolution;
28
+ varying vec2 v_uv;
29
+ varying vec4 v_color;
30
+ varying float v_tint;
31
+ void main() {
32
+ vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
33
+ gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
34
+ v_uv = mix(a_uv.xy, a_uv.zw, a_unit);
35
+ v_color = a_color;
36
+ v_tint = a_tint;
37
37
  }`;
38
38
  // A textura vem pré-multiplicada; tingido = cobertura (alfa) na cor da célula; sem tingir = a cor do próprio glifo.
39
- const GLYPH_FS = `
40
- precision mediump float;
41
- uniform sampler2D u_texture;
42
- varying vec2 v_uv;
43
- varying vec4 v_color;
44
- varying float v_tint;
45
- void main() {
46
- vec4 tex = texture2D(u_texture, v_uv);
47
- if (v_tint > 0.5) {
48
- float a = tex.a * v_color.a;
49
- gl_FragColor = vec4(v_color.rgb * a, a);
50
- } else {
51
- gl_FragColor = tex * v_color.a;
52
- }
39
+ const GLYPH_FS = `
40
+ precision mediump float;
41
+ uniform sampler2D u_texture;
42
+ varying vec2 v_uv;
43
+ varying vec4 v_color;
44
+ varying float v_tint;
45
+ void main() {
46
+ vec4 tex = texture2D(u_texture, v_uv);
47
+ if (v_tint > 0.5) {
48
+ float a = tex.a * v_color.a;
49
+ gl_FragColor = vec4(v_color.rgb * a, a);
50
+ } else {
51
+ gl_FragColor = tex * v_color.a;
52
+ }
53
53
  }`;
54
54
  export class GlRenderer {
55
55
  gl;
@@ -1,110 +1,110 @@
1
1
  // CSS do terminal, posto uma vez por documento (quem usa a classe sem Angular não precisa importar folha de estilo).
2
2
  // As cores vêm do tema (variáveis `--hmt-*` no elemento); as medidas, da célula medida.
3
3
  const STYLE_ID = 'hmt-styles';
4
- export const TERMINAL_CSS = `
5
- .hmt {
6
- position: relative;
7
- overflow: hidden;
8
- block-size: 100%;
9
- inline-size: 100%;
10
- background: var(--hmt-background, #000);
11
- color: var(--hmt-foreground, #fff);
12
- cursor: text;
13
- user-select: none;
14
- -webkit-user-select: none;
15
- contain: strict;
16
- }
17
- .hmt.hmt-link-hover { cursor: pointer; }
18
- .hmt-viewport {
19
- position: absolute;
20
- inset: 0;
21
- /* A barra só aparece com histórico para rolar (auto), e sobre ela vale o cursor padrão, não o de texto. */
22
- overflow-y: auto;
23
- overflow-x: hidden;
24
- cursor: default;
25
- background: transparent;
26
- scrollbar-color: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)) transparent;
27
- }
28
- .hmt-scroll-area { inline-size: 1px; }
29
- .hmt-screen {
30
- position: absolute;
31
- inset-block-start: 0;
32
- inset-inline-start: 0;
33
- white-space: pre;
34
- font-kerning: none;
35
- font-variant-ligatures: none;
36
- line-height: var(--hmt-cell-height);
37
- }
38
- .hmt-rows, .hmt-selection, .hmt-links, .hmt-decorations { position: absolute; inset: 0; pointer-events: none; }
39
- .hmt-row { display: block; overflow: hidden; white-space: pre; line-height: var(--hmt-cell-height); }
40
- .hmt-row span { display: inline; }
41
- .hmt-glyph { display: inline-block !important; inline-size: var(--hmt-cell-width); block-size: var(--hmt-cell-height); vertical-align: top; }
42
- .hmt-wide { display: inline-block !important; inline-size: calc(var(--hmt-cell-width) * 2); text-align: center; }
43
- .hmt-bold { font-weight: var(--hmt-font-weight-bold, bold); }
44
- .hmt-dim { opacity: 0.5; }
45
- .hmt-italic { font-style: italic; }
46
- .hmt-blink { animation: hmt-blink var(--hmt-blink-duration, 1s) step-end infinite; }
47
- .hmt-blink-off .hmt-blink { animation: none; }
48
- .hmt-joined { display: inline-block !important; white-space: pre; overflow: visible; vertical-align: top; }
49
- .hmt-rescaled { display: inline-block !important; inline-size: var(--hmt-cell-width); white-space: pre; transform-origin: left center; vertical-align: top; }
50
- .hmt-no-scrollbar .hmt-viewport { scrollbar-width: none; }
51
- .hmt-no-scrollbar .hmt-viewport::-webkit-scrollbar { display: none; }
52
- .hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar { inline-size: var(--hmt-scrollbar-width); }
53
- .hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar-thumb { background: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)); border-radius: 4px; }
54
- .hmt-scrollbar-arrows .hmt-viewport::-webkit-scrollbar-button:single-button { display: block; block-size: var(--hmt-scrollbar-width, 12px); }
55
- .hmt-overview-ruler { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: var(--hmt-scrollbar-width, 14px); pointer-events: none; z-index: 1; }
56
- .hmt-overview-ruler .hmt-ruler-mark { position: absolute; min-block-size: 2px; }
57
- .hmt-overview-ruler.hmt-ruler-top { border-block-start: 1px solid var(--hmt-ruler-border, transparent); }
58
- .hmt-overview-ruler.hmt-ruler-bottom { border-block-end: 1px solid var(--hmt-ruler-border, transparent); }
59
- .hmt-hyperlink { text-decoration-line: underline; text-decoration-style: dashed; text-underline-offset: 2px; }
60
- .hmt-selection-range { position: absolute; }
61
- .hmt-link-underline { position: absolute; border-block-end: 1px solid currentColor; box-sizing: border-box; color: var(--hmt-foreground, #fff); }
62
- .hmt-decoration { position: absolute; pointer-events: auto; }
63
- .hmt-cursor {
64
- position: absolute;
65
- pointer-events: none;
66
- box-sizing: border-box;
67
- overflow: hidden;
68
- text-align: center;
69
- line-height: var(--hmt-cell-height);
70
- }
71
- .hmt-cursor-block.hmt-cursor-focus { color: var(--hmt-background, #000); }
72
- .hmt-cursor-block:not(.hmt-cursor-focus), .hmt-cursor-outline { outline: 1px solid var(--hmt-cursor-color); outline-offset: -1px; }
73
- .hmt-cursor-underline { box-shadow: inset 0 -2px 0 var(--hmt-cursor-color); }
74
- .hmt-cursor-bar { background-color: var(--hmt-cursor-color); }
75
- .hmt-cursor-blink { animation: hmt-blink 1s step-end infinite; }
76
- @keyframes hmt-blink { 50% { opacity: 0; } }
77
- @media (prefers-reduced-motion: reduce) { .hmt-cursor-blink, .hmt-blink { animation: none; } }
78
- .hmt-helper-textarea {
79
- position: absolute;
80
- inset-block-start: 0;
81
- inset-inline-start: -9999em;
82
- inline-size: 0;
83
- block-size: 0;
84
- opacity: 0;
85
- padding: 0;
86
- border: 0;
87
- resize: none;
88
- overflow: hidden;
89
- white-space: nowrap;
90
- z-index: -5;
91
- }
92
- .hmt-measure {
93
- position: absolute;
94
- inset-block-start: 0;
95
- inset-inline-start: -9999em;
96
- visibility: hidden;
97
- white-space: pre;
98
- line-height: normal;
99
- }
100
- .hmt-a11y-tree, .hmt-a11y-live {
101
- position: absolute;
102
- inline-size: 1px;
103
- block-size: 1px;
104
- overflow: hidden;
105
- clip-path: inset(50%);
106
- white-space: pre;
107
- }
4
+ export const TERMINAL_CSS = `
5
+ .hmt {
6
+ position: relative;
7
+ overflow: hidden;
8
+ block-size: 100%;
9
+ inline-size: 100%;
10
+ background: var(--hmt-background, #000);
11
+ color: var(--hmt-foreground, #fff);
12
+ cursor: text;
13
+ user-select: none;
14
+ -webkit-user-select: none;
15
+ contain: strict;
16
+ }
17
+ .hmt.hmt-link-hover { cursor: pointer; }
18
+ .hmt-viewport {
19
+ position: absolute;
20
+ inset: 0;
21
+ /* A barra só aparece com histórico para rolar (auto), e sobre ela vale o cursor padrão, não o de texto. */
22
+ overflow-y: auto;
23
+ overflow-x: hidden;
24
+ cursor: default;
25
+ background: transparent;
26
+ scrollbar-color: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)) transparent;
27
+ }
28
+ .hmt-scroll-area { inline-size: 1px; }
29
+ .hmt-screen {
30
+ position: absolute;
31
+ inset-block-start: 0;
32
+ inset-inline-start: 0;
33
+ white-space: pre;
34
+ font-kerning: none;
35
+ font-variant-ligatures: none;
36
+ line-height: var(--hmt-cell-height);
37
+ }
38
+ .hmt-rows, .hmt-selection, .hmt-links, .hmt-decorations { position: absolute; inset: 0; pointer-events: none; }
39
+ .hmt-row { display: block; overflow: hidden; white-space: pre; line-height: var(--hmt-cell-height); }
40
+ .hmt-row span { display: inline; }
41
+ .hmt-glyph { display: inline-block !important; inline-size: var(--hmt-cell-width); block-size: var(--hmt-cell-height); vertical-align: top; }
42
+ .hmt-wide { display: inline-block !important; inline-size: calc(var(--hmt-cell-width) * 2); text-align: center; }
43
+ .hmt-bold { font-weight: var(--hmt-font-weight-bold, bold); }
44
+ .hmt-dim { opacity: 0.5; }
45
+ .hmt-italic { font-style: italic; }
46
+ .hmt-blink { animation: hmt-blink var(--hmt-blink-duration, 1s) step-end infinite; }
47
+ .hmt-blink-off .hmt-blink { animation: none; }
48
+ .hmt-joined { display: inline-block !important; white-space: pre; overflow: visible; vertical-align: top; }
49
+ .hmt-rescaled { display: inline-block !important; inline-size: var(--hmt-cell-width); white-space: pre; transform-origin: left center; vertical-align: top; }
50
+ .hmt-no-scrollbar .hmt-viewport { scrollbar-width: none; }
51
+ .hmt-no-scrollbar .hmt-viewport::-webkit-scrollbar { display: none; }
52
+ .hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar { inline-size: var(--hmt-scrollbar-width); }
53
+ .hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar-thumb { background: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)); border-radius: 4px; }
54
+ .hmt-scrollbar-arrows .hmt-viewport::-webkit-scrollbar-button:single-button { display: block; block-size: var(--hmt-scrollbar-width, 12px); }
55
+ .hmt-overview-ruler { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: var(--hmt-scrollbar-width, 14px); pointer-events: none; z-index: 1; }
56
+ .hmt-overview-ruler .hmt-ruler-mark { position: absolute; min-block-size: 2px; }
57
+ .hmt-overview-ruler.hmt-ruler-top { border-block-start: 1px solid var(--hmt-ruler-border, transparent); }
58
+ .hmt-overview-ruler.hmt-ruler-bottom { border-block-end: 1px solid var(--hmt-ruler-border, transparent); }
59
+ .hmt-hyperlink { text-decoration-line: underline; text-decoration-style: dashed; text-underline-offset: 2px; }
60
+ .hmt-selection-range { position: absolute; }
61
+ .hmt-link-underline { position: absolute; border-block-end: 1px solid currentColor; box-sizing: border-box; color: var(--hmt-foreground, #fff); }
62
+ .hmt-decoration { position: absolute; pointer-events: auto; }
63
+ .hmt-cursor {
64
+ position: absolute;
65
+ pointer-events: none;
66
+ box-sizing: border-box;
67
+ overflow: hidden;
68
+ text-align: center;
69
+ line-height: var(--hmt-cell-height);
70
+ }
71
+ .hmt-cursor-block.hmt-cursor-focus { color: var(--hmt-background, #000); }
72
+ .hmt-cursor-block:not(.hmt-cursor-focus), .hmt-cursor-outline { outline: 1px solid var(--hmt-cursor-color); outline-offset: -1px; }
73
+ .hmt-cursor-underline { box-shadow: inset 0 -2px 0 var(--hmt-cursor-color); }
74
+ .hmt-cursor-bar { background-color: var(--hmt-cursor-color); }
75
+ .hmt-cursor-blink { animation: hmt-blink 1s step-end infinite; }
76
+ @keyframes hmt-blink { 50% { opacity: 0; } }
77
+ @media (prefers-reduced-motion: reduce) { .hmt-cursor-blink, .hmt-blink { animation: none; } }
78
+ .hmt-helper-textarea {
79
+ position: absolute;
80
+ inset-block-start: 0;
81
+ inset-inline-start: -9999em;
82
+ inline-size: 0;
83
+ block-size: 0;
84
+ opacity: 0;
85
+ padding: 0;
86
+ border: 0;
87
+ resize: none;
88
+ overflow: hidden;
89
+ white-space: nowrap;
90
+ z-index: -5;
91
+ }
92
+ .hmt-measure {
93
+ position: absolute;
94
+ inset-block-start: 0;
95
+ inset-inline-start: -9999em;
96
+ visibility: hidden;
97
+ white-space: pre;
98
+ line-height: normal;
99
+ }
100
+ .hmt-a11y-tree, .hmt-a11y-live {
101
+ position: absolute;
102
+ inline-size: 1px;
103
+ block-size: 1px;
104
+ overflow: hidden;
105
+ clip-path: inset(50%);
106
+ white-space: pre;
107
+ }
108
108
  `;
109
109
  export function ensureStyles(doc) {
110
110
  if (doc.getElementById(STYLE_ID))
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "@trismegisto/terminal",
3
- "version": "4.0.0",
4
- "description": "Hermes Design System — emulador de terminal sem framework (sequências de controle, buffer com histórico e re-quebra, seleção, links, busca, leitor de tela) com tema dos tokens; o hm-terminal fica em @trismegisto/angular/terminal",
5
- "license": "SEE LICENSE IN LICENSE",
6
- "type": "module",
7
- "sideEffects": false,
8
- "main": "dist/index.js",
9
- "module": "dist/index.js",
10
- "types": "dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "types": "./dist/index.d.ts",
14
- "default": "./dist/index.js"
15
- },
16
- "./package.json": "./package.json"
17
- },
18
- "files": [
19
- "dist",
20
- "NOTICE",
21
- "MIGRATION.md"
22
- ],
23
- "scripts": {
24
- "build": "tsc -p tsconfig.json",
25
- "test": "node ../angular/scripts/check-strings.mjs src --ts-objects && vitest run",
26
- "test:watch": "vitest"
27
- },
28
- "peerDependencies": {
29
- "@trismegisto/primitives": "^4.0.0"
30
- },
31
- "devDependencies": {
32
- "@trismegisto/icons": "file:../icons",
33
- "@trismegisto/primitives": "file:../primitives",
34
- "@trismegisto/tokens": "file:../tokens",
35
- "jsdom": "^27.4.0",
36
- "typescript": "~5.9.0",
37
- "vitest": "^4.1.11"
38
- }
39
- }
1
+ {
2
+ "name": "@trismegisto/terminal",
3
+ "version": "4.1.0",
4
+ "description": "Hermes Design System — emulador de terminal sem framework (sequências de controle, buffer com histórico e re-quebra, seleção, links, busca, leitor de tela) com tema dos tokens; o hm-terminal fica em @trismegisto/angular/terminal",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "NOTICE",
21
+ "MIGRATION.md"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.json",
25
+ "test": "node ../angular/scripts/check-strings.mjs src --ts-objects && vitest run",
26
+ "test:watch": "vitest"
27
+ },
28
+ "peerDependencies": {
29
+ "@trismegisto/primitives": "^4.1.0"
30
+ },
31
+ "devDependencies": {
32
+ "@trismegisto/icons": "file:../icons",
33
+ "@trismegisto/primitives": "file:../primitives",
34
+ "@trismegisto/tokens": "file:../tokens",
35
+ "jsdom": "^27.4.0",
36
+ "typescript": "~5.9.0",
37
+ "vitest": "^4.1.11"
38
+ }
39
+ }